cancel
Showing results for 
Search instead for 
Did you mean: 

what is the diff b\w open form and start form in scripts.

Former Member
0 Kudos

Hi,

can any one tell me what is the diff andb\w open form and start form in scripts.when we should use open form and when start form.

Accepted Solutions (0)

Answers (7)

Answers (7)

Former Member
0 Kudos

Hi Friend.

I have understood some usefull information and would like to share with you.

Within one transaction, you can open and close several layout sets using OPEN_FORM and

CLOSE_FORM, however not simultaneously. You can use parameters in the OPEN_FORM to control

whether the output is stored in the same print request. But also the SAP spool decides,

depending on several plausibility checks, whether new output is appended to an existing

print request or whether to create a new print request anyway.

CALL FUNCTION 'OPEN_FORM'

CALL FUNCTION 'CLOSE_FORM'

CALL FUNCTION 'OPEN_FORM'

CALL FUNCTION 'CLOSE_FORM'

You cannot combine ABAP/4 list output and SAPscript output in one print request.

START A LAYOUT SET AGAIN

Usually a print program does not print only one urging letter or one account statement, but

several layout sets for different customers. To have the output for each customer begin with

the start page of the layout set, you must start the current layout set again and again.

To start a layout set again, you must first end the current layout set and then open the

layout set again. Within one print request, first call the function module END_FORM. It

executes the final processing for the current layout set. Then start the layout set again

using START_FORM. Output then begins again on the start page of the desired layout set.

CALL FUNCTION 'OPEN_FORM'

......

CALL FUNCTION 'START_FORM'

......

CALL FUNCTION 'END_FORM'

......

CALL FUNCTION 'START_FORM'

......

CALL FUNCTION 'END_FORM'

......

CALL FUNCTION CLOSE_FORM

Hope your obstacle is cleared.

If not do ask me again?

Former Member
0 Kudos

Hi,

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.

Regards,

Bhaskar

Former Member
0 Kudos

Hi Siva,

In simple, if we consider a layout.

Open_Form is used to print a single layout, that is specified.

If we want to print the same layout with details of more than one person or material etc. we need to go for START_FORM.

In Start_Form we just need to mention the layout name and remove the layout name from OPEN_FORM.

Even Though we are going for Start_Form ther should be atleast one Open_Form, Write_Form and Close_Form.

Hope This Helps You,

Regards,

Chandra Sekhar

Former Member
0 Kudos

hiiii

click on following link

http://www.allinterview.com/showanswers/23627.html

reward if useful

thx

twinkal

Former Member
0 Kudos

hi shiva,

using open form we can call the new layout in the print program.

If u want open another layout in that same progaram at that time we r using the start form.

exp:

open form: form1.

write form ;

start from : second from:

endform:

closeform:

Regards,

sankaran.KR

Former Member
0 Kudos

hi,

while using the open from we can create one spool request. we can enter as many no of layouts/forms into it. A job is been created using OPEN_FORM FM.

We can create a SCRIPT Layout inside that spool Request.

One Form is being created By usin START_FORM FM.

We can insert as many from inside one OPEN_FORM as we want.

hope this will help.

reward if useful.

regards

Sumit Agarwal

former_member705122
Active Contributor
0 Kudos

Hi,

OPEN_FORM:

To initialize the printing of forms via the Raw Data Interface, use function modules (OPEN_FORM und CLOSE_FORM) and a flag in the form (administration data).

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.

Check this links:

http://help.sap.com/saphelp_nw04s/helpdata/en/d2/cb3d8e455611d189710000e8322d00/content.htm

http://www.saptechies.com/what-is-difference-bw-start_form-and-open_form-in-scripts/

Regards

Adil