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:
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.
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?