01-10-2007 8:42 AM
Hi Friends,
Can you tell me what is the need of Function modules which is given below in SAP Scripts?
1) Control_form
2) Start_form
Regards,
Dinesh
01-10-2007 8:45 AM
SAPscript control commands can be carried out with CONTROL_FORM. The command should be specified without the paragraph format '/:' in the parameter COMMAND.
start_form is to open another new form after open_form .
regards
shiba dutta
01-10-2007 8:44 AM
it is not mandatory to use control_form and start_form in sapscript.
Not too sure about the control_form, but start_form is initially let the print program know which form to start first.
01-10-2007 8:45 AM
start_form and end_form used to call more than one form in a print program.
01-10-2007 8:45 AM
SAPscript control commands can be carried out with CONTROL_FORM. The command should be specified without the paragraph format '/:' in the parameter COMMAND.
start_form is to open another new form after open_form .
regards
shiba dutta
01-10-2007 8:46 AM
CONTROL_FORM is used to pass commands to the script at runtime. For examle, say you want to force a new page for some reason.
ex-
call function 'CONTROL_FORM'
exporting
command = 'NEW-PAGE'
exceptions
unopened = 1
unstarted = 2
others = 3.
Start_Form: In-between the function modules OPEN_FORM and CLOSE_FORM, we can use different layout sets. This allows us to combine several different layout sets into one print output. However, we can combine only those layout sets that have the same page format. To switch layout sets, use the function module START_FORM. If another layout set is still open, we must close it first using END_FORM. If we specify no layout set name when calling START_FORM, the system restarts the last open layout set. If after OPEN_FORM no layout set was activated yet, the system leaves the function module with the exception UNUSED.
kishan negi