The below lesson explains how to download ALV grid data into the local computer in PDF format.Step3: Submit the program,
Sap Print Output To Pdf
SAP Converting Otf Format To Pdf Format ABAP Reports ( Programs ). ABAP Reports for Converting SAPscript (OTF) or ABAP List Spool Job to PDF, SAPconnect: Start Send Process, Help report of CONVERTOTFSPOOLJOB2PDF, and more. To get PO in output format, you need to have the spool number to be generated. Once PO is sent to Vendor as output you ge the spool number generated for that PO. You can get this spool number from SP01 TCode or in PO (ME23n)go to Menu bar Systems- -Spool Request number.click.A 5 or 6 digit number is generated.select this number. These output can be either be taken as print on paper or generated PDF files or sent by mails/electronically. You can even restrict or allow the trigger of these output. Output determination using condition technique majorly defines 3 functions: 1. Automatic determination of output in respective object. Processing of output based on some events. Save Form Output in PDF format without code. Go to SE38 and run program RSTXPDFT4. Give Spool request number and path to save file. (If you don’t give path here, automatically save as pop up will come; you can select file path and given file name.).
Steps to be followed to convert ALV to PDF
- Develop an ALV report.
- Create custom GUI status.
- Submit the ALV report in background,
store output in spool and generatePDF .
Step1: Develop an ALV report.
Step2: Create custom GUI status
You can create GUI status in two ways.
- Double click on 'MENU' in from FORM_MENU
- Go to SE41 and create
In our program, we will create using the first one. Double click on MENU and click on YES.
Provide short text and enter.
Expand application toolbar, provide name as EPDF, enter a popup will open just press enter.
Provide function text, icon, info text and enter.
Select a function key and enter.
Expand function keys and add standard toolbar buttons like below.
Save, activate and go back (F3) to program.
Execute the program, you will find the toolbar as below.
Step3: Submit the program, store output in spool and generate PDF .
Implement the logic to submit the program and download data into PDF. The below code has lots of steps, please try to understand based on comments provided.
Full and Final code will be
A PDF will be downloaded in the below format.
Learner Questions
Was this lesson helpful to you? Yes No 45 People out of 52 think this lesson helpful