SAP Message /POSDW/AGGREGATION040 - Aggreg. level &1: Type &2 does not correspond to type &4 (see long text)

Diagnosis
The Customizing settings for the aggregation level &V1& specify thecategory &V2& for the current record. However, the category &V4& retur
ned by the implementation &V3& for BAdI /POSDW/BADI_AGGR_TRANSACTIONdeviates from this.

Procedure
Modify the BAdI implementation or correct the Customizing settings.