on 2020 Apr 21 11:58 AM
Hello Gurus,
As evident from the heading am not able to debug DPX_EXT methods because of External Breakpoints not triggering.
We have two systems CED for Backend.
CFD is the Gateway hub where we are registering our backend services.
I kept External Break-point in the DPC_EXT methods and activated the code.
When I am checking the service from CFD's gateway client it's not stopping at the break-point.
Note:
* Am sure the method I have kept the break-point is correct only since they are Custom added EntitySets and also checked by adding hard-coded Texts.
* Did below step as well.
I remember in my earlier projects I was able to do so. Can you all please suggest where I am missing.
Thanks,
Sijin
Request clarification before answering.
Hello All,
The answer was lying in RZ11.
Maintained Parameter 'rfc/ext_debugging' with value '3' in the Back-end system and the debugger started working like a charm.
Thanks,
Sijin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just an update:
I was able to Debug this with another alternative. Still why External-Breakpoint is not Triggering is a Mystery only.
Actually the OData am building is for Purchase Order Output.
CED 100 is our DEV system and CED 110 is our cross client system with Data.
So CFD ( Gateway Hub ) accesses CED 110 as a backend only.
What we did we have configured PO Output in CED 110 and by setting local break-points in CED 110 DPC_EXT method's itself I was able to debug and I can continue now.
But still why am not able to debug using External Break-Points is mystery and hence keeping this thread open.
Thanks,
Sijin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sandra,
Yes I set the External breakpoints in CED 110 only which is our backend and CFD 110 our FrontEnd where also Backend services are registered. With this workaround anyways my debugging purpose got solved. But I definitely want to explore why its not triggering.
I wonder if it could be solved by activating the system debug via SICF?
This I will search and give a try and update you for sure.
Thanks,
Sijin
Try the solutions in this brand new blog post: https://blogs.sap.com/2020/04/21/adt-abap-debugger-what-to-do-if-your-program-does-not-stop-at-break...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you try to activate the "system debug" option via transaction code SICF to see if the debugger then stops at your breakpoint? (NB: it's different from the system debug option in the ABAP workbench)
Maybe SAP considers that the breakpoint in your custom ABAP code is like being in a system program because the first called program is a system program or considered being system (see Armin Beil comments in the comments below the blog post).
Hi Sandra,
In SICF I just tried by setting break-point.
Opened the Odata path in SICF, clicked on EDIT>Debugging>Activate debugging.
Even though it triggered the break-point in Front end but still the break-point didn't stop at the backed DPC_EXT classes.
Moreover I ran /IFWND/TRACES also and it also confirms I am setting break-points at right places.
I have seen there are many threads in SCN like this but many are unanswered. 😞
Thanks,
Sijin
You said "activate debugging", but did you activate it with "system debugging"?
You may also set the debug on all ICF services, no need to restrict to one OData path in your case (SICF > Execute > Menu Edit > Debugging > Activate Debugging > System Debugging)
By the way, even if the blog post is about ADT, I think it's worth reading because some tips also apply to the backend debugger.
Can you also check:
If you can't find anything, as Armin Beil says in his blog post, you may open a ticket at SAP support BC-DWB-TOO-DBG (SAP GUI Debugger).
Hi ,
Issue was with RZ11.
I have updated my answer.
Such a small thing was the issue.
Thanks,
Sijin
Sijin Chandran Thanks for the feedback!
Hi Sijin,
Put an external breakpoint in FM - /IWBEP/FM_MGW_HANDLE_REQUEST and see if it triggers or not.
Thanks and Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ankit,
No it's not triggering.
Additional request:
I have a Primary EntitySet "PurchaseOrder" and a Dependent EntitySet "PODeliveryDetails".
Below is the relationship.
Cardinality is 1 to 1.
So it triggers GetEntity method of "PODeliveryDetails" when I call the Navigation Property from "PurchaseOrder" EntitySet.
My ask is how to access the Key i.e. 'Ebeln' inside the GetEntity method of "PODeliveyDetails" when the GetEntity Method is triggerred via Navigation Property.
Below statement fails:
READ TABLE it_key_tab WITH KEY name = 'Ebeln' INTO ls_key_tab.
It works only if we calling that EntitySet with key directly i.e. without Navigation Property.
I just need to PurchaseOrder value or Ebeln value in this case and I think its possible via "IT_NAVIGATION_PATH"
Can you please suggest. Since debugger is not triggering am not able to check this.
Thanks,
Sijin
Hi Ankit,
I just checked what you suggested.
io_tech_request_context is empty/initial whereas it_key_tab was having value.
Am working on FDP_EF_PURCHASE_ORDER Gateway service. You can set break-point on any of the Dependent Entity of PurchaseOrderNode. io_tech... object is showing initial only.
I did with it_key_tab only and also in the above Standard Project also I could see they have used this only.
Thanks for suggestion.
User | Count |
---|---|
33 | |
21 | |
16 | |
8 | |
7 | |
6 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.