Hi All
We are trying to post a document against different GL accounts via BAPI_ACC_DOCUMENT_POST for group currency.
But it is throwing an error 'Balance in transaction currency'. I am assuming that the credit - debit is not coming out to be ZERO. This requirement is for Hyperinflation in Venezuela.
I am doing it in USD as well as the local currency VEF. Below are the values I am passing in the structure CURRENCYAMOUNT.
credit:
wa_curramt-itemno_acc = '0001'.
wa_curramt-curr_type = '10'.
wa_curramt-curr = 'VEF'.
wa_curramt-amt_doccur = '68.4'.
APPEND wa_curramt TO ta_curramt.
CLEAR wa_curramt.
credit:
wa_curramt-itemno_acc = '0001'.
wa_curramt-curr_type = '30'.
wa_curramt-curr = 'USD'.
wa_curramt-amt_doccur = '10'.
APPEND wa_curramt TO ta_curramt.
CLEAR wa_curramt.
credit:
wa_curramt-itemno_acc = '0002'.
wa_curramt-curr_type = '10'.
wa_curramt-curr = 'VEF'.
wa_curramt-amt_doccur = '68.4'.
APPEND wa_curramt TO ta_curramt.
CLEAR wa_curramt.
credit:
wa_curramt-itemno_acc = '0002'.
wa_curramt-curr_type = '30'.
wa_curramt-curr = 'USD'.
wa_curramt-amt_doccur = '10'.
APPEND wa_curramt TO ta_curramt.
CLEAR wa_curramt.
debit:
wa_curramt-itemno_acc = '0003'.
wa_curramt-curr_type = '10'.
wa_curramt-curr = 'VEF'.
wa_curramt-amt_doccur = '136.8'.
APPEND wa_curramt TO ta_curramt.
CLEAR wa_curramt.
debit:
wa_curramt-itemno_acc = '0003'.
wa_curramt-curr_type = '30'.
wa_curramt-curr = 'USD'.
wa_curramt-amt_doccur = '20'.
APPEND wa_curramt TO ta_curramt.
CLEAR wa_curramt.
Let me know if some more info is needed from my end.
Thanks in advance,
Tejaswini