j. streun
7th September 2004, 19:17
:confused:
I created an exchange scheme condition to look up the Estimated Cost price of an item but when I check the syntax of the conditions, I get the above error message. Below is the code of the condition. It has been defined as type double. Any ideas why I'm getting this message?

Thanks

declaration:

table ttcibd007 |Item Costing

domain tccopr ecpr

select tcibd007.*
from tcibd007
where tcibd007._index1 = {:tcibd001.item}
selectdo
ecpr = tcibd007.ecpr
endselect

return(ecpr)

~Vamsi
7th September 2004, 19:51
I think tcibd007.ecpr has a depth. You will need to specify the index value

ecpr = tcibd007.ecpr(1)

j. streun
7th September 2004, 21:02
Vamsi
Thanks very much for your response.....as soon as I read it, I realized just how obvious the error message was (I'm not a Homer Simpson fan but I sure felt like using one of his expresssions - "Doh!").