Returned document number upon saving

When posting a FI invoice (e.g. FB60), SAP always returns the Accounting document number upon saving.  Then from Document Environment, we may look up the profit centre and CO documents.  I have seen posting that returns the CO document number, instead of FI number.  
Is there a setting somewhere to control what documment number to return upon saving?

If I post an invoice in MIRO, system returns the MM document number at the bottom of screen upon saving.  Then I look up the FI, CO document numbers from the Follow-on Document.
If I post an invoice in FB60 system returns the accounting document number at the bottom of screen upon saving.  Then I look up the profit centre and CO document numbers from Document Environment.
We are in the process of implementing an external system for early archiving.  It's the posting in the early archiving environment I have seen the CO (last document from Document Environment) number returned upon saving.  The problem may have caused by this external product/program.  I just want to make sure if any setting in SAP we may elect what document number to return upon saving.

Similar Messages

  • Automatic billing document creation upon saving credit memo request.

    Hi,
    I have a requirment where in :
    When a Credit Memo Request is created(va01) and upon saving the credit memo request an automatic billing document needs to be genereated i.e Credit Memo.
    How can this be achieved.
    Thanks

    Hi Keni
    If a Credit Memo Request is created and after saving the Credit Memo Request  , automatic billing should happen means you should maintain a new sub-routine and assign in the copy control VTFA . In that sub-routine maintain a logic that once the Credit Memo Request is saved automatic billing should happen
    Regards
    Srinath

  • User Exit or BADI for catch the document number after saving the document

    Hi ,
    I am working on data conversion where Document number(BELNR),BKPF and BSEG  data should
    transfer to my Z table(Containes fileds of BKPF and BSEG) after SAVE the document related to
    Tcodes F-01 , F-22 , F-28 , F-43 , FB01 , FB02, FB60 ) . It need to go through by any user-exit or
    BADI.So Could you please suggest me any User exit or BADI ASAP.
    Waiting for reply.
    Thanks
    Lakshmi

    You should use BTE (Business transaction event). This concept is used especially for FI related enhancements...
    Study this document to know how to use BTE
    http://www.todoabap.com.ar/archives/FI%20Enhancement%20Technique%20-%20How-To-Guide%20on%20the%20Usage%20of%20Business%20Transaction%20Events%20(BTE).pdf
    Let me know if you face any specific issues..

  • Same output type getting triggered twice upon saving the document

    Dear SDNers,
    I have a shipment Document.
    Upon saving it the same Output type gets generated twice. ( in a gap of 1 second)
    Clarification needed:
    1. Please guide as to where i need to look for the error as to why same output is getting triggered twice  simultaneously( gap of 1 second).
    2. i have checked in the processing routine associated with it. Is it the right place?
    P.S. I had posted another similar thread. Closed it since i felt it lacked clarity.
    Regards,
    SuryaD.

    Hi,
    Fetch the data from Nast table for that document number
    Check the vstat  . if it is 0 then use the below function module.
    CALL FUNCTION 'RV_MESSAGE_SET_PROCESS_STATE'.
    Then it will update the existing single record for the first time .
    Next time on wards you will get the multiple records for te document in the Nast table.
    For that you need to change the VSTAT status as per the requirement.
    Hope this might solve your problem.
    With Regards,
    Sumodh.P

  • Error and crash upon saving

    Hi,
    I am experiencing an issue very similar to the one described in (http://forums.adobe.com/message/243559#243559). I have several RH projects that have started crashing/closing when I save changes. The projects are all several years old, of varying sizes (15-200 topics), and were converted when I upgraded to RH 8 last fall. Initially, I had some trouble with the conversions, but attributed it to working with a trial version of the software while waiting for the company purchase of the full license. After receiving the license code and installing the available patches, the projects seemed to function fine for close to a month before this started happening.
    Other information:
    ·        I am using: Windows XP Professional SP3, Intel T2500 @ 2.00GHz, 2.00 GB RAM, RH 8.0.2.208. (RH HTML)
    ·        I archive files on a network drive, but work on all projects on a local drive.
    ·        The projects are not under source control.
    ·        I do not have this issue when working with the RH CCC sample project.
    I tried deleting the .cpd file before opening the project. The project still crashes upon changing and saving any topic.
    I created a new project and imported some topic files. The project worked fine until I closed and re-opened it. Then, the project returns to crashing upon saving. I tried this several times with exactly the same result.
    I don’t understand how this is related, but the only success I’ve had is deleting a line of HTML from the topics that references a javascript. If I remove the following line from a topic (save and crash the project) and then re-open the project (the change removing the line of code does save), I can then successfully save changes in that topic without crashing RH.
    <script language="javascript" src="writetitle.js" type="text/javascript"></script>
    I have been able to repeat these results with multiple topics. If I put the line back in, the project crashes upon saving – take it back out and I can save changes to that topic again. I can close and re-open the project and it performs the same.
    The code is used in conjunction with a master template that contains a feedback form. The project crashes upon saving whether or not the topic is not using that template.
    I hate to simply remove this line of code since I don’t really understand how or if that is fixing the problem and because that is what lets me know which topic any feedback is pertaining to. Thanks for any help.
    TNSdoc2

    I don't know javascript from HTML. Here is what has worked for me. I open the Broken Links dialog. I open a listed topic using the Edit button. I find and fix the broken link. I save the topic. RH8 crashes. I jump to my open RoboSource screen and check in the topic that just crashed. When I reopen the RH8 project, the link generally shows as fixed and I can move on to the next.
    In the event the check in function failed, RH8 displays a dialog asking whether I want to leave or replace the local topic from RoboSource. I have found that using the Merge button has resolved the issue so that the project remains active and the link is repaired.

  • Reg - sap generated document number

    hi all,
          In fv60 transaction code,if u save a document,sap will generate a documnet number,how to find to which table the generated document number is saved???????
    plz help me with this regard,
                          very very urgent....
    regards,
    balaji.s

    hi madhavi,
                    thx,it worked,thanks a lot.....
    regards,
    balaji.s

  • Upon saving, assign sales order to different number range...

    Hello Experts,
    We have a new requirement wherein upon saving the sales order, I have to check its company code and
    sales document type and if it has a record in a customized table, then I have to use another number range instead
    of its default number range...
    For example, the default number range for sales orders for company code 1000 with a document type of ZAOR
    has a default number range of 3011000000 to 3011999999. I need to change it to 3021000000 to 3021999999.
    Hope you can help me guys. Thank you and take care!

    A new numner range can be created via SNRO.
    Also, you can use the following exit to assign this new numbe rrange to the order -> USEREXIT_NUMBER_RANGE
    For more info; refer Re: User Exit No for assign a different internal document number to VA01
    Neeraj

  • Document number....posted in T Code F-53 is not popping after saving

    Hi,
    I am posting outgoing payment in new fiscal year 1.4.2014, in F-53. After saving the document, I am not getting the pop up message:
    "Document number .... posted in T Code F-53.
    But when I check the GL line item in FBL3N, the document number is visible there.
    Please advice what can be the reason.

    Hi,
    I didnt check with other users. But I am facing this issue. May I know how the Security guy can help me and how its related to my authorization, since until yesterday everything was working fine.
    Kindly advice, is there any link to the year end closing activity?

  • Saved Document Number needed after saving the customer  company code data

    I created a customer than I saved the company code data and forgot to note the number the saved document number. Next time I went to the same customer again and I wanted to find out the saved document number for the same customer but did not know where to look for. Can you tell me what I should do?
    Thanks

    Hi,
    For any customer there will be general data,Company code data and sales area data.
    Even though you maintain the general data or company code data  only one numebr will be generated.
    If you want to maintain some other data as comapny code data and sales area data we will goto XD02 and enter the company code,sales area nd customer number in the initial screen and we will maintain that data.
    I think you are thinking that different number will be created for different data which is wrong.
    So enter the same number and company code in XD03 and view your data.
    Regards,
    Krishna.

  • FM module not returning the document number

    Hi all,
    I am using  FM PRELIMINARY_POSTING_FB01 to park a document, it's working perfectly fine and I am able to park the document as well but at the end of the FM it's not returning me the document number, so can you please tell me how can I get the document number which I parked using this FM at the end of the program.
    Thanks,
    Rajat Garg

    Hi, Can you please expalin a little more, This is what I am passing:
    call function 'PRELIMINARY_POSTING_FB01'
    exporting
    i_tcode = 'FV60'
    I_XCMPL = 'X'
    I_TCODE_INT = 'FV60'
    IMPORTING xepbbp = l_xepbbp
    tables
    t_bkpf = lt_bkpf
    t_bseg = lt_bseg
    t_bsec = lt_bsec
    t_bset = lt_bset
    t_bsez = lt_bsez
    exceptions
    error_message = 1.
    p_return-id = sy-msgid.
    p_return-type = sy-msgty.
    p_return-number = sy-msgno.

  • 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

  • Closing an Open Goods Return Document

    Hi to all
    We also experienced returning goods that were already paid and were invoiced through A/P reserve invoice (same case with Avelino Fidel - thread on AP Reserve Invoice posted last Apr. 19). In our case, not all items were returned and withholding tax was applied in the original AP reserve invoice.   Refund was given by the supplier.
    Original A/P Reserve Invoice - Journal Entry
    Þ     Dr. u2013 Goods Received Not yet Invoiced          10,000
    Þ     Cr. u2013 Supplier                                                          9,900
    Þ     Cr. u2013 Withholding Tax Payable                                    100
    Original Goods Receipt PO - Journal Entry
    Þ     Dr. u2013 u2013 Supplies, Materials and Parts            10,000
    Þ     Cr. u2013 Goods Received Not yet Invoiced                    10,000
    Original Outgoing Payment - Journal Entry
    Þ     Dr. u2013 BP                               9,900
    Þ     Cr. u2013 Bank                                         9,900
    In order to transact the returns in SAP, we tried using Goods Return without base document instead of A/P Credit Memo in order to incorporate the tax withheld.  (in A/P Credit Memo, tax withheld cannot be applied when there's no base document).  Journal entry is as follows:
    Þ     Dr. u2013 Goods Received Not yet Invoiced                    5,000
    Þ     Cr. u2013 Supplies, Materials and Parts                                     5,000
    After Goods Return, we used Bank Reconcilation to close the Goods Return with the following entries:
    Þ     Cr. u2013 Goods Received Not yet Invoiced                                 5,000
    Þ     Dr. u2013 Supplier                                                        4,950
    Þ     Dr. u2013 Withholding Tax Payable                                    50
    Þ     Cr. u2013 Supplier                                                                      4,950
    Þ     Dr. u2013 Bank                                                            4,950 ( refund from supplier )
    When I checked the Goods Return status using Banking -> Bank Statements & Reconciliations, the ap credit memo is no longer in the list. However, when I checked its status using Purchasing A/P -> Goods Return, the document status is still open.  Then we tried I tried closing the document through DATA >> CLOSE but an error message appeared: No matching records found u2018G/L Accountsu2019 (OACT) (ODBC-2028)
    How can we change the status of the Goods Return Document to closed ?  Shouldn't it be automatically closed after doing the bank reconciliation?
    Thanks in advance.
    Luche

    Hi Luche
    In SAP Business One 2007 there are some new features for closing documents without having to pass them on to the Invoice/Credit Memo. In the case of purchasing documents you can now close the Goods Receipt PO and the Goods Return documents. In order for the system to account for the income or loss as a result of the document not being passed on to a payable document, it looks for the account number marked as Goods Clearing Account in the account determination. If this account number is not filled in you will get the error you saw.
    Hope this helps
    Kind regards
    Peter Juby

  • 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

  • Invoice & Accounting Document Number

    Dear Experts,
    We are facing number range problem. When we are saveing an invoice then Invoice number and accounting document number showing different. It should come same number. Can you pls advice why this is happening and how I can resolve this issue.
    Thanks in advance for your kind support.
    Best Regards.
    Ripon Kumar Paul

    Dear Ripon,
    Please check the below which will help you achieve same document number:
    SAP gives you customizing options to make both document numbers the same. The solution lies in the number range assignment of the MM and FI document. You need to configure the MM document number assignment as internal and external for the FI documents. (FI documents are set up with external-assigned numbering, while the MM document has internal, or system-generated, numbering.) In this case, the MM document number is passed on to the FI document, which means that the number of the FI document is identical to the MM document.
    Because the document number assignment in MM is not company code-specific, in contrast to the FI document, you need to take the following points into consideration before using external document number assignments for FI documents. They have the following effects on your system:
    Continuous number assignments for FI documents are not guaranteed, especially if you have more than one company code.
    The document number ranges in MM and FI have to be the same for all company codes.
    In Release 4.6C, you need to use internal number assignments for revaluation documents, invoice reduction documents, Evaluated Receipt Settlement (ERS) postings, or reversal documents. There are no restrictions as of SAP Enterprise 4.70.
    Use a different number range assignment for FI invoice posting (FB60), because FI invoice postings usually use internal number range assignments and the postings originate in FI, not MM.
    If you use document parking and the number range intervals are fiscal year-dependent, you cannot change the posting date of the document if the fiscal year is different to that determined for the previous posting date. In this case you have to delete the document and re-enter it. There are no restrictions for fiscal year-independent number ranges.
    What do you do if you have already posted thousands of invoices in your system and the numbers are already different? In this case, you need to find unused number range intervals in MM and FI. Since most companies do not change the SAP standard delivered number ranges during the original implementation, number range interval 52 is usually available in MM and FI.
    Now let's look at the detailed customizing steps. With the following customizing steps, you can align the MM and FI document numbers going forward only. No fix is available for invoices already posted in your system, since SAP does not allow the change of document numbers.
    Step 1. Maintain FI document number range. Use transaction OMR4 and go to Number range for document types in FI. Select the company code for which you want to create the new number range interval and click on the change interval button. Insert a new document number range by clicking on the insert interval button on top of the screen. In this example, I created number range interval 52 with the document numbers 5200000000 u2013 5299999999. Don't forget to set the external number range check box (Ext).
    Step 2. Assign FI number range to FI document types. The second step is to assign the number range created in step 1 to the FI document type for invoices. Again use transaction OMR4 and go to Document type. Double-click on the document type, which you are using for LIV invoices. In my example, I used the SAP standard document type RE. In the number range field, assign the new number range interval 52.
    Thanks!!!
    Murlidhar Khatri

  • How to catch accounting Document Number in SE37 for  BAPI_ACC_DOCUMENT_POST

    HI Frds,
    My ReQ is i have to post Customer Invoice from Legacy to ECC through PI interface. So i am using one BAPI , ' BAPI_ACC_DOCUMENT_POST''. I had customized this BAPI by adding 2 fields (1.zstatus, 2.zsaprefno) as i have to send the status(1. Success/Fail, 2.Account Document Number) back to Legacy.
    For PI i have to give the BAPI structure. So when i am executing in SE37 zstatus field is catching the value as 'Success'. But the ZSAPREFNO is not catching the account document number. Bez we have to execute BAPI_TRANSACTION_COMMIT after this BAPI(in test sequence from Menu bar). So directly updating in Database tables.
    when i was excuting in SE38 the Accounting Document Number is returned in RETURN parameter of MESSAGE_V2 as we are checking the return parameter after BAPI_TRANSACTION_COMMIT.
    when i am trying in SE37 its not catching the value in MESSAGE_V2(catching as $).  After COMMITing we have no option to check the RETURN parameter.
    So, any idea how to get the Account Document Number  in SE37.......Or any other way to do..........
    Edited by: priya tavanam on Sep 3, 2010 7:02 AM

    Hi,
    if standard BAPI did not return the Acc. document number before BAPI_COMMIT then create wrapper FM
    1) call actual BAPI and BAPI_COMMIT with in that.
    2) retrun the account document back.
    otherwise you can try sync proxy as well.
    Regds,
    Suresh

Maybe you are looking for