Symptom
In SAP S/4HANA Cloud Public Edition system, cancel reason is always set to "Sample Cancellation reason" in B2C XML
Environment
- SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Run edoc_cockpit
- Choose the document
- Display the XML file
Cause
This is hardcoded in cloud BAdI.
Resolution
The phenomenon is caused by following cloud BAdI.
- Open app “extensibility -> custom fields and logic”
- Click custom logic tab
- Click “+” button
- Select business context “eDocument: Taiwan” and BAdI Description: “eDocument Taiwan: Complete Invoice and Allowance XML Files”
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 Public Edition all versions ; SAP S/4HANA Cloud all versions