Dear Colleagues,
Good day.
Well, I have a requirement, existing material data coming from third party system to CPI to S/4 HANA MDG and need to create change request and approve it.
So created a RAP service, Table , CDS view , service definition with binding type OData V4 Web API along with behavior definition/implementation In the handler class, defined the methods modify and read. I just want to see if read method is called and data filled. So i would like to know how i can execute/debug the handler class read method.
How can i do the GET call using GW client?
Service URL : /sap/opu/odata4/sap/xxx_xx_xxx_sb/srvd_a2x/sap/xxxx_xx_xxxx_s/0001/
xxx_xx_xxx_sb - Service binding xxxx_xx_xxxx_s - Service definition
regards
Chandra Kishore.
Request clarification before answering.
you choose unmanaged implementation?
READ ENTITIES OFjust write a small program using eml read call to trigger your method.
odata scenario will not go to that method.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Junwu,
yes using unmanaged implementation.
So ,in handler class i have to define instance method
METHODS get_instance_authorizations FOR INSTANCE AUTHORIZATION
IMPORTING keys REQUEST requested_authorizations FOR cds_view RESULT result
and make call
READ ENTITIES OF cds_view in LOCAL MODE ENTITY cds_view ALL FIELDS WITH CORRESPONDING #( keys ) RESULT DATA(results).?
Also, how can i trigger(breakpoint/debugging) that method?
@junwu If you really want to help, give him a sample of this program you are suggesting, it can't take more than a minute of your time. If you don't want to help, then don't be rude to him.
| User | Count |
|---|---|
| 10 | |
| 5 | |
| 5 | |
| 5 | |
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.