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

Similar Messages

  • External number range for Billing Document

    Hi Gurus,
    Can you please let me know how to get the external number for the invoices? I know there is no standard way but if there is a way around to determine it. And the external number should be first 2 places are alphanumeric and dynamic and the next 2 places are also alphanumeric but constant and the rest of the digits should be a serial number of length 7. So, the total length of the number range should be 11. Please let me know if there is way to determine it this way.
    Example:
    AB + HY + 1000001
    CD + HY + 1000002
    Like wise.....
    Thanks in advance.
    Regards,
    Gangi

    hello, friend.
    you can define your number ranges using VN01.  in here, you can set up alpha numeric ranges and specify external.
    technically, you can assign this set to the billing type using VOFA. 
    however, it is not best practice to assign external number ranges to billing types, as it is possible to 'jump' the sequence of the numbering.  you do want to keep track of the sequence of billing docs.
    a possible exception is if you have an external billing software which generates a number, which you will then capture in SAP.  barring exceptions, it is best to retain internal assignment.
    regards.

  • External Number Range for Billing Documents

    Hi Friends,
    Can any pls tell me how to create external number ranges for billing documents. We are trying to Map the Invoice nos from POS system to create and match the billing nos in both the systems. Pls help on how can I do this.
    Thanks
    Raj

    Check this thread
    [Re: Customize Billing Number Format|Re: Customize Billing Number Format]
    thanks
    G. Lakshmipathi

  • External Number Range for Billing documents in CRM

    In CRM, billing document external number range can only be numeric or alpha, but NOT alphanumeric. Is this a bug or is there some legitimate reason to have this limitation.
    This question stems from a data conversion where the legacy system invoice numbers are alphanumeric. So when we try to convert those invoice numbers, CRM cannot handle the external alphanumeric number.

    Check this thread
    [Re: Customize Billing Number Format|Re: Customize Billing Number Format]
    thanks
    G. Lakshmipathi

  • External number range for billing document (Invoices)

    Hi guys,
    I have a requirement from one of client to implement external number range for billing documents.
    I can only see a provision for internal number range in customising for Billing document type.
    Please can you assist me with detailson how to set up external number range for billing documents (Invoices).
    Thanks, Felix

    Hi Felix
    I think the similar requirement is in Venezuela also.
    So pl. check the SAP Note 849438 . As per the note :-
    The solution is delivered in the indicated support packages. In case you can not implement the correspondin support package for your release immediately, please follow the procedure described below:
    1. In the Data Dictionary Editor (transaction SE11) please open the definition of domain J_1AOFFNREL, go to the fixed values and add value 'P' with description 'Number Assingment using Prenumbered Forms' in a position so that the possible values remain sorted alphabetically.
    2. In the Message Editor (transaction SE91) please go to message class ICC_CN and add the new message 837 with text '&1: Official doc. numbering is not available for delivery documents!'.
    3. If you are implementing the note in release 4.6C, please create the following function modules:
    o     OFF_NUMBER_LOCAL_ASSIGN_VE in function group FIN2, and then copy the interface (all parameters and exceptions) of the function module OFF_NUMBER_LOCAL_ASSIGN_TW
    o     OFF_NUMBER_LOCAL_NUMBERING_VE in function group FIN2, and then copy the interface (all parameters and exceptions) of the function module OFF_NUMBER_LOCAL_NUMBERING_TW
    o     XBLNR_BUILD_AND_SPLIT_VE in function group IDSDCNUTIL, and then copy the interface (all parameters and exceptions) of the function module XBLNR_BUILD_AND_SPLIT_PECL
    4. Implement the source code corrections as shown below.
    The following customizing actions should be also executed when the solution by delivered by the corresponding support package. If you applied the solution manually, then please use the IMG activities listed in the section Cross-Application Components -> General Application Functions -> Cross-Application Document Numbering -> Taiwan as a reference. After the installation of the corresponding support package the customizing node for Venezuela can be used.
    1. Enable the use of business place for country Venezuela as described in the OSS Note 726537.
    2. Define the necessary document classes and configure the document types you would like to get an official document number as relevant for official document numbering in the desired mode. Please check the OSS Note 571376 for some explanations about the meaning of the different settings.
    3. Define the necessary number ranges and intervals and assign them to the combination of company code, business place, document class and validity period. If you use the customizing activity for Taiwan, then please leave the prefix field empty.
    Regards
    Amitesh

  • Sd invoices posting with External number range

    Hi,
    i am a fico consultant and dont know the proceedure that how to post SD invoice thorugh Sales orders with external number  range?
    while posting it is giving error like use internal number range.how to over come this.help me
    Thanks
    Prathima

    Good Afternoon Prathima.
    Use tcode OBA7
    Look for Doc type RV Billing Doc trn.
    This doc is generally used for posting Billing doc to accounting.
    Here you would find Number range as external.
    Reason: As per standard, the Accounting doc number is similar to your the Billing account.So, that there would not be any difference in numbers of both, therefore for accounting doc - Billing doc trnsfer (RV) the number range is Internal number but the Billing doc type will havre internal number range.
    And as you are FI consultant, I don't feel I need to explain why or purpose these numbers should be similar from accounting point of view.
    Hope it solved your query. Kindly reward.
    Take care. JP.

  • EXTERNAL NUMBER RANGE FOR INVOICES

    Dear Gurus,
    Plz tell me how do we put external number range for billing documents.
    this option is not there in VOFA.

    Hi Anil,
    Hi,
    Number Ranges are maintained in T.Code: SM30.
    Provide the Table/ View, say Bill_Num for example.
    In Tab: Restrict data Range, Click Radio button: No restrictions and Click Tab: Maintain.
    In new window, maintain all the combinations for Columns: Sales Org, dist. Channel & Bill type and no values in IntNR.
    Save the data.
    I hope this will work.
    Regards,
    Amit

  • EBP Invoice Use External Number Range is Possible?

    Hi Experts,
    I try to send SUS Invoice to EBP, but I found it seems impossible to create EBP Invoice with external number range. I have set external number range and assign to Invoice Transaction Type in SPRO. But it seems doesn't work.
    Is EBP invoice use external number range possible? Many thanks

    Hello Sudhir,
    This topic has been discussed many times at SDN forum, please search at SDN forum before you post your question !!
    Anyway i have included the below links for your easy referrence.
    [External number range for billing document (Invoices)|Re: External number range for billing document (Invoices)]
    [Billing document number range   |Re: Billing document number range]
    Regards,
    Sarthak

  • How to assign numbers in external number range?

    Dear experts,
    Since NUMBER_GET_NEXT can only be used to assign numbers in internal number range, how to assign numbers in external number range?
    So far, I only know the NUMBER_CHECK function module to deal with external number ranges and it only check a number whether it lies in any external number range or not, but it doesn't update any number range status. What I need is a function module like NUMBER_GET_NEXT that supports external number range.
    Thanks in advance.
    Regards,
    Haris
    Edited by: harissahlan on Oct 19, 2011 5:44 AM

    With external number range, there is no updating of the number range objectt. The only thing you need to know is whether the number you wish to assign is allowed according to the external number range. And also check if there isn't already an object/document with the same number in the database.

  • Creation of HU in auto mode with external number range

    Dear Experts,
             I'm stucking in a scenario related to HUM
    There are two handling units -
    1. Bag
    2. Pallet
    through T code HU02 , it's possible to create an HU and assign it internal generated number.
    But as per our requirement , we want to assign the external number to the HU (which is barcode number of bag or pallet)
    Can you pls let me know the process of assigning External number range to HU.
    Also we want to create the HU automatically after GR in production (MIGO,101) , instead of manually via HU02.
    Pls explin the process of creation of HU automatically also...
    Thanks in advance..

    Check with FM BAPI_HU_PACK.For packing an item into HU.
    For external number range you need configure external number range
    SPRO>Logistics - General>Handling Unit Management>Basics>Technical Basics-->Define Number Ranges for Handling Units.
    After GR  for production you need to confighre internal number range for perticular packing material type then system will automatically pack and place in HU location.
    Please find some FM info
    =========================
    HU_BASIC_BAPIS                 Basic BAPIs for HUs                     
    BAPI_HU_CHANGE_HEADER          Change Handling Unit Header Data        
    BAPI_HU_CREATE                 Create Handling Unit with Items         
    BAPI_HU_DELETE                 BAPI for Deleting Handling Units        
    BAPI_HU_DISPLAY_HISTORY        Displays HU History                     
    BAPI_HU_GETLIST                Read Handling Units from the Database   
    BAPI_HU_GET_LIST_MSG           Select Handling Unit Output             
    BAPI_HU_PACK                   BAPI for Packing an Item into an HU     
    BAPI_HU_PROCESS_MSG            HU Output Processing                    
    BAPI_HU_PROCESS_MSG_DIRECT     Select and Process Handling-Unit Outputs
    BAPI_HU_REPACK                 Repack HUs and HU Items                 
    BAPI_HU_UNPACK                 BAPI for Unpacking an Item from an HU   
    BOR_HU_DISPLAY                 Display an HU in Dialog Mode            
    ===================================

  • HOW TO CREATE EXTERNAL NUMBER RANGE IN OM

    HI ALL
    HOW TO CREATE EXTERNAL NUMBER RANGE IN OM
    PLEASE GIVE ME SPOON FEEDING
    IT IS VERY URGENT FOR ME
    PLEASE PLEASE AND PLEASE
    REGARDS

    ok i understood u want the img path for maintaing
    positions ,jobs , Org units
    Path:IMG->Personnel Mgmt->OM->Basic Setting->Maintain Number ranges.
    IMG go to Personnel Management -> Organizational Management -> Basic Settings
    -> Maintain Number Ranges.
    Select subgroup $$O to maintain number range for Org Unit and click on Number range Maintenance. Then click on change Intervals. Now you can create both internal and external number range for Org Unit according to your requirement.
    Similarly for Position select subgroup $$S and follow the same process.
    Edited by: Sikindar on Feb 7, 2008 11:23 AM
    Edited by: Sikindar on Feb 7, 2008 11:28 AM

  • External number range for purchase order response?

    Hi all,
    is it possible to use an external number range when creating purchase order responses (BUS2209, PCO, POR) manually?
    If I transfer the POR from an external system like SUS via XML, can I use an external number range?
    I'm using SRM 4.0 (EBP 5.0) in standalone scenario with Business Connector 4.7 as XML interface.
    Any help is appreciated,
    Karsten

    Hi
    No need to maintian Internal number range.. Yes you need to use an external number range
    Only the PO, RQ & RS are sync and therefore must correspond with the R/3 number ranges.
    The rest, Shop Cart (SC), Local PO (EBP), Confirmation, Invoice, Bid Inv and Bid, aren't synced and can be assigned to any number range. (FYI- using ECS)
    Re: Extended Classic - Purchase Order Number Ranges
    http://help.sap.com/saphelp_srm50/helpdata/en/87/7cc73cee4fb55be10000000a114084/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/6d/0f343e47fd6b2ee10000000a114084/frameset.htm
    Re: Number range config
    Re: config for Number Ranges ? :-(
    Re: PO Creation with external PO number
    Purchase Order Response BUS2232
    PO number range Issue
    Re: Defining the number range
    Regards
    - Atul

  • Root org. unit with External number range

    Hi all,
    I have a unique requirement.
    We need to create a root org. unit. I used PP0CE to do the same. But it would generate org. unit numbers internally i.e. system generated.
    We would like to assign an external number range to the root org. unit created.
    In case I try to create it using PP01, we have to provide a relationship to other org. unit while creating root org. unit in PP01.
    It would be great if someone can tell me the solution for this issue.
    Regards,
    Bharat

    Hi Bharat,
    You can maintain number range even for org units, as follows:
    Here
    01 - plan version
    A, C, O, P etc are object types
    after selecting the respective ie 01O IN Ex ,
    now click on maintain number range where you can clearly specify the number range either internal or external.
    Then u can start with TC PPOCE
    Thanks
    Sai

  • Measuring point External Number range

    Dear Masters,
    I am trying to create the external number range for one of my measuring point type. Is it not possible to do so? If no why? If yes how?
    Thanks to all in advance.

    Hello Vaibhav,
    I have already followed the steps given by you only I cannot find the assignment of measuring point category to the number range. I have also done the number range assignment for equipment and functional location but there it exists here it does not.
    It is also showing me the error of external number while creating the new measuring point. Please do guide about the assignment to the number range.
    Thanks again.

  • How to change internal number range into external number range

    Hi All,
    There is a number range in the system which was assigned internally by mistake earlier. Now, I want to change the internally assigned number range to external number range.
    Can anyone please let me know, the procedure to change used number range from internal number range to external number range and from external number range to internal number range.
    Quick reply will be appreciated & points will be assigned.
    Thanks & Regards,

    hi Mehak,
    you can try to simply change the range from ext to int (and vica versa). If that does not wrok, than you can delete the range and recreate it with proper settings. But you have to take into account that if you have a range as external from 1 to 10 and for example numbers 2 and 5 are taken already than you recreate the range 1..10 as internal, than you could have some problems. Probably best is in this case to recreate with other interval.
    hope this helps
    ec

Maybe you are looking for