Error in BAPI for salary account posting

Dear Experts,
    I am developing and report for salary account posting whrere i am using a bapi called BAPI_ACC_DOCUMENT_POSTING. Which require RFC destinetion of the target system where the document should post in its import parameters.But m not passing anything thr and its automatically taking an rfc destinatin.But while i try to run this report document is not posted and in its return table 2 error msgs comes
1. Error in document: BKPFF $ CLNTD11320
2. FI/COinterface: Line item entered several times
   Pls provive me input if any one has come across this error.
Thanks

Line item passed to the vendor and gl tables of the bapi cannot be same.ie. if vendor table contains 3 entry with line item 1,2,3 gl should contain line item starting from 4.Line item field cannbe field manually using a count variable.

Similar Messages

  • Require standard BAPI for GL Account Posting

    We are creating a GL Account Posting in Transaction F-02.
    We are giving Document date Document type Posting Date, Currency type , Company code, Posting Key AccountNo, Amount.
    Click on Save Button . A screen appears.  Then the Document is Parked. A document No is generated.
    i want a standard BAPI which does this Process

    Hi,
    Check the BAPI's
    <b>BAPI_ACC_DOCUMENT_POST
    BAPI_INCOMINGINVOICE_PARK</b>
    regards
    vijay

  • BAPI FOR VENDOR ACCOUNT POST

    HI
    please any body tell me how to insert BAPI for transaction code F-43/FB01.
    I want to map data from external software.
    I am using insert BAPI using tables BSEG,BKPF,LFA1.
    data is not displaying in FB03.
    Kindly reply me as soon as possible.....
    Waiting for a reply....
    Thanks

    Make sure that you call BAPI_TRANSACTION_COMMIT after your BAPI call.
    Rob

  • Report for list of invoce for that accounting posting is due

    Hi,
    Is there is any report to see the list of invoice for that accounting posting has not done.Please reply ASAP.
    Regards
    Prabudh

    Hi
    Go to T code VF05n and check open Billing documents and execute. System gives you the list which are pending for posting to FI.
    Regards

  • BAPI for goods reciept posting

    Hi,
         Can Any one provide me BAPI for goods reciept posting.
    Thanks.
    Moderator message: please try finding out yourself before asking.
    locked by: Thomas Zloch on Aug 17, 2010 10:55 AM

    HI,
         Have a look at
    BAPI_GOODSMVT_CREATE
    BAPI_ACC_GOODS_MOVEMENT_CHECK
    BAPI_ACC_GOODS_MOVEMENT_POST
    Regards,
    S.Velsankar
    Moderator message: please do not encourage laziness by replying to such questions!
    Edited by: Thomas Zloch on Aug 17, 2010 11:00 AM

  • Is there any bapi for salary

    hi all,
    is there any bapi for salary

    hi,
    BAPI_ACC_EMPLOYEE_PAY_CHECK    Accounting: Check Vendor Acct Assignment for HR Posting
    BAPI_ACC_EMPLOYEE_PAY_POST     Accounting: Post Vendor Acct Assignment for HR Posting

  • BAPI for Picking and Post Goods Issue ?

    Hi All,
    Is there any BAPI for doing Picking and Post Goods Issue in VL02N ? I don't think we can use BAPI_OUTB_DELIVERY_CHANGE.
    Is it advisable to use BAPI or BDC ( if no BAPI exist ).  Thanks in Advance.

    BAPI for picking in VL02N
    BAPI_OUTB_DELIVERY_SAVEREPLICA
    BAPI for posting Goods Issue
    BAPI_OUTB_DELIVERY_CONFIRM_DEC
    For reference: http://help.sap.com/printdocu/core/Print46c/EN/data/pdf/LEIDW/LEIDW.pdf

  • BAPI for transfer with posting -FB05 (transaction f-04)

    We are running R/3 4.7.
    Does anyone know if there is a BAPI that will do a transfer with clearing for GL accounts? The SAP transaction for GL transfer with clearing is F-04. If so could you let me know the name of the BAPI.
    Thank you
    Chris

    Hi Christopher,
    Have a glance at the link below, here you can find list of BAPI's
    http://www.sapbapi.com/bapi-list/
    Regards,
    Soundarya.

  • BAPI for TOCE : FF68 - Posting Incoming Payments from Customers

    Hi,
    Can anybody provide me if there is any BAPI for the transaction FF68 : Posting Incoming Payments from Customers?
    Cheers,
    Yash K

    Hi,
    OBZT just controls the display of the various tax codes in the drop down list if MIRO/ FB60 etc.
    You need to maintain the atx coe correctly in FBZP. Go to FBZP and in this tax code and check whether the tax rates etc. have been defined correctly for it.
    Regards,
    SDNer

  • BAPI for GL Account doc parking

    Hi All,
    Is there any BAPI for the GL Account Doc parking in SAP R/3.
    Pls let me know at the earliest.
    Thanks in advance.
    Murgesh.

    Hi
    I've tried several FMs and non seem to work but try the following:
    All credit for Rteve Sowan
    se24 create class ZCL_FI_UTILS
    Create Class, Static method ACC_DOCUMENT_POST
    with the following import params:
    IP_BKPF     Importing     Type     FM_BKPF_TAB
    IP_BSEG     Importing     Type     FM_BSEG_TAB
    IP_BSEC     Importing     Type     FM_BSEC_TAB
    IP_BSET     Importing     Type     FM_BSET
    IP_BSEZ     Importing     Type     ZFM_BSEZ_TAB (your table type of BSEZ)
    Method Code (you could call the function direct, but at least this informs other developer that the method is intended for parking GL Account docs):
    method ACC_DOCUMENT_PARK.
      CALL FUNCTION 'PRELIMINARY_POSTING_FB01'
      TABLES
        t_bkpf                 = ip_bkpf
        t_bseg                 = ip_bseg
        t_bsec                 = ip_bsec
        t_bset                 = ip_bset
        t_bsez                 = ip_bsez
    endmethod.
    Within your program populate Header BKPF
    Accounting Document Header
    gs_bkpf-bukrs                         = '1000'.
    gs_bkpf-gjahr                         = '2007'.
    gs_bkpf-blart                         = 'SA'.
    gs_bkpf-bldat                         = sy-datum.
    gs_bkpf-budat                         = sy-datum.
    gs_bkpf-monat                         = '12'.
    gs_bkpf-wwert                         = sy-datum.
    gs_bkpf-usnam                         = sy-uname.
    gs_bkpf-tcode                         = sy-tcode.
    gs_bkpf-waers                         = 'GBP'.
    gs_bkpf-glvor                         = 'RFBU'.
    gs_bkpf-hwaer                         = 'GBP'.
    APPEND gs_bkpf TO gt_bkpf.
    Populate the Item
    Accounting Document Segment
    gs_bseg-bukrs                         = '1000'.
    gs_bseg-gjahr                         = '2007'.
    gs_bseg-buzei                         = '001'.
    gs_bseg-bschl                         = '40'.
    gs_bseg-koart                         = 'S'.
    gs_bseg-shkzg                         = 'S'.
    gs_bseg-wrbtr                         = '1'.
    gs_bseg-pswsl                         = 'GBP'.
    gs_bseg-vorgn                         = 'RFBU'.
    gs_bseg-kokrs                         = 'N999'.
    gs_bseg-kostl                         = '1000E021'.
    gs_bseg-xkres                         = 'X'.
    gs_bseg-hkont                         = '221001101'.
    Format the Account Doc
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        input  = gs_bseg-hkont
      IMPORTING
        output = gs_bseg-hkont.
    APPEND gs_bseg TO gt_bseg.
    Call the Class Method previously created
    CALL METHOD zcl_fi_utils=>acc_document_park
    exporting
        ip_bkpf = gt_bkpf
        ip_bseg = gt_bseg
        ip_bsec = gt_bsec
        ip_bset = gt_bset
        ip_bsez = gt_bsez
    So long as GT_BKPF and GT_BSEG are populated (minimum) the document will park.
    The other tables need to be passed as empty tables.
    Have a play
    LMc

  • Error while using BAPI for F-47 posting.

    Hi,
    I am using the BAPI - 'BAPI_ACC_DOCUMENT_POST' to do a Down Payment Request Posting (F-47).
    Since this is a single line posting, BTE RWBAPI01 was implemented as given in the below link.
    [Re: BAPI or Function Module for F-47 (Down payment request)]
    Inside the BAPI i have passed details in tables :account payable , currency amount & extension1.
    However i get the error " Balance in transaction currency".
    Please let me know if i need to pass any other details. Also what is the exact data that needs to be passed to extension table?
    Thanks,
    Meera

    hi ,
    check this threads
    Check these threads
    Balance in transaction currency 
    Balance in Transaction Currency
    error in Balance in transaction currency
    error in Balance in transaction currency
    Balance in Transaction Currency
    Balance in transaction currency
    if this could help .
    Regards
    Deepak.
    Edited by: Deepak Dhamat on Oct 19, 2010 11:21 AM

  • Error in BAPI for MIRO

    Hi,
    While using BAPI_INCOMINGINVOICE_CREATE to post an invoice with a purchase order (MIRO), we are getting the error message
    "Balance not zero: 165.60 debits: 0.00 credits: 165.60".
    Please help us to detect where the error is.
    We are entering values in 'ITEMDATA', 'GLACCOUNTDATA' and 'HEADERDATA' segments.
    In 'ITEMDATA', we are giving the debit_creditor indicator as 'S' and in 'GLACCOUNTDATA' we are giving the debit_creditor indicator as 'H'.
    In both 'ITEMDATA' and 'GLACCOUNTDATA' we are providing the item amount as 165.60.
    In header data we have not provided a value for 'GROSS_AMOUNT'. (Even if we provide value of '165.60' in header, we get a similiar error)
    The PO has got onlly one line item.
    This is a high priority issue. Please help.
    Thanks,
    John

    John,
    I think we need to post debit and credit entries in the  'GLACCOUNTDATA' for the same amount.
    Regards,
    Kiran Bobbala

  • F-29 Customer down payment, error, system ask for vendor account

    Hello,
    When I enter customer down payment through F-29 I receive message F5243 'Account type K is not defined for document type DZ'.
    If I use other document type, I receive the same message. I DO NOT NEED ACCOUNT TYPE 'VENDOR' HERE. (When I choose with F4 I receive search for CUSTOMER, and special GL also for CUSTOMER.)
    If I change that (and allow acct type 'K'), system issue message F5104 'Vendor not created in CoCode'.
    If, for example I have the same number for vendor and customer (SAME NUMBER, NOT THE SAME COMPANY), system allows me to go further, but takes information for 'Vendor down payment' (made in Customizing).
    I would like to point that there is no link in master date between customer and vendor account.
    My only clue is that something is wrong with this transaction (there is no SAP note for this exact problem, and all other posts on the same subject here on SDN are not resolved)
    Maybe someone has idea about connection of this tcode with logistic...
    PLEASE HELP

    Hi Amina,
    For that u check weather u assign vendor special gl account to customer reconcile account in OBXR.
    Select special gl type  D in OBXR and give the reconcilation account of customer and special gl account
    Regards
    Surya

  • Error in BAPI for ME21N

    Hi,
    I have developed a Z program for ME21N by using BAPI( BAPI_PO_CREATE1). When I executive it always shows
    "Please enter items first. No instance of object type PurchaseOrder has been created. External reference: Document contains no items".
    Would you suggest how can I solve this problem
    Best Regards
    Mahabub

    Hi mahaboob,
    Before creating Z program  , first  execute Function module itself in se37 by passing required parameters with help of functional consultant and if any errors occurs , functional consultant can easily idetifies and resolves it. After successfully execution, develop the Zprogram.
    Place the parameters what you are passing , so that i can help you if you need.
    Regards,
    Ravi

  • BAPI for F.04 (Posting with Clearing)

    Hi Experts,
    I got 2  Function Modules for F.04. T.code,
    1. BAPI_ACC_DOCUMENT_POST.
    2. BAPI_ACC_GL_POSTING_POST.
    please tell me which one is more suitable and if possible  then please provide code
    Thanks & Regards,
    Vimarsh B.

    Hi,
    Please find the code below:
    LOOP AT it_upload_rec.
        header-bus_act = 'RFBU'.
        header-doc_date = it_upload_rec-bldat.
        header-pstng_date = it_upload_rec-budat.               header-header_txt = 'F-02 Posting'.
        header-comp_code = 'PL10'.
        header-doc_type = 'SA'.
        header-username = sy-uname.
        APPEND header.
        CLEAR header.
        account_gl-itemno_acc = '1'.
        account_gl-gl_account = it_upload_rec-account1.
        APPEND account_gl.
        CLEAR account_gl.
        account_payable-itemno_acc = '2'.
        account_payable-vendor_no = it_upload_rec-account2.
        APPEND account_payable.
        CLEAR account_payable.
        currency_amount-itemno_acc = '1'.
        currency_amount-currency = 'INR'.
        currency_amount-amt_doccur = it_upload_rec-amount.
        APPEND currency_amount.
        CLEAR currency_amount.
      ENDLOOP.
      CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
        EXPORTING
          documentheader          = header
    *   CUSTOMERCPD             =
    *   CONTRACTHEADER          =
       IMPORTING
      obj_type = gv_obj_type
      obj_key = gv_obj_key
      obj_sys = gv_obj_sys
        TABLES
         accountgl               = account_gl
       ACCOUNTRECEIVABLE       =
         accountpayable          = account_payable
    *   ACCOUNTTAX              =
          currencyamount          = currency_amount
    *   CRITERIA                =
    *   VALUEFIELD              =
    *   EXTENSION1              =
        return                  = it_return
    *   PAYMENTCARD             =
    *   CONTRACTITEM            =
    *   EXTENSION2              =
    *   REALESTATE              =
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    KR Jaideep,

Maybe you are looking for