cancel
Showing results for 
Search instead for 
Did you mean: 

sap script function modules

Former Member
0 Kudos

Hi this is saroj.

1.can any body tell me what is the function of open_form,write_form,close_form,start_form,end_form

in script.

2.can we have a selection screen for the script where we can give inputs.

regards

saroj kanta maharana

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member632729
Contributor
0 Kudos

Hi,

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.

Function call:


CALL FUNCTION 'START_FORM'

EXPORTING FORM = SPACE

LANGUAGE = SPACE

STARTPAGE = SPACE

PROGRAM = SPACE

ARCHIVE_INDEX = SPACE

IMPORTING LANGUAGE =

EXCEPTIONS FORM =

FORMAT =

UNENDED =

UNOPENED =

UNUSED =

Former Member
0 Kudos

Hi,

Yes, SCRIPT FORM can have a selection in driver Program if its not assigned to any OUTPUT TYPE.

If it is configured to some OUTPUT TYPE for some APPLICATION u can view the output of the SCRIPT through a transaction.

Eg: if the OUTPUT TYPE is configured to APPLICATION 'V3' it is billing, so we can view the output of the script through Billing related transactions (VF01, VF02, VF03).

Hope it helps

Regards,

Pavan

Former Member
0 Kudos

[Open_form|http://help.sap.com/saphelp_46c/helpdata/en/d6/0dba1a494511d182b70000e829fbfe/frameset.htm] - 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...).

[Start_form|http://help.sap.com/saphelp_46c/helpdata/en/d6/0dba34494511d182b70000e829fbfe/frameset.htm] - 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.

[Write_form |http://help.sap.com/saphelp_46c/helpdata/en/d6/0dba41494511d182b70000e829fbfe/frameset.htm]- The system outputs the form element specified in parameter ELEMENT into the currently opened form.

[Close_form: |http://help.sap.com/saphelp_46c/helpdata/en/d6/0dba27494511d182b70000e829fbfe/frameset.htm]The function module closes the form opened using OPEN_FORM. The system executes any terminating processing steps for the last opened form.

[End_form |http://help.sap.com/saphelp_46c/helpdata/en/d6/0dba5b494511d182b70000e829fbfe/frameset.htm]- END_FORM ends the currently open form and executes the required termination processing. After calling this function module, no more form is active. For further output, you must start a new form using START_FORM.

Please check this [link |http://help.sap.com/saphelp_46c/helpdata/en/d1/802fd3454211d189710000e8322d00/frameset.htm]to have complete idea on scripts.

Thanks

Satyasuresh Donepudi

former_member156446
Active Contributor
0 Kudos

open se37 have the <FM name> and got0> documentation and read.