BEGIN
FND_USER_RESP_GROUPS_API.LOAD_ROW
(X_USER_NAME =>
'ANATESH',
X_RESP_KEY =>
'APPLICATION_DEVELOPER',
X_APP_SHORT_NAME =>
'FND',
X_SECURITY_GROUP =>
'STANDARD',
X_OWNER =>
'SYSADMIN',
X_START_DATE =>
Trunc(sysdate),
X_END_DATE => NULL,
X_DESCRIPTION =>
NULL,
X_LAST_UPDATE_DATE =>
Trunc(sysdate));
COMMIT;
END
Query to List all the responsibilities attached to a User
Based on a request from one of the reader here is the query which he was looking for.
Based on a request from one of the reader here is the query which he was looking for.
He needed query that can list all the responsibilities attached to a user.
select fu.user_name, fr.responsibility_name, furg.START_DATE, furg.END_DATE
from fnd_user_resp_groups_direct furg, fnd_user fu, fnd_responsibility_tl fr
where fu.user_user_name = :user_name
and furg.user_id = fu.user_id
and furg.responsibility_id = fr.responsibility_id
and fr.language = userenv('LANG');
select fu.user_name, fr.responsibility_name, furg.START_DATE, furg.END_DATE
from fnd_user_resp_groups_direct furg, fnd_user fu, fnd_responsibility_tl fr
where fu.user_user_name = :user_name
and furg.user_id = fu.user_id
and furg.responsibility_id = fr.responsibility_id
and fr.language = userenv('LANG');
No comments:
Post a Comment