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

Printing problem with sapscripts

Former Member
0 Likes
935

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
903

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

6 REPLIES 6
Read only

Former Member
0 Likes
903

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

Read only

Former Member
0 Likes
904

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

Read only

Former Member
0 Likes
903

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......

Read only

Former Member
0 Likes
903

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??

Read only

0 Likes
903

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

Read only

Former Member
0 Likes
903

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.