- AND RETURN tells the program to return to the calling report after the execution has finished.
- WITHOUT SPOOL DYNPRO tells the spool to not show the printer popup.
- SPOOL PARAMETERS provides the print parameters to the report that are needed to create a spool request.
- We then execute the target report (I called it zoutput in my example) by calling the SUBMIT instruction with certain additions: Looking at this code sample, you can see that the print parameters are imported into a local structure. * Submit the report program into the spool WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno The execution of the target report is done cirectly afterwards. This is done by calling the function module GET_PRINT_PARAMETERS with certain input values. Before we can do that however, we need to featch the print parameters for the spool. The key to this is the ABAP instruction SUBMIT TO SAP-SPOOL. Let’s start with the first step right away. Submit the report to the spool to create a new spool request that contains the desired output.Creating a PDF from a report in ABAP consists of three steps:
You can find the program in its entirety on the second page of this blog post. I will explain the process by discussing bits of a sample program. I’m describing a fairly common scenario here often it is required to send out monthly reporting e-mails with PDF documents attached. But how do you send out nice PDFs instead of ugly text files? In this post, I’ll explain how to programmatically convert the output of a report to PDF so that it’s available for download or to send as an e-mail attachment.Īfter you have learned how to send an e-mail from SAP and how to attach a document to an e-mail, it’s time to discuss how to take this concept a little further. So, you know how to send e-mails, even with attachments. How to Create a PDF from a Report in ABAP
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |