cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

I Created a Gateway Service for Read,Create and Update . In Read(Get),Create(Post) I'm getting Response Data But for

Update(Put) I'm not getting any Response data as shown below

Thanks ...

0 Likes
View Entire Topic
sreehari_vpillai
Active Contributor
0 Likes

Ravi,


"When processing a PUT request servers return status 204 (No Content) to indicate success, no response body is needed"


Sreehari

former_member203215
Participant
0 Likes

Thanks for your reply.

But while updating in crm we get return message like email is not provide etc...

so I want to display messsage which returned from function modulee....

SyambabuAllu
Contributor
0 Likes

Hi Ravi,

If you want to display messages in Update and Delete operations, you can use below code. the messages you can see in response headers.

DATA ls_header  TYPE ihttpnvp.

IF lv_message IS NOT INITIAL.
ls_header
-name = 'STATUS' .
ls_header
-value = lv_message.
/iwbep/if_mgw_conv_srv_runtime
~set_header( ls_header ).
else.
ls_header
-name = 'STATUS' .
ls_header
-value = 'FAIL'."lv_message.
/iwbep/if_mgw_conv_srv_runtime
~set_header( ls_header ).


Thanks

Syam

sreehari_vpillai
Active Contributor
0 Likes

Raise proper exceptions . Remember, OData is a protocol with defined rules . It does not support return data on success PUT. As a work around, you can manipulate it with POST operation . Wait a minute, do you really want to try that ? NO. Raise exceptions properly

Sree