Skip to Content

Report to display multiple internal tables, convert to single pdf and send as email


My requirement is to have a report with selection screen having email id as input and on executing the report, it should display multiple internal tables sequentially (either in ALV or in normal table) , convert that into single PDF containing all internal tables and it send as email to receipients or distribution list. I searched this site, but unable to find a better solution.

Can anybody point me some good code to achieve this ? It would be great to have them in OOPS format.

Thanks and Regards.

Add comment
10|10000 characters needed characters exceeded

  • "Better solution"? What is wrong with the solution(s) you've already found then?

    All kinds of PDF/ALV/email questions have already been discussed numerous times on SCN. SAP has not come up with any new functionality for this in years, AFAIK.

  • Follow
  • Get RSS Feed

2 Answers

  • Nov 04, 2016 at 04:31 PM

    I would say that you can get this done by hiring an ABAP programmer.

    That aside... if you split up your requests "ABAP Report multiple tables", "ABAP generate PDF", "ABAP sending email oops". There is plenty of help out there and examples out there. If you are not hiring an ABAP programmer and claim to be one yourself - then put it together yourself.

    The only newer recommendation I can give is to try using CL_DD_DOCUMENT instead of classic reporting with WRITE statements.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 04, 2016 at 07:57 PM

    In ABAP, there are only 2 converters to PDF: from ABAP list or from OTF (SAPscript, smart form). Choose the one you prefer (and search the web for the names of the 2 function modules)... Note that ALV may display several subsequent various tables into an ABAP list, by using the ALV block list feature (function modules REUSE_ALV_BLOCK_LIST* or REUSE_ALV_LIST_DISPLAY with layout LIST_APPEND boolean).

    There's also Adobe Forms if you have ADS installed.

    Add comment
    10|10000 characters needed characters exceeded