Masters! I beg your help!
I'm currently developing some customizations for a subreport in Production Order report (Material List, Report code: tisfc040804000). My goal is to have the report retrieves serial numbers from table timfc010 (Table name: As-Built Header for Serial End Items).
The problem I have is the report seems not able to retrieve data from timfc010 as it always returned with an empty result, even with hardcoded where clause. The report script was compiled successfully and I'm 100% sure there is data in that table, in fact, I can retrieve them through SQL script, but not in LN. Any thoughts or ideas?
Your help is greatly Appreciated!!!!!!!!!
Here's my code:
-------------------------------------------------------------------------------------------------------
SELECT timfc011.mser
FROM timfc011
WHERE timfc011.pdno = {:tisfc001.pdno}
SELECTDO
y = y + 1
ehc.serial(1, y) = timfc011.mser
SELECTEMPTY
y = y + 1
ehc.serial(1, y) = "Failed"
ENDSELECT
-------------------------------------------------------------------------------------------------------
I'm currently developing some customizations for a subreport in Production Order report (Material List, Report code: tisfc040804000). My goal is to have the report retrieves serial numbers from table timfc010 (Table name: As-Built Header for Serial End Items).
The problem I have is the report seems not able to retrieve data from timfc010 as it always returned with an empty result, even with hardcoded where clause. The report script was compiled successfully and I'm 100% sure there is data in that table, in fact, I can retrieve them through SQL script, but not in LN. Any thoughts or ideas?
Your help is greatly Appreciated!!!!!!!!!
Here's my code:
-------------------------------------------------------------------------------------------------------
SELECT timfc011.mser
FROM timfc011
WHERE timfc011.pdno = {:tisfc001.pdno}
SELECTDO
y = y + 1
ehc.serial(1, y) = timfc011.mser
SELECTEMPTY
y = y + 1
ehc.serial(1, y) = "Failed"
ENDSELECT
-------------------------------------------------------------------------------------------------------