2007 Mar 30 11:06 AM
Hi all,
I am declaring a variable at the start in the Main Window of a SAp Script using DEFINE and assigning values to it depending on certain conditions.
Is the variable accessible in the other windows of the script as i need to print information based on the value of the variable taken from the main window.
Pls suggest.
Thanks,
Stock
Hi,
yes you can use variable in other windows.
regards,
ananth
2007 Mar 30 11:10 AM
NO, It will not be accessible in other windows.
In such cases , you better define in the Driver program itself, so that it is visible across all the windows.
Regards,
Ravi
2007 Mar 30 11:28 AM
hi,
Variable defined in the main window using DEFINE statement is available in other variable windows of the same script. so, u can print that variable in other windows
2007 Mar 30 11:34 AM
2007 Mar 30 11:52 AM
Hi stock,
simply said: A variable defined in SAPScript can be used as soon as it has been defined. That means you have to take into account the processing order. Use SAPScript debugger to see the procesing orde of your pages and windows.
Regards,
Clemens
2007 Mar 30 11:52 AM
You are assigning values to the variable using some conditions.
Are you using any
IF < condition>
Some code.
( assigning values to the variable.)
ENDIF.
It does not work.
Since IF...ENDIF does not work in script editor.
Otherwise,The variable declared in Main window can be used in other windows of the same script.
I Hope now You can get free from the problem.
<b>Reward points if it helps you.</b>
Regds,
Rama chary.Pammi
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |