‎2007 Apr 04 8:44 AM
Hi everybody, I have a problem with a sapscript. This is called from a user exit, and take one value to print . I have that value in the sapscript with the same value between &&, but it doesn't print anything, only print the text I have there. Does anybody know which could be the problem??
Thanks in advance
‎2007 Apr 04 8:51 AM
Hi..,
Check the editor for this, problem is in script editor onli...
&w_value&... w_value is the variable which contains this value..
check in between & symbol and 'w_value' , there should not be any spaces and commas...
regards,
sai ramesh
‎2007 Apr 04 8:48 AM
hi,
You need to debug this one, if the value is avilable with in the Script then this will print the form, so first look this in the debugging,
to debuging the Script, use the standard program RSTXDBUG or activate the debugger from SE71, utilities --> Activate Debuger, then run the script, and see the value whether it is coming or not..
Regards
Sudheer
‎2007 Apr 04 8:51 AM
Hi..,
Check the editor for this, problem is in script editor onli...
&w_value&... w_value is the variable which contains this value..
check in between & symbol and 'w_value' , there should not be any spaces and commas...
regards,
sai ramesh
‎2007 Apr 04 8:53 AM
Hi....
it will display correctly...
just check it once.
if u have a variable called <b>'name'</b> in the print program then use <b>&name&</b> in the script. it will work fine.
Just check it once.
Reward points if useful......
Suresh......
‎2007 Apr 04 9:16 AM
Thanks to everybody, I was trying with the debugging because the sintax was all right. But if I use the standar debug program, it doesn't pass through my form, only pass to another one I am using. And I don't know how to debug my sapscript after executing the transaction I am using.
Before, I created a report with the same code I use in the user exit and it works, so i think the problem is with the user exit, it doesn't get those values. Any idea??
‎2007 Apr 04 10:13 AM
in gen u declate fields like this
&mara-matnr& = 1041(value)
If ur output is like this &mara-matnr&
--> means this is not a Valid Text element for SAP Scripts
so u have to check text elements or TAB ?
Regards
Prabhu
‎2007 Apr 04 10:28 AM
Sorry Prabhu Peram, I don't understand well what you mean. First I was passing a field of an structure, but now I am passing a variable. In addition, it works if I use a report but if it comes from the user exit it doesn't work. This is my main problem.
Thanks very much to everybody to spend your time in trying to solve it.