Quantcast
Viewing all articles
Browse latest Browse all 3510

Re: How to access request object in Model Provider Class?

Hi Juergen,

 

I hope I understood your requirement.

 

1) create a odata service with your ddic structure . redefine the define method in *MPC_EXT Class with  and include the below statement

 

lo_entity_type->ADD_AUTO_EXPAND_INCLUDE( iv_include_name   = '<yourAbap Structure name>'

                                 iv_bind_conversions = 'X' ).


     Now this will give a new model as soon as you change the ddic structure.


2) Go class /IWBEP/CL_MGW_LOCAL_HANDLER, in the class goto method  GET_ENTITY_SET ( provided if are doing get request in your HTTP).

 

In Line 26 , you can see a  BADI mo_mgw_runtime->/iwbep/if_mgw_core_srv_runtime~read_entityset.


  Before this line put a enhancement spot and use the function modules to DDIF_TABL_PUT and   DDIF_TABL_ACTIVATE to update your ddic structure as per your requirement .


First put a breakpoint in the class /IWBEP/CL_MGW_LOCAL_HANDLER in method GET_ENTITY_SET and see that URI is giving all the required parameters for appending the ddic structure. Then go ahead with enhancement.


Thanking you

Vengaiah


Viewing all articles
Browse latest Browse all 3510

Trending Articles