eric.dizon
30th April 2014, 19:45
Is there any special function in Baan to do so ? I have a query that updates the field : cisli240.corn. I would need to pass that value in my select statement so it points out the proper financial company any suggestion? I need to get value of finance company before I pass my select statement below.
select cisli240.*
from cisli240 for update
where cisli240.slso = {:l.orno} and
cisli240._compnr = 620 | {:cisli240.sfcp}
selectdo
if not isspace(l.corn) then
cisli240.corn = l.corn
endif
if not isspace(l.refa) then
cisli240.refa = l.refa
endif
if not isspace(l.refb) then
cisli240.refb = l.refb
endif
db.update(tcisli240,db.retry)
commit.transaction()
endselect
select cisli240.*
from cisli240 for update
where cisli240.slso = {:l.orno} and
cisli240._compnr = 620 | {:cisli240.sfcp}
selectdo
if not isspace(l.corn) then
cisli240.corn = l.corn
endif
if not isspace(l.refa) then
cisli240.refa = l.refa
endif
if not isspace(l.refb) then
cisli240.refb = l.refb
endif
db.update(tcisli240,db.retry)
commit.transaction()
endselect