on 09-30-2008 8:46 AM
Hello
When Working on the planning function of "Formula" type, i am trying to use TMVL with negative offset to fetch historical sales in the last month. However the syntax to me looks okay, but when i execute the check formula, I encounter the error.
DATA ZSTORE TYPE 0PLANT.
DATA ZMON TYPE 0FISCPER.
DATA YMON1 TYPE 0FISCPER.
DATA ZCNT TYPE I.
DATA ZREG TYPE 0REGION.
DATA ZLYSALE TYPE I.
DATA ZPER TYPE F.
ZSTORE = VARV(ZPSTORE).
ZMON = VARV(ZPCMMYY).
ZPER = VARV(PS_PV).
YMON1 = TMVL(ZMON, -12).
FOREACH ZREG, ZMON IN REFDATA.
ZLYSALE = {0RTBAINSASV, ZMON, ZP, ZRTF_C05, ZSTORE, ZREG, STO} .
{0RTBAINSASV, ZMON, ZP, ZRTF_C05, ZSTORE, ZREG, STO} = ZLYSALE + (ZLYSALE * ZPER / 100).
ENDFOR.
Error Message thown " A comma and other arguments were expected instead of )
Syntax error in row 12, column 24 u201C。
Row 12 Where TMVL is used.
Regards
Try putting in the Fiscal Year Variant in the formula :
Say, K3 is the FYV, then:
YMON1 = TMVL(ZMON, -12,K3).
Regards
Sriram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.