cancel
Showing results for 
Search instead for 
Did you mean: 

operands in a FOX

Former Member
0 Kudos

Hello BPS Experts,

in the rolling forecast code operands used are {fiscalyear/period, version}. does that mean we are trying to change the period with respect to version.?

rolling forecast code:

DATA CURROER TYPE 0FISCPER.

DATA FISCPER TYPE 0FISCPER.

DATA SUM TYPE F.

DATA DELTA TYPE F.

CURRPER = VARV('CURRPER').

FOREACH FISCPER.

IF FISCPER > CURRPER.

SUM = SUM + FISCPER, 320 }.

ENDIF.

ENDFOR.

DELTA = CURRPER, 320 - CURRPER,220}.

FOREACH FISCPER.

FISCPER,420 = CURRPER,220}.

ENDFOR.

CURRPER,420 = CURRPER,220}.

FOREACH FISCPER.

IF FISCPER > CURRPER.

FISCPER,420 = FISCPER,420 + DELTA * FISCPER, 420 / SUM.

ENDFOR.

if the above code:

1) the statment fiscper,320 means? does it mean the sales rev and other amounts in the records when the corresponding values of the fiscal period and version is 320?

2) sum = sum + fiscper,320} does it mean, we are adding the fiscal year periods or the amounts in the records for corresponding selection of fiscper and version 320?

Suggestionse are greatly appreciated.

Thanks,

BWer

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Refer to the help on formula, should help make things clear

http://help.sap.com/saphelp_sem60/helpdata/en/d3/8057f830a911d4b2be0050dadfb23f/frameset.htm