<?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: How a document number is Generated. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-a-document-number-is-generated/m-p/7799783#M1586970</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will find the call in function PRELIMINARY_POSTING_FB01 which in turn calls RF_GET_DOCUMENT_NUMBER.  The number range object is RF_BELEG.  Normally, I would tell posters to use SE30 to find it but SE30 doesn't do a very good job of capturing the FV60 transaction completely.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Apr 2011 13:45:38 GMT</pubDate>
    <dc:creator>brad_bohn</dc:creator>
    <dc:date>2011-04-18T13:45:38Z</dc:date>
    <item>
      <title>How a document number is Generated.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-a-document-number-is-generated/m-p/7799780#M1586967</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;When I park a document using FV60, how the document number is generated?&lt;/P&gt;&lt;P&gt;I want to know the program name and function(subroutine) which will generate this number.&lt;/P&gt;&lt;P&gt;If any one knows please let me know.&lt;/P&gt;&lt;P&gt;It will be very helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Vimal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 10:38:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-a-document-number-is-generated/m-p/7799780#M1586967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-18T10:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: How a document number is Generated.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-a-document-number-is-generated/m-p/7799781#M1586968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAP uses number ranges. So you need to find out the number range object and interval (transaction SNRO).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With function NUMBER_GET_NEXT a new number is taken from the number range object and interval.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 10:46:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-a-document-number-is-generated/m-p/7799781#M1586968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-18T10:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: How a document number is Generated.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-a-document-number-is-generated/m-p/7799782#M1586969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vimal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try below logic!!!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create your number range through transaction (SNRO / SNUM). Over there in the domain level pass the variable (say vbeln) and give your interval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in your report where you want to generate a new document number, use the FM NUMBER_GET_NEXT .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA: l_no  TYPE inri-nrrangenr,
            l_obj TYPE inri-object    VALUE 'ZSDIDA'.

   CALL FUNCTION 'NUMBER_GET_NEXT'
     EXPORTING
       nr_range_nr             = l_no
       object                  = l_obj
     IMPORTING
       number                  = g_number
     EXCEPTIONS
       interval_not_found      = 1
       number_range_not_intern = 2
       object_not_found        = 3
       quantity_is_0           = 4
       quantity_is_not_1       = 5
       interval_overflow       = 6
       buffer_overflow         = 7
       OTHERS                  = 8.
   IF sy-subrc &amp;lt;&amp;gt; 0.

     MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
             WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

   ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Over here l_no is the range sl no. &amp;amp; l_obj is the name of range which is created through transaction SNRO/SNUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you to resolve the issue &amp;amp; close the thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Vinit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 11:07:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-a-document-number-is-generated/m-p/7799782#M1586969</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-18T11:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: How a document number is Generated.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-a-document-number-is-generated/m-p/7799783#M1586970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will find the call in function PRELIMINARY_POSTING_FB01 which in turn calls RF_GET_DOCUMENT_NUMBER.  The number range object is RF_BELEG.  Normally, I would tell posters to use SE30 to find it but SE30 doesn't do a very good job of capturing the FV60 transaction completely.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 13:45:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-a-document-number-is-generated/m-p/7799783#M1586970</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2011-04-18T13:45:38Z</dc:date>
    </item>
  </channel>
</rss>

