cancel
Showing results for 
Search instead for 
Did you mean: 

Gateway UPDATE method - no Input data found

Former Member
0 Kudos

    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

Accepted Solutions (1)

Accepted Solutions (1)

AshwinDutt
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi

Thanks for the update.

I resolved the issue. Actually I was using Internal Table instead of structure to read input from payload. By replacing the Itab with structure, i am getting my input values correctly.

Regards,

Deepak

Answers (0)