Hallo zusammen,

habe eine ähnliche Feldgruppe bei der die BIF %LOOKUP nicht funktioniert. Nehme ich den Operationcode LOOKUP dann klappt es? Bin nicht dahinter gekommen an was es liegt, hat jemand bereits ähnliche Erfahrungen gemacht?

d ds
Da_mhdlos 53 dim(500) ascend
D a_mhd 43 overlay(a_mhdlos:1)
D a_men 10S 0 overlay(a_mhdlos:44) inz(0)

diese Zeile funktioniert nicht (y = immer 0), obwohl a_mhd mit Werten gefüllt und im Suchfeld v_hf0043 exakt ein enthaltener Wert abgefragt wird?
c* eval y = %lookup(v_hf0043:a_mhd)

nachfolgender Code funktioniert mit gleichen Feldinhalten
c eval y = 1
c v_hf0043 lookup a_mhd(y) 36
c if *in36 = *off
c eval y = 0
c endif


c if y > 0
c else
c eval y = %lookup(*blank:a_mhd)
c move v_hf0043 a_mhd(y)
c endif

MfG
Chera