Navigational Attribute in FOX

Question: Hi all,
Here´s my problem. I'm trying to make a calculation between 2 key figures in a planning layout through a planning function.
The planning function is using FOX to make the calculation based on a navigational attribute of the selection characteristic.
Here's an extract of my code:
DATA TIPO TYPE ZTIPOIND.
DATA RATIO TYPE ZMEASURE.

TIPO = ATRV(ZTIPOIND, RATIO).
IF TIPO = 'D'.
ZCUMPL = ZVALOR*100.
ELSE.
ZCUMPL = ZVALOR / 100.
ENDIF.


The TIPO variable is referencing the navigational attribute (ZTIPOIND) of the characteristic ZMEASURE, and based on its value ('D' or something else), the calculation is different. I already used an explicit BREAK-POINT and the TIPO variable is empty at execution time.

Any helps on this will be appreciated.
Regards,
Alejandro

Answer:
I know this is a pretty obvious question, sorry, but what's the value of RATIO? Have you made sure that RATIO has a relevant value when retrieving the value of TIPO?

Answer:
Guille, THX for your reply,
Yes, RATIO has a relevant value when retrieving the value of TIPO but i already solved the problem in another way,

Regards,
Alejandro
Copyright ?2007 - 2008 www.jt77.com