DP Disaggregation and Aggregation levels

Hi all,

I have a question regarding disaggregation and aggregation levels.

KFu2019s and disaggregation setup:


Calculation type: I (not relevant)

Disag. Key Fig.: KF000 (not relevant)

Time-Based Disaggregation: K (not relevant)

Time-Based Disag. Key Figure: (not relevant)


Calculation type: I

Disag. Key Fig.: Keyfigure001

Time-Based Disaggregation: P

We are now interested on the KF002. KF002u2019s disaggregation is based on KF001. I am trying to copy KF001 values to KF002 with a macro that is attached to a background job. Macro doesnu2019t do anything else than copy values from KF001 to KF002.

Background job setup:


Sales organization: 2000AB

Location: 1000EF

Product: 1 to 2000 (consists 2000 products, including products that do not belong to above location)

Excluded values:

Customer group 1: 2500AB

Aggregation level:

Sales organization



Customer group 1

What I try to accomplish (through background job - mass processing):

I am trying to copy values with above setup so that the most detailed level which is Customer group 2 would have values through disaggregation. I have successfully copied values to product level, location level, sales organization level but the customer group 2 level values are not as KF001u2019s. Values are right in the SUM level, but not disaggregated right to customer group 2 level.

I get right results when I choose Customer group 2 to the aggregation level but this is not something we can do as it causes way too long runtimes. What I am also interested in is that how come the disaggregation does not work properly or does it? How can I get the disaggregation work so that I only have to select the aggregation levels which are defined in the selection and get proper results through disaggregation to customer group 2 level?

Thanks in advance,


  • SAP Employee

Hello Juha,

You do not need another macro, just make the above change to your original one, and the macro should work.

Your aggregation level in the job should also be OK.

Since you mentioned that the values at detailed level are not the same as key figure 1, it sounds to me that the system did a pro rata disaggregation. Do you have the key figure 2 totally cleared out before copy? Since you're using disaggregation type 'I', it only disaggregates based on another key figure when the key figure value is initial.

So my suggestion is, you can try to change the key figure's disaggregation tyep to 'P' and check if the macro works.

Or if you have to use type 'I', you should add a step in the macro before the copy step, to initialize key figure 2 first.

To initialize a key figure, just put the row in the step, and for the 'Change Mode', select 'Initialization'.

Best Regards,


0 View this answer in context