Parking an accounting document - PRELIMINARY_POSTING_FB01

Hello experts,
We are using FM PRELIMINARY_POSTING_FB01 to park accounting documents. We are able to successfully park accounting documents using this FM but when we try to post the parked document using this FM, we are getting an error based on missing exchange rate in exchange rate table. Not sure what we are missing or if we are passing wrong/insufficient values to the FM. Can someone who has used this FM before provide sample code for this FM. Thanks.

As far as I understand this FM, this FM can only be used for parking a document. You can however post the parked document using the FM PRELIMINARY_POSTING_POST_ALL. The code for how to use this FM can be found in the business object FIPP method POST.
Please do let me know if this helped you.
Regards,
Hari

Similar Messages

  • Park a accounting document

    Hello everyone,
           I have a requirement where in i need to simulate and park a accounting documents using transactions FB01 and FBV1 respectively.I have following queries.
    1) Can we use 'RFBIBL00' program for parking a document in FBV1 transaction.I have gone through the documentation of the program.It says 'No FB05 postings (posting with clearing), FBS1 postings (accrual/deferral documents), FBV1 postings (park document), nor postings with special G/L transactions can be generated.'
      If so, Is there any other method to park the accounting documents other than BDC.
    2)Is there any BAPI available for simulating the accounting documents in FB01.
        Can we use 'BAPI_ACC_GL_POSTING_CHECK' or 'BAPI_ACC_GL_DOCUMENT_CHECK'                    
    If not, please provide me with any other method to simulate the accounting documents.
    Please clarify me on above points. Thanks in advance
    Regards,
    Jalendhar

    Hi,
       OSS message:
    25.05.2007 - 11:38:41
    A parked document with ACC-Bapis (bapi_acc_*) is not possible.
    This interface is for posting only. It is completely different from
    the manual posting and parking transactions, and its functionality
    is limited in comparison.
    In the documentation for this BAPI, there is also a reference to:
    More informationen is available in the Interfaces to Accounting documentation in the R/3 Library (under Cross Application Functions ->
    Interfaces to External Systems).
    xxxxxxx
    Support Consultant
    Global Support - Financials
    Hope this helps some other person who wants to know.
    (Maybe I'm only one of a few people that would like to use a BAPI to park accounting documents, but it would probably be helpful to know if there are more. If you ever needed or now need this functionality please post a reply to this message.)
    Check the below theard
    https://forums.sdn.sap.com/click.jspa?searchID=3300169&messageID=3475534
    If yoy are working BAPI for Parking non-PO Invoices
    Re: BAPI for Parking non-PO Invoices?
    <b>Reward points</b>
    Regards

  • BAPI to Park the Account document

    Dear All,
    I need a BAPI to PARK an account document. Will you please help me out in finding the exact BAPI for this.
    Thanks in advance,
    Ranjan

    check this BAPI and its documentation
    <b>BAPI_INCOMINGINVOICE_PARK</b>
    regards
    Prabhu

  • FM to Park a FI document(G/l account)

    HI everyone,
    I am working on creating a UI in ABAP Webdynpro to park FI accounting documents. I found the transactions to park the documents is fbv1, 2 and 3 are for creating, editing and display. I want to do the same UI from ABAP webdynpro.
    Please let me know the function module or BAPI to create/edit a parking accounting document instead of posting.
    I have tried to find one but could find. if anyone know and have used it. Please help.
    Thanks
    Anu

    Hi,
    if you enter two words BAPI and FBV1 into google then you can get couple of FMs which might help you. You can start with BAPI BAPI_INCOMINGINVOICE_PARK. Also if you enter a string "BAPIPARK" into SE37 and search for FMs you get this BAPI.
    Cheers

  • BAPI to park G/L Account document with ledger

    Hi Experts,
    I have been looking for BAPI to park G/L account document with ledger (FV50L).
    Can you please let me know, if you have know about it.
    I have found the one for posting BAPI_ACC_DOCUMENT_POST, but It should not be used in our case.
    It is park G/L account document without ledger.
    Thank you in advance.
    Kyongkeum Im.
    Edited by: Kyoung Keun Im on Aug 13, 2010 1:11 PM
    Edited by: Kyoung Keun Im on Aug 13, 2010 1:12 PM

    Hi,
    There is not function module for that. I am using BDC to park GL document. For BDC parking you can use Function module -
    POSTING_INTERFACE_START and POSTING_INTERFACE_DOCUMENT.
    Sample Logic:
    Loop at header.
    populate header.
      loop at item.
       populate item.
      endloop.
    call function POSTING_INTERFACE_START
    call function POSTING_INTERFACE_DOCUMENT
    call function POSTING_INTERFACE_END
    BAPI COMMIT.
    Endloop.

  • MIRO - Parked document - Accounting document

    Dear all,
    When parking document with transaction MIRO, I would like that no accounting document is created, just logistic one.
    (up to now my research show that when it happens it is likely an error).
    Do you think it's possible (user-exit, Badis, ...) ?
    Thanks for your help.
    Best regards.
    Didier GOBLET.

    Is there any Business reason you want to hide the accounting document.It is not possible not to display accounting document when you park.It will just show you what the the accounting entries gets generated.

  • Account document parking in BDC with multiple records

    Hi,
    I am writing one BDC program to park document( not posting the document) using transaction u2018FBV1u2019.In the file, we can have multiple item for posting key 40 and single item for posting key 50 and vice-versa. We can have multiple item both for posting key 40 and 50. But the summation of all amount of all record for posting key 40 and 50 should be u20180u2019( for debit and credit).All these multiple records is actually creating one account document.
    I have created the recording and written the BDC program, but I hope I am missing the grouping of records for posting key 40 and 50 for single document number. Can pls guide me for the same. If anyone has encountered such problem, can you pls guide me for the same. If you haave the code for BDC, please send me the same.
    Edited by: amrita banerjee on Jun 20, 2008 12:53 AM

    Hi amrita,
    I do not understand what do you mean by grouping of records. Can you please explain.
    Still for parking documents, the recommended solution will be to use the standard batch input program RFBIBL00.
    Here is the sample psedo-code
    *bgr00
      wa_bgr00-stype   = 0.
      CONCATENATE  'FBV1' sy-uzeit+0(2) '_' sy-uzeit+4(2)
                  INTO wa_bgr00-group.
      wa_bgr00-mandt   = sy-mandt.
      wa_bgr00-usnam   = sy-uname.
      wa_bgr00-start   = sy-datum.
      wa_bgr00-xkeep   = space.
      wa_bgr00-nodata  = '/'.
      MOVE wa_bgr00 TO wa_file.
      APPEND wa_file TO it_file.
      v_empty_indicator = wa_bgr00-nodata .
    *bbkpf
      PERFORM build_data CHANGING wa_bbkpf.
      wa_bbkpf-stype = 1.
      wa_bbkpf-tcode = 'FBV1'.
      wa_bbkpf-bldat = wa_docheader-doc_date.
      wa_bbkpf-blart = wa_docheader-doc_type.
      wa_bbkpf-bukrs = wa_docheader-comp_code.
      wa_bbkpf-budat = wa_docheader-pstng_date.
      wa_bbkpf-monat = wa_docheader-fis_period.
      wa_bbkpf-waers = 'USD'.
      wa_bbkpf-xblnr = wa_docheader-ref_doc_no.
      wa_bbkpf-bktxt = wa_docheader-header_txt.
      MOVE wa_bbkpf TO wa_file.
      APPEND wa_file TO it_file.
    *bbseg
      LOOP AT it_accntgl INTO wa_accntgl.
        CLEAR wa_bbseg.
        PERFORM build_data CHANGING wa_bbseg.
        READ TABLE it_curramount INTO wa_curramount INDEX wa_accntgl-itemno_acc.
        wa_bbseg-stype = '2'.
        wa_bbseg-tbnam = 'BBSEG'.
        wa_bbseg-zuonr = wa_accntgl-alloc_nmbr.
        wa_bbseg-newbk = wa_accntgl-comp_code.
        wa_bbseg-wrbtr = wa_curramount-amt_doccur.
        wa_bbseg-kostl = wa_accntgl-costcenter.
        wa_bbseg-aufnr = wa_accntgl-orderid.
        wa_bbseg-hkont = wa_accntgl-gl_account.
        wa_bbseg-prctr = wa_accntgl-profit_ctr..
        wa_bbseg-projk = wa_accntgl-wbs_element.
        IF wa_curramount-amt_doccur LT 0.
          wa_bbseg-newbs  = '40'.
        ELSE.
          wa_bbseg-newbs  = '50'.
        ENDIF.
        MOVE wa_bbseg TO wa_file.
        APPEND wa_file TO it_file.
      ENDLOOP.
      DATA: l_filepath TYPE eseftappl.
      CONCATENATE '/tmp/FBV1_load' sy-uzeit '.txt' INTO l_filepath.
    *write app file for rfbibl00
      PERFORM write_data_appl USING it_file l_filepath.
    *Submit the data to post the document
      SUBMIT rfbibl00 WITH ds_name   = l_filepath
                      WITH fl_check  = ' '
                      WITH callmode  = 'C'
                      WITH xinf      = 'X'
                      AND RETURN.
    form build_data  changing pv_header  TYPE any.
    DATA:
        v_field(3)   TYPE n.
      FIELD-SYMBOLS <fs_field_value> TYPE ANY.
      v_field = 1.
      DO.
        ASSIGN COMPONENT v_field  OF STRUCTURE pv_header TO <fs_field_value>.
        IF sy-subrc = 0.
    *     if the field is empty then fill it with nodata indicatort
          IF <fs_field_value> IS INITIAL.
            <fs_field_value> = v_empty_indicator.
          ENDIF.
          v_field = v_field + 1.
        ELSE.
          EXIT.
        ENDIF.
      ENDDO.
    endform.                    " build_data
    form write_data_appl   USING    pv_file      TYPE ty_t_filedata
                                    pv_file_path TYPE eseftappl.
      DATA:
           wa_file   TYPE ty_filedata,
           wa_return TYPE bapiret2,
           v_msg  TYPE string.
    *Open the application server file
    *and write the data
      OPEN DATASET pv_file_path FOR OUTPUT
                   IN TEXT MODE ENCODING NON-UNICODE
                   MESSAGE v_msg.
      IF sy-subrc = 0.
    *   write the file to the application server
        LOOP AT pv_file INTO wa_file.
          TRANSFER wa_file TO pv_file_path.
        ENDLOOP.
        CLOSE DATASET pv_file_path.
      ELSE.
        message e000(00) with v_msg.
      ENDIF.
    endform.                    " write_data_appl
    Thanks
    Romit

  • 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

  • Accounting Document Creation in FB60 with Tax Calculation Enable

    Hello everyone,
    I am currently facing a strange issue. The issue is that I am using transaction FB60 to create an accounting document.
    How I proceed with:
        1. Go to FB60
        2. Enter the necessary details
        3. Click on the "Save" button to post the document.
    To view the accounting document created,
        1. Go to FB03
        2. Enter the document number generated previously to view the document.
    The problem is that, currently I need to update a field in the accounting document during its creation. I know that the BaDi 'AC_DOCUMENT' is called before creation of any accounting document.
    I have hardcoded a break point in the BADI to test whether when clicking on the button 'SAVE' from transaction FB60, whether the BADI 'AC_DOCUMENT'is called, and the debugger was not trigger.
    I don't understand why the BADI 'AC_DOCUMENT'is not trigger, i did activate the 'Update debugger' to test whether the BADI was executed in the background but in vain, the BADI 'AC_DOCUMENT' was not triggered.
    But if I click on 'PARK'(I don't  know a park document is  document in transaction FB60, the BADI 'AC_DOCUMENT' is trigger.
    I would be grateful if someone gives me an idea or a small explanation on what is going on in the back.
    Maybe, I am wrong with the BADI 'AC_DOCUMENT', maybe this BADI's is not trigger every time an accounting document is created.
    Thanks a lot in advance.
    Kind Regards,
    Bryan

    what field do you want to update? did you try FI substitution?

  • How to "hold" G/L Account Document?

    I use T-CODE F-02 to Enter G/L Account Document.I want to hold current document and input tomorrow again.So I select the menu Document->Hold.But the sap show the error message like below.
    Is there any one could tell me how to resolve the problem or give me some advice?I will appreciate him/her very much.Thank you.
    error message:
    Held documents must be converted; read long text
    Message no. F5410
    Diagnosis
    The structure of the document data has changed in the meantime. Before new documents can be held or held documents can be processed, the documents held up to now must be converted.
    Procedure
    The conversion of the held documents is carried out by report RFTMPBLU . For larger data volumes (more than a couple of hundred held documents), the report should be planned as a batch job.
    The conversion of held documents is generally supported for documents which were entered in release 1.3A or later.
    A conversion of older held documents is not possible. You must delete these documents with the report RFTMPBLD . Afterwards, you must start the report RFTMPBLU to activate the version management for held documents.
    If only small datasets are to be converted or deleted, you can carry out the action in another window and after completing the action, continue the current processing.

    Hi,
    In the new versions from SAP (ERP 2004 and ERP 2005) There are 2 versions to keep documents:
    Parked documents.
    Hold documents. (this is not the option Hold data, from system / user profile / hold data)
    For completing them there are special transactions. The best is to use one of these options (I use parked documents) otherwise it is difficult to found documents back. This is the reason to for the coversion question
    Paul

  • No accounting document created in MIRO

    Hi,
    We have an issue as below
    user posted goods receipt through MIGO, later posted invoice verification through MIRO, but here only material document created.  No accounting document created.
    Can you please let us know what could be the reasonfor this issue.
    I have a look into number ranges, there was no issue with number ranges.
    Thanks in advance
    Prasad

    Hi Paul,
    Thanks for your reply.  Here my issue is INVOICE got posted through IDOC's. Checked the idoc status in T.code:WE02, it was posted with status 53, (i.e. no errors).  We had this issue only for this invoice.
    Can you please suggest any other possible reason for this issue.
    Also let me know how to view the whether mm document was posted and accounting document is in parked stage?
    Thanks in advance
    Prasad

  • Accounting document not posting in production using FIPP

    hi all,
    I had copied a workflow to post the accounting document. i am using release and post methods in that. it is working fine in development. initially when the document is parked, in the header of the document in  workflow control i found that release necessary check box is checked which is same in the production. in the development whenever i am releasing the document the document is getting posted, but in production i am getting the status as released only(relesed check box is checked). and complete check box is not checked( though the document is complete) and document is not getting posted. i noticed in the workflow log that the post block is executed succesfully. the binding are similar to that in the development.
    can any one help me out where the problem is.
    Thansk & regards
    sreehari p

    Hi Sreehari,
    Test the Post method of BOR FIPP separately using SWO1 transaction for the same Accounting Document. And check if it  posting. If it is not then debug the method and try to figure out why it is not posting.
    Regards,
    Devananda A J

  • User-Exit to Modify Accounting Document of Incoming Invoice

    Hello,
    My requirement is to add two new Line Items (One Debit One Credit - with net value 0) in the Accounting Document of the Incoming Invoice.
    Is there any User-Exit available for modification of the Accounting Document?
    P.S. - The Incoming Invoice is being Posted using BAPI - BAPI_INCOMINGINVOICE_CREATE
    Thanks & Regards,
    Abhishek

    Hi Abhishek,
    Try this exits. You go through the flow and put a break point on the selected exits, and check it whether it triggering or not?
    I too not aware of this invoice flow, so I am listing all the relevant exits. I think this may help you.
    Enhancement
    LMR1M001                                User exits in Logistics Invoice Verification
    LMR1M002                                Account grouping for GR/IR account maintenance
    LMR1M003                                Number assignment in Logistics Invoice Verification
    LMR1M004                                Logistics Invoice Verification: item text for follow-on docs
    LMR1M005                                Logistics Inv. Verification: Release Parked Doc. for Posting
    LMR1M006                                Logistics Invoice Verification: Process XML Invoice
    MRMH0001                                Logistics Invoice Verification: ERS procedure
    MRMH0002                                Logistics Invoice Verification: EDI inbound
    MRMH0003                                Logistics Invoice Verification: Revaluation/RAP
    MRMN0001                                Message output and creation: Logistics Invoice Verification
    Business Add-in
    INVOICE_UPDATE                          Business Add-In: Logistics Invoice Verification
    Reward points if it helps you.
    Cheers,
    Swamy Kunche

  • Park FI accounting entries through BAPI

    Hello Folks,
    Working on a requirement where i need to park the FI accounting enrties and then based on some user action post the same in FI...
    Firstly to park...
    using 'BAPI_ACC_DOCUMENT_POST' and filled all the relevant parameter along with extension1..
    extension1-field1 =  'BAPI-PARK'.
    extension1-field2 =   '1'.
    APPEND extension1.
    then Implemented Customer Exit ACBAPI01, with Include Program ZXACCU15 of Component EXIT_SAPLACC4_001 having below code...
    READ TABLE extension INDEX 1.
    IF sy-subrc = 0 AND extension-field1 = 'BAPI-PARK'.
    MOVE 2 TO t_acchd-status_new. " Park Document
    Endif.
    but still the accounting entries instead of getting parked (when checked in BKPF table Document Status was not 'V' but blank against the accounting doc no) got posted.
    kindly suggest what could be the solution.
    Thanks!!!

    Hi Sachin Shetty,
    You can use the below code if you want to use the BAPI_ACC_GL_POSTING_POST to park a document
            Header-username = sy-uname.
            Header-comp code = '1000'.
            Header-fisc_year = sy-datum+0(4).
            Header-doc_date = sy-datum.
            Header-pstng_date = sy-datum.
            Header-fis_period = sy-datum+4(2).
            Header-doc_type = 'SA'.
            accountgl-itemno_acc = '1'.
            accountgl-gl_account = '0000115510' .
            accountgl-comp_code = '1000'.
            accountgl-pstng_date = sy-datum.
            accountgl-doc_type = 'SA'.
            accountgl-fisc_year = sy-datum+0(4).
            accountgl-fis_period = sy-datum+4(2).
            APPEND accountgl.
            CLEAR accountgl.
            loc_cnt = 1.
            loc_cnt  = loc_cnt + 1.
            accountgl-itemno_acc = loc_cnt.
            accountgl-gl_account = '0000601900' .
            accountgl-comp_code = '1000'.
            accountgl-pstng_date = sy-datum.
            accountgl-doc_type = 'SA'.
            accountgl-fisc_year = sy-datum+0(4).
            accountgl-fis_period = sy-datum+4(2).
            accountgl-costcenter = u201813100u2019.
            APPEND accountgl.
            CLEAR accountgl.
           currencyamount-itemno_acc = u20181u2019.
            currencyamount-currency  = 'USD'.
            currencyamount-amt_doccur = loc_amt. ( For  Debit / u2018Su2019)
            APPEND currencyamount.
            CLEAR currencyamount.
           currencyamount-itemno_acc = u20182u2019.
            currencyamount-currency  = 'USD'.
            currencyamount-amt_doccur =  ( -1 ) * ( loc_amt ).  ( For credit /u2018Hu2019)
            APPEND currencyamount.
          CLEAR currencyamount. 
            extension1-field1 =  'BAPI-PARK'.
            extension1-field2 =   '1'.
            APPEND extension1.
         CALL FUNCTION 'BAPI_ACC_GL_POSTING_POST'
              EXPORTING
                documentheader       = header
             IMPORTING
                obj_key              =    obj_key
              TABLES
                accountgl            = accountgl
                currencyamount       = currencyamount
                return               = return
                extension1           = extension1
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
              EXPORTING
                wait = 'X'.
    Implement Customer Exit (CMOD) ACBAPI01, with Include Program ZXACCU15 of Component EXIT_SAPLACC4_001.
    Please make sure that if LDGRP (Ledger Group) is provided, you will have to extract Account Principle (TACC_TRGT_LDGR-ACC_PRINCIPLE) for Park G/L Accounting Document for Ledger Group.
    Thanks,
    Manish

  • System is giving different number after converting to account document

    Hi Team,
    we are not maintain number ranges as year independent ..we are maintain number ranges  in FBN1  year is "9999"
    we have one issue, For example my fiscal year is April to march  before year end closing we have some park documents
    ex number .4455 (document number) after year closing  which is next fiscal year we converted parked document as accounting document 
    but system is giving different number after converting to account document  which is not 4455,
    as per SAP standards and even  we are not maintaining number ranges  year independent SAP should be give the same number
    please give me better solution if you knows any SAP notes belongs to above issue  kindly  let me know
    thanks
    Ranamka

    Hi Suresh,
    thanks a lot your inputs, I will test and come back
    thanks
    Ranamka

Maybe you are looking for

  • Performance Issue in a report

    Hi,      Can you please modify this code, i have performance issue for the following code. Here: t_po is a final internal table.     select  ekkobukrs ekkoebeln ekkolifnr ekkobsart    " EKKO             ekkoernam ekkoaedat ekko~memory               

  • Agreements Not Being Picked For SFTP Protocol in Oracle 11G

    Hi Anuj , PFB the Details of the Issue : Agreements are not being picked for SFTP protocol even though From TP , To TP , Document Type and Revision are picked correctly . We are running on MLR11 , Version : 11.1.1.4.0 . Also we have set b2b.useCPAid

  • Result of FOX in a message

    Hi all, I want to do  validation using a fox formula. do you know where can I define the message type? Ex: If A<B MESSAGE 'A<B not possible' Best regards; Ricardo

  • Help with instalation of 3.0!!

    I just bout 3.0 for itouch like 4hrs ago and i cant download. Ive disabled my firewall and virus protection!!

  • Images with same version name/numbers getting mixed up...

    I have an album of ducks I photographed. I just noticed that a couple of the last ones are "weird" The thumbnails are of the ducks while the images are of other birds I photographed... i cannot figure out what is going on... but something is messing