mmurphy2650
7th July 2011, 21:10
Hi Everyone,
The following code in Text Manager of the Query Data session (ttadv3580m00) generates a report for a range of Shipment Dates and a range of Items.
The field whinh431.item has a domain of tcitem, which is a segmented domain of Project Number (9 characters) and Item Number (38 characters).
Does anyone know how to reference the Item Number segment by itself?
I can change the code of
whinh431.item >= whinh431.item.f and
whinh431.item <= whinh431.item.t
to, for example,
whinh431.item(10;38) >= "0127757010" and
whinh431.item(10;38) <= "0500000010"
and it works ... but I want the user prompted for a range of Items without the Project Number segment.
I was thinking that I might be able to use something like:
whinh431.item >= whinh431.item.segment.2.f and
whinh431.item <= whinh431.item.segment.2.t
but that does not work.
select
whinh431.shpm, | Shipment
whinh431.pono, | Shipment Line
whinh431.item, | Item
tcibd001.dsca, | Item Description
whinh430.sdtt, | Shipment Date To
whinh431.qshp, | Quantity Shipped in Inventory Unit
whinh431.worg, | Order Origin
whinh431.worn, | Order
whinh430.stco, | Ship-to Code
tccom100.nama | BP Name
from
whinh430, | Shipments
whinh431, | Shipment Lines
tcibd001, | Items - General
tccom100 | Business Partners
where
whinh430.sdtt >= whinh430.sdtt.f and
whinh430.sdtt <= whinh430.sdtt.t and
whinh431.item >= whinh431.item.f and
whinh431.item <= whinh431.item.t and
whinh430.shpm = whinh431.shpm and
whinh431.item = tcibd001.item and
whinh430.stco = tccom100.bpid
Thanks,
Mike
The following code in Text Manager of the Query Data session (ttadv3580m00) generates a report for a range of Shipment Dates and a range of Items.
The field whinh431.item has a domain of tcitem, which is a segmented domain of Project Number (9 characters) and Item Number (38 characters).
Does anyone know how to reference the Item Number segment by itself?
I can change the code of
whinh431.item >= whinh431.item.f and
whinh431.item <= whinh431.item.t
to, for example,
whinh431.item(10;38) >= "0127757010" and
whinh431.item(10;38) <= "0500000010"
and it works ... but I want the user prompted for a range of Items without the Project Number segment.
I was thinking that I might be able to use something like:
whinh431.item >= whinh431.item.segment.2.f and
whinh431.item <= whinh431.item.segment.2.t
but that does not work.
select
whinh431.shpm, | Shipment
whinh431.pono, | Shipment Line
whinh431.item, | Item
tcibd001.dsca, | Item Description
whinh430.sdtt, | Shipment Date To
whinh431.qshp, | Quantity Shipped in Inventory Unit
whinh431.worg, | Order Origin
whinh431.worn, | Order
whinh430.stco, | Ship-to Code
tccom100.nama | BP Name
from
whinh430, | Shipments
whinh431, | Shipment Lines
tcibd001, | Items - General
tccom100 | Business Partners
where
whinh430.sdtt >= whinh430.sdtt.f and
whinh430.sdtt <= whinh430.sdtt.t and
whinh431.item >= whinh431.item.f and
whinh431.item <= whinh431.item.t and
whinh430.shpm = whinh431.shpm and
whinh431.item = tcibd001.item and
whinh430.stco = tccom100.bpid
Thanks,
Mike