MagarG
VIP Member
Trying to duplicate a World report for Time Entry for Work Orders.
Three tables: F0618 (A-Employee Time Entry), F060116 (B-Emp Master), F4801 (C-Work Orders). In file A, the Subledger field contains the Work Order# as Alpha. In file C, it's the Doc# Numeric. In World they joined A to B on Supplier# then used a Where clause, Where digits(subledger#) in file A = Doc# (in File C) and also Service Group in File C equals 'IT'.
I created a Business View in OneWorld, A to B then just had C sitting there. I'm trying first to get the Service Group = 'IT' to work. The report will preview fine if no data selection is in there. If I try to add data selection in the new report, it won't run. Added:
Where Service Group (File C) eq 'IT'
Get the error:
Unable to locate table in specified datasource for section: Join F0618-F060116-F4801
SQL in the log looks like this:
SELECT T0.YTAN8, T0.YTPRTR, T0.YTSBL, T0.YTWR01, T0.YTPHRW, T0.YTRCPY, T0.YTDWK, T1.YAAN8, T2.WADOCO, T2.WADL01, T2.WASTRX, T2.WAWR02 FROM MHSWRK/F0618 T0,MHSWRK/F060116 T1,MHSWRK/F4801 T2 WHERE ( T2.WAWR02 = 'IT' ) AND ( T0.YTAN8=T1.YAAN8 ) ORDER BY T0.YTAN8 ASC,T0.YTDWK ASC,T0.YTPRTR ASC
How can I join the F4801 if the fields are not the same type? Work arounds? I need to sort by fields in File C also, I found some posts where Table I/O won't help because I can't use the fields to sort. Help, thanks.
Grant.
Three tables: F0618 (A-Employee Time Entry), F060116 (B-Emp Master), F4801 (C-Work Orders). In file A, the Subledger field contains the Work Order# as Alpha. In file C, it's the Doc# Numeric. In World they joined A to B on Supplier# then used a Where clause, Where digits(subledger#) in file A = Doc# (in File C) and also Service Group in File C equals 'IT'.
I created a Business View in OneWorld, A to B then just had C sitting there. I'm trying first to get the Service Group = 'IT' to work. The report will preview fine if no data selection is in there. If I try to add data selection in the new report, it won't run. Added:
Where Service Group (File C) eq 'IT'
Get the error:
Unable to locate table in specified datasource for section: Join F0618-F060116-F4801
SQL in the log looks like this:
SELECT T0.YTAN8, T0.YTPRTR, T0.YTSBL, T0.YTWR01, T0.YTPHRW, T0.YTRCPY, T0.YTDWK, T1.YAAN8, T2.WADOCO, T2.WADL01, T2.WASTRX, T2.WAWR02 FROM MHSWRK/F0618 T0,MHSWRK/F060116 T1,MHSWRK/F4801 T2 WHERE ( T2.WAWR02 = 'IT' ) AND ( T0.YTAN8=T1.YAAN8 ) ORDER BY T0.YTAN8 ASC,T0.YTDWK ASC,T0.YTPRTR ASC
How can I join the F4801 if the fields are not the same type? Work arounds? I need to sort by fields in File C also, I found some posts where Table I/O won't help because I can't use the fields to sort. Help, thanks.
Grant.