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

Similar Messages

  • How to update Assignment field in Accounting Document through BAPI ?

    I need to change Assignment field in already posted accounting document through bapi or some other automatic method. Please tell me exactly which bapi I should use and how can I pass the changed assignment field?

    Hey,
    I couldnt find any BAPIs which update an accounting document. I think the safest way is to record FB02 and use BDC/Call Transaction.
    -Kiran
    *Please reward useful answers

  • Loan management : Accounting entry through altarnative payee.

    Hi Experts,
    We have created a loan using Loan module  ( T.code - FN1V).  Here we assigend a main loan borrower ( for ex. main borrower 12402) For this loan we have paid some charges (for ex. withholding tax) to the other payee. We assigned  Alternative payee in our contract ( For example - 12492). Now i want to pass an FI entry with this altarnative payee (12492).
    Presently i am passing an entry using FN8X and maintain here alternative payee but it is passing an FI document with main loan borrower (12402). but it is very normal scenario where we passed a FI document with altarnative payee (12492).
    If i see  VDBEPI table here
    VDBEPI - Customer - 12492 (alternative payee)
    VDBEPI - Business partner - 12492 (Alternative payee)
    but in BORROWER it is taking  - 12402 main borrower
    IF FI document it should be take 12492 for FI posting instead of 12402.
    Can uou please help is it possible to post an FI document with alternative payee (12492)
    Please help
    Regards
    Gaurav Gupta

    Hi,
    Can you please come up with what are the journal entries that will pass.  I don't fee that it is possible to post FI entry to aternate payee.
    Experts, please update if my opinion is wrong.
    thanks,
    Kumar

  • FN5V - No accounting entries generated

    Hi
    I am trying to post a accounting entries through the transaction FN5V however there are no accounting entries that are getting generated. When I run the transaction FN5V the transaction is however getting saved but no accounting entries.
    In the SPRO node  (>>Company Code-Dependent Settings for Product Type) I have specified FI posting as 4 and in the same node  the >>Define status per product type  FI posting is defined as 4.
    I want to generate the follwoing entry to the Loans taken Banks DR
    Loans Taken CR Please advise how I can shoot his problem Also is you have any document on loan management, would be greatful if you can share. Thanks S
    Edited by: sapcounts on Nov 3, 2011 11:37 AM

    Hi
    Status 4 is correct in the configuration. can you please check are you save the transaction in FN5V or u are clicking in post button. If you can brief your error then it is easy to us to guide u. please check your disbursement flow type and account determination for the same.
    Regards
    Priya

  • Locking through BAPI

    Hi SDN,
    I am updating a strandard Database table through BAPI.I can lock the object (an database entry ) through BAPI.But if i lock the object ,i am not able to update the database table. The BAPI gives an error message as 'Status is set as locked.so can't update'.Is it possible to lock the object and then update and then unlock the object through BAPI?

    I suppose you are talking about using ENQUEUE / DEQUEUE function calls when you say locking and unlocking. If you are using these functions to lock the particular  table, then you should not get a problem while updating.
    CALL ENQUEUE function
    Update the table
    CALL DEQUEUE function

  • Compensate an invoice through a manual accounting entry in ByD??

    Is it posible in SAP ByDesign to compensate open invoices through manual accounting entries?
    A client uses a non-standar  payment method for supplier invoices, so they make the accounting payments manually through "New document accounting entry".
    "Suppliers            to              other account... "
    In this transaction, we choose the type Manual entry for suppliers-Revaluation/Depreciation, and in the positions we specify the open invoice number and supplier number.
    But in the center Debits-Suppliers, the total balance of the supplier has decreased but the position invoice still remains open.
    How can I compensate this invoices then??
    Greetings

    Hi again Lokesh
    Yes, using New/Charge Credit, I can post a document type:
         Suppliers                        to                        Expenses account
    And after that, being able to compensate/clear the supplier invoice, that's ok.
    But the New/Charge Credit panel, cost allocation allows to add ledger accounts only of groups Expenses or Incomes, and in some cases I would need to use another ledger accounts in this panel.
    And in Fine tunning, accounts determination is limited for account types, so I would need to make too many changes at this point, but well I'll see...
    Many thanks

  • Wrong Accounting Entry for Rejection Excise Invoice through J1IS

    Dear Experts,
    When we are doing Rejection of Excise Invoice through J1IS, a wrong accounting entry is getting generated by system.
    Where can I check the settings for Accounting Entry for Rejection Excise Invoice?
    Thanks & Regards,
    Reshma

    Generally Excise Invoice for other invoice posting will be done through J1IV after creating Excise Invoice for other Movements in J1IS.
    If Automatic Posting is activated against your excise group then you need not again to post J1IV. It happens along with J1IS.
    By the by how you are returning Excisable goods through Return delivery with Original invoice 122 or through Return Purchase order 161 Movement type.
    Have you entered Excise Rates BED, ECS and SECS in J1IS?
    Elaborate in detail.

  • 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

  • Line item and Ledger item difference when parking through BAPI

    Hi Friends ,
      I have a BAPI for parking the documents in SAP from another system.This BAPI is using the function module PRELIMINARY_POSTING_FB01  to park the documents.But when I park the documents using this BAPI  and post the document manually  the line item number and ledger item number in the document are posted differently. ie . for line item no 1 ledger item is 24 .But when I am posting it directly it is same.Lot of other programs in our R/3 system is dependent in this logic.Can anybody help me in finding out the reason for this ?
    Thanks in advance ,
    Joby

    Hello,
    Which BAPI you are using. Use BAPI_INCOMINGINVOICE_PARK.

  • Service PO Invoice posting through BAPI

    Hi Gurus,
    Please help me to resolve the issue explained below:
    We are using a third party tool for scanning incoming invoices from vendor.The scanned invoice details pass though SAP Interface and with the help of standard BAPI_INCOMINGINVOICE_CREATE in SAP ECC, invoices are automatically posted.
    Till now , we only had material/Goods PO invoices which use to get posted with quantity blocks before GR done.In future,SAP PM
    module will be implemented and service PO invoices will also be posted using this process.We have following issues for posting
    of invoices for service items:
    1.For service PO Invoice to get posted though BAPI, service entry number is mandatory without which system does not allow to post the invoices that is we can not have quantity blocked invoices if services have not been entered for service items.Even invoices can not be parked without service entry sheet no. for service items using BAPI.Please advise how this scenario can be handled.
    2.Second scenario is that if a particular service line has multiple service entry sheet numbers then which service entry sheet number should system use to post the invoice?
    Kindly advise.
    Thanks & Regards,
    Niti

    Dear Vipin,
    May I assume the following scenario. When you post an invoice manually and there's a small difference between the vendor amount and the total of the suggested amounts on items (plus VAT), you just adjust one of the items or enter unplanned delivery costs and this way avoid the disbalance.
    However, when you post the invoice automatically through BAPI, no such adjustment is made and the system tries to post the difference to the account defined behind the account key DIF. For this posting the system shall assign a tax code. One way to define this code is to assign the default tax codes in IMG for IV -> Incoming Invoice -> Maintain Default Values for Tax Codes.
    Or just make sure you define all the item amounts explicitly in the BAPI and there's no disbalance.
    BR
    Raf

  • Problem while posting FI document through BAPI - Multiple Exchange Rates

    I am able to post FI document with multiple exchange rates for the same currency using FB01. But, when I try to post the same document details using BAPI_ACC_DOCUMENT_POST , it throws an error F5 701 - Inconsistent Rate for Currency XXX .
    How can we avoid this error while posting through BAPI ?
    Thanks & Regards,
    Nidhi

    Hi Nidhi,
    Value range
        The field CURR_TYPE (currency type) describes the role played by a
        currency in the SAP System.
        The currency type can take on the following values, for example:
        o   00      Transaction currency
        o   10      Company code currency
        o   20      Controlling area currency
        o   30      Group currency
        o   40      Hard currency
        o   50      Index-based currency
        o   60      Global company currency
        If an entry is not made in the field CURR_TYPE, the default value "00"
        is retained.
        If only one data record is transferred in transaction currency for each
        line item, the field CURR_TYPE does not need to be filled out. If
        several data records are transferred for each line item, the currency
        type must be entered for each record.
    If the parameter CurrencyAmount is filled with the currency fields,
    a complete document check including characteristics and value
    components of profitability analysis (CO-PA). Otherwise, the account
    assignment objects are checked.
    Check the BAPI documentation SE37.
    Regards,
    Boobalan Suburaj

  • 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

  • FI accounting entries

    Sir,
    CAn anyone tell me what all scenarios are tested in FI accounting entries
    so that it can be transported from Quality to Production
    Plz help its very much urgent.
    thanks
    tushar

    Hi Tushar,
    FB50 is for GL Parking
    FB70 is for Customer invoice
    FB60 is for Vendor invoice
    But F-02 is for general GL posting, you can also post vendor and customer invoices by changing the Doc Type through F-02.
    For testing purpose, you can use the above three trans for checking parking of an account or invoice and also F-02 for general posting of transactions, This is just to add that parking transactions will not create a document they will only be a parked docs until you post.
    Alternatively you can also test through F-43, F-22, F-28 and F-58 for customer and vendor invoices and payments
    Hope this clarifies. Pls assing points as a way to say thanks
    regards,
    radhika

  • Account entries

    Hi
    Can you please let me what are the account entries will hit .. while configure the below process
    1) Subcontracting
    2)Park Invoice
    3)Asset procurement
    4)3rd party vendor
    5)master data
    6)vendor data
    7)STO
    8) release procedure
    9)material returns,Scrapping
    10)consumable procurement
    Can you please let me know .. thanks
    Note : Please search forum before posting,Go through forum rules
    Edited by: Jeyakanthan A on May 26, 2011 10:33 AM

    Thxxx BSR
    We may configure the excise collection in two ways.
    1. If we configure cenvat suspense while doing billing document, the same suspense account should be debited while excise invoice generation.
    2. If we configure ED recovered a/c while billing document, excise duty(expenses a/c) to be configured to offset while creating excise invoice.
    Either way you can follow.
    would u pl clarify when should i go for 1 way & when 2???????????. & why there r these two ways?????????
    Thxxx once again

  • Process flow of excise duty from procurement to sales accounting entry with amount.

    Dear Expert ,
    Kindly any one help the process flow of excise duty calculation from procurement to sales accounting entry with amount.  for example.- if material amount is Rs. 10,0000 and excise duty is 8% , edu ecss 2 % , and sec ecss 1%. I want know the accounting entry on- MIGO, J1IEX, MIRO, F-43  AND , PGI, BILLING DOCUMENT, J1IJ , TR6 CHALLAN, J2IUN.
    Regards
    Akshaya

    Hi,
    In case of
    A. Procurement : there are two types of procurement viz. Local and Import
    LOCAL
    1. MIGO
    Inventory A/c Dr
    To GR?IR
    2. J1IEX
    CENVAT Receivable (Basic) A/c - Dr
    CENVATReceivable (Ecess) A/c - Dr
    CENVAT Receivable (S & H) A/c - Dr
    To CENVAT Clearing
    3. MIRO
    CENVAT Clearing A/c - Dr
    To Vendor A/chrough
    4. F-43
    No excise entry through SAP direct posting but through manual posting in case using TAXINN procedure.
    5. TR6 Challan
    PLA Payment  (Basic) A/c - Dr
    PLA Payment (Ecess) A/c - Dr
    PLA Payment (S & H) A/c - Dr
    To PLA on Hold A/c
    IMPORT
    1. MIRO
    ECS+SECS on Cus+CVD A/c Dr (consists of ECS on custm+cvd and S & H on custm+cvd)
    CVD Clearing A/c Dr (consists of Additional Duty CVD and CVD)
    Customs Clearing A/c Dr (consists of Basic Customs)
    To Customs Vendor
    2.  MIGO
    Inventory A/c - Dr
    To GR/IR A/c
    To Customs Clearing (consists of Basic Customs)
    To ECS+SECS on Cus+CVD (consists of ECS on custm+cvd and S & H on custm+cvd)
    3. J1IEX
    CENVAT Receivable (Basic) A/c - Dr
    CENVATReceivable (Ecess) A/c - Dr
    CENVAT Receivable (S & H) A/c - Dr
    To CVD Clearing
    4. F-43
    No excise entry through SAP direct posting but through manual posting in case using TAXINN procedure.
    5. TR6 Challan
    PLA Payment  (Basic) A/c - Dr
    PLA Payment (Ecess) A/c - Dr
    PLA Payment (S & H) A/c - Dr
    To PLA on Hold A/c
    Sales
    1. PGI
    COGS A/c Dr
    To Inventory
    2. Billing Document
    Excise
    ED Suspense A/c Dr
    To Liability for BED
    To Liability for ECS
    To Liability for S & H
    Customer
    Customer A/c Dr
    To ED Suspense A/c
    To Revenue
    To VAT / CST
    Hope your doubts are clear.
    Regards,
    Tejas

Maybe you are looking for

  • IPod updater not available

    I just received a reconditioned iPod. Was instructed to download iTunes and iPod updater. Downloaded and installed iTunes 7.0.2 but iPod updater does not appear in my programs. Cannot use iPod until updater is installed and run. Help!

  • Getting EWA report But in Grey Colour

    Hi,    Iam getting EWA with all details of my solution manager,But my doubt is In my before EWA session its showing with grey colour.Is it iam getting report correctly or not.or is it any problem of getting report or i have to change any settings for

  • All System Centre Stack on 1 Instance of SQL Server

    Apologies : there does not appear to be a forum where this fits I am in the process of doing a design for a client who wants the whole system centre stack installed but on one instance of a SQL 2012 Cluster. I can find SQL Server Requirements for Sys

  • Autorecovery

    Can I use autorecovery in Photoshop CS6 if I don't use my C drive (windows) as scratch disk?

  • Return by Reference/Return by Value

    Okay. I am suppose to create this accessor method that is not suppose to return by reference so as to protect the private variables. Firstly, I suppose for primitive data type I can : public int rtnInt() { int i = 0; int j; int j = i;//Primitive type