<?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: FOR ALL ENTRIES IN - For Batch Split &amp; multiple items in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/for-all-entries-in-for-batch-split-multiple-items/m-p/7291209#M1532834</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;Do you create more than one production order per sales order line?  If not, you could change the match to look at table AFPO for fields KDAUF = sales order number) and KDPOS = salse item number.&lt;/P&gt;&lt;P&gt;If you are going down to serial number level, after this select (fields are indexed in index AFPO~3, by default I think), then you could use your additional serial number field match after getting the list of production order numbers for the sales order/item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,  Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Sep 2010 16:47:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-09-16T16:47:46Z</dc:date>
    <item>
      <title>FOR ALL ENTRIES IN - For Batch Split &amp; multiple items</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/for-all-entries-in-for-batch-split-multiple-items/m-p/7291207#M1532832</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;My Report is to find Production Order from Sale Order.&lt;/P&gt;&lt;P&gt;Flow of tables - &lt;/P&gt;&lt;P&gt;(VBAK- VBAP- LIPS - SER01 - OBJK - SER05 - CAUFV)&lt;/P&gt;&lt;P&gt;Report is working accurate in normal scenario. But -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, In Batch split with multiple items --&amp;gt;&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN - is not taking values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one case for Ex--&amp;gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
sale order   so item        obdelivery           obd item           serial no
39782            10             1234              900001                 12
39782            10             1234              900002                 13
39782            20             3456              10                     14
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, &lt;/P&gt;&lt;P&gt;only one OBD 1234 (sr no 12 &amp;amp; 13 ) is get entered in ITAB and not 3456.&lt;/P&gt;&lt;P&gt;(i.e. in gi_objkso all 3 entries are there, but in gi_objkpo only two entries are transferred)&lt;/P&gt;&lt;P&gt;Where, Production order is there for all three Sr. No.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code is --&amp;gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF NOT gi_ser01 IS INITIAL.
          SELECT obknr equnr sernr matnr
                 FROM objk
                 INTO TABLE gi_objkso
                 FOR ALL ENTRIES IN gi_ser01
                 WHERE obknr EQ gi_ser01-obknr
                   AND equnr IN so_equnr
                   AND sernr IN so_sernr
                   AND matnr IN so_matnr
                   AND taser EQ 'SER01'.
          IF NOT gi_objkso IS INITIAL.
                       SELECT obknr equnr sernr matnr
                   FROM objk
                   INTO TABLE gi_objkpo
                   FOR ALL ENTRIES IN gi_objkso
                   WHERE sernr EQ gi_objkso-sernr
                     AND equnr EQ gi_objkso-equnr
                     AND matnr EQ gi_objkso-matnr
                     AND taser EQ 'SER05'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2010 11:45:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/for-all-entries-in-for-batch-split-multiple-items/m-p/7291207#M1532832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-16T11:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: FOR ALL ENTRIES IN - For Batch Split &amp; multiple items</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/for-all-entries-in-for-batch-split-multiple-items/m-p/7291208#M1532833</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;While using for all entries, you have to select all the primary keys. In this case you have to select OBKNR and OBZAE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sujay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2010 12:00:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/for-all-entries-in-for-batch-split-multiple-items/m-p/7291208#M1532833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-16T12:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: FOR ALL ENTRIES IN - For Batch Split &amp; multiple items</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/for-all-entries-in-for-batch-split-multiple-items/m-p/7291209#M1532834</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;Do you create more than one production order per sales order line?  If not, you could change the match to look at table AFPO for fields KDAUF = sales order number) and KDPOS = salse item number.&lt;/P&gt;&lt;P&gt;If you are going down to serial number level, after this select (fields are indexed in index AFPO~3, by default I think), then you could use your additional serial number field match after getting the list of production order numbers for the sales order/item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,  Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2010 16:47:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/for-all-entries-in-for-batch-split-multiple-items/m-p/7291209#M1532834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-16T16:47:46Z</dc:date>
    </item>
  </channel>
</rss>

