Application Development and Automation 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: 
Read only

SAP Script

Former Member
0 Likes
286

What is the basic use of function module 'CONTROL_FORM' in SAP Script ?

1 ACCEPTED SOLUTION
Read only

p291102
Active Contributor
0 Likes
267

Hi,

CONTROL_FORM

Use CONTROL_FORM to pass SAPscript control statements to the form.

Function call:

CALL FUNCTION 'CONTROL_FORM'

EXPORTING COMMAND = ?...

EXCEPTIONS UNOPENED =

UNSTARTED =

Export parameters:

COMMAND

Enter the SAPscript statement you want to execute in ITF format, but without the statement paragraph attribute '/:'.

Exceptions:

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.

Thanks,

Shankar

1 REPLY 1
Read only

p291102
Active Contributor
0 Likes
268

Hi,

CONTROL_FORM

Use CONTROL_FORM to pass SAPscript control statements to the form.

Function call:

CALL FUNCTION 'CONTROL_FORM'

EXPORTING COMMAND = ?...

EXCEPTIONS UNOPENED =

UNSTARTED =

Export parameters:

COMMAND

Enter the SAPscript statement you want to execute in ITF format, but without the statement paragraph attribute '/:'.

Exceptions:

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.

Thanks,

Shankar