<?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: Serial no in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/serial-no/m-p/1557829#M252468</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;  Create a number range object in the transaction SNRO and and use the function module NUMBER_GET_NEXT to get the serial no..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Oct 2006 14:51:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-16T14:51:53Z</dc:date>
    <item>
      <title>Serial no</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/serial-no/m-p/1557828#M252467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi to all,&lt;/P&gt;&lt;P&gt;help me in this issue,&lt;/P&gt;&lt;P&gt;i need a auto genrated S.no which needs to be updated in &lt;/P&gt;&lt;P&gt;a table how tro get S.no and update to table.for example&lt;/P&gt;&lt;P&gt;when we select particular set of invoices its serail nos&lt;/P&gt;&lt;P&gt;of invoices should be updated as 1 100000(invoice nos)&lt;/P&gt;&lt;P&gt;                                 1 100001&lt;/P&gt;&lt;P&gt;                                 1 100002 like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;kiran kumar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: kiran kumar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2006 14:47:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/serial-no/m-p/1557828#M252467</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-16T14:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Serial no</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/serial-no/m-p/1557829#M252468</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;  Create a number range object in the transaction SNRO and and use the function module NUMBER_GET_NEXT to get the serial no..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2006 14:51:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/serial-no/m-p/1557829#M252468</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-16T14:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Serial no</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/serial-no/m-p/1557830#M252469</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;chk this how to create number range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;General - Number Range Generation &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use SNRO to create the number range object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'NUMBER_RANGE_ENQUEUE'&lt;/P&gt;&lt;P&gt;         exporting&lt;/P&gt;&lt;P&gt;               object              = 'ZOWNNO'   "Create with SNUM&lt;/P&gt;&lt;P&gt;         exceptions&lt;/P&gt;&lt;P&gt;               foreign_lock        = 1&lt;/P&gt;&lt;P&gt;               object_not_found    = 2&lt;/P&gt;&lt;P&gt;               system_failure      = 3&lt;/P&gt;&lt;P&gt;               others              = 4.&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  message e086 with 'Lock error' sy-subrc.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'NUMBER_GET_NEXT'&lt;/P&gt;&lt;P&gt;         exporting&lt;/P&gt;&lt;P&gt;               nr_range_nr         = wnorange&lt;/P&gt;&lt;P&gt;               object              = 'ZOWNNO'&lt;/P&gt;&lt;P&gt;               subobject           = wsubobj&lt;/P&gt;&lt;P&gt;         importing&lt;/P&gt;&lt;P&gt;               number                  = wdocno  "Number generated by SAP&lt;/P&gt;&lt;P&gt;         exceptions&lt;/P&gt;&lt;P&gt;               interval_not_found      = 1&lt;/P&gt;&lt;P&gt;               number_range_not_intern = 2&lt;/P&gt;&lt;P&gt;               object_not_found        = 3&lt;/P&gt;&lt;P&gt;               quantity_is_0           = 4&lt;/P&gt;&lt;P&gt;               quantity_is_not_1       = 5&lt;/P&gt;&lt;P&gt;               internal_overflow       = 6&lt;/P&gt;&lt;P&gt;               others                  = 7.&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  message e086 with 'Number Range' sy-subrc.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'NUMBER_RANGE_DEQUEUE'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      object                 = 'ZOWNNO'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&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;&amp;lt;b&amp;gt;refer the links als0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/ge003.htm" target="test_blank"&gt;http://www.sap-img.com/ge003.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-basis-abap.com/sapmm009.htm" target="test_blank"&gt;http://www.sap-basis-abap.com/sapmm009.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.erpgenie.com/abap/code/abap33.htm" target="test_blank"&gt;http://www.erpgenie.com/abap/code/abap33.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.kabai.com/abaps/z26.htm&amp;lt;/b&amp;gt;" target="test_blank"&gt;http://www.kabai.com/abaps/z26.htm&amp;lt;/b&amp;gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;anver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if hlped pls mark points&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Anversha s&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2006 14:51:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/serial-no/m-p/1557830#M252469</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-10-16T14:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Serial no</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/serial-no/m-p/1557831#M252470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Serial Number is like u maintain a sequence of number range defined in a Object using t-code SNRO &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in order to have a number system generated u need to call this object in ur program ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose say now ur range is 0000000001 -0000000005&lt;/P&gt;&lt;P&gt;that u have generated and stored in ur table ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now next time when u want the number to be 0000000006 , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the object should be referred to the table with the last count of max number which is ur 0000000005 and then the next number 0000000006 is generated by adding one to the count which the object takes care .. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the code will be like &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------" /&gt;&lt;P&gt;LOOP AT IT_Tab.&lt;/P&gt;&lt;P&gt;    IF IT_tb IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;      READ TABLE IT_tab1 WITH KEY f1 = IT_tb-f1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'NUMBER_GET_NEXT'&lt;/P&gt;&lt;P&gt;            EXPORTING&lt;/P&gt;&lt;P&gt;            NR_RANGE_NR                   = '01'&lt;/P&gt;&lt;P&gt;            OBJECT                        = 'ZRECNO'&lt;/P&gt;&lt;P&gt;            QUANTITY                      = '1'&lt;/P&gt;&lt;P&gt;            SUBOBJECT                     = Ztab-num&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       TOYEAR                        = '0000'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       IGNORE_BUFFER                 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;         NUMBER                        = IT_tb-f1&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  QUANTITY                      =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  RETURNCODE                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;           INTERVAL_NOT_FOUND            = 1&lt;/P&gt;&lt;P&gt;           NUMBER_RANGE_NOT_INTERN       = 2&lt;/P&gt;&lt;P&gt;           OBJECT_NOT_FOUND              = 3&lt;/P&gt;&lt;P&gt;           QUANTITY_IS_0                 = 4&lt;/P&gt;&lt;P&gt;           QUANTITY_IS_NOT_1             = 5&lt;/P&gt;&lt;P&gt;           INTERVAL_OVERFLOW             = 6&lt;/P&gt;&lt;P&gt;           BUFFER_OVERFLOW               = 7&lt;/P&gt;&lt;P&gt;           OTHERS                        = 8&lt;/P&gt;&lt;P&gt;                  .&lt;/P&gt;&lt;P&gt;        IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first create the obj in snro and define the range...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_tab contains the sequence of (1-5) from the ztable,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_tab1 contains new entries of ztable ..if there are entries say now 6 , now u have to understand that 1-5 sequence is already present now system has to generate number 6 this is done by the fm as shown when the entries are not matched ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps , &lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u will updating the Dbs with a Module pool programs ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so in future u can change some of the details to the invoices for ex 1000002 in ur case , so in this case u cannot create a new number but changes to the existing one should take place , so &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when declaring ur number remember that u need to maintain a primary key for this number in the table u r trying to add this ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2006 15:01:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/serial-no/m-p/1557831#M252470</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-16T15:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Serial no</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/serial-no/m-p/1557832#M252471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi to all &lt;/P&gt;&lt;P&gt;thanks for responsees but i need&lt;/P&gt;&lt;P&gt;like the below to be updated in database&lt;/P&gt;&lt;P&gt;for many invoices one serial no&lt;/P&gt;&lt;P&gt;1 100001&lt;/P&gt;&lt;P&gt;1 100002&lt;/P&gt;&lt;P&gt;1 100003&lt;/P&gt;&lt;P&gt;it should update same as above in database.&lt;/P&gt;&lt;P&gt;when it is executed again the next series like&lt;/P&gt;&lt;P&gt;2 100004&lt;/P&gt;&lt;P&gt;2 100005&lt;/P&gt;&lt;P&gt;like that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;kiran kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2006 16:08:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/serial-no/m-p/1557832#M252471</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-16T16:08:28Z</dc:date>
    </item>
  </channel>
</rss>

