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

sapscript - missing variable output (version 2)

Former Member
0 Likes
782

i have sapscript program and it is not working as expected. pls see screenshots below:

se38 program:

http://i150.photobucket.com/albums/s116/painkiller2007/SAP/sapscript002-1.jpg

se71 program:

http://i150.photobucket.com/albums/s116/painkiller2007/SAP/sapscript001-1.jpg

result:

http://i150.photobucket.com/albums/s116/painkiller2007/SAP/sapscript003-1.jpg

1. why I cant see the result &num3&?

2. Is math operation not really allowed inside se71 program?

3. how can you perfrom debug on sapscript? any tips?

im a newbie. pls help me. <b>thanks!</b>

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
739

Hi,

1.What about the element in you layout?

2.Call the element in your writ_form?

hope this should be working now....

If the hint is useful… Say thanks by reward….

Regards,

Prabhu Rajesh

9 REPLIES 9
Read only

Former Member
0 Likes
739

You can keep a breakpoint in your perform - try hard coded break point.

Run the program and see if the code gets executed correctly.

To see script in debug, goto SE71, enter script name. Go to Utilities --> Activate Debugger.

Now run the program. You will see the layout in debug.

ashish

Read only

Former Member
0 Likes
739

Hi,

Goto SE71, Enter the script name & click UTILITIES => ACTIVATE DEBUGGER.

You have to do all the calculations.. calling subroutines, DEFINE etc in print program(SE38) & pass the output to script.

Best regards,

Prashant

Read only

Former Member
0 Likes
740

Hi,

1.What about the element in you layout?

2.Call the element in your writ_form?

hope this should be working now....

If the hint is useful… Say thanks by reward….

Regards,

Prabhu Rajesh

Read only

Former Member
0 Likes
739

i tried debug utility. i found out %num3% becomes blank upon trying to display %num3% on the sapscript program (SE71). that I do not understand why. <b>pls help. thanks</b>

Read only

Former Member
0 Likes
739

Hi,

Please use &num3& .

Best regards,

Prashant

Read only

Former Member
0 Likes
739

READ TABLE IN_PAR WITH KEY ' NUM1 '.

Can we use ' ' after KEY statment????

Here NUM1 represents a field in the table right?

Read only

0 Likes
739

<b>Prashant</b>, im already using &num3&. i just mistyped here in the forum.

<b>balvij</b>, NUM1 is a field in the table. I did not understand your second sentence.

<b>i still have the same problem. pls help.</b>

Read only

Former Member
0 Likes
739

should I really see the <b>&num3&</b> on print preview or not?

Read only

Former Member
0 Likes
739

ok i got it working now. i just converted the number into string.

<b>thanks to all of you guys. i gave points. </b>