Tag Archives: SAP Learning

ABAP: Overbooking BAPI_ACC_DOCUMENT_POST error reported FI/CO interface: inconsistent FI/CO voucher header data to be updated

Problem: When using BAPI_ACC_DOCUMENT_POST, the reason for the error is “FI/CO interface: inconsistent FI/CO voucher header data to be updated” when automatically posting the account.

Reasons:

1. If the company in the header data and the line item company are consistent, check the line item and do not assign company bukrs to the line item.

“it_item-comp_code = wa_account-bukrs.

2, check whether the amount is 0, if the line item amount is 0, it will report this error.

3, whether the positive and negative of the amount of debit and credit are consistent. Example: The bookkeeping code is 40, debit, should be a positive value; the bookkeeping code is 50, credit, is a negative value.

it_curr-amt_doccur = wa_account-wrbtr.

Solution:

Follow the above reasons, troubleshoot the program, and modify it.