Skip to Content
avatar image
Former Member

Post Local currency via BAPI_ACC_DOCUMENT_POST

Hi,

We are trying to post FI receipt using BAPI_ACC_DOCUMENT_POST. Our company code currency is INR. While posting document with document currency USD, we want to post one line item with document currency amount = 0.00 USD and local currency amount as exchange difference amount. The same was possible via FB05.

EG: Via FB05

The same is required through BAPI. Kindly help.

kimzv.png (54.4 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Sep 07, 2017 at 08:25 AM

    Just create two records in currency amount table parameter, one with zero amount in document currency and one with not-zero amount in local currency.

        " Document currency with zero amount
        clear ls_currency.
        ls_currency-itemno_acc = item.
        ls_currency-amt_doccur = 0.
        ls_currency-currency   = waers.
        ls_currency-curr_type  = '00'.
        append ls_currency to lgt_currencyamount.
        " Local currency amount
        clear ls_currency.
        ls_currency-itemno_acc = item.
        ls_currency-amt_doccur = amount.
        ls_currency-currency   = hwaer.
        ls_currency-curr_type  = '10'.
        append ls_currency to lgt_currencyamount.
    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Avijit,

      I am facing the same issue, but couldn't get the line items created for exchange difference using the BAPI. Can you please guide me or provide me the source code.

      Regards

      Sreeni

  • Sep 07, 2017 at 04:29 AM

    Dear Das,,

    It is possible with the BAPI BAPI_ACC_DOCUMENT_POST , however I can't access the source codes right now. The solution is to add another entry to the negative lines (when you detect it) and leave the amount 0.00 and it will correct for you.

    Regards,

    Nick Tang

    Add comment
    10|10000 characters needed characters exceeded