02-20-2006 5:55 AM
What is the difference between open_form and start_form in sapscript ?
Thanks.
02-20-2006 6:08 AM
Hi tushar!
Normally a print program can use more than One form for printing. so for that you have to start a form using
START_FORM and close it using END_FORM and you can use another form by using another START_FORM and close it using END_FORM .
the OPEN_FORM is used for opening a SAP SAcript form for processing i.e printing by mentioning the form name and printing it using WRITE_FORM. and close it using CLOSE_FORM.
I think you got my point.
regards
kishore
02-20-2006 5:58 AM
Usually, SAPscript looks for the table work areas and the global variables in the main part of the ABAP program that was started. For example, if you call function modules that you want to use the table work areas, enter the name of the corresponding program in the field TDPROGRAM of the structure you can enter in the OPTIONS parameter at OPEN_FORM. This definition is then valid for all program symbols up to the next CLOSE_FORM. However, you can also specify the name of the program in the PROGRAM parameter of the START_FORM function module. If you do this, it will be valid up to the next END_FORM. If this parameter is not set in START_FORM, then the setting in OPEN_FORM applies.
Hope it helps.
Regards,
Bikash
02-20-2006 6:03 AM
1. call function 'OPEN_FORM', don't pass a value in 'FORM'
2. call function 'START_FORM', include parameter 'FORM' passing the name of your first form
3. call function 'WRITE_FORM' as normal to output each element
4. call function 'END_FORM'
5. call function 'START_FORM', include parameter 'FORM' passing the name of your second form
6. call function 'WRITE_FORM' as normal to output each element
7. call function 'END_FORM'
8. call function 'CLOSE_FORM'
Refer this link
http://help.sap.com/saphelp_nw04/helpdata/en/d6/0dba34494511d182b70000e829fbfe/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/d6/0dba1a494511d182b70000e829fbfe/content.htm
http://www.henrikfrank.dk/abapexamples/SapScript/the_print_program.htm
Hope this helps u.
02-20-2006 6:07 AM
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, ...).
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.
there can be many start_form and end_form betwwen one open_form and close_form.
02-20-2006 6:08 AM
Hi tushar!
Normally a print program can use more than One form for printing. so for that you have to start a form using
START_FORM and close it using END_FORM and you can use another form by using another START_FORM and close it using END_FORM .
the OPEN_FORM is used for opening a SAP SAcript form for processing i.e printing by mentioning the form name and printing it using WRITE_FORM. and close it using CLOSE_FORM.
I think you got my point.
regards
kishore
02-20-2006 6:09 AM
hi
open_form
open a layout, it should end with close_form.
open_form only once you can call...
start_form can be called many no of times in between open_form and close_form to call different layouts...
it should end with end_form.
using start_form you can call layouts with start page also. you can specify which page should start for that layout..
regards
vijay
02-20-2006 6:09 AM
hi,
in addition to the above links....u can also have some clear idea in this links also....
http://www.sap-img.com/ts013.htm
http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci983455,00.html
regards,
padma.