on 11-24-2010 10:52 PM
HI All,
I need to pass some variable to SAP SCRIPT from Function module, basically my print program is written inside a function module,
everything is fine but vriables are not passing properly.
appreciate your expert ideas when sap script is developed inside function module;
thank you very much
Iver
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
The SAPSCRIPT can see the global variable of driven program or the program set in OPTION-TDPROGRAM (it's field of import parameter OPTION of fm OPEN_FORM)
The parameters of FM interface are local by default, so they can't be used by SAPSCRIPT, but they become global just as Madhukar Shetty said.
Max
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In the function module follow the path
goto ( in menu )
EDIT-->Interface --> Globalize parameters.
this will solve your problem , this will make all the paramater decalared in FM as Global parameter.
Regards,
Madhukar Shetty
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check whether the variable is declared globally in the driver program. The variables which are declared globally can only be passed to the script.
Edited by: Jeniphin on Nov 26, 2010 4:25 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
What do you mean by properly?
<li>If you declare a variable like below in function module.
DATA:var_001 TYPE char3.
Variable should be used in script editor as below.
/: &var_001&
Regards,
Venkat.O
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.