Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

IP - Create values based on master data

Hi together,

I`d like to write a planning function which creates values based on master data. I created an initial dataset, so in the cube I have zero counts for every characteristic combination.

On looping over the values with

FOREACH EMPLOYEE.
    CALL FUNCTION Z_CALC_DAYS

I don`t get the generated values...

Could anybody help?

Former Member
Former Member replied

Hi,

FOREACH loop works only on the values which are found in transaction data. I am not sure if it will work using the records created by 'generate combinations' function.

What you can try instead is to restrict the filter (used to execute the function) to the values that you want to loop on (using a variable maybe), and then use FOREACH IN SELECTION.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question