Skip to Content
0
Former Member
Jun 03, 2010 at 06:59 PM

Copy from One Real time cube to other - FOX help!!

17 Views

Hi,

I am trying to copy some key figure values from one realtime cube to other. I have put infoprovider and type as fields to be changed

Below is the code.

DATA IN TYPE 0INFOPROV.

DATA T TYPE 0TYPE.

FOREACH IN, T.

{0AMOUNT, ZCC_C01, #} = {ZMIR, ZCC_C02, 002}.

{0AMOUNT, ZCC_C01, #} = {ZCUSL, ZCC_C02, 002}.

ENDFOR.

The code works well partly. It always copies the statement which is put second always. In the above case it only copies ZCUSL value. But if I interchange the lines as below it would copy only ZMIR value.

FOREACH IN, T.

{0AMOUNT, ZCC_C01, #} = {ZCUSL, ZCC_C02, 002}.

{0AMOUNT, ZCC_C01, #} = {ZMIR, ZCC_C02, 002}.

ENDFOR.

Though I am copying the keyfigures to 0AMOUNT, the records are differenciated in ZCC_C01 cube by cost element because the cost element would be different for each keyfigure value.

Any help would be highly appreciated.

Thanks,

Kumar