Skip to Content
avatar image
Former Member

BAPI_ACC_DOCUMENT_POST : Error : Enter a payment currency different to INR

Hi Friends,

I am trying to Post a document using the BAPI_ACC_DOCUMENT_POST. The document should credit the vendor and debit the customer.

When i am trying to run this bapi i am getting the following error.

T ID NUM MESSAGE

E F5 873 Enter a payment currency different to INR

I am passing INR to CURRENCY of CURRENCYAMOUNT table.

If i do no pass i am getting an error saying it is mandatory.

I also tried to pass USD(which is not the expected solution), the document was successfully created.

Please guide me to overcome this problem.

Regards,

Gowri

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 06, 2009 at 11:57 AM

    Hi,

    The bapi you are using will be used to post the

    document through fb70 t-code wherein

    the customer gets debitted and the Sales

    i.e GL Accounts will get creditted.

    For your requirement to credit the vendor and

    debit the customer you can use t-code F-02.

    For that you can use BAPI: BAPI_ACC_GL_POSTING_POST

    Hope it helps

    Regards

    Mansi

    Edited by: MANSI ASNANI on Apr 6, 2009 2:04 PM

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks for all your replies.

      Hi Mansi,

      Good point you have noted.

      But BAPI_ACC_GL_POSTING_POST is exclusively for GL postings only, it cannot be used for vendor and customer postings.

      The documentation of the bapi states as follows

      "This can be produce debit or credit entries to balances which are not managed in one of the subledgers relevant to the balance sheet. This is especially applicable if the balances cannot be represented as assets, customers/vendors, materials, loans, etc"

      So i am afraid the bapi cannot solve our requirement.

      Gowri

  • Apr 05, 2009 at 02:00 PM

    Take the Help of Functional Consultant (FI).

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 06, 2009 at 11:21 AM

    Hi,

    Just pass 'INR' to CURRENCY_ISO, In addition to CURRENCY.

    I hope this helps,

    Regards

    Raju Chitale

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 06, 2009 at 11:56 AM

    Hi Shankar,

    see the below example and correct where you are misatake....

    please check you Kostl and Budat and wrbtr(currency )values before posting

    *    Check the Kostl and Budat
          gt_accountgl-costcenter = gt_item-kostl.
          gt_accountgl-pstng_date = gt_header-budat.
          append gt_accountgl.
          clear gt_accountgl.
    
    *     Check Curren and currecy value
          gt_currencyamount-itemno_acc = vcounter.
          gt_currencyamount-currency = 'INR'.
          gt_currencyamount-amt_doccur = gt_item-wrbtr.
          append gt_currencyamount.
          clear gt_currencyamount.
    
        call function 'BAPI_ACC_DOCUMENT_POST'
          exporting
            documentheader          = wa_documentheader
    *       CUSTOMERCPD             = CUSTOMERCPD
    *       CONTRACTHEADER          = CONTRACTHEADER
         importing
    *       OBJ_TYPE                = OBJ_TYPE
           obj_key                 =  v_refkey
    *       OBJ_SYS                 = OBJ_SYS
          tables
           accountgl               = gt_accountgl
    *       ACCOUNTRECEIVABLE       = ACCOUNTRECEIVABLE
           accountpayable          = gt_accountpayable
    *       ACCOUNTTAX              = ACCOUNTTAX
            currencyamount          = gt_currencyamount
    *       CRITERIA                = CRITERIA
    *       VALUEFIELD              = VALUEFIELD
    *       EXTENSION1              = EXTENSION1
            return                  = gt_return
    *       PAYMENTCARD             = PAYMENTCARD
    *       CONTRACTITEM            = CONTRACTITEM
    *       EXTENSION2              = EXTENSION2
    *       REALESTATE              = REALESTATE
    .
    
        if p_test is initial.
          call function 'BAPI_TRANSACTION_COMMIT'.
       endif.
    

    Regards,

    Prabhudas

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 18, 2014 at 02:32 PM

    Hi Gowri,

    Getting the same error in BAPI.

    Were you able to solve this issue??

    Please help.

    Shruti.

    Add comment
    10|10000 characters needed characters exceeded