0% found this document useful (0 votes)
50 views1 page

Responsibility With Security Rules

The document contains two SQL queries. The first query selects data from various tables related to flex value rules and responsibilities. It retrieves responsibility names, IDs, chart of account IDs, value set names, segments, and start/end dates. The second query selects all responsibilities with their IDs, keys, names, and start/end dates from two tables.

Uploaded by

Velmurugan T
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
50 views1 page

Responsibility With Security Rules

The document contains two SQL queries. The first query selects data from various tables related to flex value rules and responsibilities. It retrieves responsibility names, IDs, chart of account IDs, value set names, segments, and start/end dates. The second query selects all responsibilities with their IDs, keys, names, and start/end dates from two tables.

Uploaded by

Velmurugan T
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

QUERY

--1. Responsibilities with Security Rule


SELECT frt.responsibility_name,
frt.responsibility_id,
ifs.id_flex_num Chart_of_accounts_id,
ffv.flex_value_set_name Value_set_name,
ifs.segment_name,
ifs.segment_num,
fvr.flex_value_rule_name,
fr.start_date,
fr.end_date
FROM apps.fnd_flex_value_rule_usages fvru,
apps.fnd_flex_value_rules fvr,
apps.fnd_responsibility fr,
apps.fnd_responsibility_tl frt,
apps.fnd_id_flex_segments ifs,
apps.fnd_flex_value_sets ffv
WHERE fvru.responsibility_id = fr.responsibility_id
and fr.responsibility_id = frt.responsibility_id
AND fvru.flex_value_rule_id = fvr.flex_value_rule_id
AND ifs.flex_value_set_id = fvr.flex_value_set_id
and fvr.flex_value_set_id = ffv.flex_value_set_id
AND ifs.id_flex_code
= 'GL#'
ORDER BY
frt.responsibility_name,
ifs.segment_num,
fvr.flex_value_rule_name;
-----2. All Responsibilities with Start and End Date
SELECT frt.responsibility_id,fr.responsibility_key,frt.responsibility_name,
fr.start_date,fr.end_date
FROM fnd_responsibility fr,fnd_responsibility_tl frt
WHERE fr.responsibility_id=frt.responsibility_id;

You might also like