on 12-24-2014 10:43 AM
Hello Experts,
I have been going through the How-To-Guides in Gateway Forum.
I have worked my way around and used the Basic CRUD Methods, Expands, Streams, Function Imports.
But what I would really want to know is that we inherit so many methods from the IWBEP to DPC class.
What about the uses of all the other methods. I want to know the use of some/all the other methods and their use cases.
Please comment/share knowledge and enlighten on the same which would be useful to the Gateway/UI community .
Thanks and Warm Regards,
Kartik Suru
Hello Kartik,
Few which i know.
1. /IWBEP/IF_MGW_APPL_SRV_RUNTIME~PATCH_ENTITY
This for Partial Update.
You need not to send all the properties of your model as art of payload during update.
Only fields needs to be updated can be sent in payload with Key.
HTTP method - PATCH
If required you can redefine this method and can write our own code as per our needs.
2. /IWBEP/IF_MGW_APPL_SRV_RUNTIME~CREATE_DEEP_ENTITY
This is to Perform POST operations involving Header and Item relation.
3. /IWBEP/IF_MGW_APPL_SRV_RUNTIME~CHANGESET_BEGIN & /IWBEP/IF_MGW_APPL_SRV_RUNTIME~CHANGESET_END
You can redefine these if any logic which you would like to call before begin or end.
Explicit Commit need not be written during modifying operations as it will already be handled by frame work.
4. The below methods can be called accordingly for exception handling and commit.
/IWBEP/IF_SB_DPC_COMM_SERVICES~RFC_EXCEPTION_HANDLING
/IWBEP/IF_SB_DPC_COMM_SERVICES~COMMIT_WORK
Regards,
Ashwin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The Base class of DPC is /IWBEP/CL_MGW_ABS_DATA which implements multiple interfaces. The methods that you see in your Data Provider class are defined in those interfaces. The details of these methods can be found in their interface documentation at OData Channel Runtime APIs - SAP NetWeaver Gateway - SAP Library
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.