POXPOEPO - PO_LINES: system item LOV / system item

Purchasing & Inventory forum can be used to discuss all features/issues related to Oracle Purchasing & Inventory.
Post Reply
mohammedahmed1966
Posts: 11
Joined: Mon Sep 18, 2006 9:06 am
Location: Saudi Arabia

POXPOEPO - PO_LINES: system item LOV / system item

Post by mohammedahmed1966 »

Hi All,

To elaborate, I am trying to do some customizatiosn on form POXPOEPO. block PO_LINES and item is po_lines_item_number which is beside field 'Type' (line_type). when the three dots are pressed then a window appears to input 'enter reduction criteria for long list' when the percentage is pressed 'System Items' find window appears listing all the items defined. what i want the this window to display only those items for which item_type = 'Assets' on MTL_system_items and 'user item type' on 'master item' definition window tab 'main'.

What is the way to achieve this.

i did like this but it is not working:

procedure event(event_name varchar2) is

form_name varchar2(30) := name_in('system.current_form');
block_name varchar2(30) := name_in('system.cursor_block');
item_name varchar2(60) := name_in('system.cursor_item');
begin
if (event_name = 'WHEN-NEW-ITEM-INSTANCE') then
if (form_name='POXPOEPO') then
if (block_name='PO_LINES') then
if (item_name='PO_LINES.ITEM_NUMBER') then
FND_MESSAGE.SET_STRING('Iam here now');
fnd_message.show;
fnd_key_flex.update_definition(
BLOCK=>'PO_LINES',
FIELD=>'ITEM', -- tried various things here like 'ITEM_NUMBER_MIR, PO_LINES.ITEM_NUMBER
ENABLED=>'Y',
WHERE_CLAUSE=>'item_type = ''Assets'''
);
end if;
end if;
end if;
else
null;
end if;
end event;

any guidance in this regard is appreciated.

PS: nav: purchasing super user->purchase orders->purchase orders
Post Reply

Who is online

Users browsing this forum: Google Adsense [Bot] and 1 guest