Skip to Content
0
Former Member
May 26, 2009 at 09:43 PM

Formulae function fox

23 Views

Hello,

as i try to repost a char value based on the condition of the value of a Kfig,( on an existing record)

I want to go from

Char1 value =: "#" KFIG 1 value : " 1"

to

Char1 value : "A1" if kFIG 1 value ="1"

then it would be; "A2" for" 2" "A6" for "3" "B1" for"4" ( i use the Kfig to score suppliers)

It is a kind of repost function but based on the value of a Key figure,

Deepti Maru (thank you) gave me that code

DATA L_KF TYPE KEYFIGURE_NAME.

FOREACH C1.

IF L_KF = 'K1' AND {L_KF, C1} = 1.

{L_KF, 'A1'} = {L_KF, C1}.

ENDIF.

ENDFOR.

But the formilae builder is expecting a variable name ( i ve got a variable on that condition)

There must be something that i am doing wrong, could you replace correctly my char and Kfig in the code? as you have understoud I am not used to coding

Key figure name:

ZCALC3

Characteristic:

ZREASCOD

Characteristic Variable name

ZTEST007

Many thanks for help and time, much more appreciated

Stephane