cancel
Showing results for 
Search instead for 
Did you mean: 

Use value of KEYFIGURE_NAME when call a function in FOX Formula

Former Member
0 Kudos

Hi All,

In my fox formula, I have call a function which use the name of each of my key figures. But when I tried to save my FOX formula there is a warning message and nothing is saved.

Warning message : "Length of parameter IV_KF_NAME(000016) and variable RATIO(000000) are inconsistent"

How is define KEYFIGURE_NAME ??

DATA RATIO TYPE KEYFIGURE_NAME.

DATA CO_AREA TYPE 0CO_AREA.

DATA COUNTRY TYPE 0COMP_CODE.

DATA VISIBILITY TYPE I.

FOREACH RATIO.

CALL FUNCTION ZCOPA_AUTH_IN_FOX_USEREXIT

EXPORTING

IV_CONTR_AREA = CO_AREA

IV_COUNTRY = COUNTRY

IV_USER = UNAME

IV_KF_NAME = RATIO

IV_AREA = 'COPA04M1'

IMPORTING

  • EV_VISIBILITY = VISIBILITY

  • EV_ERROR =

  • EV_ERROR =

.

...

ENDFOR.

Thanks everyone.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi

try by assigning keyfigure techname to ratio as

ratio='0amount'. (assuming 0amount as kf')

tx

srinath