How To Find The Mandatory Parameters And Value Sets Associated With A Concurrent Program:
The following SQL query can be very handy indeed. It will display the following details of a concurrent program:
- Short name of the concurrent program
- Concurrent Program Parameter Name
- Is the parameter mandatory or not
- Value Set ID
- Value Set Name
- Default Value for a parameter
SELECT
fcpl.user_concurrent_program_name "Concurrent Program Name",
fcp.concurrent_program_name "Short Name",
fdfcuv.column_seq_num "Column Seq Number",
fdfcuv.end_user_column_name "Parameter Name",
fdfcuv.form_left_prompt "Prompt",
fdfcuv.enabled_flag " Enabled Flag",
fdfcuv.required_flag "Required Flag",
fdfcuv.display_flag "Display Flag",
fdfcuv.flex_value_set_id "Value Set Id",
ffvs.flex_value_set_name "Value Set Name",
flv.meaning "Default Type",
fdfcuv.DEFAULT_VALUE "Default Value"
FROM
fnd_concurrent_programs fcp,
fnd_concurrent_programs_tl fcpl,
fnd_descr_flex_col_usage_vl fdfcuv,
fnd_flex_value_sets ffvs,
fnd_lookup_values flv
WHERE
fcp.concurrent_program_id = fcpl.concurrent_program_id
AND fcpl.user_concurrent_program_name = :conc_prg_name
AND fdfcuv.descriptive_flexfield_name = '$SRS$.'
|| fcp.concurrent_program_name
AND ffvs.flex_value_set_id = fdfcuv.flex_value_set_id
AND flv.lookup_type(+) = 'FLEX_DEFAULT_TYPE'
AND flv.lookup_code(+) = fdfcuv.default_type
AND fcpl.LANGUAGE = USERENV ('LANG')
AND flv.LANGUAGE(+) = USERENV ('LANG')
ORDER BY fdfcuv.column_seq_num;
Hi Bhaskar,
ReplyDeleteThis query is great!
It brings up default parameter values as described.
I am attempting to use PL/SQL to initiate a Request Set. Everything is working except the default values defined in the Stages are different than the values of the Concurrent Programs themselves. Would you have the SQL required to access the default value for the parameters as defined in the Stages within a particular Request Set?
Thanks!
this is a query for default values in a request set:
ReplyDeleteSELECT FRSPA.DEFAULT_TYPE, FRSPA.DEFAULT_VALUE
FROM fnd_request_set_program_args frspa,
fnd_request_sets_vl frsv,
fnd_descr_flex_column_usages fdfcu
WHERE frspa.request_set_id = frsv.request_set_id
AND fdfcu.descriptive_flexfield_name = frspa.descriptive_flexfield_name
AND frspa.application_column_name = fdfcu.application_column_name
AND frspa.request_set_id = p_request_set_id
AND frspa.request_set_program_id = p_request_set_program_id
AND fdfcu.enabled_flag = 'Y'
ORDER BY fdfcu.Column_Seq_Num