<?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: BDC report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-report/m-p/5696772#M1294243</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;The field order in internal table should be ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;soldto &lt;/P&gt;&lt;P&gt;shipto &lt;/P&gt;&lt;P&gt;matnr &lt;/P&gt;&lt;P&gt;quantity&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SORT ITAB BY SOLDto Shipto.
LOOP AT i_input_bdc." INTO wa_input_bdc.

AT END of i_input_bdc-shipto.
...................................................
{code for perform statements}
.....................................................
PERFORM insert_bdc USING 'VA01'.
CLEAR wa_input_bdc.
REFRESH i_bdcdata.
endat.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use AT END of Event&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jun 2009 18:43:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-10T18:43:05Z</dc:date>
    <item>
      <title>BDC report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-report/m-p/5696770#M1294241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;*&lt;STRONG&gt;Hi all,&lt;/STRONG&gt;*&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;*&lt;STRONG&gt;i m writing a BDC report for creating sales order using VA01 tcode...i have four fields in a upload file..the file will contain something like this...&lt;/STRONG&gt;*&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;*&lt;STRONG&gt;soldto    shipto        matnr       quantity&lt;/STRONG&gt;*&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;*&lt;STRONG&gt;880         770           112           4&lt;/STRONG&gt;*&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;*&lt;STRONG&gt;881         771           113          5&lt;/STRONG&gt;*&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;*&lt;STRONG&gt;881         771           114          6&lt;/STRONG&gt;*&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;*&lt;STRONG&gt;882         772           115          7&lt;/STRONG&gt;*&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;*&lt;STRONG&gt;882         772           116          8&lt;/STRONG&gt;*&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;*&lt;STRONG&gt;883         773           117          7&lt;/STRONG&gt;*&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;*&lt;STRONG&gt;883         773           118          7&lt;/STRONG&gt;*&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;*&lt;STRONG&gt;883         773           119          7&lt;/STRONG&gt;*&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;*&lt;STRONG&gt;from above file i need to write the code based on soldto and shipto fields...A separate Sales Order will be created for each combination of Sold-To &amp;amp; Ship-To parties. A Sold-To party may have several Ship-To parties assigned to it. Lines having same combination of SoldTo u2013 ShipTo parties should be added to one Sales Order. A separate Sales Order will be created if a line has different Ship-To party even if the Sold-To remains same&lt;/STRONG&gt;*&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;*&lt;STRONG&gt;based on above logic i wrote below code..but some how..its not working..pls hlp&lt;/STRONG&gt;*&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT i_input_bdc." INTO wa_input_bdc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   on change of i_input_bdc-shipto.&lt;/P&gt;&lt;P&gt;   on change of i_input_bdc-soldto.&lt;/P&gt;&lt;P&gt;...................................................&lt;/P&gt;&lt;P&gt;     {code for perform statements}&lt;/P&gt;&lt;P&gt;.....................................................&lt;/P&gt;&lt;P&gt;      PERFORM insert_bdc USING 'VA01'.&lt;/P&gt;&lt;P&gt;      CLEAR wa_input_bdc.&lt;/P&gt;&lt;P&gt;      REFRESH i_bdcdata.&lt;/P&gt;&lt;P&gt;endon.&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;Onchange of is not working......pls hlp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 16:26:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-report/m-p/5696770#M1294241</guid>
      <dc:creator>former_member515329</dc:creator>
      <dc:date>2009-06-10T16:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: BDC report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-report/m-p/5696771#M1294242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is related to &lt;SPAN __jive_macro_name="message" id="7647443"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you please mark that one as solved; otherwise, I will have to lock it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&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, 10 Jun 2009 18:40:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-report/m-p/5696771#M1294242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-10T18:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: BDC report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-report/m-p/5696772#M1294243</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;The field order in internal table should be ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;soldto &lt;/P&gt;&lt;P&gt;shipto &lt;/P&gt;&lt;P&gt;matnr &lt;/P&gt;&lt;P&gt;quantity&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SORT ITAB BY SOLDto Shipto.
LOOP AT i_input_bdc." INTO wa_input_bdc.

AT END of i_input_bdc-shipto.
...................................................
{code for perform statements}
.....................................................
PERFORM insert_bdc USING 'VA01'.
CLEAR wa_input_bdc.
REFRESH i_bdcdata.
endat.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use AT END of Event&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 18:43:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-report/m-p/5696772#M1294243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-10T18:43:05Z</dc:date>
    </item>
  </channel>
</rss>

