Question:
Hello,
if you have on the update rule a routine on a key figure, is it possible to get the value of another key figure in this data package?
Lets say ZKEY1 is for the routine.
I need the value of ZKEY2 of this special data package. Is it possible and how looks the abap code to get the value for ZKEY2 on the routine on ZKEY1?
Thanks
Henning
_________________
regards
Henning
Answer:
Hi,
If you need Value for ZKEY2 from ZKEY1 which is coming from the same data_package.
In the update routine:
result(ZKEY1) = comm_structure-ZKEY2.
this should take care.
Good luc,
scy
Answer:
Sorry,
Ignore above code and use this
result(ZKEY2) = comm_structure-ZKEY1.
Answer:
when data is processed in update rules for update of the cube/ods, the behind program loops through the comm_structure (tran_structure for transfer rules).
you may see this as an internal table used in abap. when a line of the comm_structure is being processed, all comm_structure fields are there to be used (but only for the concerned line).
Gr,
M.