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

Purchase Order SAPscript: NEU

Former Member
0 Likes
566

Hi, 

I had a SAPscript for production order. In the SAPscript, some calculations are made, which is implemented using PERFORM ... IN PROGRAM ... . At its first output, for example preview, for a production order, a variable is miscalculated. At the second or later output, the variable is correct. So, when user reported such an error, the SAPscript has been processed once and the miscalculation is not available then. How can I debug the error in this situation?

Thanks,

ts

Hi, 

I had a SAPscript for production order. In the SAPscript, some calculations are made, which is implemented using PERFORM ... IN PROGRAM ... . At its first output, for example preview, for a production order, a variable is miscalculated. At the second or later output, the variable is correct. So, when user reported such an error, the SAPscript has been processed once and the miscalculation is not available then. How can I debug the error in this situation?

Thanks,

ts

3 REPLIES 3
Read only

Former Member
0 Likes
530

You can click on 'Activate Debugger' in the SAPscript, then execute the relevant tcode and check the calculation.

-Sowmya

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
530

Please put a break point in subrouine. The first call will be when it is not calculated correctly debugger will stop..Debug it..what is the issue?

Nabheet

Read only

0 Likes
530

Put a break point in between form....endform in the prog. and check the calculation by running the T-code fom initial(when erroneous value is coming) . I think some clear issue .

regards