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

Script name sending from Form editor.

Former Member
0 Likes
518

I have script 'Z_script'.

I have to pass this script (Z_script), to my subroutine pool program from SCRIPT editor(se71).

Do in need to define like

<b>DEFINE &SCRIPT& = 'Z_script'</b>

and use

<b>PERFORM script_name IN PROGRAM 'Z_XYZ'

USING &SCRIPT&

USING &LANG&

CHANGING &TEXT1&

CHANGING &TEXT2&</b>

OR is there any std variable available which stores our current script name to use directly with out defining variable.

3 REPLIES 3
Read only

Former Member
0 Likes
487

Hi Sam,

First of all why do you want to send a script name to the program ? Are you calling the external subrouitine from the script ?

For calling subroutine from Script editor please refer to this link :

http://help.sap.com/saphelp_47x200/helpdata/en/d1/803279454211d189710000e8322d00/content.htm

Regards,

Varun .

Message was edited by: varun sonu

Read only

0 Likes
487

I do not understand.

You want to print the name of the SAPscript layout set on the actual output?

If yes, most print programs have TNAPR-FONAM available. The SAPscript layout set name is in this field.

Read only

LucianoBentiveg
Active Contributor
0 Likes
487

Yes, there is one std variable available which stores your current script name, &TNAPR-FONAM&.

Regards.