How To Prevent To Create Purchase Requisition of Item Not Assigned To User Inventory Organization

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

How to prevent to Create Purchase Requisition of Item not assigned to User Inventory Organization

Oracle Purchase in EBS R12, does not restrict to select Item other then User s Inventory Organization. Following is personalization to prevent to select Items assigned to other organization.

1. Create a Function
CREATE OR REPLACE function VerifyOrg(Myitem_id in number,org_id in number) return number is Result number; begin if Myitem_id is not null then SELECT nvl(count(*),0) into Result FROM mtl_system_items_b_kfv t, org_organization_definitions o WHERE t.organization_id=o.ORGANIZATION_ID and t.inventory_item_id = Myitem_id and o.OPERATING_UNIT = org_id ; else Result := 1; end if; return(Result); end; 2. Select Purchase Requisition form and go to personalization by Help=>Diagonostic => Custom code=>Personalize.

3. Setup Action as following snapshot (10)

4. Setup Message as following snapshot (20)

You might also like