metropoj
11th July 2008, 17:30
This is odd to me.
I am editing the Finalized Trans (by Ledger Account) with Supplier report. TFGLD140611001.
Simple script addition to already customized code ...
The first select statemetn WORKS FINE ....
select tccom020.*
from tccom020
where tccom020.suno=:tfgld106.suno
selectdo
supname=tccom020.nama
selectempty
supname=""
endselect
The SECOND statement below follows the above statement and will not execute at all ! When I step through the code, it gets to the "Select tfgld" line, then jumps completely past the end select stmt like as if nothing was even there.
select tfgld410.*
from tfgld410
where tfgld410.leac=:tfgld106.leac
and tfgld410.ttyp=:tfgld106.otyp
and tfgld410.docn=:tfgld106.odoc
and tfgld410.amnt=:tfgld106.amnt
and tfgld410.suno=:tfgld106.suno
selectdo
ponum=tfgld410.orno
selectempty
endselect
We originally had a declaration in for the table that matched the working syntax for tccom020 above, but no dice ...
I can't figure out why it does this ! it is a simple query but it appears to not execute the select stmt.
Code as it sits in the report :
detail.1:
before.layout:
| ** EHC Code Begins **
select tccom020.*
from tccom020
where tccom020.suno=:tfgld106.suno
selectdo
supname=tccom020.nama
selectempty
supname=""
endselect
select tfgld410.*
from tfgld410
where tfgld410.leac=:tfgld106.leac
and tfgld410.ttyp=:tfgld106.otyp
and tfgld410.docn=:tfgld106.odoc
and tfgld410.amnt=:tfgld106.amnt
and tfgld410.suno=:tfgld106.suno
selectdo
ponum=tfgld410.orno
selectempty
endselect
| ** EHC Code Ends **
ANY SUGGESTIONS ????
I am editing the Finalized Trans (by Ledger Account) with Supplier report. TFGLD140611001.
Simple script addition to already customized code ...
The first select statemetn WORKS FINE ....
select tccom020.*
from tccom020
where tccom020.suno=:tfgld106.suno
selectdo
supname=tccom020.nama
selectempty
supname=""
endselect
The SECOND statement below follows the above statement and will not execute at all ! When I step through the code, it gets to the "Select tfgld" line, then jumps completely past the end select stmt like as if nothing was even there.
select tfgld410.*
from tfgld410
where tfgld410.leac=:tfgld106.leac
and tfgld410.ttyp=:tfgld106.otyp
and tfgld410.docn=:tfgld106.odoc
and tfgld410.amnt=:tfgld106.amnt
and tfgld410.suno=:tfgld106.suno
selectdo
ponum=tfgld410.orno
selectempty
endselect
We originally had a declaration in for the table that matched the working syntax for tccom020 above, but no dice ...
I can't figure out why it does this ! it is a simple query but it appears to not execute the select stmt.
Code as it sits in the report :
detail.1:
before.layout:
| ** EHC Code Begins **
select tccom020.*
from tccom020
where tccom020.suno=:tfgld106.suno
selectdo
supname=tccom020.nama
selectempty
supname=""
endselect
select tfgld410.*
from tfgld410
where tfgld410.leac=:tfgld106.leac
and tfgld410.ttyp=:tfgld106.otyp
and tfgld410.docn=:tfgld106.odoc
and tfgld410.amnt=:tfgld106.amnt
and tfgld410.suno=:tfgld106.suno
selectdo
ponum=tfgld410.orno
selectempty
endselect
| ** EHC Code Ends **
ANY SUGGESTIONS ????