Hello, experts.
Could you help me with the following problem:
We are using BAPI ACC DOCUMENT POST for an outgoing invoice. To get tax line item posted we are passing accounttax.
LT_Return shows that the document was created. It displays its number.
But when performing COMMIT WORK we get a RAISE_EXCEPTION dump.
RAISE_EXCEPTION
SAPLF005
FI-AP-AP-PT
Exception condition "E_CURRD_MISSING" raised.
A RAISE statement in the program "SAPLFDIS" raised the exception
condition "E_CURRD_MISSING".
Since the exception was not intercepted by a superior
program, processing was terminated.
Short description of exception condition:
For detailed documentation of the exception condition, use
Transaction SE37 (Function Library). You can take the called
function module from the display of active calls.
~~~
*clear: wa_acctx.
* wa_acctx-itemno_acc = '30'.
* wa_acctx-gl_account = t_mwt-hkont.
* wa_acctx-tax_code = 'RR'.
* wa_acctx-tax_rate = t_mwt-msatz.
* wa_acctx-itemno_tax = '020'.
* wa_acctx-cond_key = t_mwt-kschl.
* wa_acctx-acct_key = t_mwt-ktosl.
* append wa_acctx to lt_acctx.
*
*clear: wa_curr.
* wa_curr-itemno_acc = '30'.
* wa_curr-curr_type = '10'.
* wa_curr-currency = 'KZT'.
* wa_curr-amt_doccur = - abs( t_mwt-kawrt * t_mwt-msatz ) / 100.
* wa_curr-amt_base = - abs( t_mwt-kawrt ).
* wa_curr-tax_amt = - abs( t_mwt-wmwst ).
* append wa_curr to lt_curr.