How to make
responsibilities as read only in oracle apps EBS R12 Using Custom.Pll
Or Creating a read only Responsibility in oracle apps EBS R12 Using Custom.Pll
·
Navigate to the AU_TOP/resource directory on the
application server:
cd $AU_TOP/resource
·
Open the CUSTOM.pll file using Forms Builder.
--
-- Real code starts here
--
formname
VARCHAR2 (30)
:= NAME_IN ('system.current_form');
blockname
VARCHAR2 (30)
:= NAME_IN ('system.cursor_block');
itemname
VARCHAR2 (240) := NAME_IN ('system.cursor_item');
BEGIN
-- FND_MESSAGE.SET_STRING('USER_NAME = '
||FND_PROFILE.VALUE('USER_NAME'));
-- FND_MESSAGE.SHOW;
-- FND_MESSAGE.SET_STRING('USER_ID = '
||FND_GLOBAL.USER_ID);
-- FND_MESSAGE.SHOW;
IF
event_name = 'WHEN-NEW-FORM-INSTANCE'
THEN
IF fnd_global.user_id IN ('1161', '1191')
THEN
--'1251'--
--FND_MESSAGE.SET_STRING('USER_ID
= ' ||FND_GLOBAL.USER_ID);
--FND_MESSAGE.SHOW;
BEGIN
COPY ('Entering
app_form.query_only_mode.', 'global.frd_debug');
COPY ('YES', 'PARAMETER.QUERY_ONLY');
app_menu2.set_prop ('FILE.SAVE', enabled, property_off);
app_menu2.set_prop ('FILE.ACCEPT', enabled, property_off);
formname := NAME_IN ('system.current_form');
blockname := GET_FORM_PROPERTY (formname, first_block);
IF formname <> 'FNDRSRUN'
THEN
-- This
is added for ignor the Submit a New Request Form ---
--FND_MESSAGE.SET_STRING('formname
= ' ||formname);
--FND_MESSAGE.SHOW;
WHILE (blockname IS NOT NULL)
LOOP
IF (GET_BLOCK_PROPERTY (blockname, base_table) IS NOT NULL )
THEN
SET_BLOCK_PROPERTY (blockname,insert_allowed,property_false);
SET_BLOCK_PROPERTY (blockname,update_allowed,property_false);
SET_BLOCK_PROPERTY (blockname,delete_allowed,property_false);
END IF;
blockname := GET_BLOCK_PROPERTY (blockname, nextblock);
END LOOP;
END IF;
END;
END IF;
END IF;
Before putting the Custom.pll file into the Server Please take a Backup First. The both Files CUSTOM.pll and CUSTOM.plx for Safe.Then Move the CUSTOM.pll into the server and then Compile the CUSTOM.pll script into the Server using Putty command.
frmcmp_batch module=CUSTOM.pll userid=apps/apps output_file=$AU_TOP/resource/CUSTOM.plx compile_all=special module_type=LIBRARY
After compile the command in Putty. Please closed ALL the
tabs of the Browsers and then closed the Browsers so that use can see the
effects of the custom.pll Files.
Then Login to the Ebs using the Example User Name : 92526
That’s User ID Is (1251).
That make all responsibilities as read only using CUSTOM.pll
No comments:
Post a Comment