cancel
Showing results for 
Search instead for 
Did you mean: 

UPDATE_ENTITY method of /IWBEP/IF_MGW_APPL_SRV_RUNTIME issue..

Pavan_Golesar
Active Participant

Hello Gurus,

I came across a new method of  /IWBEP/IF_MGW_APPL_SRV_RUNTIME Gateway Application Interface which is UPDATE_ENTITY.

I cannot trigger this method..

Can anyone share when can we trigger this method.??

like for create_deep_entity trigger on Header set for example.. likewise what can be the URI for hitting UPDATE_ENTITY.

Thanks,

Pavan G

Accepted Solutions (1)

Accepted Solutions (1)

EkanshCapgemini
Active Contributor

Hi Pavan,

The UPDATE_ENTITY method is called for HTTP method PUT. So whenever you fire a call on HeaderSet with http method PUT, it will call the /IWBEP/IF_MGW_APPL_SRV_RUNTIME~UPDATE_ENTITY method which checks the Entity and calls the respective Update method. Now the flow comes to HEADERSET_UPDATE_ENTITY and after executing this, it again comes back to /IWBEP/IF_MGW_APPL_SRV_RUNTIME~UPDATE_ENTITY.

Regards,

Ekansh

Pavan_Golesar
Active Participant
0 Kudos

Hi Ekansh,

   I completely agree with you,

consider an example, If we have sales order Header and sales order Item Entity sets. We perform the GET operation on HeaderSet (Get_expand_entity) and choose 'Use as Request' option, Click the the PUT radio button and click EXECUTE..

(Note: uri assuming will be http:// host /service_name/HeaderSet)

since we have redefined the Get_expand_entity method, we get the HTTP response accordingly for both Header & Item for that specific SALES ORDER.

Now  what shud be changed the these above steps to hit the hit Update_Entity method..??

also can you specify the URI for the same..

Regards,

Pavan Golesar.

EkanshCapgemini
Active Contributor
0 Kudos

Hi Pavan,

I think you are trying to achieve something like ''update deep entity" but unfortunately there is nothing like this in current gateway framework. Thus the post body that you are sending will not hit update_entity.

Regards,

Ekansh

Pavan_Golesar
Active Participant
0 Kudos

Yes, Even I had this concern..

and yes I am stuck at this step..

So what need to be done in the case of achieving (Kind of functionality) of update deep entity..

At worst I think redefining the Headerset_Update_entity.. and carrying out this on the URI

headerset('55555') and http put operation,

Regards,

Pavan

EkanshCapgemini
Active Contributor
0 Kudos

Hi Pavan,

You need to opt for $batch for this kind of scenario. You can find many useful links in this forum.

For your approach, the flow would not even come to Headerset_Update_entity if structure in your body is a deep structure so you would not be able to retrieve the request body in this method.

Regards,

Ekansh

EkanshCapgemini
Active Contributor
0 Kudos

Hi Pavan,

Please check this thread 

This solves your requirement. If you are satisfied with that, please close this thread.

Regards,

Ekansh

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi all

here i am facing same problem..

getting stuck this issue

this was blog we i have already discuss issue but not yet get any solution

Error while doing the PUT operation

help me out these issue

Thanks in Adv,

  Umesh