Formatted search for GL account #
I've created a UDF (SalesGL) on the Business Partner master record to enter the Sales GL Account that transactions for this BP should post to. I then wanted to add a formatted search to the GL account on the line level of the Sales Order and AR Invoice to have it look to the SalesGL account associated with a BP and return that GL account. This is the query I've created, but get errors:
SELECT T0.[U_SalesGL] FROM OCRD T0 WHERE T0.CardCode = $[$4.0.0] FOR BROWSE
Any suggestions to correct this?