<?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 Batch Number Assignment in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-number-assignment/m-p/4497953#M1064291</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo, everyone, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm developing a solution for individual batch number assignment. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a user creates a process order, the batch number should be generated according to following rules: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XXYY000001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XX - chararater, depends on the material master data, e.g. RL for material group 0001 (just an example). &lt;/P&gt;&lt;P&gt;YY- year, z.B. 08 for 2008&lt;/P&gt;&lt;P&gt;000001 - 6-digit number, starting from 000001 for every new year. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone some coding example? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd appreciated it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Sep 2008 22:50:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-23T22:50:26Z</dc:date>
    <item>
      <title>Batch Number Assignment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-number-assignment/m-p/4497953#M1064291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo, everyone, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm developing a solution for individual batch number assignment. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a user creates a process order, the batch number should be generated according to following rules: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XXYY000001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XX - chararater, depends on the material master data, e.g. RL for material group 0001 (just an example). &lt;/P&gt;&lt;P&gt;YY- year, z.B. 08 for 2008&lt;/P&gt;&lt;P&gt;000001 - 6-digit number, starting from 000001 for every new year. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone some coding example? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd appreciated it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2008 22:50:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-number-assignment/m-p/4497953#M1064291</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-23T22:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Number Assignment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-number-assignment/m-p/4497954#M1064292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yong,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think no one has such logic with them.cause sometime it depends on ORG specific requirements.&lt;/P&gt;&lt;P&gt;my guess you need to develope logic by your own.&lt;/P&gt;&lt;P&gt;i can give you some clues or hint how to start:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;XXYY000001

XX - chararater, depends on the material master data, e.g. RL for material group 0001 (just an example).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Just spilit your matnr and take first two char and keep in some temp variable.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;YY- year, z.B. 08 for 2008
000001 - 6-digit number, starting from 000001 for every new year.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;again split sydatum to get year and for 000001 you need to call FM NUMBER_GET_NEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 04:26:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-number-assignment/m-p/4497954#M1064292</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T04:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Number Assignment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-number-assignment/m-p/4497955#M1064293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stop cross-posting to multiple forums!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please read [the rules|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rules&lt;EM&gt;of&lt;/EM&gt;Engagement] before posting any further.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 08:33:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-number-assignment/m-p/4497955#M1064293</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T08:33:29Z</dc:date>
    </item>
  </channel>
</rss>

