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: 

what is control form function module.

Former Member
0 Kudos

hi

what is control form function module.

4 REPLIES 4

Former Member
0 Kudos

control_form function module it will be useful in scripts driver program to call control commands like bottom endbottom, top endtop, protect endproject.

Former Member
0 Kudos

<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

Former Member
0 Kudos

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....

Former Member
0 Kudos

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>