PDF form is geting popular in ABAP programming. Especially for those forms will be combined in the SAP GUI together with webdynpros.
This article described the steps to creat a PDF form.
1. Install 'SAP Adobe LiveCycle Designer'
2. execute tcode 'SFP'
Here, you can create the interface and form for the PDF form, different with SMARTFORMS, PDF form defined a separated interface for the program call.
In the interface, like SMARTFORMS, you can design the input and output parmeters, global definitions and do initializations.
In the FORM, you should annance the interface to be used by the form. And then the parameters of the interface can be linked to the context of the form.
In the form layout designed, you can combine the output field with the parameters to show the word in the form as your needed.
3. program the driver program of the PDF form.
First, get all the data for the interface parameters.
Second, CALL FUNCTION 'FP_FUNCTION_MODULE_NAME' to get the function name of the PDF form
Third, CALL FUNCTION 'FP_JOB_OPEN' to open a PDF form output job.
Forth, call the PDF function name, parameters are refer to the interface parameters.
Fifth, CALL FUNCTION 'FP_JOB_CLOSE' to close the PDF output job.
Sample codes as: