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

Debugging SAPScript code

Former Member
0 Likes
743

Hi all,

I have developed a SAPScript. In one of the window (namely 'Info'), to get some information, i have written a perform statement. My script is having two pages, both having the same window. The window type is CONSTANT.

The prupose of this routine is to get the Agency ID and display it. The problem is that, on the first page it is getting the Agency ID, while in the second page, inspite of having same window and same code, it is not getting the Agency ID.

Can anyone let me know if i have a two pages and a same window of type constant in both the page, does the code in that window execute twice?????

becuase when i debug the code, this routine is executing twice, and the second time it is passing some randon values which are not in the database itself.

Also i want to know how to debug the SAPScript code???

Does anyone has answer of this.

Thanks,

4 REPLIES 4
Read only

Former Member
0 Likes
601

To Debugg the SAP-script execute transaction SE71 and click on Utilities Menu and then click on activate debugger. Then you can execute your drive program.

If you need more help regarding SAP-SCRIPT let me know

Amandeep

Read only

Former Member
0 Likes
601

Hi Pratik,

It is possible that the contents of the symbols you are passing in your PERFORM have changed in the calling program, thus giving the incorrect results.

Best thing might be to put an IF condition around the PERFORM to only do it for the first page (IF &PAGE& = '1') and just output the returned variable on subsequent pages (since you have already retrieved the value).

Kind regards,

Mike

Read only

Former Member
0 Likes
601

hi pratik,

for debug the script ,go to SE71,

enter the form name,

utilities - active debugger,

and then display the form,

utilities -print test,

enter output device-press F8(PRINT PREVIEW).

IT WILL SHOW THE ONE POP BOX

AND ENTER,

NOW SCRIPT IN DEBUG MODE,LIKE REPORTS.

U CAN SOLVE UR PROBLEM BY DEBUG.

REGARDS,

SRINIVAS MANAI.

Read only

Former Member
0 Likes
601

Refer the following links:

Regards,

Ravi