Wrong sequence of assignement of numbers to Invoice

Hi Gurus,
I have an issue with the invoice number range.
Today(13th July) I have created an invoice document and got the number as 9000001234.
and again immediately I have created another document and got the number as 9000001335.
Here the expected number is 9000001235 (the difference is 100 numbers).
I have checked what happened to 9000001235. to my surprise that was assigned to a document created yesterday(12th July).
I did not understood this peculiar behaviour of the system.
Please help me in this regard.
Thanks in advance for your help.

Hi
There are a number of reasons why gaps in invoice numbers may occur:
1. Object RV_BELEG is buffered. In this case the performace is improved
but this gaps are produced.
2. Update terminate/shortdump occures while billing document update.
- the number is set in to the invoice at the beggining of the program
If an interruption of the process happens after the assignation of
this number, the number has run in the range and cannot be recovered.
Update terminations in transaction VF01 and VF04. The billing
document number is reserved prior to the update. After a possible
update termination, it cannot be used again. Update terminations are
displayed in transaction SM13. At present, there is no possible
solution.
3. Incorrect userexit, eg.in Program RV60AFZZ, USEREXIT_NUMBER_RANGE.
Please check the following notes in order to solve this incidence:
175047 Causes for FI document number gaps (RF_BELEG)
19050 Gaps in document number sequence for billing docmt
23835 Buffering RV_BELEG / Number assignment in SD
As you might need to answer to the auditor on the gap of the invoices,
report RFBNUM00 from note 175047 will help you to display
document number gaps to the auditor if in your country the FI document
numbers must be assigned continuously. You use this report to document
the number gaps and the auditor will accept it.
We know that in different countries you have to explain document gaps
to Legal Authorities. For this reason there is report RFVBER00 to
document gaps occured due to an update termination.
As I already stated above report RFVBER00 does only list update
terminations that are not older than 50 days (or according to what time
is maintained in your system). So it could be that this log has already
been cleaned up. It is necessary that these update terminations are
documented before the 50 days expire.
Or a second possibility is that the gaps occured NOT due to an update
termination. Gaps without update terminations be (easily) explained.
They can be (only) detected via report RFBNUM00. Report RFBNUM00 or RFBNUM00N display
these document number gaps for the number range object RF_BELEG.
This is an Expert Mr. Alex explanation of Missing no. range which is already in the forum, I reproduced it for you.
Hope this will clear your doubt.
Regards
Amitesh

Similar Messages

  • Wrong business area assigned to the company code

    Hi All ,
    I am getting error " Wrong business area assigned to the company code  " while posting a document in F- 02
    please advise

    Dear Balasubramaniyan,
    You can supress the field Business area field in Field status Groups.
    For this follow the following steps
    Please check TCode OBC4 for field status variants
    > Goto G001 (General) Field status group
    >Additional Account Assignment
    > Click supress in front of business area.
    In that case, F-02 will not even ask for business area.
    Also check whether Business area FS is ticked in front of your company code in TCode OB65
    You may also refer to the following thread
    How to assign business area to company code?
    I hope this solves your query.
    Thanks & Regards
    Saurabh
    Edited by: Saurabh Khandelwal on Nov 8, 2011 1:53 PM

  • Account assignment of the incoming invoice and the purchase order

    Hi,
    I am trying to control the account assignment of an incoming invoice against the account assignment of the purchase order used. The link I found is the field ZEKKN. I think RBCO-ZEKKN tells me what account assignment of the purchase order (EKKN-ZEKKN) I am using (just as RSEG-EBELN and RSEG-EBELP help to point the item of the PO used in the invoice). This link is working pretty well in 99% of my Pos and invoices. But sometimes when I create an assignment line in the PO, this line is created with a key EBELN, EBELP, ZEKKN = ‘02’, even if any assignment was created wit an ZEKKN = ‘01’.
    In this case, when I park an invoice on this PO, the value of RBCO-ZEKKN is ‘01’ and not ‘02’ as in the table EKKN.
    It is very annoying because the control I implement blocks the posting of the invoice..
    Any idea or any new link between tables RBCO and EKKN will be very appreciable.
    Thanks in advance

    Hi, I've got the same issue if someones has a clue it would be very helpfull

  • How can I rearrange the pages in a PDF without changing the assigned paged numbers.

    How can I rearrange the pages in a PDF without changing the assigned paged numbers? These correspond to the original document folio numbers.

    In theory it would be possible to 'record and play back' the page numbers using a folder-level script, but it's far from trivial. You would have to use the doc.movePage() function - presumably driven by a dialog box - to do the page shuffling so there was a way to track what was being done, then swap the page 'labels' of the two affected pages. That's where it gets messy.
    We have functions in the JSAPI which can read and write the page label, but they don't do things in a logical way. The 'getPageLabel()' function simply returns a string, but the 'setPageLabel()' method expects to be told the numbering scheme, prefix, etc. You'd have to parse the string and work out what scheme it was implementing.

  • Wrong sequence of Packages in the tp buffer

    Hi,
    We are upgrading our solution manager 7.0 system to EHP1. We have
    already upgraded kernel to 701 and java patches to EHP1. Then all addon
    patches have been copied into the EPS/in . Then add-on upgrade
    operation have been started from SAINT transaction. But we have an
    error in DDIC_IMPORT phase like below:
    Import phase 'DDIC_IMPORT' (04.01.2011, 20:46:30)
    Wrong sequence of Packages in the tp buffer (e.g. SAPK-50001INCRMUIF)
    Abort the import due to an error situation (04.01.2011, 20:46:33)
    How can we solve and continue to Solution manager upgrade operation?
    Best regards,

    Hi,
    I solved problem. But now I have another problem in phase DDIC_ACTIVATION. Error information is like below:
    Error during executing the tp command 'tp ACT ALL TRS ...'
    tp return code: '0012' , tp message: 'A tool used by tp aborted' , tp output:
      initial value of NLS_LANG: 'AMERICAN_AMERICA.UTF8'
      This is tp version 372.04.88 (release 701, unicode enabled)
      Warning: Parameter DBLIBPATH is no longer used.
      standard output from tp and from tools called by tp:
    Details of the error situation can also be found in the import logs
    Abort the import due to an error situation (05.01.2011, 22:55:34)
    How can I solve it?
    Best regards,

  • Assigning sequential numbers for every lines within a group of records

    The scenario is:
    This set of records with group number, lets say 100(group number) contains 7 lines/records. How to assign line numbers (sequential) for each line within these groups on the fly during the mapping process before inserting these set of rows in the target. I know it is easy to achieve in a procedure, but not sure how to do this in the mapping.
    please advice.
    Thanks,
    Prabha

    Use Rank function
    SQL> select empno,ename,deptno,(rank() over (partition by deptno order by empno)) seqno from emp;
    EMPNO ENAME DEPTNO SEQNO
    7782 CLARK 10 1
    7839 KING 10 2
    7934 MILLER 10 3
    7369 SMITH1 20 1
    7566 JONES 20 2
    7788 SCOTT 20 3
    7876 ADAMS 20 4
    7902 FORD 20 5
    7499 ALLEN 30 1
    7521 WARD 30 2
    7654 MARTIN 30 3
    7698 BLAKE 30 4
    7844 TURNER 30 5
    7900 JAMES 30 6
    1111 Test 40 1
    1222 test 1
    1333 2
    17 rows selected

  • ALE Change pointer idocs generated in wrong sequence

    We are using the serialization group to generate the MATMAS and CLFMAS idocs with the sequence MATMAS generated first and then CLFMAS.
    Normally,this seems to work fine with the idocs generated in the right sequence.
    However, during a period of every 24hours, I could see a couple of MATMAS and CLFMAS idocs being generated in the WRONG sequence with CLFMAS generated first and not MATMAS as maintained in the serialization group.
    What could be the reason?
    I checked in the BDCP and BDCPV tables, the timestamps for the wrong sequence idocs seem to be correct with MATMAS before CLFMAS. However the actual idoc creation time is not in correct sequence.

    Hi,
    Can you check your serialization group via tcode BD44 and check the sequence number for MATMAS and CLFMAS?
    Hope this will help.
    Regards,
    Ferry Lianto

  • Wrong sequence of printout's.

    Hi!
    When I print on an SAP printer, the output requests are issued in the wrong sequence, even though the SAP output device in SPAD is defined with the "sequential processing" attribute. This situation appear when I have got more than 400 spool requests. When I put more requests some printout are missing and the sequence is wrong.
    I checked the SAP notes especially Note 412065 - Incorrect output sequence of output requests.
    I check the parameter rspo/global_shm/job_list and It is 1000. That mean I can put on spool queue 1000 requests before it will be full. I put less becouse 400. What is wrong and how can I fix it.
    THX for answer.

    hi,
    the bug u r telling is a functional issue and some thing related to printer configurations. this has nothing to do with our coding .
    correct me if i am wrong.

  • Not assigned Serial Numbers

    Hello,
    How do I find out which serial numbers have not been assigned to any material?
    My company is planning to assign serial numbers while issuing goods to production.
    Sincerely,
    Ketan

    Hi,
    I want to see serial numbers which have been created (through tcode IQ01 or IQ04) but have yet not been assigned to the materials.
    In my company we have to assign serial numbers to materials when receiving goods into stock from vendors and issuing materials to production.
    Sincerely,
    Ketan

  • Assign carton numbers for deliver

    Hi,
    here i have two tables itab_vbfa_hu which will contain all the delivery orders and their handling units. 'X' denotes handling units.
    Itab_vekp will have handling units and  weight.
    I am trying to assign carton number basing on handling units.
    I am using loop in loop to achieve this.
    when the program pick single delivery order it is working fine.. problem i swhen i pick multiple delivery orders.. i need to differentiate the delivery orders and assign the carton number to that particular delivery orders.. same manner it should apply for all delivery orders..
    hope i am clear with my doubt..
      LOOP AT itab_vbfa_hu INTO str_wvbfa_hu
                            WHERE vbtyp_n = 'X'.
        CLEAR l_carton.
        LOOP AT itab_vekp INTO strt_wvekp
                         WHERE vbelv EQ str_wvbfa_hu-vbelv.
          l_sy_tabix = sy-tabix.
           IF str_wvbfa_hu-vbeln EQ str_wvekp-venum.
             l_carton = l_carton + 1.
             str_wvekp-carton = l_carton.
             MODIFY itab_vekp FROM str_wvekp INDEX l_sy_tabix.
           ENDIF.
      ENDLOOP.
    ENDLOOP.

    Hi
    Achieved the solution with
    LOOP AT itab_vekp INTO str_wvekp
    l_sy_tabix = sy-tabix.
    l_carton = l_carton + 1.
    str_wvekp-carton = l_carton.
    MODIFY itab_vekp FROM str_wvekp INDEX l_sy_tabix.
    AT END OF vbelv
    Clear l_carton.
    endat.
    endloop.
    this way i got the desired result of assigning carton numbers basing on handling units. with innner join statementi have got vbelv field in itab_vekp.

  • (HR) - BADI to assign personal numbers in a range depending on ?

    Is there any BADI to assign personal numbers in a range depending on the type or measurement in infotype 0?
    Thank you.

    I apologize but my scholar English don't allow me to be more clear than iWork Formulas and Functions User Guide.
    What aren't you understanding ?
    Yvan KOENIG (VALLAURIS, France) samedi 11 juin 2011 12:32:55
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.7
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Function modules invoked in wrong sequence  bapi_po_create

    trying to use bapi_po_create in se37
    enter purch org     vendor   doc type    purch group 
    when test get the following
    function modules invoked in wrong sequence
    what does that mean?
    how an i create

    Not sure, but  I do think you need more information than that.  Here is an example program calling the BAPI.
    report zrich_0001.
    constants : c_x value 'X'.
    data: del_date type sy-datum.
    data: pohead  type bapimepoheader.
    data: poheadx type bapimepoheaderx.
    data: exp_head type bapimepoheader.
    data: return  type table of bapiret2 with header line.
    data: poitem  type table of bapimepoitem with header line.
    data: poitemx type table of bapimepoitemx with header line.
    data: posched  type table of bapimeposchedule with header line.
    data: poschedx type table of bapimeposchedulx with header line.
    data: ex_po_number type bapimepoheader-po_number.
    parameters: p_matnr type ekpo-matnr.
    parameters: p_werks type ekpo-werks.
    parameters: p_lgort type ekpo-lgort.
    parameters: p_menge type ekpo-menge.
    parameters: p_lifnr type ekko-lifnr.
    parameters: p_ekorg type ekko-ekorg.
    parameters: p_ekgrp type ekko-ekgrp.
    parameters: p_bukrs type ekko-bukrs.
    * Header Level Data
    pohead-comp_code = p_bukrs.
    pohead-doc_type   = 'NB'     .
    pohead-creat_date = sy-datum   .
    pohead-vendor = p_lifnr.
    pohead-purch_org = p_ekorg.
    pohead-pur_group = p_ekgrp.
    pohead-langu      = sy-langu   .
    pohead-doc_date   = sy-datum.
    poheadx-comp_code  = c_x.
    poheadx-doc_type   = c_x.
    poheadx-creat_date = c_x.
    poheadx-vendor     = c_x.
    poheadx-langu      = c_x.
    poheadx-purch_org  = c_x.
    poheadx-pur_group  = c_x.
    poheadx-doc_date   = c_x.
    * Item Level Data
    poitem-po_item  = 1.
    poitem-material = p_matnr.
    poitem-plant    = p_werks.
    poitem-stge_loc = p_lgort.
    poitem-quantity = p_menge.
    append poitem.
    poitemx-po_item    = 1.
    poitemx-po_itemx   = c_x.
    poitemx-material   = c_x.
    poitemx-plant      = c_x .
    poitemx-stge_loc   = c_x .
    poitemx-quantity   = c_x .
    poitemx-tax_code   = c_x .
    poitemx-item_cat   = c_x .
    poitemx-acctasscat = c_x .
    append poitemx.
    * Schedule Line Level Data
    posched-po_item        = 1.
    posched-sched_line     = 1.
    posched-del_datcat_ext = 'D'.
    del_date = sy-datum + 1.
    write del_date to posched-delivery_date.
    posched-deliv_time     = '000001'.
    posched-quantity       = p_menge.
    append posched.
    poschedx-po_item        = 1.
    poschedx-sched_line     = 1.
    poschedx-po_itemx       = c_x.
    poschedx-sched_linex    = c_x.
    poschedx-del_datcat_ext = c_x.
    poschedx-delivery_date  = c_x.
    poschedx-quantity       = c_x.
    append poschedx.
    call function 'BAPI_PO_CREATE1'
         exporting
              poheader         = pohead
              poheaderx        = poheadx
              testrun          = ' '
         importing
              exppurchaseorder = ex_po_number
              expheader        = exp_head
         tables
              return           = return
              poitem           = poitem
              poitemx          = poitemx
              poschedule       = posched
              poschedulex      = poschedx.
    call function 'BAPI_TRANSACTION_COMMIT'
         exporting
              wait = 'X'.
    if not ex_po_number is initial.
      call function 'DEQUEUE_ALL'.
    else.
      call function 'DEQUEUE_ALL'.
    *  message i036.
    endif.
    Regards,
    RIch Heilman

  • Assigning sequential numbers to multiple rows with a common attribute

    Oracle 10i, looking to modify a query to only select a total of 96 unique compoundnames and number each group of batchids 1-96.
    Input
    Table EX
    Unique_ID, CompoundName, BatchID, Quantity
    1, EX 1000, EX 1000 100, 100
    2, EX 1000, EX 1000 101, 100
    3, EX 1000, EX 1000 102, 100
    4, EX 1001, EX 1001 100, 100
    5, EX 1001, EX 1001 101, 100
    6, EX 1001, EX 1001 102, 100
    7, EX 1001, EX 1001 103, 100
    8, EX 1001, EX 1001 104, 100
    9, EX 1001, EX 1001 105, 100
    10, EX 1002, EX 1002 100, 100
    11, EX 1002, EX 1002 101, 100
    12, EX 1002, EX 1002 102, 100
    100+, EX 1095, EX 1095 100, 100
    Using
    select distinct * from
    Select Unique_id, CompoundName, batchid, quantity, SUM(QUANTITY) over (partition by CompoundName) sumqty
    FROM EX
    where sumqty < 500
    Order by 2,3;
    Gives the data batched together by compoundnames and the total quantity of all the data sharing the same compound name (and only results whose total quantity is < 500).
    I'm looking for a way to only grab 96 unique compoundnames (not total rows of data) at a time and numbering them to look like this desired output;
    Unique_ID, CompoundName, BatchID, Quantity, SUM(Quantity), ???
    1, EX 1000, EX 1000 100, 100, 300, 1
    2, EX 1000, EX 1000 101, 100, 300, 1
    3, EX 1000, EX 1000 102, 100, 300, 1
    10, EX 1002, EX 1002 100, 100, 300, 2
    11, EX 1002, EX 1002 101, 100, 300, 2
    12, EX 1002, EX 1002 102, 100, 300, 2
    100+, EX 1095, EX 1095 100, 100, 100, 96
    Thanks in advance.
    Edited by: user13112928 on Jun 26, 2010 11:49 AM
    Edited by: user13112928 on Jun 26, 2010 11:50 AM
    Edited by: user13112928 on Jun 26, 2010 12:01 PM

    Hi,
    If you want the numbers to be assigned only to the groups that remain after the groups where sumqty >= 500 or more have been excluded, then you have to assign the numbers after the groups where sumqty >= 500 or more have been excluded. All analytic funtions in the same sub-query are computed at the same time, so if you want to use analytic functions only, you have to do something like this:
    SELECT DISTINCT
    FROM     (
              SELECT      s.*
              ,     DENSE_RANK () OVER (ORDER BY compoundname)     AS rnk
              FROM     (
                        SELECT     Unique_id
                        ,      CompoundName
                        ,      batchid
                        ,      quantity
                        ,      SUM (quantity) OVER (PARTITION BY CompoundName)     AS sumqty
                        FROM     ex
                   )     s
              WHERE     sum_qty     < 500
    WHERE       rnk     <= 96
    ORDER BY  batchid
    ,       quantity
    ;Since analytic funtions are evaluated after the GROUP BY and HAVING clauses, you could also do it this way, with only one sub-query:
    WITH     got_rnk          AS
         SELECT       CompoundName
         ,       SUM (quantity)               AS sumqty
         ,       ROW_NUMBER () OVER (ORDER BY  CompoundName)     AS rnk
         FROM       ex
         GROUP BY  CompoundName
         HAVING       SUM (quantity)     < 500
    SELECT DISTINCT
           e.unique_id
    ,       e.CompoundName
    ,       e.batchid
    ,       e.quantity
    ,       r.sumqty
    ,       r.rnk
    FROM       ex          e
    ,       got_r_num     r     ON     e.CompoundName     = r.CompoundName
    WHERE       r.rnk     <= 96
    ORDER BY  e.batchid
    ,       e.quantity
    ;I'm not sure the latter will be any faster, since it needs to make two passes through ex.

  • User-exit for delivery while assigning serial numbers(urgent)

    hi all,
    can u plz tell me the specific user exit for delivery (VL01n) while assigning serial numbers?
      i am getting the serial numbers for material in database table OBJK .i am also getting these serial no.s in IQ01.
       while doing delivery,i am going for extra-->serial number.at this time one screen for serial number is comming.those serial numbers which are stored in objk will transfer to this screen of delivery automatically.
      for this , i want a specific user-exit for delivery so that i can transfer the serial nos from objk to that screen of delivery.plz suggest .(urgent )
    any idea is highly appreaciated
    Regards
    pabitra

    You can find from below list of user exists
    V02V0001            Sales area determination for stock transport order          
    V02V0002            User exit for storage location determination                
    V02V0003            User exit for gate + matl staging area determination (headr)
    V02V0004            User Exit for Staging Area Determination (Item)             
    V50PSTAT            Delivery: Item Status Calculation                           
    V50Q0001            Delivery Monitor: User Exits for Filling Display Fields     
    V50R0001            Collective processing for delivery creation                 
    V50R0002            Collective processing for delivery creation                 
    V50R0004            Calculation of Stock for POs for Shipping Due Date List     
    V50S0001            User Exits for Delivery Processing                          
    V53C0001            Rough workload calculation in time per item                 
    V53C0002            W&S: RWE enhancement - shipping material type/time slot     
    V53W0001            User exits for creating picking waves                       
    VMDE0001            Shipping Interface: Error Handling - Inbound IDoc           
    VMDE0002            Shipping Interface: Message PICKSD (Picking, Outbound)      
    VMDE0003            Shipping Interface: Message SDPICK (Picking, Inbound)       
    VMDE0004            Shipping Interface: Message SDPACK (Packing, Inbound)

  • Why Transaction Date Line Earlier Created than Creation Date and Make Wrong Sequence?

    Hi Guys,
    In material transaction record, we have two different item and transaction : First is Move Order Issue and then WIP Completion.
    Both of them have same problem. The problem is in the transaction_date and creation_date. If we see the transaction_date is earlier created than creation_date
    The query data from material transaction order by descending :
    SEGMENT1
    TRANSACTION_QUANTITY
    TRANSACTION_TYPE_NAME
    TRANSACTION_DATE
    CREATION_DATE
    PCG-001-0047
    150
    PO Receipt
    6/10/2014 16:54
    6/10/2014 16:57
    PCG-001-0047
    -30
    Move Order Issue
    6/10/2014 16:26
    6/10/2014 17:00
    SEGMENT1
    TRANSACTION_QUANTITY
    TRANSACTION_TYPE_NAME
    TRANSACTION_DATE
    CREATION_DATE
    BM-200-1
    774.48
    WIP Completion
    27-FEB-2014 23:07:47
    27-FEB-2014 23:08:38
    BM-200-1
    -165.77
    WIP Issue
    27-FEB-2014 23:01:58
    27-FEB-2014 23:09:21
    BM-200-1
    -213.21
    WIP Issue
    27-FEB-2014 14:11:44
    27-FEB-2014 14:12:50
    BM-200-1
    -770.04
    WIP Issue
    27-FEB-2014 06:01:50
    27-FEB-2014 06:06:46
    BM-200-1
    -332.19
    WIP Issue
    27-FEB-2014 05:51:11
    27-FEB-2014 05:51:37
    BM-200-1
    990.86
    WIP Completion
    27-FEB-2014 01:16:54
    27-FEB-2014 01:17:44
    This problem have made each transaction in wrong sequence. The PO Receipt must be created before Move Order Issue and The WIP Completion must be created before WIP Issue.
    And also this wrong place record take effect to costing.
    How can be happened? And any solution to solve and prevent this problem?
    Thank for your attention. Please Reply.
    Regards,
    Contrasena Luz

    HI luz..
    In your case number 1, its look like hapened due to date in form transact move order not automaticaly update.
    but i dont know. why transaction date in form transact move order not automaticaly update if we dont open close that form.
    anyone explain this?
    maybe little tips, you must inform your user to be close that form after he / she doing allocate / transact move order.
    or you can personalize that form.
    hope this help.
    regards,
    the pooh

Maybe you are looking for

  • How to find the capacity of admin server in weblogic server?

    1. how to calculate the capacity of admin server in weblogic 8.1 a admin server can handle how many requests at a time. 2. if 50 threads are given to admin server then with this 50 threads how many messages/requests the admin server can handle??? ple

  • ACH in Payment Medium Workbench

    Hi Experts, I could print checks more than once in F110/FBPM in the same way can I generate the ACH Payment media files more than once in PMW either from printout in F110 or FBPM? Thanks Srini

  • Location Services

    When I first got my iPad I kept getting the error message "Could Not Determine Your Location" when trying to get it to find my position with the Maps app. I had not activated an AT&T data account yet and was using WIFI. My iPhone, using WIFI only, wo

  • Saplicense -install not working

    Hello, I have restored PRD backup on DEV server but now not able to login due to license error. Its ECC 6.0 inst on AIX with Oracle Database. Error is --- isrdserver:devadm 51> saplicense -install ifile=/sapmnt/DEV/license ERROR: data in file /sapmnt

  • Macbook Pro mouse freezing

    hi everyone, since thursday, my computer has had these odd moments where the mouse'll just freeze. the only thing that seems to work is a hard reset. when i do the hard reset, the fan is pretty loud. why is this happening and how can i prevent it fro