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

SAPScript.....

Former Member
0 Likes
751

Hi,

What is the diff b/w start_form and open_form in

scripts?.why is it necessary to close a form always once it is

opened?

Reg,

Suresh.V

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
729

Hi,

START_FORM is used to open multiple forms..

Thanks,

Naren

5 REPLIES 5
Read only

Former Member
0 Likes
729

Hi,

OPEN_FORM is always required, but START_FORM is not. START_FORM can be used to explicitly start a different page within the sapscript. So for example, you have a cover page and then subsequent pages, and a last page. You can use the START_FORM to explicity write the cover page, the subsequent pages, and then explicity fire the last page based on some conditions. If you one have one page in your sapscript, the START_FORM and END_FORM are not require, but the OPEN_FORM and CLOSE_FORM as always required.

OPEN_FORM

The function module OPEN_FORM opens form printing. You must call this function module before you can use any other form function (WRITE_FORM, START_FORM, CONTROL_FORM...).

You need not specify a form name. If you omit the name, you must use the function module START_FORM to open a form before starting the output.

You must end form printing by using the function module CLOSE_FORM. Otherwise, the system does not print or display anything.

Within a program, you can use several OPEN_FORM.. CLOSE_FORM pairs. This allows you to write output to several different spool requests from within one program.

START_FORM

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.

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.

http://help.sap.com/saphelp_nw2004s/helpdata/en/d6/0dba1a494511d182b70000e829fbfe/frameset.htm

Regards,

Priyanka.

Read only

Former Member
0 Likes
730

Hi,

START_FORM is used to open multiple forms..

Thanks,

Naren

Read only

Former Member
Read only

Former Member
0 Likes
729

close_form is must for all Script development.

Open_form and start_form -

Start_form to call mutiple layout sets..

and also printing requests

Read only

Former Member
0 Likes
729

Hi Suresh,

Open_form is used to initialize the spool request.

Start_form is used to initialize the layout.

Close_form Should always be used in conjection with Open_form function module..

Regards ,

Sudha