Sign in
Google apps
Main menu
Post a Comment On:
Oracle Help
"Oracle Apps Script to Add Responsibility to User"
No comments yet. -
1 – 0 of 0
Below is Simple script that one can use to Add responsibility to Oracle Apps User
DECLARE
v_appl_shrt_name VARCHAR2 (20);
v_appl_name VARCHAR2 (50);
v_resp_key VARCHAR2 (50);
v_user_name VARCHAR2 (20) := 'DUMUSER';
v_req_resp_name VARCHAR2 (50) := 'DUMRESP';
v_description VARCHAR2 (100) :='DUMSCRIPT';
BEGIN
SELECT fav.application_short_name,
fav.application_name,
frv.responsibility_key
INTO v_appl_shrt_name,
v_appl_name,
v_resp_key
FROM FND_APPLICATION_VL fav,
FND_RESPONSIBILITY_VL frv
WHERE frv.application_id = fav.application_id
AND frv.responsibility_name = v_req_resp_name;
fnd_user_pkg.addresp
(username => v_user_name,
resp_app => v_appl_shrt_name,
resp_key => v_resp_key,
security_group => 'STANDARD',
description => v_description,
start_date => SYSDATE,
end_date => NULL);
COMMIT;
DBMS_OUTPUT.put_line ('Responsibility ' || v_req_resp_name || ' is added to the user ' || v_user_name);
EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.put_line ('Responsibility addition Failed: ' || SQLCODE || '; '
|| SUBSTR (SQLERRM, 1, 250));
ROLLBACK;
END;
posted by Unknown at
8:27 AM
on Mar 28, 2015
Leave your comment
You can use some HTML tags, such as
<b>, <i>, <a>
Choose an identity
Google Account
You will be asked to sign in after submitting your comment.
Name/URL
Comment with your Google account if you’d like to be able to manage your comments in the future. If you comment anonymously, you won’t be able to edit or delete your comment.
Learn more
Name
URL
Anonymous
Comment with your Google account if you’d like to be able to manage your comments in the future. If you comment anonymously, you won’t be able to edit or delete your comment.
Learn more
Please prove you're not a robot
"Oracle Apps Script to Add Responsibility to User"
No comments yet. -