Example Calling Forms in An Application Program ABAP
The document provides an excerpt of a program that demonstrates how to call function modules for printing forms in an application. It outlines the steps to open a spool job, retrieve the form name, invoke the generated function module with parameters, and close the spool job, including error handling for each step. Key data types and parameters used in the process are also defined.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
31 views3 pages
Example Calling Forms in An Application Program ABAP
The document provides an excerpt of a program that demonstrates how to call function modules for printing forms in an application. It outlines the steps to open a spool job, retrieve the form name, invoke the generated function module with parameters, and close the spool job, including error handling for each step. Key data types and parameters used in the process are also defined.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3
Example: Calling Forms in an Application Program
The following is a program excerpt showing how the function modules
are called. 1. FP_JOB_OPEN opens the spool job. 2. FP_FUNCTION_MODULE_NAME gets the form name. 3. Generated function module of the form 4. FP_JOB_CLOSE closes the spool job. In this example, the parameters CUSTOMER, BOOKINGS, and CONNECTIONS are sent to the form interface, where they must already be defined.
DATA: CUSTOMER TYPE SCUSTOM,
BOOKINGS TYPE TY_BOOKINGS, CONNECTIONS TYPE TY_CONNECTIONS, FM_NAME TYPE RS38L_FNAM, FP_DOCPARAMS TYPE SFPDOCPARAMS, FP_OUTPUTPARAMS TYPE SFPOUTPUTPARAMS.
* GETTING THE DATA
<data selection>
* PRINT:
* Sets the output parameters and opens the spool job