<?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: Number range partition in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-partition/m-p/4368574#M1039515</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Preeti,&lt;/P&gt;&lt;P&gt;This is possible by using the multiple number range numbers in the transaction SNRO.&lt;/P&gt;&lt;P&gt;For Eg in the INTERVALS:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No. -   FROM -   TO&lt;/P&gt;&lt;P&gt;01 - 00001-20000 is sales order&lt;/P&gt;&lt;P&gt;02 - 20001-40000 is purchase order&lt;/P&gt;&lt;P&gt;03 - 40001-50000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While retrieving the number using NUMBER_GET_NEXT pass the above number (No. - 01 or 02 or 03) to the importing parameter NR_RANGE_NR to get the correct number range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above case we have created single number range object but have multiple number ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran Bobbala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Aug 2008 10:43:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-21T10:43:48Z</dc:date>
    <item>
      <title>Number range partition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-partition/m-p/4368572#M1039513</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;I have  a number range from 00001 to 99999 and i want to partition my nuber rangec into 3 parts.&lt;/P&gt;&lt;P&gt;To use number range in report program i can call function 'NUMBER_GET_NEXT' but how can i partion my number range so that:&lt;/P&gt;&lt;P&gt;00001-20000 is sales order&lt;/P&gt;&lt;P&gt;20001-40000 is purchase order&lt;/P&gt;&lt;P&gt;40001-50000 is receipt order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note i dont have to create a seprate number range for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Preeti Khurana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 10:27:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-partition/m-p/4368572#M1039513</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-21T10:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Number range partition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-partition/m-p/4368573#M1039514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Check table NRIV and choose interested you object&lt;/P&gt;&lt;P&gt;2. Call function NUMBER_GET_NEXT with parameter OBJECT = NRIV-OBJECT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 10:38:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-partition/m-p/4368573#M1039514</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-21T10:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Number range partition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-partition/m-p/4368574#M1039515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Preeti,&lt;/P&gt;&lt;P&gt;This is possible by using the multiple number range numbers in the transaction SNRO.&lt;/P&gt;&lt;P&gt;For Eg in the INTERVALS:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No. -   FROM -   TO&lt;/P&gt;&lt;P&gt;01 - 00001-20000 is sales order&lt;/P&gt;&lt;P&gt;02 - 20001-40000 is purchase order&lt;/P&gt;&lt;P&gt;03 - 40001-50000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While retrieving the number using NUMBER_GET_NEXT pass the above number (No. - 01 or 02 or 03) to the importing parameter NR_RANGE_NR to get the correct number range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above case we have created single number range object but have multiple number ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran Bobbala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 10:43:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-partition/m-p/4368574#M1039515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-21T10:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Number range partition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-partition/m-p/4368575#M1039516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;lv_count =  range_high - range_low.&lt;/P&gt;&lt;P&gt;      lv_count = lv_count + 1.&lt;/P&gt;&lt;P&gt;       do lv_count times.&lt;/P&gt;&lt;P&gt;          wa_gl-VONKT = wa_repcode-VONKT.&lt;/P&gt;&lt;P&gt;           append wa_gl to lt_gl.&lt;/P&gt;&lt;P&gt;        wa_repcode-VONKT = wa_repcode-VONKT + 1.&lt;/P&gt;&lt;P&gt;          CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;           EXPORTING&lt;/P&gt;&lt;P&gt;             INPUT  = wa_repcode-VONKT&lt;/P&gt;&lt;P&gt;            IMPORTING&lt;/P&gt;&lt;P&gt;              OUTPUT = wa_repcode-VONKT.&lt;/P&gt;&lt;P&gt;        enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will give u the gl by splitting it from the range and append into an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can use 2 more internal table and add some condition and split the range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;*00001-20000 is sales order&lt;/P&gt;&lt;P&gt;*20001-40000 is purchase order&lt;/P&gt;&lt;P&gt;*40001-50000 is receipt order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_count =  wa_repcode-belnr_HIGH - wa_repcode-belnr_low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      lv_count = lv_count + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       do lv_count times.&lt;/P&gt;&lt;P&gt;           &lt;/P&gt;&lt;P&gt;           if wa_gl-belnr le 2000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          wa_gl1-belnr = wa_repcode-belnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           append wa_gl1 to lt_gl1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           else if wa_gl-belnr ge 2001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           wa_gl-belnr = wa_repcode-belnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               if wa_gl2-belnr ge 4001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           append wa_gl3 to lt_gl3.&lt;/P&gt;&lt;P&gt;		else.&lt;/P&gt;&lt;P&gt;	append wa_gl2 to lt_gl3.&lt;/P&gt;&lt;P&gt;	endif.&lt;/P&gt;&lt;P&gt;        wa_repcode-belnr = wa_repcode-belnr + 1.&lt;/P&gt;&lt;P&gt;          CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           EXPORTING&lt;/P&gt;&lt;P&gt;             INPUT  = wa_repcode-belnr&lt;/P&gt;&lt;P&gt;            IMPORTING&lt;/P&gt;&lt;P&gt;              OUTPUT = wa_repcode-belnr.&lt;/P&gt;&lt;P&gt;        enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am using the function module to get the order number in 10 digit. U can use the fc according to ur requirement..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 10:58:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-partition/m-p/4368575#M1039516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-21T10:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Number range partition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-partition/m-p/4368576#M1039517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks alot for quick response.&lt;/P&gt;&lt;P&gt;Please see the steps i will need to do:&lt;/P&gt;&lt;P&gt;1:Will make an entry in trable NRIV for my object which is numc5 in my case.&lt;/P&gt;&lt;P&gt;   Total there will be three entries as i want to divide my number range in 3 parts with different NRRANGENR.&lt;/P&gt;&lt;P&gt;   What will be the entry in column NRLEVEL?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2:Please suggest how exactly it will be called from the fuction Number_get_next?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Preeti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 11:15:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-partition/m-p/4368576#M1039517</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-21T11:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Number range partition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-partition/m-p/4368577#M1039518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have not underrstood properly......follow the below steps to create multiple ranges for a single number range object:&lt;/P&gt;&lt;P&gt;1. Go to Transaction SNRO&lt;/P&gt;&lt;P&gt;2. Enter the Number rangeobject i.e., corresponding othe NRIV-OBJECT field&lt;/P&gt;&lt;P&gt;3. In menubar GOTO-&amp;gt;Numberr RANGES&lt;/P&gt;&lt;P&gt;4. Select the CHANGE intervals button&lt;/P&gt;&lt;P&gt;5. In toolbar, select INSERT INTERVAL button&lt;/P&gt;&lt;P&gt;6. In the next screen, enter the Numbr, From and TO fields i.e., in your case it will be 01, 00001, 20000&lt;/P&gt;&lt;P&gt;7. Press INSErt at bottom&lt;/P&gt;&lt;P&gt;8. Follow the steps 5,6,7 for other ranges&lt;/P&gt;&lt;P&gt;9. Save it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your information, NRLEVEL field hold the current number for Eg: current sales order number...this we need not to maintain, system will maintain.&lt;/P&gt;&lt;P&gt;When you do this entire process it creates an entry in NRIV table.&lt;/P&gt;&lt;P&gt;*******Assuming yu have already created the number range object and only intervals need to be added then follow theabove procedure else create number rangeobject using SNRO and follow the above process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass the NRIV-OBJECT and NRIV-NRRANGENR to the import parameters OBJECT and NR_RANGE_NR to get the next number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran Bobbal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: kiran Bobbala on Aug 21, 2008 1:31 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 11:30:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-partition/m-p/4368577#M1039518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-21T11:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Number range partition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-partition/m-p/4368578#M1039519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot..&lt;/P&gt;&lt;P&gt;Now i iunderstood the entire process.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 11:34:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-partition/m-p/4368578#M1039519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-21T11:34:00Z</dc:date>
    </item>
  </channel>
</rss>

