shajipthomas
22nd October 2002, 01:48
The length of field "ITEM" in table tisfc001 is 47 and
the length of field "Order ITEM" in table cprrp100 is 50.
Now when I write the following code...
select cprrp100.*
from cprrp100
where cprrp100.item = :tisfc001.mitm
selectdo
select sum(cprrp110.oqan):line.oqan
from cprrp110
where cprrp110._index1=
{:cprrp100.plnc,:cprrp100.type,:cprrp100.orno}
selectempty
line.oqan = 0
endselect
endselect
Though tisfc001.mitm is present in cprrp100 , it does not get selected,becoz the values of item are
tisfc001.mitm = " XXXXXXXXXXX" | 9 blanks
before the item starts.
cprrp100.item = " XXXXXXXXXX" | 11
blanks before he item starts....
if I add the following thing before the select command.
tisfc001.mitm =" " & tisfc001.mitm | making 11 spaces/blanks.
then it picks up the data.
I tried tt.align.domain as well.
Any suggestions....
Thanks.
the length of field "Order ITEM" in table cprrp100 is 50.
Now when I write the following code...
select cprrp100.*
from cprrp100
where cprrp100.item = :tisfc001.mitm
selectdo
select sum(cprrp110.oqan):line.oqan
from cprrp110
where cprrp110._index1=
{:cprrp100.plnc,:cprrp100.type,:cprrp100.orno}
selectempty
line.oqan = 0
endselect
endselect
Though tisfc001.mitm is present in cprrp100 , it does not get selected,becoz the values of item are
tisfc001.mitm = " XXXXXXXXXXX" | 9 blanks
before the item starts.
cprrp100.item = " XXXXXXXXXX" | 11
blanks before he item starts....
if I add the following thing before the select command.
tisfc001.mitm =" " & tisfc001.mitm | making 11 spaces/blanks.
then it picks up the data.
I tried tt.align.domain as well.
Any suggestions....
Thanks.