Inconsistency in document number

Dear Experts,
When i created a MIRO document on 27.12.07 it created the document no-56127000 and MIRO document created on 28.12.07 created the document no-56126000.
How this inconsistence happens in number ranges.
Require ur help.

HI AK PAT
There is something called Buffering and Non - Buffering in Number ranges. When you select Buffering the Number Ranges will be in Order i.e the number will be One after another. Normally we select this buffering for Excise Document No Ranges since it will be a statutory requirement that the numbers should be one after another. If you select buffering then the system response time will be very slow.
Now we will come to Non Buffering No Ranges. When you select Non- Buffering the system will select 10 Numbers from the Given No Ranges for the Particular User ID say 1 - 10 and another 10Numbers for another User ID say 11 - 20. So when the first user posts  say 5 documents then from  6 - 10 will not be used and when the second user posts 3 documents then  14- 20 will be unused. So when some other user logs in then the available documents Numbers will be assigned to that user ID. This is how it works.
So this is the reason for the Difference in Document numbers. If it was helpful, plz assign points.
Regards
Rajaram

Similar Messages

  • Resetting of FI document number during the same year

    Hi,
    Our permit for a computerized books of accounts using SAP has been issued by our Tax agency effective March 01, 2009.  Relative to this, we need to reset FI document number effective March 01, 2009.
    Our problem is we already used up document number from January 01, 2009-up to present.  Is resetting possible for the same year?
    Thanks for the help.

    Hi,
    SAP is not suggested these kind of activities, since it causes a inconsistancy in the database.
    A document in the database will identified with a unique document number, company code, and fiscal year. This is the basic logic.
    Eventhough there is a way to sort out this issue.
    For Ex: We will discuss about document number range interval 02, which is assigned to document type SA.(I think your fiscal year starts from 01.01.2009)
    in FBN1 transcation code, you will find the below intervals for the above said object.
    Obj    Year        From No.                 To number        Current Number  
    01     2007        1000000000     to     1999999999       1000007890
    01     2008        1000000000     to     1999999999       1000005463
    01     2009        1000000000     to     1999999999       1000004821
    Here you have to change the current number for the all the above intervals to 0, and then delete all the above intervals.
    Change current number---menu->interval->change numbermake 0 for the 02 object and save it and come back--again go to fbn1 and delete the objects
    Again create a number range interval for the same object with different series, as shown below
    Click on Add interval, and enter the following
    01     2009      7000000000      to      7999999999           (Any Different Series of numbers)
    save it and try to post the documents with document type SA.
    Prerequisites for the above solution:
    1) You need to complete all the transactions pertaining till the end of FEB with the old number series.
    2) Close the posting Periods for the company code upto FEB
    3) For all the number range objects use a new number series, which should not been used before for any other number range object.
    I think this will helps you a lot.
    Thanks,
    Srinu

  • Originating document number not updated for one invoice line item

    Hi,
    We have a invoice document number in which the originating document number is not updated for one of the line items ,this is order related down payment invoice .May be this is due to system inconsistency so is there any SAP note to overcome this problem.
    Best Regards,
    Rohit

    Dear All,
             I found out the problem for not updated in F-04. "While create the receipt document in GL master Open item management maintained box was not checked". It can be found in BSIS table - OI Management'.
             Is there any other way to clear this document.
    Thanks...

  • BAPI_ACC_DOCUMENT_POST & generated document number

    Hi,
    I am using BAPI function BAPI_ACC_DOCUMENT_POST to post financial documents in the system. My question is, how properly retrieve generated document number (BKPF-BELNR). We are using internal document number generation so the function generates document number. But, function itself, does not return generated document number. Currently, after commit I try to locate a record of generated document using reference key ... Isn't there any better way how to get generated document number?
    Tkank you.

    Yes, I found this code ... as I wrote, there is not problem if I set curtp = '10'. BUT, there is another problem, with different currencies. Then, when I try to post document in different currency that the currency of company code is, function raises error "Inconsistent currency information" ...
    here is an example, how I fill tax information, as requested:
    DATA:   docHeader     TYPE BAPIACHE09,
            accGL         LIKE BAPIACGL09 OCCURS 0 WITH HEADER LINE,
            accReceivable LIKE BAPIACAR09 OCCURS 0 WITH HEADER LINE,
            accAmnt       LIKE BAPIACCR09 OCCURS 0 WITH HEADER LINE,
            accTax        LIKE BAPIACTX09 OCCURS 0 WITH HEADER LINE,
            extension     LIKE BAPIACEXTC OCCURS 0 WITH HEADER LINE,
            tax_account   TYPE STRING,
            tax_code      TYPE STRING,
            tax_trans     TYPE STRING,
            tax_spec      LIKE ZIFPRMS-VALUE,
            itemno        TYPE N LENGTH 10.
    * initialize document header
      docHeader-bus_act    = 'RFBU'.
      docHeader-username   = sy-uname.
      docHeader-header_txt = fin_data-text.
      docHeader-comp_code  = header-company_code.
      docHeader-doc_date   = header-document_date.
      docHeader-pstng_date = fin_data-posting_date.
      docHeader-ref_doc_no = header-id_sale.
      docHeader-doc_type = params-doc_type.
    * process document items, in loop
      LOOP AT fin_items INTO fin_item.
    * initialize AR (line 1)
         accReceivable-itemno_acc = itemno.
         accReceivable-customer   = cus_data-id_contact.
         accReceivable-comp_code = header-company_code.
         CONCATENATE fin_item-text ' (receivable)' INTO accReceivable-item_text.
         accReceivable-pmnttrms = params-payment_term.
         accReceivable-pmnt_block = params-payment_block.
         IF doc_type = 'APR'.
            accReceivable-sp_gl_ind = 'F'.
         ENDIF.
         APPEND accReceivable.
    * initialize receivable amount
         accAmnt-itemno_acc = itemno.
         accAmnt-currency = fin_data-currency.
         accAmnt-curr_type = '10'.
         accAmnt-amt_doccur = fin_item-vat_base + fin_item-vat.
         IF doc_type(2) = 'CR'.
            accAmnt-amt_doccur = accAmnt-amt_doccur * ( -1 ).
         ENDIF.
         APPEND accAmnt.
         itemno = itemno + 1.
    * do not continue when posting a down payment request
         CHECK doc_type < > 'APR'.
    * initialize GL account line item
         accGL-itemno_acc = itemno.
         accGL-gl_account = params-doc_gl_account.
         CONCATENATE fin_item-text ' (revenue)' INTO accGL-item_text.
         accGL-pstng_date = fin_data-posting_date.
         accGL-tax_code = tax_code.
         accGL-doc_type = params-doc_type.
         accGL-costcenter = fin_item-cost_centre.
         APPEND accGL.
    * initialize GL amount
         accAmnt-itemno_acc = itemno.
         accAmnt-currency = fin_data-currency.
         accAmnt-curr_type = '10'.
         accAmnt-amt_doccur = - ( fin_item-vat_base ).
         IF doc_type(2) = 'CR'.
            accAmnt-amt_doccur = accAmnt-amt_doccur * ( -1 ).
         ENDIF.
         APPEND accAmnt.
         itemno = itemno + 1.
    * initialize TAX account line item
         IF STRLEN( tax_code ) > 0.
            accTax-itemno_acc = itemno.
            accTax-gl_account = tax_account.
            accTax-tax_code   = tax_code.
            accTax-cond_key   = 'MWAS'.
            APPEND accTax.
    * initialize tax amount
            accAmnt-itemno_acc = itemno.
            accAmnt-currency = fin_data-currency.
            accAmnt-curr_type = '10'.
            accAmnt-amt_doccur = - ( fin_item-vat ).
            accAmnt-amt_base = - ( fin_item-vat_base ).
            IF doc_type(2) = 'CR'.
               accAmnt-amt_doccur = accAmnt-amt_doccur * ( -1 ).
               accAmnt-amt_base = accAmnt-amt_base * ( -1 ).
            ENDIF.
            APPEND accAmnt.
            itemno = itemno + 1.
         ENDIF.
      ENDLOOP.
    * translate customer field to BAPI format
      CALL FUNCTION 'MAP2E_BAPICOBL_CI_TO_BAPIEXTC'
         TABLES    INTERNAL_CI_COBL      = cust_ext
                   EXTENSION_CODINGBLOCK = extension.
    * call BAPI function to create customer invoice
      CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
         EXPORTING DOCUMENTHEADER = docHeader
         IMPORTING OBJ_TYPE = obj_type
                   OBJ_KEY  = obj_key
                   OBJ_SYS  = obj_sys
         TABLES    ACCOUNTGL = accGL
                   ACCOUNTRECEIVABLE = accReceivable
                   ACCOUNTTAX = accTax
                   CURRENCYAMOUNT = accAmnt
                   EXTENSION1 = extension
                   RETURN = returnTab.
    Edited by: Rastislav Mojzis on Jul 9, 2008 7:18 AM

  • Acrobat 11.0.07 will randomly crash when attempting to add document number to bottom of document.

    The application randomly crashes when I try to add a document number to the bottom of a pdf document that was scanned on another machine. It is inconsistent but my only work around right now is to try and get the document number on the first page, then save the file to the new file name. Then I close the document, and reopen it to try and get the document number on the remaining pages of the document. About 50% of the time Acrobat will still crash when I am doing this. It has gone from being a 30 second process to a 5 minute process.

    Varinder,
    I have created a test document consisting of 2 simple pages.  It originated as a word document with a jpg and a word table on the first page, and text and an Excel table on the second page.
    It converted to pdf fine initially. Then on saving the first line of text box added, Acrobat crashed. It did save the information however. I opened it back up, and went to add the second line of text in the same text box on the first page and again it crashed, but before I could hit the save button. After that all additional text added in text box on page one, and additional of another text box on page two had no problems. The file is attached.
    I am concerned that there is some setting I am missing to be able to read files from older versions of Acrobat, but that gets less likely as I open pdf files from 3 years ago and they appear to be fine. We are using Acrobat 9, 10, and now my 11 here. I am of the assumption that I should not be having any problems reading any of these.
    Attaching file.
    Thank You,
    Curt

  • For BSID- Accounting Document Number corresponding PO Number is required

    Hi Gurus,
                 I have got a requirement to develop a report similiar to 'FBL5N' . I am getting the details of open and cleared items of a customer from BSID and BSAD tables respectively. My requirement is also to fetch the corresponding PO number of the LINE items displayed in the report.
                Can any one suggest how can I fetch PO number with Accounting document number(BSID-BELNR)  or (BSAD-BELNR).
               Your efforts in this matter are deeply appreciated and <<removed_by_moderator>>.
    Thanking You,
    ZIa.
    Edited by: Vijay Babu Dudla on Jan 28, 2009 11:07 PM

    If you have fields BSID-VBEL2 and BSID-VPOS2 are populated with the sales order, than access VBKD with the Sales Order to get the Customer PO (VBKD-BSTKD)
    Or
    First, You need to get the Billing document. Access BKPF with the BSID-BELNR to get the AWKEY where AWTYP = 'VBRK'
    Now, you can go to SD document flow with the billing document to find out the Sales Document. Access VBKD with the Sales document to get the Customer PO
    Regards,
    Naimesh Patel

  • Free item reference document number not populated in MIGO item screen

    Hi
    I have a requirement where in I would need to populate the reference document number in the MIGO item when I am cancelling a goods receipt in case of free items.
    In standard SAP system we know that it would only be populated when GRbased IV is ticked in PO but in free item PO this is not ticked . So was enquiring if any body knows how we could populate the reference document number at GR cancellation in MIGO item level for free items .

    Hi,
    If you mean the field MSEG-SMBLN, then it is always populated at cancellation, no matter the GR-based IV flag.
    BR
    Raf

  • Alphanumeric Document number for Sales order

    Dear Experts,
    I got a requirement, The sales order number after saving the document the SO document number should be SO ( Alphabetic) 00012074 (Numeric) ie. SO00012074,
    The numeric portion will come from the number range assigned for that document and Alphabatic portion should come depending on the transaction code and document type.
    in SAPMV45AFZZ  User-exit
    FORM USEREXIT_NUMBER_RANGE USING US_RANGE_INTERN.
    This exit triggers before call function 'NUMBER_GET_NEXT'  that generates document number for the current document and return to the field vbak-vbeln and finally this is the document number, In the debug mode if I change the number for example 0000012074 to SO00012074 runtime I can get the expected number and also it is saved in the system. But in the real time it is not possible as this coding in not any user-exit.
    So I can't use this user-exit for the to get alphanumeric number in the document.
    FORM USEREXIT_SAVE_DOCUMENT
    This exit triggers after the generation of document number. In this user exit if we change the document number for example 0000012074 to SO00012074, it shows the expected number after saving the sales order but it is not actually saving in the database. Means if we try to open the same SO for example SO00012074 in va02/va03 it is showing
    SD document SO00012074 is not in the database or has been archived but if we try open 0000012074 in va02/va03, we can get the document.
    We can use this user-exit but if we change the value of vbak-vbeln in this user-exit finally it is not saving in the system.
    Can anybody help me how I can achieve the requirement ?

    bro...
    You have got an option to copy the program the standard program into zprogram....
    goto se38 and copy the program into a z program....and in doing so copy everything from the ctandard program ie vaients,documentation and function module etc.
    now change this z program to meet your need....
    both way if you dont make lot of changes you will get same performance with your work done
    regards

  • Unable to capture fi document number using transaction ABUMN

    hello guys,
    I am trying to create a bdc for transsaction ABUMN which generates a fi document at the end.
    but in BDC the bdcmsgcoll table is empty.
    is there any way so that i can capture document number as soon as it is posted.
    Please help, Thanks in advance.
    Thanks & Regards,
    Deepak.

    can you run your BDC after call transaction method  if you get success message based  on your input  values, then   goto the document tables and pick that values  and pass the success message.
    CALL TRANSACTION tcode USING gi_bdcdata                "#EC CI_CALLTA
                       MODE   gv_ctumode
                       UPDATE gc_cupdate
                       MESSAGES INTO gt_messtab.
      l_subrc = sy-subrc.
      IF sy-subrc <> 0.
        WRITE: / 'CALL_TRANSACTION',
                 tcode,
                 'returncode:',
                 l_subrc,
                 'RECORD:',
                 sy-index.
        LOOP AT gt_messtab INTO gwa_messtab WHERE msgtyp = 'S'.
          CLEAR lwa_t100.
          SELECT SINGLE * FROM t100 INTO lwa_t100  WHERE sprsl = gwa_messtab-msgspra
                                    AND            arbgb = gwa_messtab-msgid
                                    AND            msgnr = gwa_messtab-msgnr.
          IF sy-subrc = 0.
            l_mstring = lwa_t100-text.
            IF l_mstring CS '&1'.
              REPLACE '&1' WITH gwa_messtab-msgv1 INTO l_mstring.
              REPLACE '&2' WITH gwa_messtab-msgv2 INTO l_mstring.
              REPLACE '&3' WITH gwa_messtab-msgv3 INTO l_mstring.
              REPLACE '&4' WITH gwa_messtab-msgv4 INTO l_mstring.
            ELSE.
              REPLACE '&' WITH gwa_messtab-msgv1 INTO l_mstring.
              REPLACE '&' WITH gwa_messtab-msgv2 INTO l_mstring.
              REPLACE '&' WITH gwa_messtab-msgv3 INTO l_mstring.
              REPLACE '&' WITH gwa_messtab-msgv4 INTO l_mstring.
            ENDIF.
            CALL FUNCTION 'FORMAT_MESSAGE'
              EXPORTING
                id        = gwa_messtab-msgid
                lang      = sy-langu
                no        = gwa_messtab-msgnr
                v1        = gwa_messtab-msgv1
                v2        = gwa_messtab-msgv2
                v3        = gwa_messtab-msgv3
                v4        = gwa_messtab-msgv4
              IMPORTING
                msg       = l_mstring
              EXCEPTIONS
                not_found = 1
                OTHERS    = 2.
            IF sy-subrc <> 0.
              MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
            ENDIF.
            CONDENSE l_mstring.
            IF NOT l_mstring IS INITIAL.
              WRITE: / gwa_messtab-msgtyp, l_mstring(250).
              MESSAGE l_mstring TYPE 'I'.
            ENDIF.
          ELSE.
            WRITE: / gwa_messtab.
          ENDIF.
    ENDIF.
        ENDLOOP.
        READ TABLE gt_messtab INTO gwa_messtab WITH KEY msgtyp = 'S'.
        IF sy-subrc NE 0.
          MESSAGE s069(msg class)
        ENDIF..

  • Last Purchase Order and FI-Document Number of an Vendor

    Hi,
    i need for an Vendor the last purchase Order and FI-Document Number.
    For purchase Order i read EKKO sort this and get the last one.
    For FI-Document Number i read BSIK and BSAK sort this and get last one.
    Question: is there any faster way (CLASS, FM or TABLE) to get what i need??
    Thanks.
    Regards, Dieter

    HI Dieter,
    You can use transaction code ME2L , where you can list of PO issued a particular vendor. List list shows Po no. indecending order. You can double click select the latest PO and through PO history you can get the FI Document no.
    I hope this ansers you query.
    Regards
    Harish

  • Purchase order and FI Document Number - R/3 extractor

    Hello Experts -  I have a question on the BW extractors on the R/3 side. Are there any standard extractors out there where I can get Purchase Order information and related FI document number information. In case if I have to create one what tables do I need to reference to create generic extractor. Thanks for your help.
    Regards,
    Venu.

    Hi Venu,
    This could be better done on a standard FI extractor by enhancing it with purchase order information.
    Atleast, this is the way we did in our scenario.
    Have 0FI_GL_4 enhanced with data from EKKO, EKPO tables, with required feilds. This enhancement may not be quite detailed.
    Also if you are interested in a complete gen extr. then the above two tables along with BSEG should do.
    Naveen.A

  • Report with Invoice and Accounting Document Number

    Dear Experts,
    Here i have a requirement.
    I wanna a report which gives a Invoice (MIRO) and its accounting documents (Follow on document) in one page. Because If I view a MIRO document, for checking the accounting document, I need to click on Follow on doc, then I'll get.
    But If wanna see for 1000 MIRO documents with accounting document number, then I don't want to click 1000 times to see the account doc for respective Invoice number.
    The approximate format is,
    Column 1                              Column 2     Column 3        .......................              Column n
    MIRO  (Invoice number)                             Accountting Doc Number
    5100000099                                              5100000011
    Which tcode will give the both in one screen?
    Thanks in advance
    Regards,
    navahsek

    Hi,
    Enter Sork Key 002 for Vendor Master Record.
    and also you can check the Report in ECC 6.0
    MIR5 - Display List of Invoice Documents
    There you select Export Mode --> Display Accounting Document Number.
    You can get Report FI and MM Document Numbers.
    Hope It will Clear.
    Regards,
    Kishore

  • Reference document number of 103 movement not seen in 105 movement documnt

    Dear all,
    I have made a material document with movement type 105 with reference to 103 document.
    After creation, the field LFBNR in the 105 document is not updated with the 103 document number.
    In all other cases the document number of 103 movements are updated in the the field of 105 document.
    Can anybody can share me if you have any information about this scenario and what would be the solution.
    Thanks....
    Hari.

    Hi Murugan,
    I am giving you more clarification.
    I have created a Good Receipt through MIGO using 103 movement.     Later I have created 105 movement with respect to 103 movement reference through release blocked stock.
    After creation of documents, when checked the document created through 105 movement there is no reference number of 103 document number found in the document number of 105 movement.
    In the table MSEG  field LFBNR is supposed to get updated with the reference number of the document created through 103 movement.
    In this case, this reference number is not updated in the table MSEG-LFBNR.
    My question is that how the document with 105 movement get posted without the reference of document of 103 movement and what would be the reason.
    Hope the question is clear.
    Awaiting for your replies.
    Thanksss....Hari.
    Edited by: Harikrishnan_sap on Nov 13, 2009 2:02 AM

  • Report invoice document number againt PO line item

    Hi Forums,
    Can any body so kind to tell me is there any standard report in SAP 4.7 C where we can get the list of invoice document number against each line item of PO.
    I have tried the ME2N & ME2L report. If I double click the POH then only it give me the invoice document report. But i want a report where I get invoice document no against each line item wise in PO.
    Thanks in advance.
    Regards,
    sp sahu

    Hi sp sahu,
    I am sorry, but I am not aware of any report which might suit your requirements, this is the reason why I addressed you to the table EKBE. You might build your own report out of this table.
    Sorry!
    Esther.

  • Dunning Block per document number

    Hi SAP Guru,
    Need your help.
    Scenario is like this:
    We are running the dunning letter and it always gives us no output.  Also, checked the Customer Master,  under Correspondence tab and field for Dunning Block is empty while payment methods under u201CPayment Transactionsu201D tab is also empty which is I think it should be to run the dunning. 
    Upon further investigation,  I found out that the invoices are tag as u201CDunning Blocku201D via FBL5N per document number.  Can you explain how this happened? And why does per document number is tagged as u201CDunning Blocku201D despite the correct set up in Customer Master.  And how can we delete the tag per document or is there any mass update for this. 
    Appreciate your thoughts on this.
    Thanks,
    Julie

    Hi,
    Thanks for the info.  As I checked if dunning block has been tagged in SO via Header --> Accounting Tab,  the field for Dunning block set to Freed for Dunning which I supposed should be. 
    Any other solution on this.
    Thanks,
    Julie

Maybe you are looking for

  • Vendorwise Rejection Report

    hi all,   My client want to see rejection report vendor wise so that next time order placed to vendor with least rejection.   Is this report is present in SAP. thanks rahul

  • Logging correct user name when creating users

    I wrote a function that creates users through a portlet in version 3.0.9.8.4 It works fine except for logging who created the user. The schema where the functions and procedures are used gets updated in the wwsec_person$.created_by_dbuser field. The

  • Employee Delta data xchange between CRM and HR system-ALE

    Hi SDN team, We have integrated SAP R/3 HR 4.6c with SAP CRM 5.2 using ALE integration layer . Background : We have downloaded few Employees and Positions from SAP HR system into SAP CRM system using ALE . We observe that the delta changes made the E

  • Download site not working

    The javaserver faces download site at http://java.sun.com/j2ee/javaserverfaces/ has been down since last week (the WEB page is up, but the links to download software have been removed). Are there any mirror sites for javaserver faces? Thanks! Gary

  • Migration Woes of DW .ste Files To New Computer

    I having having problems importing DW CS3 .ste files to a new computer.  I transferred all my websites files over to the new computer using the same file/folder structure as the old one.  I also Exported all the .ste files via DW's Site > Manage Site