Skip to Content
avatar image
Former Member

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?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 03, 2008 at 04:18 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 03, 2008 at 01:58 PM

    Send us the snippet of code where creates values in the cube based on the master data.

    The code that you posted only potrays that the controls loops over the function z_calc_days for each employee value. What does the function z_calc_days does?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 03, 2008 at 02:01 PM

    I`ve used the standard function type "Generate Combinations" in 7.0 integrated planning to generate the combinations.

    Add comment
    10|10000 characters needed characters exceeded