on 06-21-2019 11:45 AM
Hi,
Am trying to debug the MPC Extension class of the GW Project but the controls are not stopping. I tried with external Break points and Hard coded break points as well.
When i keep the break point in DPC_EXT it is working. but not for MPC Extension.
Can we able to Debug MPC Extension ? is it possible ?
Hi,
The metadata cache can be deleted with Transaction /IWBEP/CACHE_CLEANUP or /IWFND/CACHE_CLEANUP.
The ...MPC_EXT Class should redefine the method define from the base class ..._MPC.
Set an external breakpoint here and try to retrieve the matadata.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Since some of the answers are not technically correct, because they suggest regenerating the SEGW project (which cannot be done for SAP standard projects), here's an actual answer that works without SEGW:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is there a solution to this problem? I also cannot get my breakpoint to work in MPC_EXT Define( ) method.
I need to add an annotation in DEFINE method to change a date format in my List Report. But Define method doesn't get triggered. (I can't put the annotation in cds view because I don't have access to backend).
Any ideas?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It sounds the buffer issue, closed all the abap session, then try above the debugging is triggered.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mahesh,
Thank you for your detail information, I set external breakpoint in the method define of MPC_EXT class, and tried below according to your suggestion, but breakpoint is still not triggered.
1: regenerate the segw project, breakpoint is not triggered.
2: add the service in /n/iwfnd/maint_service, breakpoint is still not triggered.
3: after service register in /n/iwfnd/maint_service, try to click the load metadata button, breakpoint still not triggered.
Did I miss something or my method are not the right way to trigger the debugging? Any input will be very appreciated, thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dpc_ext class will be called everytime you send a request to the odata service..
Mpc_ext doesn't provide the data it just provides metadata and we know for a fact that metadata will be fetched only once when u instantiate the odata service from ui5 or everytime you send the query option $metadata
But again here also the break point will not trigger.. the reason is metadata will be cached and so everytimw u request for it, it will fetch from cache..
So how to trigger the break point now..?
1. You can regenerate the odata service.
2. Else in /n/iwfnd/maint_service tcode, refresh metadata for that odata service.
BR
Mahesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.