<?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: orders creation from flat file in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/orders-creation-from-flat-file/m-p/6202395#M1376266</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;Can u on change of PONUMBER command inside the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB INTO WA_ITAB.&lt;/P&gt;&lt;P&gt;ONCHANGE OF PONUMBER.&lt;/P&gt;&lt;P&gt;ENDON.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if u need any support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bysani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Oct 2009 12:40:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-06T12:40:35Z</dc:date>
    <item>
      <title>orders creation from flat file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/orders-creation-from-flat-file/m-p/6202392#M1376263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having a flat file like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hd ponumber customer number podate delivery date&lt;/P&gt;&lt;P&gt;it material1 materialtext quantity price plant&lt;/P&gt;&lt;P&gt;it material2 materialtext quantity price plant&lt;/P&gt;&lt;P&gt;it material3 materialtext quantity price plant&lt;/P&gt;&lt;P&gt;hd ponumber customer number podate delivery date&lt;/P&gt;&lt;P&gt;it material1 materialtext quantity price plant&lt;/P&gt;&lt;P&gt;it material2 materialtext quantity price plant&lt;/P&gt;&lt;P&gt;it material3 materialtext quantity price plant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so here hd represents the header data and it represents the item data for the above header.&lt;/P&gt;&lt;P&gt;so in above i am having 2 sales orders data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the only way that i can distinquish is with the field hd and it ie what is header and what is item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to pass only one set of data to the idoc function  to create the order.&lt;/P&gt;&lt;P&gt;so i want to pass the header and relevant item info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my itab internal table is having all the data in the above format.&lt;/P&gt;&lt;P&gt;loop at itab into waitab.&lt;/P&gt;&lt;P&gt; *at end of field1 " is not working&lt;/P&gt;&lt;P&gt;here i will be populating the header and item data to create one sales order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;so please tell me how to pass at a time one set of data ie header data and relevant item data then next time again header and relevant item data. please help&lt;/P&gt;&lt;P&gt;this is similar to below theread, but belwo theread is using po number but here i dont have that sepearation&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1434522"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2009 06:32:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/orders-creation-from-flat-file/m-p/6202392#M1376263</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-06T06:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: orders creation from flat file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/orders-creation-from-flat-file/m-p/6202393#M1376264</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;I don't see the problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do not ask basic programming questions here - go to [Vbasic for beginners forum|http://www.google.co.kr/search?hl=de&amp;amp;source=hp&amp;amp;q=Vbasic&lt;EM&gt;for&lt;/EM&gt;beginners+forum&amp;amp;btnG=Google-Suche&amp;amp;meta=], thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2009 06:37:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/orders-creation-from-flat-file/m-p/6202393#M1376264</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2009-10-06T06:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: orders creation from flat file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/orders-creation-from-flat-file/m-p/6202394#M1376265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please experts solve my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to process the header and items inside the loop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2009 12:26:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/orders-creation-from-flat-file/m-p/6202394#M1376265</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-06T12:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: orders creation from flat file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/orders-creation-from-flat-file/m-p/6202395#M1376266</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;Can u on change of PONUMBER command inside the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB INTO WA_ITAB.&lt;/P&gt;&lt;P&gt;ONCHANGE OF PONUMBER.&lt;/P&gt;&lt;P&gt;ENDON.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if u need any support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bysani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2009 12:40:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/orders-creation-from-flat-file/m-p/6202395#M1376266</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-06T12:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: orders creation from flat file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/orders-creation-from-flat-file/m-p/6202396#M1376267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks vasu for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here i cannot have the po number because my po number is not unique, i mean for all the orders i can have the same po numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So please let me know other way&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2009 12:46:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/orders-creation-from-flat-file/m-p/6202396#M1376267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-06T12:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: orders creation from flat file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/orders-creation-from-flat-file/m-p/6202397#M1376268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hd ponumber customer number podate delivery date&lt;/P&gt;&lt;P&gt;it material1 materialtext quantity price plant&lt;/P&gt;&lt;P&gt;it material2 materialtext quantity price plant&lt;/P&gt;&lt;P&gt;it material3 materialtext quantity price plant&lt;/P&gt;&lt;P&gt;hd ponumber customer number podate delivery date&lt;/P&gt;&lt;P&gt;it material1 materialtext quantity price plant&lt;/P&gt;&lt;P&gt;it material2 materialtext quantity price plant&lt;/P&gt;&lt;P&gt;it material3 materialtext quantity price plant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u try thsi logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : L_CNT TYPE I VALUE 1,&lt;/P&gt;&lt;P&gt;            ITAB_TEMP AS SAME STARUCTRE OF ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB INTO WA_ITAB FROM INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF WA_ITAB+0(2) EQ 'HD'.&lt;/P&gt;&lt;P&gt;L_CNT = L_CNT +1&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF L_CNT EQ 2&lt;/P&gt;&lt;P&gt;hd ponumber customer number podate delivery date&lt;/P&gt;&lt;P&gt;it material1 materialtext quantity price plant&lt;/P&gt;&lt;P&gt;it material2 materialtext quantity price plant&lt;/P&gt;&lt;P&gt;it material3 materialtext quantity price plant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND THIS DATA TO TEMP TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSEIF L_CNT EQ 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WE WONT APPEND DATA TO TEMP TABLE.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PROCESS TEMP DATA TO IDOCS.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE ITAB FROM TEMP ITAB . " SO IN ORIGINAL ITAB WE WONT HAVE FIRST ORDER ITEM DETAILS.&lt;/P&gt;&lt;P&gt;REFREST TEMPITAB.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;if u have any further issues u can try while looping itab use sy-tabix appropriately.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;BSVASU.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2009 13:35:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/orders-creation-from-flat-file/m-p/6202397#M1376268</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-06T13:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: orders creation from flat file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/orders-creation-from-flat-file/m-p/6202398#M1376269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any other suggestions please experts&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2009 17:37:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/orders-creation-from-flat-file/m-p/6202398#M1376269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-07T17:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: orders creation from flat file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/orders-creation-from-flat-file/m-p/6202399#M1376270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is almost a duplicate of &lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1495418"&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please mark either this or the other one as solved; otherwise, I will have to lock one of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2009 17:47:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/orders-creation-from-flat-file/m-p/6202399#M1376270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-07T17:47:31Z</dc:date>
    </item>
  </channel>
</rss>

