<?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 Number range doubt in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-doubt/m-p/7873468#M1593980</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to create a number range object with subobjects, each one with its own range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g.: Create a number range object to HKONT, where I can store up to 10 accounts, each one has its onw range.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;account 0000000001 - from 1 to 4999;&lt;/P&gt;&lt;P&gt;account 0000000002 - from 5000 to 9999;&lt;/P&gt;&lt;P&gt;account 0000000003 - from 10000 to 14999;&lt;/P&gt;&lt;P&gt;(...)&lt;/P&gt;&lt;P&gt;account 0000000010 - from 45000 to 49999;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible ? Or I must forget it and go to creating a transparent Ztable to store those ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;Glauco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Apr 2011 12:27:47 GMT</pubDate>
    <dc:creator>glauco</dc:creator>
    <dc:date>2011-04-20T12:27:47Z</dc:date>
    <item>
      <title>Number range doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-doubt/m-p/7873468#M1593980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to create a number range object with subobjects, each one with its own range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g.: Create a number range object to HKONT, where I can store up to 10 accounts, each one has its onw range.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;account 0000000001 - from 1 to 4999;&lt;/P&gt;&lt;P&gt;account 0000000002 - from 5000 to 9999;&lt;/P&gt;&lt;P&gt;account 0000000003 - from 10000 to 14999;&lt;/P&gt;&lt;P&gt;(...)&lt;/P&gt;&lt;P&gt;account 0000000010 - from 45000 to 49999;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible ? Or I must forget it and go to creating a transparent Ztable to store those ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;Glauco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 12:27:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-doubt/m-p/7873468#M1593980</guid>
      <dc:creator>glauco</dc:creator>
      <dc:date>2011-04-20T12:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Number range doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-doubt/m-p/7873469#M1593981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can proceed with the Standard number range procedure, i.e you can create number range object ,subobject etc in SNRO transaction. it is possible with the standard number range objects.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 12:31:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-doubt/m-p/7873469#M1593981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-20T12:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Number range doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-doubt/m-p/7873470#M1593982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. I know how to create a basic range and use it by FM number_get_next.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now, if it's possibgle, how to configure it to work correctly with my issue ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I create subranges ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;Glauco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 12:34:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-doubt/m-p/7873470#M1593982</guid>
      <dc:creator>glauco</dc:creator>
      <dc:date>2011-04-20T12:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Number range doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-doubt/m-p/7873471#M1593983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Glauco,&lt;/P&gt;&lt;P&gt;in SNRO -&amp;gt; Number Ranges -&amp;gt; Intervals &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can create N intervals : ex.   01 -&amp;gt; 1000 -4999&lt;/P&gt;&lt;P&gt;                                               02 -&amp;gt;  5000 -9999&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in Abap function NUMBER_GET_NEXT , you can fill  interval number in NR_RANGE_NR parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'NUMBER_GET_NEXT'
      EXPORTING
        nr_range_nr                   = '01'
        object                        = 'ZRANGE_ID'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'NUMBER_GET_NEXT'
      EXPORTING
        nr_range_nr                   = '02'
        object                        = 'ZRANGE_ID'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: alessandro spadoni on Apr 20, 2011 3:01 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: alessandro spadoni on Apr 20, 2011 3:02 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 13:00:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-doubt/m-p/7873471#M1593983</guid>
      <dc:creator>AlessandroSpadoni</dc:creator>
      <dc:date>2011-04-20T13:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Number range doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-doubt/m-p/7873472#M1593984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alessandro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On this way, I must use hardcode im my code to choose which nr_range_nr to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g.: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CASE HKONT.

WHEN '0000000001':
CALL FUNCTION 'NUMBER_GET_NEXT'
      EXPORTING
        nr_range_nr                   = '01'
        object                        = 'ZRANGE_ID'

WHEN '0000000002':
CALL FUNCTION 'NUMBER_GET_NEXT'
      EXPORTING
        nr_range_nr                   = '02'
        object                        = 'ZRANGE_ID'

WHEN '0000000003':

(...)

WHEN '0000000010':
CALL FUNCTION 'NUMBER_GET_NEXT'
      EXPORTING
        nr_range_nr                   = '10'
        object                        = 'ZRANGE_ID'

ENDCASE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Do you know if is it the best way to do that ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I saw some standard objects which have subobjects and use transparente tables. e.g.: for Materials.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;Glauco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 13:12:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-doubt/m-p/7873472#M1593984</guid>
      <dc:creator>glauco</dc:creator>
      <dc:date>2011-04-20T13:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Number range doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-doubt/m-p/7873473#M1593985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you need to play with the number range configuration. the subobjects will be configured in SNRO only the way you want. But which one you want to choose it is up to you. Assume that for company code 1000 you want one sub object, for other company code you need some other HKONT. in the coding side you decide which subobject you want to pass to number_get_next function module.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 13:21:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-doubt/m-p/7873473#M1593985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-20T13:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Number range doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-doubt/m-p/7873474#M1593986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the coding what you did is not correct, since you are doing the number range for HKNOT, so you need to introduce another parameter which decides what number range subobject to use. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: Based on company code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1000 company code HKONT will be 0000001 to 0000999 ( Subobject 01, object is same all case )&lt;/P&gt;&lt;P&gt;2000 company code HKONT will be 0001000to 0009999( Subobject 02 , .....)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can be done effectively using another customizing table ( Z table) where you maintain relation between company code and Number range Subobject &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in that case flow will be like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read the customizing for company code and get the subobject&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with that subobject proceed and create the new account &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'NUMBER_GET_NEXT'
      EXPORTING
        nr_range_nr                   = lv_subobj
        object                        = 'ZRANGE_ID'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 13:31:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-doubt/m-p/7873474#M1593986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-20T13:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Number range doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-doubt/m-p/7873475#M1593987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your example...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1- How do I create Ztable fields ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Will be the fields like this ?&lt;/P&gt;&lt;P&gt;- MANDT - (KEY)&lt;/P&gt;&lt;P&gt;- BUKRS - (KEY)&lt;/P&gt;&lt;P&gt;- HKONT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1.1- Does this table must have values registered, to it work ? IF YES, HOW? Do I need this Ztable linked to a domain ?&lt;/STRONG&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2- How do I call FM linkecd to each company code ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Glauco&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Glauco Kubrusly on Apr 20, 2011 10:51 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 13:51:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-doubt/m-p/7873475#M1593987</guid>
      <dc:creator>glauco</dc:creator>
      <dc:date>2011-04-20T13:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Number range doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-doubt/m-p/7873476#M1593988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;STRONG&gt;1- How do I create Ztable fields ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Will be the fields like this ?&lt;/P&gt;&lt;P&gt;&amp;gt; - MANDT - (KEY)&lt;/P&gt;&lt;P&gt;&amp;gt; - BUKRS - (KEY)&lt;/P&gt;&lt;P&gt;&amp;gt; - NUMBER RANGE OBJECT&lt;/P&gt;&lt;P&gt;&amp;gt; - SUBOBJECT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;STRONG&gt;1.1- Does this table must have values registered, to it work ? IF YES, HOW? Do I need this Ztable linked to a domain ?&lt;/STRONG&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes you configure the data before proceeding further. using the maintenance view using SM30, or creating the tcode for maintaing the entries. No not required to link it to a domain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;STRONG&gt;2- How do I call FM linkecd to each company code ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assume that you are doing it for a company code, first read the data for the company code from custom table and get the  number range object and subobject. then call the function with the parameters. and generate the HKONT with in the range you want.&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 14:07:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-doubt/m-p/7873476#M1593988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-20T14:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Number range doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-doubt/m-p/7873477#M1593989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; 1- How do I create Ztable fields ?&lt;/P&gt;&lt;P&gt; &amp;gt; Will be the fields like this ?&lt;/P&gt;&lt;P&gt; &amp;gt; - MANDT - (KEY) - OK&lt;/P&gt;&lt;P&gt; &amp;gt; - BUKRS - (KEY) - OK&lt;/P&gt;&lt;P&gt; &amp;gt; - NUMBER RANGE OBJECT - OK&lt;/P&gt;&lt;P&gt; &amp;gt; - SUBOBJECT - &lt;STRONG&gt;questions bellow:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Do&lt;/STRONG&gt; I put the subobject name here ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Must&lt;/STRONG&gt; it have one SUBobject to each subrange I need ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I have seen a standard object which has its data element linked to a table. It's MATERIALNR, which has data element MTART. Is it different the way I need ?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 14:20:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-doubt/m-p/7873477#M1593989</guid>
      <dc:creator>glauco</dc:creator>
      <dc:date>2011-04-20T14:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Number range doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-doubt/m-p/7873478#M1593990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do I put the subobject name here ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Must it have one SUBobject to each subrange I need ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes you need it , as you are having different subobjects, so which ever you need you have to configure to company code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes you need to link it the way you explained in your above question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 14:29:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-doubt/m-p/7873478#M1593990</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-20T14:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Number range doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-doubt/m-p/7873479#M1593991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think you should make 10 object in SNRO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and you need to call this object for each HKONT&lt;/P&gt;&lt;P&gt;for example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CASE HKONT.
&amp;nbsp;
WHEN '0000000001':
CALL FUNCTION 'NUMBER_GET_NEXT'
      EXPORTING
        nr_range_nr                   = '01'
        object                        = 'ZRANGE_ID1'
&amp;nbsp;
WHEN '0000000002':
CALL FUNCTION 'NUMBER_GET_NEXT'
      EXPORTING
        nr_range_nr                   = '01'
        object                        = 'ZRANGE_ID2'

(...)
&amp;nbsp;
WHEN '0000000010':
CALL FUNCTION 'NUMBER_GET_NEXT'
      EXPORTING
        nr_range_nr                   = '01'
        object                        = 'ZRANGE_ID10'
&amp;nbsp;
ENDCASE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: indrajale on Apr 21, 2011 2:37 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2011 00:36:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-doubt/m-p/7873479#M1593991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-21T00:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Number range doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-doubt/m-p/7873480#M1593992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't got it. I can't understand how to do that, step by step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HKONT I mentioned here is a fake hkont. It's from legacy and I just need to get a number range to ench one, from bank TXT file to generate CNAB240 TXT (SAP ECC will read my generated file in FF.5 transaction).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Process: &lt;/P&gt;&lt;P&gt;1st-Receive file from bank ---&amp;gt; &lt;/P&gt;&lt;P&gt;---&amp;gt; 2nd-My program process this file (replace each fake hkont to a NEW number) ---&amp;gt; &lt;/P&gt;&lt;P&gt;---&amp;gt; Generate a TXT CNAB240 file.&lt;/P&gt;&lt;P&gt;---&amp;gt; This file will be read by SAP ECC FF.5 transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll do this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Create one objetct to each hkont;&lt;/P&gt;&lt;P&gt;- Create a Ztable with aqnd fill it with each name of Zobjects and fake hkont;&lt;/P&gt;&lt;P&gt;- From program, I read this Ztable with key fake hkont and give the object name;&lt;/P&gt;&lt;P&gt;- With correct object name, I call FM NUMBER_GET_NEXT and get the next number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It isn't the correct way but solves my problem for now. After that, if I learn how to do your solution/tip, I'll do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So please, if you can explain it step by step, I apreciate your help.&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;My problem is on how to get a number range to each "fake" hkont, and get next correct number to each one. I don't need to separate is by company code, because here we have only one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each fake hkong will have one number in each processing time. Each fake hkont will have a "new" number in each processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g.: &lt;/P&gt;&lt;P&gt;Day one processing : hkont 0000000001 -&amp;gt; get number 000001.&lt;/P&gt;&lt;P&gt;Day two processing : hkont 0000000001 -&amp;gt; get number 000002.&lt;/P&gt;&lt;P&gt;Day three processing : hkont 0000000001 -&amp;gt; get number 000003.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Day one processing : hkont 0000000002 -&amp;gt; get number 5001.&lt;/P&gt;&lt;P&gt;Day two processing : hkont 0000000002 -&amp;gt; get number 5002.&lt;/P&gt;&lt;P&gt;Day three processing : hkont 0000000002 -&amp;gt; get number 5003.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;Glauco&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Glauco Kubrusly on Apr 25, 2011 9:13 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Apr 2011 15:21:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/number-range-doubt/m-p/7873480#M1593992</guid>
      <dc:creator>glauco</dc:creator>
      <dc:date>2011-04-23T15:21:39Z</dc:date>
    </item>
  </channel>
</rss>

