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: 

Debugging SAP Scripts MR_PRINT and MR_REKL

Former Member
0 Kudos

Hi All,

Can anybody tell me if there is an easy way to debug the SAP Script Layoutsets MR_PRINT and MR_REKL, which are triggered through MRKO and MIRO transactions. Also I need to know how to repeat the print out of the above layouts, which are outputs of Invoice reductions and Invoice corrections.

I already tried SE71 -> Utilities -> Activate Debugger and also placing a break-point in one of the performs, I call, but I think the print program is a dynamic call and it is not stopping at the break-points.

Let me know what I am missing.

Thank you for your time,

yrkanth

9 REPLIES 9

Former Member
0 Kudos

It is probably issued in an update task. Switch update debugging on in the debugger and it will stop at the break point.

in the debugger (Settings -> Update debugging)

Rishi

0 Kudos

Rishi,

Tried the Update debugging also. Still, no luck. Its not stopping either with the SAP Script debugger switched on or with the ABAP Break-Point switched on.

0 Kudos

Can anybody help with this issue.

Thanks for your time,

yrkanth.

Former Member
0 Kudos

Hi Rajani,

In Ur sap-script, you will ahve to ahve a hard breakpoint.

In a line, mention brak-point.

It will stop there only then.

Reg,

PP.

0 Kudos

Update debugging and a Hard Break-Point in the code together worked to stop at the position desired.

Thank you all,

yrkanth

0 Kudos

But, we cannot put a break-point hard coded one, in the script itself.

Thank you,

yrkanth.

0 Kudos

Sorry, still I am not able to debug the script online. I put a hardcoded break point in one of the performs which are being called. The update debugger stops over there, but still there isn't a way that the script itself could be debug.

Thank you,

yrkanth.

0 Kudos

The only way you can debug a scipt is by switching on the script debugger in se71 transaction. If u put a hard breakpoint, it will stop at that point.

I dont understand what u mean by "is there a way to debug the script itself" ?? pls elaborate what u want to debug..

0 Kudos

Sorry, if it sounds dumb. But how will you put a hard breakpoint in a SAP Script? I don't hink there is a BREAK-POINT command which can be used in SAP Script? I activated the sap script debugger and am running the MRKO transaction which triggers the layoutset, but it is not stopping as it does stop for any other layouset.

The other way I tried was, to put in BREAK-POINT command in one of the performs the SAP script calls and I was able to stop at that only when I debug in Update debugging mode. This only allows me to debug the perform code but it still does not allow me to debug the script as we debug the script for PO (Purchase Order) by activating the SAP Script debugger and print previewing the PO.

Hope this helps?

I really appreciate your time.

Thank you,

yrkanth