SAP Knowledge Base Article - Public

3801312 - Failed to adjust the rounding difference in document XXX - SAP S/4HANA Cloud Public Edition

Symptom

    • Searching by a sales organization in the Create Golden Tax Documents app leads to a failure when attempting to issue the invoice.
    • Error message: "Failed to adjust the rounding difference in document XXX".

    Environment

    SAP S/4HANA Cloud Public Edition

    Reproducing the Issue

      1. Open the Create Golden Tax Documents - China app.
      2. Search or filter by a sales organization.
      3. Observe the error in log: "Failed to adjust the rounding difference in document XXX".

      Cause

      The user did not include the China surcharge fee in the net value as indicated in the SD billing document. The tax amount was calculated based on the net value. Create Golden tax Documents - China will read the documents and calculate the tax base based on the tax amount. In this situation, the program considers that the tax amount and the tax base do not match, and thus reports an error.

      Resolution

        1. Confirm the business requirement on whether the China surcharge fee should be included in the net amount used for GTI outbound.
        2. If inclusion is required, implement the following BAdIs to adjust the invoice dataset to align with the intended calculation logic:
          Implement BAdI IDGTCN_OB_DATASET_PREP_AFT (Golden Tax Documents - Dataset Change After Data Preparation).
          Implement BAdI IDGTCN_OB_DATASET_PRET_AFT (Golden Tax Documents - Dataset Change After Data Pretreatment).
        3. Re-run the GTI outbound process for the affected document(s) and verify that rounding differences are handled as expected.

        Keywords

        GTI, Golden Tax, China, outbound invoicing, rounding difference, rounding adjustment, BAdI, IDGTCN_OB_DATASET_PREP_AFT, IDGTCN_OB_DATASET_PRET_AFT, net amount, VAT Invoice Management, FI-LOC-GTI-CN , KBA , FI-LOC-GTI-CN , China , Problem

        Product

        SAP S/4HANA Cloud Public Edition all versions