cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert Proxy input message to internal table

Former Member
0 Kudos

HI @ ,

In my scenario i have to insert the message coming to proxy directly inot internal table .

My message consists up of 1 header and one repeating group I have to store the repeating group into a table how to do that i dont know

Please help Its urgent

Regards

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member201264
Active Contributor
0 Kudos

hi amith,

if proxy is in outboundside,use the below code.

REPORT zaaj_out_proxy_tata.

DATA: obj TYPE REF TO zco_mioa_tata,

szdt_tata TYPE zdt_tata,

szmt_tata TYPE zmt_tata,

szdt_tata_employee TYPE zdt_tata_employee,

szdt_tata_employee_tab TYPE zdt_tata_employee_tab.

DATA: itab TYPE STANDARD TABLE OF zcnu_proxy_table,

wa LIKE LINE OF itab.

SELECT name city FROM zcnu_proxy_table INTO (wa-NAME,WA-CITY).

  • APPEND wa TO itab.

szdt_tata_employee-name = wa-name.

szdt_tata_employee-city = wa-city.

APPEND szdt_tata_employee TO szdt_tata_employee_tab.

szdt_tata-employee = szdt_tata_employee_tab.

szmt_tata-mt_tata = szdt_tata.

ENDSELECT.

TRY.

CREATE OBJECT obj.

CALL METHOD obj->execute_asynchronous

EXPORTING

output = szmt_tata.

COMMIT WORK.

CATCH cx_ai_system_fault.

ENDTRY.

if ur proxy is in inbound side , use this code.

for this u give ur email ID so that i can send

reward points if helpful

regards

sreeni

Former Member
0 Kudos

Hi Kancham,

My proxy is server proxy its an inbound proxy so can u suggest any similar code to refer for the same

Reagrds

Former Member
0 Kudos

hi my mail id is amit2.singh@tcs.com

Awaiting for yr reply

Regards