Application Development 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: 

Openform & startform

Former Member
0 Kudos
97

Hi,

wht is the difference between openform & startform .

Vighnesh .

4 REPLIES 4

Former Member
0 Kudos
59

hi,

start_form.

The layout set can be changed in the current print procedure with START_FORM. It is therefore possible to combine several different layout sets in one printer output. Before a new layout set is opened with START_FORM, an open layout set must be closed with END_FORM.

open_form.

The module OPEN_FORM opens layout set printing. This function must be called up before you can work with other layout set functions (WRITE_FORM, ...).

It is not obligatory to enter a layout set name to open it. If a layout set is not specified, one must be opened with START_FORM.

Former Member
0 Kudos
59

Hi,

<b>Differences between OPEN_FORM & START_FORM:</b>

OPEN_FORM is mandatory while START_FORM is optional.

(ii) OPEN_FORM is used to open the layout set output. It should have a CLOSE_FORM, else we will face an error while running the script.CLOSE_FORM ends the layout set output.

START_FORM is used to start a new layout set.In case if we have more than one form then we have to use the START_FORM. It has to be followed by an CLOSE_FORM.

<b>OPEN_FORM: </b>This function module opens layout set printing. One must call this function module before he uses any of other layout set function modules like Write_Form, Start_Form, Control_Form etc., You need specify a layout set name in the export parameters of this function module. If nothing is passed to Open_Form then one should use Start_Form function module to open layout set before starting the output. The layout set opened by Open_Form should be closed by Close_Form function module, other wise output doesn’t appear. We can use any number of Open_Form, Close_Form functions in one single program. But Close_Form must be there for every Open_Form in the program.

<b>START_FORM:</b> In-between the function modules OPEN_FORM and CLOSE_FORM, we can use different layout sets. This allows us to combine several different layout sets into one print output. However, we can combine only those layout sets that have the same page format. To switch layout sets, use the function module START_FORM. If another layout set is still open, we must close it first using END_FORM. If we specify no layout set name when calling START_FORM, the system restarts the last open layout set. If after OPEN_FORM no layout set was activated yet, the system leaves the function module with the exception UNUSED.

Regards,

Padmam.

Former Member
0 Kudos
59

Hi

OPEN_FORM is the one which triggers the Script attached to the program

Write_form is used to write the script data

Start-FORM is used to trigger multiple forms based on the fields in a internal table.

say int table have 10 sales orders, for each sales order to trigger a form then sort that itab by VBELN and for each AT NEW VBELN you have to call START_FORM

and you have to call END_FORM

It is not a must to use START_FORM and END_FORM in each and every script but OPEN_FORM <WRITE_FORM and CLOSE_FORM is a must.

See the links related to scripts

Link for SAP Scripts (step by step procedure)

http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Create_A_SAPSCRIPT_Form/How_to_Create_SAPS...

SAPScripts

http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf

http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf

http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf

http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf

http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf

http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-sub...

SAP SCRIPT FIELDS

http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/8033ea454211d189710000e8322d00/content.htm

scripts easy material

http://www.allsaplinks.com/sap_script_made_easy.html

Reward points for useful Answers

Regards

Anji

Former Member
0 Kudos
59

Hi,

START_FORM: this is used to write output from different layouts into one spool request. it is used in conjuctiion with END_FORM. u can use this for manu times in sool req.

OPEN_FORM : this is used to start a form layout. this is called once. and ended with CLOSE_FORM.

Jogdand M B