Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8065

Re: Problem passing data from object class to DPC_EXT

$
0
0

Hello Lukasz,

 

When i say its not GW issue its just that GW frame is not generated code here.

its our manual code which is to be written correctly so that we persist data and send back response to GW.

 

Try as below and check once.

 

Inside the object class capture ur data in a structure as below ->


declare,


ls_confirm_hdr  type ZCL_ZQM_CONF_MPC_EXT=>S_ConfirmationHeader.


Populate data into structure ls_confirm_hdr.

Then return  ls_confirm_hdr to er_entity where er_entity is of type ZCL_ZQM_CONF_MPC_EXT=>S_ConfirmationHeader only


i.e., data : er_entity type ZCL_ZQM_CONF_MPC_EXT=>S_ConfirmationHeader


Inside DPC_EXT class


declare as below ->


DATA ls_entity TYPE REF TO data.

FIELD-SYMBOLS: <ls_data> TYPE any.


" call ur logic

" sample code


lo_ConfirmationHeader->/iwbep/if_mgw_appl_srv_runtime~get_entity(

exporting iv_entity_name = iv_entity_name

iv_source_name = iv_source_name

iv_entity_set_name = iv_entity_set_name

it_navigation_path = it_navigation_path

it_key_tab = it_key_tab

IO_TECH_REQUEST_CONTEXT = IO_TECH_REQUEST_CONTEXT

importing er_entity = ls_entity ).


ASSIGN ls_entity->* TO <ls_data>.

   er_entity = <ls_data>.


Now inside ur DPC_EXT class, er_entity will have the data u sent from the object class.


I mean to say , In short u need to have as below


er_entity -> type of type ZCL_ZQM_CONF_MPC_EXT=>S_ConfirmationHeader

ls_entity -> TYPE REF TO data


Regards,

Ashwin




Viewing all articles
Browse latest Browse all 8065

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>