Using MASSG to determine number ranges in NUMKR

Hi,
I am trying to get NUMKR to determine number ranges using reason for action(MASSG).  A new business unit is coming onboard and need to keep their existing staff numbers. Therefore two number ranges were set up. 01 for external and 02 for internal.
A reason for hire action exists with the reason 99 - Data migration.
NUMKR is set as follows.
If MASSG = 99 and employee group = 1 then choose number range 01 otherwise if MASSG <> 99 and employee group = 1 then choose number range 02.
However when running PA40. This does not work and it ends up always picking the otherwise option.
Has anybody else experienced this?
Thanks in advance

Hi David
There seem to be an error while setting the feature. You are adding another condition of EG=1 in the otherwise & that is probably causing an error. Can you set the feature as follows:
Country Code = 99 > EG =1> MASSG = 99 --> 01 otherwise 02. And the otherwise that you get at the country code level =02 unless you have other country Molga's defined. Please check that all the employees that you are trying to get into the system initially are EG =1 else it will not work. After creating the feature & ensuring that the feature is error free, activate it.
Regards
UR

Similar Messages

  • How to determine number range for billing document based on company code ..

    Hi Friends!!
    can anybody tell me how to determine number range for billing document based on company code & tax departure country if required??
    Amit...plz help me!!

    Hi Amit,
    1. Define different Billing Document number ranges in  SPRO -> Sales & Dist -> Billing -> Define number ranges for billing docs. (VN01). Make sure that all are internal number ranges.
    e.g.
    NO.  From number To Number    Current number  Ext
    A1   0930000000    0930999999
    A2   0940000000    0940999999
    A3   0950000000    0950999999
    2. Define a Ztable ZNUMB_RANGE as follows
    Comp. Code | Tax departure country | Billing Doc Type | Number Range
    100                IN                               F2                      A1
    200                IN                               F2                      A2
    200                US                              F2                     A3
    3. In user exit RV60AFZZ (USEREXIT_NUMBER_RANGE)
    Read table ZNUMB_RANGE for Number Range with Comp. Code, Tax country and Billing Doc.
    If found pass this number range value to us_range_intern.
    us_range_intern is a standard SAP variable which tells program which number range use to create the current document which is under process.
    Let me know if you are clear.
    Thanks,
    Mandar

  • SD - Billing - External Number Range

    Hi,
    I have two questions related to SD billing document numbering:-
    1. I am getting error message of [Please specify an internal number range Message no. NR752] while saving a billing document based on the delivery. I have checked only external number range box in VN01. Do I need to use any user-exit for this? If yes then there are 2 user exits available -
    a) USEREXIT_NUMBER_RANGE_INV_DATE USING US_RANGE_INTERN in program RV60AFZC
                              b) FORM USEREXIT_NUMBER_RANGE USING US_RANGE_INTERN in program RV60AFZZ
    but both the cases the variable is US_RANGE_INTERN which is not allowing external number range ID to pass. How this external no range works.?
    2. I have a business requirement for our Mexican company code on external alphanumeric number. There would be 3 billing types say, ZF2, YF2 and ZYF2. Mexican government provides Invoice numbers in advance.
    ZF2 Number range would be A001 to A999
    YF2 Number range would be B001 to B999
    ZYF2 Number range would be C001 to C999.
    All these Invoices would be created at same time. i.e. parallel processing. Also all these invoices would be transmitted thru EDI -IDOC. And accounting document should have same number as billing document will carry i.e. external govt provided numbers.
    How do I map this in systems. My experience says alphanumeric number range is not supported by SAP. Anybody may share his solution on this would be simply great.
    Thanks
    Subrata Das

    FORM USEREXIT_NUMBER_RANGE                                    *
          This userexit can be used to determine the numberranges for   *
          the internal document number.                                 *
          US_RANGE_INTERN - internal number range                       *
          This form is called from form LV60AU02                        *
    FORM USEREXIT_NUMBER_RANGE USING US_RANGE_INTERN.
    Example: Number range from TVFK like in standard
    US_RANGE_INTERN = TVFK-NUMKI.
    *{   INSERT         DEVK905392                                        1
    There was a need to check whether all the mandatory pricing
    conditions have been filled before creation of an invoice so that
    the invoice is released to accounting as and when it is created.
    Piece of code written below ensures the same. Field uvprs = 'X'
    in item table indicates that the item is incomplete with respect to
    pricing.
      LOOP AT xvbrp WHERE uvprs = 'X'.
        EXIT.
      ENDLOOP.
      IF sy-subrc EQ 0.
        MESSAGE e073(vf) WITH xvbrp-posnr.
      ENDIF.
    TABLES : zbd_nr_code.
    data : aa like zbd_nr_code-nr_code.
      IF sy-tcode = 'VF01'.
       SELECT SINGLE *
         FROM tvko
        WHERE vkorg = vbak-vkorg.
       IF sy-subrc EQ 0.
          SELECT SINGLE NR_CODE INTO ZBD_NR_CODE-NR_CODE
            FROM zbd_nr_code
           WHERE vkorg    = vbrk-vkorg
             AND werks    = vbrp-werks
             AND fkart    = vbrk-fkart.
          IF sy-subrc = 0 .
            us_range_intern = zbd_nr_code-nr_code.
          ENDIF.
       ENDIF.
      ENDIF.
    I feel this will help out.
    Regards

  • External Purchase Order Number Range

    We are creating shopping carts using a Z program which is creating the follow-on documents ie.. PO's.
    Now our requirement is to get the PO's created with external no's  not the internal no range.
    Is there any BADI which we can use for doing this so that we can get the PO no populated. quick reply appreciated.

    Hi Sham
    Always SRM system determines number range for its follow on documents from SRM
    but however you can change this BADI,
    plz update me the code . i am also lookin for this
    The BAdI BBP_BS_GROUP_BE provides the following options:
    Alternative to the standard, you can use method
    GET_NUMBER_OR_RANGE
    to override determination of the number range object and the number assignment for the following document types:
    Purchase orders
    Purchase requisitions
    Reservations
    good luck
    did you try the method? Hope you might tried  and you got an error saying that document XXX not within define interval. any one trie above same...
    eventually system checks internal or external number range?
    any break through?
    Muthu

  • FI Number Range Number by Document Type -- different by company code

    In transaction <b>OBA7</b>, I assign a <b>number range number</b> (T003-NUMKR) to each FI Document Type. 
    We have over 40 company codes on SAP.  One of those 40 company codes requires sequential numbering of FI documents for the whole company code across all document types.  The other company codes require different FI number ranges based upon document type.
    I need to identify a solution where I can assign a different <b>number range number</b> by document type for different company codes.
    For instance, company code IT01 should use a single <b>number range number</b> for all FI documents -- i.e. RV, SA, AB, etc. Then, all other company codes should use a different <b>number range number</b> for each document type.
    Any ideas here?  My problem company code is in Italy where our accountants tell us all FI Documents must be sequential, without gaps.

    Hi Colin,
               The point is that it is about journal<b>s</b>
               Sales Journal = Doc type RV
                Cash Sales Journal = Doc Type DR or have RV&DR use the same number range.
                 For clearing you will have to create new doc types eg.
                        AB = GL Clearing
                        KB = Creditor clearing
                        DB = Debitor clearing
    The existing companies will also have to use these since these defaults are set in customising, but you have clearly defined Journals that comply with the requirements
    It is probable that you will need additional doc types,to ensure compliance. In my case all creditor invoices used Doc type KR/KG (SAP Standard and they use the same number range), for the Italian company i then had:-
                     KR/KG = Domestic Purchase Journal
                    New Doc Type = EU Purchase Journal
         etc.
    Kind regards

  • Number range for billing document..its urgent!!

    Hi Friends!!
    can anybody tell me how to determine number range for billing document based on company code & tax departure country if required??
    Amit...

    Hi,
    Look at object RV_BELEG in t.code snro. It  is the number range object for SD Documents. Click on Number Ranges and then Intervals to view the different number ranges and associated intervals.
    Now look at t.code 0vlk, which is Define Delivery Type. If you double-click on a delivery type BV it goes to more detail. See the field: "NR int. assgt.". This is the number range for delivery type BV.
    This number range will be used in any company code or tax departure country that this delivery type is used in.
    Regards,
    Shamma

  • Excise invoice and domestic invoice sharing same number range

    Hi,gurus,my question is addresed to the sap cin gurus
    Scenario:-- Normally sap has provided provisions that the domestic invoice and the excise for the export will have different number range object
    Transaction-snum or snro(As per the rule the no range has to be approved by excise authorities)
    Requirement:--The present requirement of the client is that as per their requirement they will be using the same excise number range both for domestic and the export(They have got the approval from the excise department as per the amendment,that specifies the same)
    so i request you to pls guide me as how can it be done in sap that two different business process will share the same number range.
    as per my knowledge local excise number range is-J_1IEXCLOC
    and for exports is-J_1IEXCEXPand the both will use the same number range and,suppose 1 local invoice is created and say if the no is 1,then if the export excise invoice is created the number will be 2,pls guide me how is it possible that the same number range should be used.
    Thanks in advance---Anshuman chakraborty

    Dear sir,Thanks for attention towards the issue,but still i need to clarify some details-
    the number range forJ_1IEXCLOC are already configured .It is not the case like i have to configure it for the first time however ,so the issue remains how shall i proceed in this case
    Sir,i have already checked the transaction j1iin,it does not give any such box to check the-use local no range
    infact the error message which the system was throwing to the user that-number range object not assigned for Object: J_1IEXCEXP.
    The question remains from my side is what are the complete configuration steps I need to do ,to make the check box appear so as to select-use local number range,and is there any thing to be conveyed to my developer,so that the same appears,
    or is it the case like the anything should earlier have been done before the number range for J_1IEXCLOC was created.i would request u to pls guide me giving the complete details of the step to be followed.
    Thanks in advance
    Anshuman chakraborty

  • Clear Vendor Down Payment F-54, Number range

    Hi Experts
                    I tried to clear the vendor down payment using the T-Code; F-54, It is displaying a error message as "Number Range 17 is Missing for the year 2010"
    Message no. F5150
    Diagnosis
    The document type you specified has been allocated to a number range in fiscal year "2010" that has not been created.
    - Should we need to create a New Number range for this document type.
    -  Is this a New requirement in ECC 6.0?
    - Is this linked to the New GL feature?
    Please share your views.
    With Regards
    Siva

    Hi,
    The document type you are using is referring to number range maintained with the id 17. You need to go to FBN1 transaction code and maintain a number range for id 17 for the year 2010.
    Normally the accounting document number ranges are maintained year specific so that every new fiscal year will restart at 1 and not continue from last year.
    As corrected by Ramnuja, you need to maintain number ranges for entry view and general ledger view (new GL feature).
    For you the number range 17 has not been maintianed for 2010 and you need to maintain it.
    hope this helps.
    thanks and regards,
    anit
    Edited by: Anit Mangat on Nov 23, 2010 4:56 PM

  • Number ranges - APO or ECC system - Which one is master system?

    Hi
    In SRM always SRM system is a  master system for issuing number range. to create a folow on documents like purchase request and Purchase order . SRM system always determines the number range  for  purchase orders , Purchase request .
    for example in Classic scenario :-
    SRM we create a Shopping cart and Purchase order in  ECC system.but SRM determines the number range which number Purchase order needs to be created.
    What about in APO number ranges for Purchase request and Purchase order ? .iS That SAME ? .
    In APO , do you have technical scenarios like Classic and Extended classic?
    classic :- shoping cart crated in SRM and Purchase order will be created in ECC system.
    Ext Classic :- Shopping card created in SRM and Purchase order will be created in SRM itself and replicated to ECC system.
    But both above scenarios, SRM system is a master system to issue number ranges.
    i learnt that APO system dont supply any number ranges to create a PR or PO in ECC system (trigger from APO) only ECC system determines? is it true?
    BR
    Muhtu

    Hi,
    For Purchase requisition there is temporary number range in APO system but once requisition gets transfered to ECC through CIF it determines number range from ECC and returns back same number to APO.
    For Purchase order number range exists in ECC only and not in APO. Even if you trigger conversion of PR to PO from APO number range will be taken from ECC only.
    So ECC remains master system .
    Regards,
    Santosh

  • Maintain Billing Number Range according to Sales Organization / Plant

    Hi,
    How to create Billing Number Range according to Sales Organization / Plant wise...
    Please guide..

    Hi SAP~MM 
    It can be developed through Z Table.Take the help of your Abaper.Check this below link it is useful for your issue
    Number ranges
    Plantwise number ranges
    Let me know if your problem is solved
    Regards
    Pradeep

  • Number Range Issue-WIP

    Hi
    we are  doing WIP for production order executing tcode KO88, when
    executing this tcode msg says "Define Number range for
    settlement documents?, we created number range using tcode
    KO8N(Maintain number ranges for settlement documents) from
    number :0000000001 To Number 0001000000 current number: 0,after
    we completed number range creation, we tired to execute same tcode
    KO88 to run WIP but still we are getting same message "Define
    Number range for settlement documents". any patch to be applied here?, pls help
    thanks and regards,

    Hi Mr.Arthur Duman,
    <b>Plz check with T code SNUM - Number Range for Settlement Documents CO objects.</b>
    or else check with this menu path
    SPRO- Logistics Execution - Direct store Delivery back end-Route Accounting-Basic Functions-Number ranges-Maintain Number ranges for Settlement documents.
    If helpful reward points.
    Thanks & Regards
    Mangal

  • Regarding billing document number ranges

    hi friends
           my requirement is with in one company code i am using 2 billing document types and i want the number ranges should start with the same number range
    ex : 1st doc type is f1 and no range is  900000
            2nd doc type is f2 and no range is 900000
       in the above example if i generate the billing doc with f1 the no range should start with 900000 and after that if i generate billing doc with f2 i should get the no range should start with 900000 only
    this is the requirement so is there any user exit for this requirement pls help me in this regard
    thank tou
    raghu

    <b>USEREXIT_NUMBER_RANGE , (Module pool SAPLV60A, program RV60AFZZ)</b> is used for the internal number range used in the standard system is specified in the billing type table and can be changed in this user exit. This user exit is only called when the billing documents is created.
    The way you can do is create a z-table, and using the document type assign the number range and increment numbers when the billing document.
    Regards,
    Gauravjit.
    Reward Points if helpful

  • Alphanumeric number range

    I need to define an alphanumeric number range for document number generation. Is this possible?
    regards
    Nishant

    Hello Nishant,
    U can use SNRO todefine the number range. However u can define as follows...
    Allowed:  000001 to 999999
              AAAAAA to ZZZZZZ
    Not allowed:  AAAAAA to 999999

  • Facing problem in Number Range Allocation for Objects in OM

    Hello Friends,
    I have couple of questions in setting number range for Objects OM :
    1) Can we set one single number range for the objects in all planned versions or do we need to set different number ranges for varous planned versions?
    2) If we are already using existing Internal Number Range in $$$$ for Objects in OM, how do we set number range External Number range to use it for forthcoming object creation?
    3) If we set the External Number Range, will the system use the set num range combinedly for all object types or individually for each object type (Ex: If we have an external  num range 100~200, then while creating Org Unit the system may take 100 after that if we try to create another Org Unit the system may take 101 in seqeuence. After creating these two Org Units, if we try create an Position object will the system start allocating the number from 102 or will it again start from 100)
    4) Can we default number ranges for various Object Types Planned version wise? If YES, what feature is used to default this number range?
    Regards
    Tharak

    Hi,
    For 1). Yes you can set number ranges for all plan versions.
    2. You can devide like this.
    IN - 00000001 to 49999999 
    EX - 50000000 to 99999999  - EXT.
    3. In my view it is applicable to all Objects.
    4. Don't know.
    Reward me if helps.
    Thanks,
    vasu.

  • CC01 how can i choice a specific number range ?

    Dear
    In trx. OS53 i have defined two different internal number range object for change master  record.
    When I create a new change master how can I choice a specific number range ?
    Thanks.

    Hello,
    If my understanding is correct then its internally in the system for the type - Change master and ECR the change number
    object used is AENNR and where in you can assign a common number range group and it will be used for creating change
    numbers of both these types.It's not as like the production order type where you can link a different number ange for each
    order type.
    In the standard SAP  to set of number range (one internal numbe range and one for external will be assigned) exists.so aaume for CC01 you can make use of the internal number range,where during CC01 without any value for the field change number you can proceed.When creating through CC31 you can make use of external number range by giving the change number as the input and you save the data.
    Hope the information is useful
    Regards

Maybe you are looking for

  • Payment & Deduction Calculation

    The no loss / no gain principle is a payroll process ensuring that an employee doesn’t receive more or less pay when they are absent for sickness reasons than if they were at work. The ‘No loss / no gain’ principle applies to the following employees

  • HT5622 Do we need to make a new Apple ID for every iPhone we have?

    I seem to be getting family members conversations and also when I send a message it gets sent back to me in text message as well as go to who I sent to. Was just curious as to if we all made our own Apple ID if this would be corrected?

  • Acrobate professional and the 7.0.7 patch

    I have set up the Acrobat Professional 7.0.0 upgrade install VIA the Install Tuner. We have managed to patch the Admin install to 7.0.5. When we try to run the 7.0.7 patch against the Admin install it starts and stops right away like something is wro

  • Where is the feedback page?

    Hello everyone, I noticed that iTunes does not appear to have a feedback page like some of the other applications that Apple makes has. The "Send Feedback" only allows you to request songs but not ask for features and other minor improvements in iTun

  • Shortcut (Mac) switch to next tab

    Hi, everyone. I'm looking for the fastest way to switch codes, which is displayed top of the workspace as htmlcode, css, js. I've found some information that there is a shortcut for that, and that is Cmd-' (that's the ~ key)  (control+tab for windows