Skip to Content
0
Former Member
Sep 06, 2007 at 09:33 AM

FOX Loop - reference data

79 Views

Hi,

i have a list of index values that should be multiplied with a list of factors. There are two InfoAreas, one containing the the index-values (YASPLAN) and on containing the factors (YASPARA).

My coding looks like this:

DATA INDEX TYPE YA_MPLIDX.

DATA QRT TYPE 0CALQUARTER.

FOREACH QRT, IND.

{ QRT, 'IMINDXWPL', INDEX, YASPLAN } =

{ QRT, 'IMINDXWPL', INDEX, YASPLAN } *

{ QRT, 'IMKURSFAK', #, YASPARA }.

ENDFOR.

The list of fields to be changed is:

0CALQUARTER, YA_MPLIDX, AREA and 0SEM_POSIT

In my planing level/package i restricted values for

0SEM_POSIT = IMINDXWPL

AREA = YASPLAN

When i run the function all index-values are set to 0. When i run the funktion in trace-mode, i see that the factors are visible in one data object as reference data, but no transaction data in shown. Transaction data in visible in the other data objects.

Any ideas why i get 0 for all index-values?

Thanks,

Holger

Example data:

YASPLAN:

20073, Index: SMI, value 9000

20073, Index: ASX 50, value 6800

20074, Index: SMI, value 9200

20081, Index: SMI, value 9100

...

YASPARA:

20073: 1,2

20074: 1,1

20081: 1,4

...

The calcualtion for 20073 should be

SMI: 9000 * 1,2

ASX 50: 6800 * 1,2