on 02-06-2014 1:34 PM
Hi,
I have created a webservice using SAP Netweaver Gateway.
I have implemented the method for updating data: PRODUCT_ENTITY_UPDATE.
When consuming the webservice i am passing following oData in the request
Now, how do I update the data in SAP from this oData model?
I cannot find the data in the parameters of method PRODUCT_ENTITY_UPDATE.
Please advise.
Philippe
Hi,
For your products collection, you need to redefine method PRODUCTS_UPDATE_ENTITY of your DPC_EXT class.
in this method, you can read the keys passed from URL from method importing parameter IT_KEY_TAB.
Just read the value of "Materialnumber" and write logic to update it.
Regards,
Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Table IT_KEY_TAB only contains the key fields that are passed from the URL. In this case the Materialnumber '4'.
But where do I find the values for the non-key fields: description, price, currency and EAN?
I have read some guides like this one on how to CREATE/UPDATE. It does not implement any ABAP logic, as if the data gets saved magically. Or am I missing something?
User | Count |
---|---|
79 | |
9 | |
9 | |
7 | |
7 | |
6 | |
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.