on 07-15-2007 4:47 AM
Hello...
what are the functional modules and what parameters we should pass in SE38 after creating the form in SE71
exactly where we should write select statement and loop statement
ie in between the functional modules or before calling the fuctional module
<b>Please Send Me An Example Over Scripts
</b>
<b>Please Help Me Out</b>
hi,
in print program, we declare TABLES which are used for extracting data in declaration part.
you write the SELECT statement for extracting data before calling the script function modules....
these are the function modules which are freequently used in print program.
<b>OPEN_FORM </b>
The function module OPEN_FORM opens form printing. You must call this function module before you can use any other form function (WRITE_FORM, START_FORM, CONTROL_FORM...).
You need not specify a form name. If you omit the name, you must use the function module START_FORM to open a form before starting the output.
You must end form printing by using the function module CLOSE_FORM. Otherwise, the system does not print or display anything.
Within a program, you can use several OPEN_FORM.. CLOSE_FORM pairs. This allows you to write output to several different spool requests from within one program.
<b>syntax:</b>
CALL FUNCTION 'OPEN_FORM'
EXPORTING
FORM = ' ' " specifies the form name
LANGUAGE = SY-LANGU
DEVICE = 'PRINTER'
<b>CLOSE_FORM </b>
The function module closes the form opened using OPEN_FORM. The system executes any terminating processing steps for the last opened form.
You must use this function module to close form printing. Otherwise, no output appears on printer or screen.
CALL FUNCTION 'CLOSE_FORM'.
there is no mandatory parameters to this function module.
<b>START_FORM </b>
In-between the function modules OPEN_FORM and CLOSE_FORM, you can use different forms. This allows you to combine several different forms into one print output. However, you can combine only those forms that have the same page format.
To switch forms, use the function module START_FORM. If another form is still open, you must close it first using END_FORM.
CALL FUNCTION 'START_FORM'
EXPORTING
FORM = < > "specifies the form name
LANGUAGE = < > "specifies the language
STARTPAGE = ' ' "specifies the page name which you
" want print
<b>END_FORM</b>
END_FORM ends the currently open form and executes the required termination processing. After calling this function module, no more form is active. For further output, you must start a new form using START_FORM.
CALL FUNCTION 'END_FORM'.
<b>WRITE_FORM </b>
The system outputs the form element specified in parameter ELEMENT into the currently opened form.
In the parameter WINDOW you can specify the name of a window for the output. Remember that the form element must be defined in this window.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = < > "specifies the element name
WINDOW = < > " name of the window
TYPE = 'BODY' "specifies the output location
<b>CONTROL_FORM </b>
Use CONTROL_FORM to pass SAPscript control statements to the form.
CALL FUNCTION 'CONTROL_FORM'
EXPORTING
COMMAND = < > "specifies the name of the control command
follow this sequence.
OPEN_FORM.
START_FORM.
WRITE_FORM.
END_FORM.
CLOSE_FORM.
regards,
Ashok Reddy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.