cancel
Showing results for 
Search instead for 
Did you mean: 

What happens if close_from FM not specified in Scripts?

Former Member
0 Kudos

Hi,

if close_form FM is not mentioned, will u be able to open another form with open_form FM

or does it give error?

please answer.

Accepted Solutions (0)

Answers (4)

Answers (4)

harimanjesh_an
Active Participant
0 Kudos

hi madhavi,

U wont get Output until u specify CLOSE_FORM for opened form but there wont be any syntax errors and it would even lead u to dump. Only thing that happens is we wont get output until we close the form.

Reward me if useful........

Harimanjesh AN

Former Member
0 Kudos

hi,

Any driver program must contain Open_Form, Close_Form and Write_Form. Other function modules are optional

Close_Form: The function module closes the layout set opened using OPEN_FORM. The system executes any terminating processing steps for the last opened layout set.

if it is no there we won't get any putput

Former Member
0 Kudos

Hi,

Calling a SAPSCRIPT form from an ABAP program

There are <b>five basic</b> function modules used for communication between the ABAP runtime environment and the, so called, "Composer" of the SAPSCRIPT tool:

OPEN_FORM starts the communication between the ABAP runtime and the Composer

START_FORM introduces a blank SAPSCRIPT form which can be filled with data from the ABAP runtime.

WRITE_FORM fills the SAPSCRIPT form with values from the ABAP runtime.

END_FORM completes the writing to the SAPSCRIPT form.

CLOSE_FORM closes the communication between the ABAP runtime and the Composer.

Regards

Former Member
0 Kudos

Hi,

To output SAPscript forms, in the print program you must always start the output with

OPEN_FORM and end it with CLOSE_FORM. 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.

Deserve Reward.

regards.