on 08-22-2017 12:31 PM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.