rwhisenant
13th May 2014, 17:33
Hi all,
I am writing a script using a table that has a customer defined field tdsls401.cdf_rqdt in the where clause. It is at this point my query is not retrieving any records. If I comment it out it works, but I need to be able to select on that field if possible. Here is my code:
select
tdsls401.orno,
tdsls401.pono,
tdsls401.sqnb,
tdsls401.item,
tcibd001.dsca,
tdsls401.txta,
tdsls401.qoor,
tdsls401.cdf_rqdt, tdsls401.ddta,
tdsls401.prdt,
tdsls401.ofbp,
tdsls401.citt,
tdsls401.corn,
tccom100.nama
from tdsls401,
tcibd001,
tccom100
where
tdsls401.orno >= :so.f and
tdsls401.orno <= :so.t and
tdsls401.ofbp >= :sld.bp.f and
tdsls401.ofbp <= :sld.bp.t and
tdsls401.ddta >= :deldat.f and
tdsls401.ddta <= :deldat.t and
tdsls401.prdt >= :recdat.f and
tdsls401.prdt <= :recdat.t and
tdsls401.cdf_rqdt >= :reqdat.f and
tdsls401.cdf_rqdt <= :reqdat.t and
tdsls401.corn >= :cust.po.f and
tdsls401.corn <= :cust.po.t and
tdsls401.item >= :item.f and
tdsls401.item <= :item.t and
tdsls401.oltp = tdsls.oltp.detail and
tdsls401.item = tcibd001.item and
tdsls401.ofbp = tccom100.bpid
order by tdsls401.orno,
tdsls401.ofbp
I have tried tdsls401.cdf_rqdt :cust.reqdat and using that in the where clause but I get an incompatible types error there on the compile.
Any help/suggestions would be appreciated
Thanks,
R
I am writing a script using a table that has a customer defined field tdsls401.cdf_rqdt in the where clause. It is at this point my query is not retrieving any records. If I comment it out it works, but I need to be able to select on that field if possible. Here is my code:
select
tdsls401.orno,
tdsls401.pono,
tdsls401.sqnb,
tdsls401.item,
tcibd001.dsca,
tdsls401.txta,
tdsls401.qoor,
tdsls401.cdf_rqdt, tdsls401.ddta,
tdsls401.prdt,
tdsls401.ofbp,
tdsls401.citt,
tdsls401.corn,
tccom100.nama
from tdsls401,
tcibd001,
tccom100
where
tdsls401.orno >= :so.f and
tdsls401.orno <= :so.t and
tdsls401.ofbp >= :sld.bp.f and
tdsls401.ofbp <= :sld.bp.t and
tdsls401.ddta >= :deldat.f and
tdsls401.ddta <= :deldat.t and
tdsls401.prdt >= :recdat.f and
tdsls401.prdt <= :recdat.t and
tdsls401.cdf_rqdt >= :reqdat.f and
tdsls401.cdf_rqdt <= :reqdat.t and
tdsls401.corn >= :cust.po.f and
tdsls401.corn <= :cust.po.t and
tdsls401.item >= :item.f and
tdsls401.item <= :item.t and
tdsls401.oltp = tdsls.oltp.detail and
tdsls401.item = tcibd001.item and
tdsls401.ofbp = tccom100.bpid
order by tdsls401.orno,
tdsls401.ofbp
I have tried tdsls401.cdf_rqdt :cust.reqdat and using that in the where clause but I get an incompatible types error there on the compile.
Any help/suggestions would be appreciated
Thanks,
R