<?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>topic Re: ABAP Proxy Import Structure in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-proxy-import-structure/m-p/1995787#M405748</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to use to loops one for header and another for Item details in that header something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_header into wa_header&lt;/P&gt;&lt;P&gt;    -&lt;/P&gt;&lt;HR originaltext="----------" /&gt;&lt;P&gt;     -&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt;     loop at it_item into wa_tem&lt;/P&gt;&lt;P&gt;          -&lt;/P&gt;&lt;HR originaltext="-------------" /&gt;&lt;P&gt;          -&lt;/P&gt;&lt;HR originaltext="------------" /&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Mar 2007 20:59:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-26T20:59:38Z</dc:date>
    <item>
      <title>ABAP Proxy Import Structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-proxy-import-structure/m-p/1995786#M405747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok. Guys and gals I have limited ABAP expierence and have a simple question around loops. I have an ABAP proxy setup that receives an XML file and stores the contents in the INPUT method. The two structures under Item I am working with are I_HEADER and I_ITEM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can access the values in I_HEADER with something like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR w_header.&lt;/P&gt;&lt;P&gt;w_header-guid = v_header_guid.&lt;/P&gt;&lt;P&gt;w_header-description = input-I_HEADER-DESCRIPTION.&lt;/P&gt;&lt;P&gt;w_header-process_type = input-I_HEADER-PROCESS_TYPE.&lt;/P&gt;&lt;P&gt;w_header-posting_date = sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now I currently have been testing the proxy with the following for my i_item structure. This is hard coded but I would like to import from the INPUT structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR w_item.&lt;/P&gt;&lt;P&gt;w_item-guid = v_item_guid.&lt;/P&gt;&lt;P&gt;w_item-parent = v_header_guid.&lt;/P&gt;&lt;P&gt;w_item-product = '00000000000000000000000000000000'.&lt;/P&gt;&lt;P&gt;w_item-description = 'Test Item Description'.&lt;/P&gt;&lt;P&gt;APPEND w_item TO i_item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I setup my loop to read the I_ITEM-ITEM table and populate with the imported values instead of hard coded. For instance using this example I would need the values from I_ITEM-ITEM-DESCRIPTION and I_ITEM-ITEM-PRODUCT?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2007 20:17:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-proxy-import-structure/m-p/1995786#M405747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-26T20:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Proxy Import Structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-proxy-import-structure/m-p/1995787#M405748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to use to loops one for header and another for Item details in that header something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_header into wa_header&lt;/P&gt;&lt;P&gt;    -&lt;/P&gt;&lt;HR originaltext="----------" /&gt;&lt;P&gt;     -&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt;     loop at it_item into wa_tem&lt;/P&gt;&lt;P&gt;          -&lt;/P&gt;&lt;HR originaltext="-------------" /&gt;&lt;P&gt;          -&lt;/P&gt;&lt;HR originaltext="------------" /&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2007 20:59:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-proxy-import-structure/m-p/1995787#M405748</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-26T20:59:38Z</dc:date>
    </item>
  </channel>
</rss>

