Requirement: South Park And Sons want to send the ALV output to all vendors as an email attachment when running in the background. How to accomplish that?
- Use REUSE_ALV_BLOCK_LIST_DISPLAY to display the block list along with print parameters – pri_params-linsz as 132 and part as X_65_132. It will send the ALV to Spool as block list. Spool id can be fetched from sy-spono and commit.
- Then call FM CONVERT_ABAPSPOOLJOB_2_PDF and convert spool data into pdf. Once the data is converted to pdf, it can be attached to an email. Some processing might be required based on system specifics.