Application Development 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: 

sapscript - missing variable output (version 2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

former_member223537
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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>

former_member223537
Active Contributor
0 Kudos

Hi,

Please use &num3& .

Best regards,

Prashant

Former Member
0 Kudos

READ TABLE IN_PAR WITH KEY ' NUM1 '.

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

Here NUM1 represents a field in the table right?

0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

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