<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Client proxy.. passing internal table to output. in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/client-proxy-passing-internal-table-to-output/qaa-p/3986885#M1558862</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using the following code. I have used the variable ZDT_PROXY_OUTBOUND_TAB , which should appear in the zproxy transaction. The name may not be exactly correct, so please check and change accordingly. Check parameters of execute- asynchronous method. double click on associated type of output (ZMT..). You will get controller and Message type MT...Click on component type - ZDT.., you will get controller and a recordset( the name you have mentioned in your data type sender side). The corresponding component type would be the table ZDT_PROXY_OUTBOUND_TAB. Hope you understand and change accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZTEST_ABAP_PROXY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES : MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA PRXY TYPE REF TO ZCO_MI_PROXY_OUTBOUND.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA: BEGIN OF I_MARA OCCURS 0,&lt;/P&gt;&lt;P&gt;  MATNR LIKE MARA-MATNR,&lt;/P&gt;&lt;P&gt;  ERNAM LIKE MARA-ERNAM,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  END OF I_MARA.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA : REC_OUTPUT TYPE ZDT_PROXY_OUTBOUND_TAB,&lt;/P&gt;&lt;P&gt;	WA_REC_OUTPUT LIKE LINE OF REC_OUTPUT,&lt;/P&gt;&lt;P&gt;	MARA_OUTPUT TYPE ZMT_PROXY_OUTBOUND.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CREATE OBJECT PRXY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;TRY.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    SELECT MATNR ERNAM INTO TABLE I_MARA FROM MARA UP TO 10 ROWS.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT I_MARA.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;      WA_REC_OUTPUT-MATNR = I_MARA-MATNR.&lt;/P&gt;&lt;P&gt;      WA_REC_OUTPUT-ERNAM = I_MARA-ERNAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      INSERT WA_REC_OUTPUT INTO TABLE REC_OUTPUT.&lt;/P&gt;&lt;P&gt;      CLEAR : WA_REC_OUTPUT, I_MARA.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	MARA_OUTPUT-MT_PROXY_OUTBOUND-RECORDSET = REC_OUTPUT.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD PRXY-&amp;gt;EXECUTE_ASYNCHRONOUS&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        OUTPUT = MARA_OUTPUT.&lt;/P&gt;&lt;P&gt;    COMMIT WORK.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;  CATCH CX_AI_SYSTEM_FAULT .&lt;/P&gt;&lt;P&gt;    DATA FAULT TYPE REF TO CX_AI_SYSTEM_FAULT .&lt;/P&gt;&lt;P&gt;    CREATE OBJECT FAULT.&lt;/P&gt;&lt;P&gt;    WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; FAULT-&amp;gt;ERRORTEXT.&lt;/P&gt;&lt;P&gt;ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------" /&gt;&lt;P&gt;-Regards,&lt;/P&gt;&lt;P&gt;Shamly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jun 2008 04:39:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-18T04:39:26Z</dc:date>
    <item>
      <title>Client proxy.. passing internal table to output.</title>
      <link>https://community.sap.com/t5/technology-q-a/client-proxy-passing-internal-table-to-output/qaq-p/3986882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a proxy-JDBC scnario..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this i created a datatype with 2 fields..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DT_Proxy_Outbound as complex type and 2 elements..and after that i have created a proxy class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZCO_MI_PROXY_OUTBOUND (Proxy class)&lt;/P&gt;&lt;P&gt;  ZMT_PROXY_OUTBOUND(structure)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i have writen a code in abap report to pass data to output parameter..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but output parameter is of line type not a table type...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so it is taking onley one value but not entire internal table to output parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am including mycode here.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

REPORT  ZTEST_ABAP_PROXY.
DATA PRXY TYPE REF TO ZCO_MI_PROXY_OUTBOUND.
 
DATA: BEGIN OF I_MARA OCCURS 0,
  MATNR LIKE MARA-MATNR,
  ERNAM LIKE MARA-ERNAM,
 
  END OF I_MARA.
 
 
 
CREATE OBJECT PRXY.
DATA IT TYPE  ZMT_PROXY_OUTBOUND OCCURS 0 WITH HEADER LINE.
 
 
TRY.
 
    SELECT MATNR ERNAM INTO TABLE I_MARA FROM MARA UP TO 10 ROWS.
 
    LOOP AT I_MARA.
 
      IT-MT_PROXY_OUTBOUND-MATNR = I_MARA-MATNR.
      IT-MT_PROXY_OUTBOUND-ERNAM = I_MARA-ERNAM.
      APPEND IT.
 
    ENDLOOP.
 
    CALL METHOD PRXY-&amp;gt;EXECUTE_ASYNCHRONOUS
      EXPORTING
        OUTPUT = IT.
    COMMIT WORK.
 
 
    
  CATCH CX_AI_SYSTEM_FAULT .
    DATA FAULT TYPE REF TO CX_AI_SYSTEM_FAULT .
    CREATE OBJECT FAULT.
    WRITE :/ FAULT-&amp;gt;ERRORTEXT.
ENDTRY.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where should i change structure so that output can accept total internal table rather than line item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnaks and Regards&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 11:00:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/client-proxy-passing-internal-table-to-output/qaq-p/3986882</guid>
      <dc:creator>vijay_kumar133</dc:creator>
      <dc:date>2008-06-17T11:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Client proxy.. passing internal table to output.</title>
      <link>https://community.sap.com/t5/technology-q-a/client-proxy-passing-internal-table-to-output/qaa-p/3986883#M1558860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I think you need to do changes in Message Interface. &lt;/P&gt;&lt;P&gt;Number of occurrence should be 0..Unbounded for the root element. Then in mapping need to map the root elements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Somewhere I read about this..not sure.. let me know if it works fine..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vivek LR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 15:53:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/client-proxy-passing-internal-table-to-output/qaa-p/3986883#M1558860</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-17T15:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Client proxy.. passing internal table to output.</title>
      <link>https://community.sap.com/t5/technology-q-a/client-proxy-passing-internal-table-to-output/qaa-p/3986884#M1558861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, the element should be 0..unbounded in order to make it as table type structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward points if answer helps&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 16:28:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/client-proxy-passing-internal-table-to-output/qaa-p/3986884#M1558861</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-17T16:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Client proxy.. passing internal table to output.</title>
      <link>https://community.sap.com/t5/technology-q-a/client-proxy-passing-internal-table-to-output/qaa-p/3986885#M1558862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using the following code. I have used the variable ZDT_PROXY_OUTBOUND_TAB , which should appear in the zproxy transaction. The name may not be exactly correct, so please check and change accordingly. Check parameters of execute- asynchronous method. double click on associated type of output (ZMT..). You will get controller and Message type MT...Click on component type - ZDT.., you will get controller and a recordset( the name you have mentioned in your data type sender side). The corresponding component type would be the table ZDT_PROXY_OUTBOUND_TAB. Hope you understand and change accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZTEST_ABAP_PROXY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES : MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA PRXY TYPE REF TO ZCO_MI_PROXY_OUTBOUND.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA: BEGIN OF I_MARA OCCURS 0,&lt;/P&gt;&lt;P&gt;  MATNR LIKE MARA-MATNR,&lt;/P&gt;&lt;P&gt;  ERNAM LIKE MARA-ERNAM,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  END OF I_MARA.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA : REC_OUTPUT TYPE ZDT_PROXY_OUTBOUND_TAB,&lt;/P&gt;&lt;P&gt;	WA_REC_OUTPUT LIKE LINE OF REC_OUTPUT,&lt;/P&gt;&lt;P&gt;	MARA_OUTPUT TYPE ZMT_PROXY_OUTBOUND.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CREATE OBJECT PRXY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;TRY.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    SELECT MATNR ERNAM INTO TABLE I_MARA FROM MARA UP TO 10 ROWS.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT I_MARA.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;      WA_REC_OUTPUT-MATNR = I_MARA-MATNR.&lt;/P&gt;&lt;P&gt;      WA_REC_OUTPUT-ERNAM = I_MARA-ERNAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      INSERT WA_REC_OUTPUT INTO TABLE REC_OUTPUT.&lt;/P&gt;&lt;P&gt;      CLEAR : WA_REC_OUTPUT, I_MARA.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	MARA_OUTPUT-MT_PROXY_OUTBOUND-RECORDSET = REC_OUTPUT.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD PRXY-&amp;gt;EXECUTE_ASYNCHRONOUS&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        OUTPUT = MARA_OUTPUT.&lt;/P&gt;&lt;P&gt;    COMMIT WORK.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;  CATCH CX_AI_SYSTEM_FAULT .&lt;/P&gt;&lt;P&gt;    DATA FAULT TYPE REF TO CX_AI_SYSTEM_FAULT .&lt;/P&gt;&lt;P&gt;    CREATE OBJECT FAULT.&lt;/P&gt;&lt;P&gt;    WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; FAULT-&amp;gt;ERRORTEXT.&lt;/P&gt;&lt;P&gt;ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------" /&gt;&lt;P&gt;-Regards,&lt;/P&gt;&lt;P&gt;Shamly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 04:39:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/client-proxy-passing-internal-table-to-output/qaa-p/3986885#M1558862</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T04:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Client proxy.. passing internal table to output.</title>
      <link>https://community.sap.com/t5/technology-q-a/client-proxy-passing-internal-table-to-output/qaa-p/3986886#M1558863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to change the occurance of data type in XI to 0....to Outbound,&lt;/P&gt;&lt;P&gt;so that when you generate Proxy class in R/3 a table type structure will be generated as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZMT_PROXY_OUTBOUND_DO_TAB (Proxy Table Type) which can hold 'N' number of records as&lt;/P&gt;&lt;P&gt;Internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change the Data Type occurance and regenarate the Proxy class in R/3 and check.&lt;/P&gt;&lt;P&gt;You will find:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZCO_MI_PROXY_OUTBOUND (Proxy class)&lt;/P&gt;&lt;P&gt;ZMT_PROXY_OUTBOUND(structure)&lt;/P&gt;&lt;P&gt;ZMT_PROXY_OUTBOUND_DO_TAB (Proxy Table Type) -- This one extra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kishore.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 04:54:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/client-proxy-passing-internal-table-to-output/qaa-p/3986886#M1558863</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T04:54:08Z</dc:date>
    </item>
  </channel>
</rss>

