Skip to Content
0
Sep 10, 2014 at 05:00 PM

BAPI_ACC_DOCUMENT_CHECK tax item BKPF-XMWST

639 Views

Hi gurus,

I have an issue.

I'm using BAPI_ACC_DOCUMENT_CHECK, to verify a document before posting. The document needs to have the BKPF-XMWST filled with the value "X".

I've created 2 enhancements for both ACC_DOCUMENT and I added the code:

METHOD if_ex_acc_document~change.

LOOP AT c_accit INTO wa_accit WHERE mwskz IS NOT INITIAL.

wa_accit-xmwst = 'X'.

MODIFY c_accit FROM wa_accit INDEX sy-tabix TRANSPORTING xmwst.

ENDLOOP.

ENDMETHOD.


but the resulting document doesn't have the 3rd line (the tax item) and I get no error message (the document is created).


Is there something I'm missing or did I do something wrong?


Thanks,

Marius