Well the code inside my .fex file was as below:
ENGINE INT CACHE SET ON
-INCLUDE IBFS:/WFC/Repository/xxxxxx/Common/get_ec.fex
-DEFAULTH &WF_SUMMARY='Summary';
-DEFAULTH &WF_TITLE='WebFOCUS Report';
-*-----------------------------------------------------
JOIN LEFT_OUTER PDDOCO AND NEW_LINE_NUMBER IN &ECF.EVALbf4311U&EC.EVALbv01
TO UNIQUE PRDOCO AND NEW_LINE_NUMBER IN &ECF.EVALbf43121&EC.EVALbv01 TAG J001 AS J001
END
-RUN
DEFINE FILE &ECF.EVALbf4311U&EC.EVALbv01
ORDER_STATUS/A20 = IF PDUCHG GT 0 OR PDACHG GT 0 THEN 'On Hold'
ELSE IF PDUREC GT 0 AND PDUOPN GT 0 THEN 'Partial Received'
ELSE 'Open';
END
TABLE FILE &ECF.EVALbf4311U&EC.EVALbv01
HEADING
"<+0>Open Purchase Orders Report Generated: &NOW.EVAL"
SUM
PDUORG/D12
PDUREC/D12
PDUOPN/D12
PDUCHG/D12 AS 'QTY On,Hold'
BY ORDER_DATE_YEAR_D AS 'Order,Date'
BY J001.RECEIPTS_DATE_YEAR_D AS 'Received,Date'
BY CLOSED_DATE AS 'Closed,Date'
BY WAREHOUSE_DESCRIPTION AS 'Warehouse Type'
BY PDVR01 AS 'Container,Number'
BY PDVR02 AS 'Customer,PO Number'
BY PDMCU AS 'Warehouse,Number'
BY PDAN8 AS 'Vendor,Number'
BY PDDOCO
BY PDDCTO AS 'Order,Type'
BY NEW_LINE_NUMBER AS 'Line,Number'
BY PDLITM AS 'Client,Product SKU''
BY PDITM AS 'PFS Item,Number'
BY PDDSC1
BY PDDSC2 AS 'Product Description2'
BY ORDER_STATUS AS 'Order,Status'
WHERE PDUOPN GT 0;
WHERE PDMCU EQ '&PDMCU.EVAL';
WHERE IMSRP1 EQ '&BRAND.EVAL';
ON TABLE PCHOLD FORMAT &WFFMT
ON TABLE SET BYDISPLAY ON
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET SQUEEZE ON
ON TABLE SET EMPTYREPORT ON
ON TABLE SET HTMLCSS ON
ON TABLE SET HTMLENCODE ON
ON TABLE SET CACHELINES 100
ON TABLE SET GRWIDTH 1
ON TABLE SET STYLE *
INCLUDE=IBFS:/WFC/Repository/brand_xxxxxx/np_gphc_theme.sty,$
ENDSTYLE
END
After running this report, i am getting error as below:
0 ERROR AT OR NEAR LINE 49 IN PROCEDURE openpurchasereports
(FOC003) THE FIELDNAME IS NOT RECOGNIZED: BF4311UABH.ORDER_STATUS
(FOC009) INCOMPLETE REQUEST STATEMENT
BYPASSING TO END OF COMMAND
Seems like its unable to fetch & display DEFINE file fields.
Hoping some good suggestions ahead..
WebFOCUS 8.2.02
Windows 7