Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Scripts

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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.

former_member188829
Active Contributor
0 Kudos

start_form and end_form used to call more than one form in a print program.

Former Member
0 Kudos

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

0 Kudos

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