- In: Oracle
- 2 Comments
You can compile concurrent program flexfields with below steps (if you have the error message descriptive flexfield……… is not compiled):
- on EBS Applications, submit concurrent request “Compile Non-Compiled Flexfields” on System Administrator Responsibility
- on OS Server open putty and run this command fdfcmp apps/<apps password> 0 Y D ‘XXCUST’ ‘$SRS$.XX_CONC_PROG_SHORT_NAME’
XXCUST –> Concurrent program application short name
XX_CONC_PROG_SHORT_NAME –> Concurrent program short name
- In: Oracle
- 5 Comments
You can raise exception with this below scripts:
DECLARE
ey_custom EXCEPTION;
PRAGMA EXCEPTION_INIT (ey_custom, -20288);
BEGIN
raise_application_error (-20288, ‘EY – This is a custom error’);
EXCEPTION
WHEN ey_custom
THEN
DBMS_OUTPUT.put_line (SQLERRM);
END;–OR
DECLARE
ey_custom EXCEPTION;
BEGIN
RAISE ey_custom;
EXCEPTION
WHEN ey_custom
THEN
RAISE_APPLICATION_ERROR (-20288, ‘EY – This is a custom error’);
END;
- In: Oracle
- 2 Comments
The below code is used to compress the file using standard package (UTL_COMPRESS) in Oracle.
DECLARE
v_filename VARCHAR2 (100);
src_file BFILE;
v_content BLOB;
v_blob_len INTEGER;
v_file UTL_FILE.file_type;
v_buffer RAW (32767);
v_amount BINARY_INTEGER := 32767;
v_pos INTEGER := 1;
BEGIN
v_filename := ‘EY_TOP.dat’;
src_file := BFILENAME (‘EY_DIR’, v_filename);
DBMS_LOB.fileopen (src_file, DBMS_LOB.file_readonly);
v_content := UTL_COMPRESS.lz_compress (src_file, 6);
v_blob_len := DBMS_LOB.getlength (v_content);
v_file := UTL_FILE.fopen (‘EY_DIR’, v_filename || ‘.zip’, ‘wb’);WHILE v_pos < v_blob_len
LOOP
DBMS_LOB.READ (v_content,
v_amount,
v_pos,
v_buffer);
UTL_FILE.put_raw (v_file, v_buffer, TRUE);
v_pos := v_pos + v_amount;
END LOOP;UTL_FILE.fclose (v_file);
EXCEPTION
WHEN OTHERS
THEN
IF UTL_FILE.is_open (v_file)
THEN
UTL_FILE.fclose (v_file);
END IF;RAISE;
END;
If you want the extension of the source file included in the compress file you must include the source file extension also in the filename of compress file.
- In: Oracle
- 4 Comments
Scenario: We want to disable “Sample No” parameter if “Type” parameter value is “Receipt“, otherwise disable “Receipt No” parameter if “Type” parameter value is “Sample” and the parameter must be mandatory if enable.
We have to define concurrent program with the following parameters:
- Type (value are Sample or Receipt, using value set independent (ex: “EY_TYPE”))
- Run_Mode_S (use SQL Statement with value “select ‘S’ from dual where :$FLEX$.EY_TYPE:null in (‘Sample’)“, and the parameter is not display)
- Run_Mode_R (use SQL Statement with value “select ‘R’ from dual where :$FLEX$.EY_TYPE:null in (‘Receipt’)“, and the parameter is not display)
- Sampe_No (value set “EY_SAMPLE” and set parameter required)
- Receipt_No (value set “EY_RECEIPT” and set parameter required)
- In: Oracle
- 3 Comments
SELECT p.profile_option_name short_name, n.user_profile_option_name NAME,
DECODE (v.level_id,
10001, ‘Site’,
10002, ‘Application’,
10003, ‘Responsibility’,
10004, ‘User’,
10005, ‘Server’,
10006, ‘Org’,
10007, DECODE (TO_CHAR (v.level_value2), ‘-1’, ‘Responsibility’, DECODE (TO_CHAR (v.level_value), ‘-1’, ‘Server’, ‘Server+Resp’)),
‘UnDef’
) level_set,
DECODE (TO_CHAR (v.level_id),
‘10001’, ”,
‘10002’, app.application_short_name,
‘10003’, rsp.responsibility_key,
‘10004’, usr.user_name,
‘10005’, svr.node_name,
‘10006’, org.NAME,
‘10007’, DECODE (TO_CHAR (v.level_value2),
‘-1’, rsp.responsibility_key,
DECODE (TO_CHAR (v.level_value),
‘-1’, (SELECT node_name
FROM fnd_nodes
WHERE node_id = v.level_value2),
(SELECT node_name
FROM fnd_nodes
WHERE node_id = v.level_value2) || ‘-‘ || rsp.responsibility_key
)
),
‘UnDef’
) “CONTEXT”,
v.profile_option_value VALUE
FROM fnd_profile_options p,
fnd_profile_option_values v,
fnd_profile_options_tl n,
fnd_user usr,
fnd_application app,
fnd_responsibility rsp,
fnd_nodes svr,
hr_operating_units org
WHERE p.profile_option_id = v.profile_option_id(+)
AND p.profile_option_name = n.profile_option_name
AND UPPER (p.profile_option_name) IN (SELECT profile_option_name
FROM fnd_profile_options_tl
WHERE UPPER (user_profile_option_name) LIKE UPPER (‘%&user_profile_name%’))
AND usr.user_id(+) = v.level_value
AND rsp.application_id(+) = v.level_value_application_id
AND rsp.responsibility_id(+) = v.level_value
AND app.application_id(+) = v.level_value
AND svr.node_id(+) = v.level_value
AND org.organization_id(+) = v.level_value
ORDER BY short_name, user_profile_option_name, level_id, level_set;
Oracle APEX Tutorial
Posted June 14, 2016
on:- In: APEX | Oracle
- 4 Comments
Oracle APEX 4 Tutorial
Oracle APEX 5 Tutorial
- In: Fusion | Oracle
- Leave a Comment
Requisition Notification With Framework Region Fails to be Emailed by Workflow Mailer
Posted June 9, 2015
on:Purchasing Requisition notification with framework regions like “Approve Requisition Notification” can be viewed in the worklist but fails to be emailed by the Workflow Notification Mailer.
If you have this above problem, you can try the one of the below solutions:
- Change the WF Mailer configuration parameter for “Attach images to outbound emails (ATTACH_IMAGES)” from Y to N, restart the Workflow Notification Mailer and then try to resend the failed notification with concurrent request “Resend Failed/Error Workflow Notifications
- Apply Patch 9868639:R12.OWF.B for releases 12.1.2 and 12.1.3
Reference: Doc ID 1107017.1
Recent Comments