cancel
Showing results for 
Search instead for 
Did you mean: 

Openform & Startform

Former Member
0 Kudos

Hi,

What is the exact difference between the FMs Open_form and Start_form in

scripts, what is their actual purpose..

Thanks & points will be rewarded

Sreenivas

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Sreenivas,

<b>OPEN_FORM:</b> The function module OPEN_FORM initializes the SAPscript composer and opens the specified form for subsequent output.

The system combines all output for this form up to the CLOSE_FORM to one print request.

If CLOSE_FORM is missing, nothing will be printed.To output SAPscript forms, in the print program you must always start the output with OPEN_FORM and end it with CLOSE_FORM.

<b>START_FORM:</b> To switch forms, use the function module START_FORM. If another form is still open, you must close it first using END_FORM.

If you specify no form name when calling START_FORM, the system restarts the last open form. If after OPEN_FORM no form was activated yet, the system leaves the function module with the exception UNUSED.

In-between the function modules OPEN_FORM and CLOSE_FORM, you can use different forms. This allows you to combine several different forms into one print output. However, you can combine only those forms that have the same page format.

Thanks,

Vinay

Former Member
0 Kudos

hi,

OPEN_FORM: This form opens the script. The module OPEN_FORM opens layout set printing.

START_FORM: This form is dynamically call a page in the script. The layout set can be changed in the current print procedure with START_FORM. This may also be used to trigger a new-spool id.

1. Normally, START_FORM

is not required.

(OPEN_FORM Is compulary in all cases)

2. Its only required,

when we want to different sapscript layouts,

to get merged,

and come in one output.

3. For this purpose,

we use START_FORM,

to START layout 1,

then START Layout 2.

~~Guduri

Former Member
0 Kudos

Hi Sreenivas,

Start form is used for different Layout sets , For example if you have two pages with different orientation , suppose one page may portrait another one is landscape ,there you can make two layout sets , and which it starts by start_form,

you should call like ,

call function 'OPEN_FORM'

call function 'START_FORM' first form for your first page

call function 'WRITE_FORM'

call function 'END_FORM'

call function 'START_FORM' for the second form or page

call function 'WRITE_FORM'

call function 'END_FORM'

Thanks,

Vinay