Technology Stack - EBS (MOSC)

MOSC Banner

Make Concurrent Program error out by adding logic to PL/SQL

edited Nov 12, 2015 10:02AM in Technology Stack - EBS (MOSC) 7 commentsAnswered

HI Gurus

I have a requirement the program to error out if certain conditions are met, For example, if the Profile Option is not enabled, the program will error out with the message that profile option is not enabled.

Wrote a program in PL/SQL and defined a concurrent program for this.

Added an exception clause to the select and added RAISE as exception so that the program errors out.

-- For Example

BEGIN

SELECT enabled_flag

INTO      'Y'

FROM FND_PROFILE_VALUES

WHERE VALUE_NAME = 'X';

EXCEPTION

WHEN OTHERS THEN

  FND_FILE.put_line(FND_FILE.LOG,TO_CHAR(SYSDATE,'DD-MON-YYYY HH:MI:SS')||'Profile Option'||'X'||'is not set');

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

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

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center