SAP Knowledge Base Article - Public

2819168 - Changes in BAdI logic not appearing in existing sales documents output

Symptom

Changes are made to the BAdI logic, however even when a new output item is triggered for the sales document, changes are unavailable.

Environment

SAP S/4HANA Cloud Public Edition

Cause

The BADI logic is only triggered when a new order is created or the item of the sales document is changed and the new value is written to the database.

Generating a new output document or displaying the print preview is not considered a change on the actual sales document and thus the BADIs are not executed.

Resolution

There are two different ways to get the solution:

  1. Create a new sales document.
  2. For existing sales document consider to do a dummy change of the item.

Keywords

BAdI, logic, Custom Logic, sales order, sales document, output, Sales Item Modification, output determination , KBA , SD-BF-OC , Output Determination , CA-GTF-OC , SAP S/4HANA output management , How To

Product

SAP S/4HANA Cloud Public Edition all versions