Quantcast
Channel: SCN : Popular Discussions - SAP NetWeaver Gateway Developer Center
Viewing all articles
Browse latest Browse all 1657

Is it possible in CREATE_DEEP_ENTITY to have a separate Request structure and a separate Response structure?

$
0
0

Hi Everyone,

 

I have redefined method '/IWBEP/IF_MGW_APPL_SRV_RUNTIME~CREATE_DEEP_ENTITY' for my service.

 

I have a deep Request Structure with 3 internal tables, I don't want to pass this request structure as a response for my service.

 

I want to send a different response structure for my service.

 

Request Structure:

 

DATA: BEGIN OF lw_posttimedum.

             INCLUDE TYPE zcl_tm_mytime_mpc=>ts_posttimedum.

 

     DATA posttime     TYPE STANDARD TABLE OF

                                     zcl_tm_mytime_mpc=>ts_posttime WITH DEFAULT KEY,

 

                 posttimesc   TYPE STANDARD TABLE OF

                                      zcl_tm_mytime_mpc=>ts_posttimescWITH DEFAULT KEY,

 

                 posttimetc   TYPE STANDARD TABLE OF

                                    zcl_tm_mytime_mpc=>ts_posttimetcWITH DEFAULT KEY,

 

             END OF lw_posttimedum.



Response structure:


DATA: BEGIN OF lw_resphdr.

             INCLUDE TYPE zcl_tm_mytime_mpc=>ts_posttimedum.


     DATA : responseitem TYPE STANDARD TABLE OF

                            zcl_tm_mytime_mpc=>ts_responseitem

                            WITH DEFAULT KEY,


             END OF lw_resphdr.

 

 

Could you please let me know if this is possible in ODATA.

 

Thanks,

Faraz Khan



Viewing all articles
Browse latest Browse all 1657

Trending Articles