on 10-28-2014 9:31 AM
Hi Experts
I am developing a Gateway Service with UPDATE method. I am able to develop READ & QUERY methods. However i am getting problem while developing UPDATE method.
Following is the code in my UPDATE method:
READ TABLE IT_KEY_TAB WITH KEY NAME = 'Customer' INTO ls_key_tab.
IF sy-subrc EQ '0'.
CALL METHOD IO_DATA_PROVIDER->READ_ENTRY_DATA
IMPORTING
ES_DATA = lt_ZGW_DATA
.
However I am not getting any records as output of this Class method. For testing UPDATE method, i am following below steps:
1. Execute READ method.
2. Use the output as input using 'Use as Request' button.
3. Updating required value in the XML.
4. Set HTTP Method as 'PUT' and Protocol as 'HTTP'.
What is that I am doing wrong?
Please help..
Regards,
Deepak
Hello Deepak,
What is lt_ZGW_DATA here ?
It should be the structure whose type is same as that of ur Entity created to perform ur UPDATE operation. So that u can correctly capture the data sent as part of ur payload.
I mean to say entity created to perform READ can be used to perform ur UPDATE as well and hence structure needs to be same.
Please refer below and u shud be able to accomplish ur scenario :
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 |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.