Symptom
Unable to edit “Alternative Tax Classification” manually at the sales order header level, even though the value is maintained for the tax condition type in the "Maintain Tax Relevance for Customers" configuration activity.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Go to the sales order header.
- Enter a value (for example, “Z”) in the "Alternative Tax Classification" field.
- Continue or save the sales order.
- Observe that the entered value is cleared.
Cause
One possible reason is that an empty or incomplete implementation of BAdI SD_SLS_MODIFY_HEAD_TAX lacks essential data transfer logic, which causes the tax classification fields to be cleared.
Resolution
Review the BAdI SD_SLS_MODIFY_HEAD_TAX. Ensure the BAdI implementation is correct — if there is no custom logic, make sure the mandatory lines are still present, as this code prevents accidental data clearing.
* First, copy the values from the tax-relevant fields to the output parameter. * If you use developer extensibility and multiple implementations, embed this code in an if statement. *
* if salesdocument_tax_out is initial.
* salesdocument_tax_out = salesdocument_tax_in.
* endif.
Keywords
alternative tax classification, sales order header, value cleared, change tax classification, pricing tax determination, VBAK-TAXK1, SD_SLS_MODIFY_HEAD_TAX, BAdI, header tax fields, tax classification not saved, billing document tab, tax relevance , KBA , SD-BF-TX-2CL , Taxes (Public Cloud) , Problem
SAP Knowledge Base Article - Public