Hi all,
I have a dimension called SALES_OFF_GRP which will be totally manuelly editted and which includes sales groups and offices. IDs are like salesoff1_salesgp1 , salesoff1_salesgp2, salesoff2_salesgp2 etc and. They are the base level of this dimension. I also have salesgp1 and salesoff1 etc as seperate members and they are the middle node members.
I build 2 parenth to display the data by sales groups and sales offices seperately.And I have two more members for both of these hierarchies as SALES_OFFICES and SALES_GROUPS and they are the top nodes.
The picture is here:
The requierement :
The user inputs discounts by sales offices and want to allocate them to sales groups at the rate of sales groups' income.
I can not input the data to sales offices as they are parent. I tried to create dummy offices at base level of each sales offices like SOFF001_INPUT, SOF002_INPUT but then the code below will not work correctly.
*RUNALLOCATION
*FACTOR=USING/TOTAL
*DIM KEYFIGURES WHAT=KF006; WHERE=KF006; USING=KF003
// here KF006 holds discounts and KF003 holds the incomes
*DIM CUSTOMER WHAT=CUST_DUMMY; WHERE<>CUST_DUMMY; USING=<<<
*DIM DISTR_CHAN WHAT=DC_DUMMY; WHERE<>DC_DUMMY; USING=<<<
....
....
// .... means there are some other dimensions from dummy to not equal to dummy which are not important
*ENDALLOCATION
The code will not work correctly if I allocate from ..._INPUT to other members since it will just allocate to all salesoffices_salesgroups (base level) regardsless of their parent which is a sales office in this code .I want the code to allocate the discount of SOF002_INPUT to only the members below SOFF002.Is this possible without badi? Note that sales group and office can not be property of each other as there is an m x n relationship between them ( see the picture above).
The requirement may seems you a little complex so plz ask question if you dont understand.