SAP Message CACS_SE045 - Number of settlement lines after BAdI is different from before

Diagnosis
The number of settlement lines determined by the BAdI SettlementRun: Enrich Settlement Document (CACS_SETTLEMENT_RUN_ENR_DOC) is notthe same as the number of lines before the determination with the BAdI.

Procedure
Note:
Changing the number of lines in the BAdI is not permitted. Youcan only use this BAdI to enrich existing lines, in other words to fillcustomer fields.
Change the BAdI accordingly.