on 07-30-2009 3:58 PM
We have a Delivery Note in which it says Total units = 56. But in debug I saw the symbol &UNIT(Z)& which is getting this value 56 on Devlivery.
I want to know from where this value is coming on layoutset? can any one please tell me....as this is not table field or custom variable that is coming from print program.
Thanks a lot.
have you checked your sapsctipt for PERFORM xxxx IN PROGRAM xxxxxxx
changing UNIT
Maybe that is the reason it cannot find in the driver program.
by the way someone said in this thread that local variables could be printed.
That is WRONG ONLY global variables can be printed by sapscript
I mean with global parameters, parameters which are know in the top of the program ( or if called by a function module in the top of that function group)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Activate the Script Debugger and run the Tcode and also in the driver program place a break point on th WRITE_FORM for the window in which the this value is printed ...
surya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Does the program use performs? Because forms can use local variables with different name from the main one.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I think through debugging only you can find the same.
In your script utilites activate debugger and your include set a break point in the open form and after reaching your include
in the debugging screen press f6 and find where your unit value is coming from.
In your script display check defination select here also you will find in which programs your form is triggered.
Your include is using in many program, if you know program then keep a break also in your program especially in write_form
function modules.
Thanks,
Phani.
The UNIT should be declared in your driver program and the value may be set in program or in script.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.