|
Let's assume the characteristic you want to use in the condition is Cost Center, then following FOX code checks the Cost Center values and if Cost Center number includes 'B01,' program assigns 5000 to the quantity key figure for that record.
DATA CC TYPE 0COSTCENTER.
CC = OBJV().
IF CC CP '*B01*'.
{0QUANTITY} = 5000.
ENDIF.
You can include similar logic in your FOX code to transform data based on the characteristic value conditions. You can find detailed information about the usage of string functions in the FOX on screen help (documentation).
|