BAPI_ACC_DOCUMENT_POST
BAPI_ACC_DOCUMENT_POST
BAPI_ACC_DOCUMENT_POST FAQ' s
What causes error message FF 818?
Item-by-item tax calculation is active for the company code used in the posting. In
transaction OBCO, the relevant indicator is active for the tax calculation procedure used.
Consequently, the tax is not determined for the entire document. Instead, it must be
determined and posted individually for each expense item or revenue item. In order to be able
to assign the tax items to the corresponding expense items and revenue items, which provide
the basis for the tax calculation, it is necessary to use the field ITEMNO_TAX to establish a
reference between these items in the parameters ACCOUNTGL and ACCOUNTTAX. If this
reference does not exist (that is, the field is not filled in one of these parameters or the value
in the field ITEMNO_TAX differs in each parameter), the system issues error message FF
818.
Open a customer message under the application component associated with the source
application and make reference to this SAP .
If you call the BAPI in your own program, it can be assumed that the tax information was
transferred incorrectly. that the BAPI cannot calculate the tax itself and therefore the source
application must transfer all of the tax information to the BAPI. If you use a tax code in
which several tax conditions are maintained, an item in the structure ACCOUNTTAX must
be transferred for each of these conditions.
If item-by-item tax calculation is active, the items must also be linked to each other in the
parameter ITEMNO_TAX in the structures ACCOUNTGL and ACCOUNTTAX. To achieve
this, enter the same value in the parameter ITEMNO_TAX in each structure.
If item-by-item tax calculation is not active, you must not enter a value in the parameter
ITEMNO_TAX in the structures ACCOUNTGL and ACCOUNTTAX.
An example of how a correct BAPI call should look for an item-by-item tax calculation is
provided in Section 6.
ACCOUNTPAYABLE
ITEMNO_ACC = '0000000001'
VENDOR_NO = 'VEND01'
ACCOUNTGL
ITEMNO_ACC = '0000000002'
GL_ACCOUNT = '0000400000'
TAX_CODE = 'A1'
TAXJURCODE = 'PA0011000'
ITEMNO_TAX = '000001'
ACCOUNTTAX
ITEMNO_ACC = '0000000003'
GL_ACCOUNT = '0000012345'
COND_KEY = 'MWS1'
ACCT_KEY = 'XM1'
TAX_CODE = 'A1'
TAXJURCODE = 'PA0010000'
TAXJURCODE_DEEP = 'PA0011000'
TAXJURCODE_LEVEL = '1'
ITEMNO_TAX = '000001'
ITEMNO_ACC = '0000000004'
GL_ACCOUNT = '0000012345'
COND_KEY = 'MWS2'
ACCT_KEY = 'XM2'
TAX_CODE = 'A1'
TAXJURCODE = 'PA0011000'
TAXJURCODE_DEEP = 'PA0011000'
TAXJURCODE_LEVEL = '2'
ITEMNO_TAX = '000001'
CURRENCYAMOUNT
ITEMNO_ACC = '0000000001'
CURR_TYPE = '00'
CURRENCY = 'USD'
AMT_DOCCUR = '113-'
ITEMNO_ACC = '0000000002'
CURR_TYPE = '00'
CURRENCY = 'USD'
AMT_DOCCUR = '100'
ITEMNO_ACC = '0000000003'
CURR_TYPE = '00'
CURRENCY = 'USD'
AMT_DOCCUR = '7'
AMT_BASE = '100'
ITEMNO_ACC = '0000000004'
CURR_TYPE = '00'
CURRENCY = 'USD'
AMT_DOCCUR = '5'
AMT_BASE = '100'
The detailed tax information, which you must transfer to the structure ACCOUNTTAX, is
contained in your tax calculation procedure in transaction FTXP.
https://www.stechies.com/interview-question-error-ff-817-ff-818-postings/