SQL Syntax Error in PeopleCode PO_ACTG_ENT_WRK.ACCTG_INQ_BTN.FieldFormula .LEDGER_GROUP IN (Doc ID 1509158.1)

Last updated on JULY 14, 2015

Applies to:

PeopleSoft Enterprise SCM Purchasing - Version 9.1 and later
Information in this document applies to any platform.

Symptoms

In 9.1, there are 12- SQL statements in their PO_ACTG_ENT_WRK.ACCTG_INQ_BTN.FieldFormula PeopleCode which all contain the phrase ".LEDGER_GROUP IN (" and are missing the left quote after the (. When running a trace through this code, the trace rejects these statements.

ERROR
-----------------------
Return: 8012 - Invalid syntax in SQL statement (from trace)


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Open the Record field definition for PO_ACTG_ENT_WRK.ACCTG_INQ_BTN.FieldFormula
2. Check the SQL statement for phrase -.LEDGER_GROUP IN
3. Run the SQL Statement: select count(*) from PS_PO_ACCTG_LN_VW WHERE PS_PO_ACCTG_LN_VW.BUSINESS_UNIT = '48400' AND PS_PO_ACCTG_LN_VW.PO_ID BETWEEN '0000116453' AND '0000116453' AND PS_PO_ACCTG_LN_VW.LEDGER_GROUP IN (')


Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms