cancel
Showing results for 
Search instead for 
Did you mean: 

Why and where the FM control_form is used?

Former Member
0 Kudos

HI,

What is the use of FM contol_form in script?

Regards,

Mrunal

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Short Text

SAPscript: Control form output

SAPscript control commands can be carried out with CONTROL_FORM. The command should be specified without the paragraph format '/:' in the parameter COMMAND.

CALL FUNCTION 'CONTROL_FORM'

EXPORTING

command = 'NEW-PAGE'.

Regards

Kiran

Former Member
0 Kudos

Hi,

As you know if data can not be accomodated in one page it will automatically be written to the 'NEXT' page. However there could be situations where you would like to skip the current page & print the remaining adta on the next page, in such a case call:

CALL FUNCTION 'CONTROL_FORM'

EXPORTING

command = 'NEW-PAGE'

EXCEPTIONS

unopened = 1

unstarted = 2

OTHERS = 3.

This way you can any SAP SCRIPT COMMAND by using this FM.

Regards

Raju Chitale

Former Member
0 Kudos

HI

using control_form.....we can pass the control comands to the form at run time.