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

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 , Document Compliance Taiwan , Problem

Product

SAP S/4HANA Cloud all versions