som.papai
23rd April 2008, 15:33
Hi all,
when i give Item Code then it take value from tcibd001 and put in to fmifo101table , but this is i am written in program Script.
field.fmifo101.item:
check.input:
select tcibd001.cuni,tcibd001.cwun
from tcibd001
where tcibd001._index1={:fmifo101.item}
selectdo
fmifo101.cuni=tcibd001.cuni
fmifo101.cwun=tcibd001.cwun
endselect
If i want to do the same things in DAl2,then which event method should i used?
function extern boolean fmifo101.item.check()
{
select tcibd001.cuni,tcibd001.cwun
from tcibd001
where tcibd001._index1={:fmifo101.item}
selectdo
tcibd001.cuni=fmifo101.cuni
tcibd001.cwun=fmifo101.cwun
endselect
}
Can i write in this way?
This will work?
when i give Item Code then it take value from tcibd001 and put in to fmifo101table , but this is i am written in program Script.
field.fmifo101.item:
check.input:
select tcibd001.cuni,tcibd001.cwun
from tcibd001
where tcibd001._index1={:fmifo101.item}
selectdo
fmifo101.cuni=tcibd001.cuni
fmifo101.cwun=tcibd001.cwun
endselect
If i want to do the same things in DAl2,then which event method should i used?
function extern boolean fmifo101.item.check()
{
select tcibd001.cuni,tcibd001.cwun
from tcibd001
where tcibd001._index1={:fmifo101.item}
selectdo
tcibd001.cuni=fmifo101.cuni
tcibd001.cwun=fmifo101.cwun
endselect
}
Can i write in this way?
This will work?