<?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: pp : Batch number assignment in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pp-batch-number-assignment/m-p/1270608#M150241</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pravin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to join this tables &amp;lt;b&amp;gt;MSEG&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;AFPO&amp;lt;/b&amp;gt; on field AUFNR, MATNR and WERK. Then you will get field AUFNR and CHARG from MSEG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can code something like this.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select * from mseg 
into corresponding fields of table i_mseg
  where mseg~aufnr = afpo-aufnr
    and mseg~matnr = afpo-matnr
    and mseg~werks = afpo-dwerk.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Apr 2006 12:22:29 GMT</pubDate>
    <dc:creator>ferry_lianto</dc:creator>
    <dc:date>2006-04-13T12:22:29Z</dc:date>
    <item>
      <title>pp : Batch number assignment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pp-batch-number-assignment/m-p/1270605#M150238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;   I am looking for a table which is having &lt;/P&gt;&lt;P&gt;AUFNR (Order Number ) &amp;amp; CHARG (Batch Number)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Please suggest!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With regards,&lt;/P&gt;&lt;P&gt;Pravin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2006 11:46:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pp-batch-number-assignment/m-p/1270605#M150238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-13T11:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: pp : Batch number assignment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pp-batch-number-assignment/m-p/1270606#M150239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Open up another SAP Session&lt;/P&gt;&lt;P&gt;2. Execute transaction ST05&lt;/P&gt;&lt;P&gt;3. Activate SQL Trace&lt;/P&gt;&lt;P&gt;4. In other session lauch KO03 and go to investment tab&lt;/P&gt;&lt;P&gt;5. Go back to deactivate and display the SQL Trace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All tables that the transaction has accessed should be displayed in order that they were accessed. Therefore the table you need should be close to the end. Start looking through this table list to find the correct table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check   aufk table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2006 11:52:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pp-batch-number-assignment/m-p/1270606#M150239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-13T11:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: pp : Batch number assignment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pp-batch-number-assignment/m-p/1270607#M150240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kishan,&lt;/P&gt;&lt;P&gt;    Thanks for your valuable information.&lt;/P&gt;&lt;P&gt;    my problem is that i know the tables but i am unable to find a perfact table in which there is data is populated related with Order and Batch number. I tried with rseb, afpo, mcha, mch1.&lt;/P&gt;&lt;P&gt;     If you have any other idea please suggest me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With regards,&lt;/P&gt;&lt;P&gt;Pravin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2006 12:05:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pp-batch-number-assignment/m-p/1270607#M150240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-13T12:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: pp : Batch number assignment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pp-batch-number-assignment/m-p/1270608#M150241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pravin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to join this tables &amp;lt;b&amp;gt;MSEG&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;AFPO&amp;lt;/b&amp;gt; on field AUFNR, MATNR and WERK. Then you will get field AUFNR and CHARG from MSEG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can code something like this.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select * from mseg 
into corresponding fields of table i_mseg
  where mseg~aufnr = afpo-aufnr
    and mseg~matnr = afpo-matnr
    and mseg~werks = afpo-dwerk.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2006 12:22:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pp-batch-number-assignment/m-p/1270608#M150241</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2006-04-13T12:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: pp : Batch number assignment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pp-batch-number-assignment/m-p/1270609#M150242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pravin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The production order item table AFPO will have the batch number in case if it is already assigned in the order when it is created OR changed (CO01/CO02).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in case if you are looking for what batches have been used against which production order confirmations say transactions co11 or co19, then, you can have a look at table AFRU. This table will hold the confirmations that are complete in terms of date time and confirmed and scrap quantities. The batch, components and the movement types etc. which will have the details of the articles consumed and the batch and quantity etc. is AUFM. So there will be a link between AFRU and AUFM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will exclude all the confirmations which are failed i.e. what you find in the transaction code COGI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For that you will have to link tables AFVV, AFWI &amp;amp; MSEG to get the details of the batches for the failed goods movement(s).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is what you are looking for and it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2006 13:28:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pp-batch-number-assignment/m-p/1270609#M150242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-13T13:28:48Z</dc:date>
    </item>
  </channel>
</rss>

