cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Unable to Debug AMDP Function implementation

IshanGupta
Explorer
0 Likes
2,813

Hello All,

I am trying to debug an AMDP Function Implementation, whenever I am trying to place a breakpoint it gives below error

Can anyone please suggest how we can debug this AMDP Function.

Accepted Solutions (1)

Accepted Solutions (1)

Armin_Beil
Product and Topic Expert
Product and Topic Expert

Hello Ishan,

  • Debugging of AMDP procedures via ADT requires at least SAP_BASIS 7.50
  • Debugging of AMDP functions via ADT requires at least SAP_BASIS 7.51

I assume the ABAP basis in your system is not new enough

For more details see also https://help.sap.com/viewer/c238d694b825421f940829321ffa326a/1709%20000/en-US/79eae83dbf594660bd91ce...

As a work around you could try to use the SQL Script debugger which is part of HANA Studio: https://blogs.sap.com/2014/01/31/tutorial-how-to-debug-an-abap-managed-database-procedure/

Best regards,
Armin

Answers (1)

Answers (1)

jmodaal
Active Contributor
0 Likes

Hello,

there is a difference between an ABAP breakpoint and a breakpoint for debugging AMDP. Did you consider this? When right-clicking in eclipse in the AMDP method (on the line number or the small space left from it) there is some lines below "Toggle Breakpoint" an additional menu item "Toggle AMDP Debugger Activation". The last one should work.

Armin_Beil
Product and Topic Expert
Product and Topic Expert

ABAP breakpoints and AMDP breakpoints are different, that is completely correct. However in ADT both are created in exactly the same way. E.g. via double click on the left side of the code or via the "Toggle Breakpoint" function you described. It only depends on the code where you perform that operation. If you perform it on an ABAP code line it creates an ABAP breakpoint and if you perform it on AMDP code then it creates an AMDP breakpoint.

"Toggle AMDP Debugger Activation" is a different function that does not create a breakpoint. Instead it only switches the overall on/off state of AMDP debugging. This is a significant difference to ABAP debugging, because in ABAP debugging there is no overall on/off state. Also the creation of a new AMDP breakpoint implicitly switches AMDP debugging to "on". Details are described in the sections "AMDP Debugger and ABAP Debugger are not identical" and "Lifecycle" in the following blog: https://blogs.sap.com/2015/10/22/how-to-debug-abap-managed-database-procedures-using-adt-basics/

jmodaal
Active Contributor
0 Likes

Hello Armin,

thanks for the clarification and the valueable details!