In S/4 HANA cloud system, cancel reason is always set to "Sample Cancellation reason" in B2C XML
- SAP S/4HANA CLOUD
Reproducing the Issue
- Run edoc_cockpit
- Choose the document
- Display the XML file
This is hardcoded in cloud BAdI.
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.
S4, HANA S4CORE , KBA , CA-GTF-CSC-EDO-TW , Document Compliance Taiwan , Problem