Display Xstring As PDF in Report
Display Xstring As PDF in Report
Hi All,
Introduction
This blog helps you to display PDF using Xstring data from a report.
Procedure:
Step1:
Enter the name of the program and click on the Create button as shown below.
The below screen will appear and give the program name and type as executable.
Step2:
Create a screen as shown below.
Click on Yes.
The below screen will appear and give a short description and click on the Save button.
The below screen will appear and click on the layout button.
Double click on the control and give the name of the control.
Step3:
Select the main program or create a new include. Here we are using the main program
and click on continue.
Double click on the PAI module and the popup will be displayed.
Select the main program or create a new include. Here we are using the same main
program and click on continue.
Step4:
Create a reference class to the standard class of custom containers and HTML viewer
and create objects in the PBO module of the program.
Step5:
Give the name of the function module and click on the continue button.
Now call the method load data from HTML viewer as shown below.
Give the name of the HTML viewer and click on the continue button.
Select the ABAP Objects Patterns and click on the continue button as shown below.
Give the name of the class and method and click on the continue button as shown
below.
Step6:
The container should be refreshed so that it will not display the previous PDF data.
Select the ABAP Objects Patterns and click on the continue button.
Give the name of the class and method and click on the continue button as shown
below.