SAP Knowledge Base Article - Public

2874639 - Cancel reason is wrong in B2C XML

Symptom

In S/4 HANA cloud system, cancel reason is always set to "Sample Cancellation reason" in B2C XML

Environment

  • SAP S/4HANA, cloud edition 1503
  • SAP S/4HANA, cloud edition 1506
  • SAP S/4HANA, cloud edition 1511
  • SAP S/4HANA, cloud edition 1603
  • SAP S/4HANA Cloud 1605
  • SAP S/4HANA Cloud 1608
  • SAP S/4HANA Cloud 1611
  • SAP S/4HANA Cloud 1702
  • SAP S/4HANA Cloud 1705
  • SAP S/4HANA Cloud 1708
  • SAP S/4HANA Cloud 1711
  • SAP S/4HANA Cloud 1802
  • SAP S/4HANA Cloud 1805
  • SAP S/4HANA CLOUD 1811
  • SAP S/4HANA Cloud 1808
  • SAP S/4HANA CLOUD 1902

Reproducing the Issue

  1. Run edoc_cockpit
  2. Choose the document
  3. Display the XML file

Cause

This is hardcoded in cloud BAdI.

Resolution

The phenomenon is caused by following cloud BAdI.

  1. Open app “extensibility -> custom fields and logic”
    1.jpg
  2. Click custom logic tab
    2.jpg
  3. Click “+” button
  4. Select business context “eDocument: Taiwan” and BAdI Description: “eDocument Taiwan: Complete Invoice and Allowance XML Files”4.jpg

You can edit the cloud BAdI sample code, remove the code line for "sample cancel reason" as a temporary workaround.

In the future, the related source code in the BAdI above will be removed by hotfix.

Keywords

S4, HANA S4CORE , KBA , CA-GTF-CSC-EDO-TW , eDocument Taiwan , Problem

Product

SAP S/4HANA Cloud 1605 ; SAP S/4HANA Cloud 1608 ; SAP S/4HANA Cloud 1611 ; SAP S/4HANA Cloud 1702 ; SAP S/4HANA Cloud 1705 ; SAP S/4HANA Cloud 1708 ; SAP S/4HANA Cloud 1711 ; SAP S/4HANA Cloud 1802 ; SAP S/4HANA Cloud 1805 ; SAP S/4HANA Cloud 1808 ; SAP S/4HANA Cloud 1811 ; SAP S/4HANA Cloud 1902 ; SAP S/4HANA Cloud 1905 ; SAP S/4HANA, cloud edition 1503 ; SAP S/4HANA, cloud edition 1506 ; SAP S/4HANA, cloud edition 1511 ; SAP S/4HANA, cloud edition 1603