‎2007 Dec 11 12:15 PM
‎2007 Dec 11 1:56 PM
control_form function module it will be useful in scripts driver program to call control commands like bottom endbottom, top endtop, protect endproject.
‎2007 Dec 11 5:33 PM
<b>SAPscript: Control form output</b>
SAPscript control commands can be carried out with CONTROL_FORM.
The command should be specified without the paragraph format '/:' in the parameter COMMAND.
Regards,
Maha
‎2007 Dec 12 12:02 PM
Hi,
Control_form is a function module where you can give control commands like
new_page, Protect and End Protect so all control commands can be given here...
to control the script...
Regards,
Sana.
Reward if helpful....
‎2007 Dec 13 7:20 AM
Hi Chaitanya,
The function module CONTROL_FORM can be used to pass the control
commands to FORM THROUGH ABAP/4 PROGRAM.
<b>Function Call</b>
CALL FUNCTION 'CONTROL_FORM'
EXPORTING COMMAND = ?...
EXCEPTIONS UNOPENED =
UNSTARTED =
<b>Export parameters:</b>
COMMAND
Enter the SAPscript statement you want to execute in ITF format, but without the statement paragraph attribute '/:'.
<b>Exceptions:</b>
UNOPENED
The current form function could not be executed, since the form output was no yet initialized using OPEN_FORM.
UNSTARTED
No form was opened yet.
Possible reasons:
>The form processing was started using OPEN_FORM without specifying a form name, but no form was opened yet using START_FORM.
>The last used form was closed using END_FORM, but no new form was opened using START_FORM.
>The last filled page of the current form has no subsequent page. In this case, the system automatically terminates form printing after this page. You need no explicit END_FORM call.
>In the current form, no page contains a main window, but a text element shall be output in the main window.
Regards,
Rajesh K Soman
<b>Please rewared points if found helpful.</b>