I’m pulling a phone number from Apps8 in Crystal Reports using the following code on an SQL Expession Field
(
Select Value from prin1app.comm_Method Where
Company_ID ="CUST_STMT_ACCT_REP"."COMPANY" AND
Party_type = 'Company' AND
Method_ID = 'Phone' AND
Method_Default = 'TRUE'
)
I get an ORA-00904 invalid identifier for the reference "CUST_STMT_ACCT_REP"."COMPANY" even though this has been selected from the list of fields in the view.
The statement works perfectly from different views or if I use a value
Company_ID = ‘7’