on 05-13-2016 6:15 AM
Hi Experts,
I want to add one more field to the structure - HROVIS_S_NODE_GENERIC
How can I enhance my Odata Model Provider Class - CL_HROVIS_GW_MD_ORGCHART
I have created a Model and assigned it in Maintain Service Transaction as shown in attached image 1 but it is not working
I would like to understand How to know the Gateway Project name as well
Hello Phani,
Not all the services would have been developed using SEGW. Few are developed manually by inheriting the classes as well. You need to check this.
Use table /IWBEP/I_SBD_GA to find the project associated to the service name.
Pass your service name to the field 'NAME' and get the project name.
If found then open this project in SEGW.
Now add the new fields in the structure HROVIS_S_NODE_GENERIC. Then you need to import those newly added fields inside the Entity of your GW model. Once this is done regenerate the run-time objects.
No need to change/enhance the MPC/MPC_EXT class here as the structure HROVIS_S_NODE_GENERIC having your new fields would have already been bound to the MPC.
This you can check if above structure binding is there inside MPC.
Now you can add extra code inside appropriate method in DPC_EXT to populate values into those newly added fields.
I think below should help you.
Extending an OData Service Using Service Builder - SAP NetWeaver Gateway - SAP Library
If its not developed using SEGW then you need to manually write code inside MPC and logic inside DPC.
Regards,
Ashwin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.