David A. Green
18th February 2002, 18:03
Phantoms parts do not get printed on the Materials List report (tisfc04080400). The reason for this is because phantoms are not added to the Estimated & Actual Materials table (ticst001) when the Estimated BOM is created.
My company requires first-level phantoms to appear on the Materials List report, and we could have as many as six phantoms per BOM. They're happy for the phantoms to appear on the header (or footer) of the report.
I've found a solution of sorts by adding six new header layouts and writing a report script for each of the layouts:
header.4:
before.layout:
select tibom010.mitm
from tibom010
where tibom010._index1={:tisfc001.mitm} and tibom010.cpha=1
as set with 1 rows
selectdo
endselect
This picks up the first phantoms from the P-BOM.
In header.5 I specify as set with 2 rows. This picks up the second phantom. And so on.
This works okay, although the problem I'm having is that if there are (say) only 2 phantoms, then the last phantom gets repeated on the third, fourth, fifth and sixth header layouts.
I can't help feeling there is a smarter, more elegant way to achieve this result without duplication of phantoms. Any ideas?
Thanks in advance for your help.
My company requires first-level phantoms to appear on the Materials List report, and we could have as many as six phantoms per BOM. They're happy for the phantoms to appear on the header (or footer) of the report.
I've found a solution of sorts by adding six new header layouts and writing a report script for each of the layouts:
header.4:
before.layout:
select tibom010.mitm
from tibom010
where tibom010._index1={:tisfc001.mitm} and tibom010.cpha=1
as set with 1 rows
selectdo
endselect
This picks up the first phantoms from the P-BOM.
In header.5 I specify as set with 2 rows. This picks up the second phantom. And so on.
This works okay, although the problem I'm having is that if there are (say) only 2 phantoms, then the last phantom gets repeated on the third, fourth, fifth and sixth header layouts.
I can't help feeling there is a smarter, more elegant way to achieve this result without duplication of phantoms. Any ideas?
Thanks in advance for your help.