SlideShare a Scribd company logo
Personalization
Who I Can Restrict Subinventory Locator To Store One Item Only
Purpose : Restrict Subinventory Locator To Store One Item Only
Example :
We Have Many Stock Locator And We Need To Store One Item For Each Locator
1- Connect To Database To Create Tow Function
CREATE OR REPLACE FUNCTION XX_ITEM_LOC_ONHAND ( P_LOC_IDIN NUMBER,P_ITEM_ID IN NUMBER)
RETURN CHAR
IS
RESULT VARCHAR (40);
BEGIN
SELECT
CASE
WHEN INV_ITEM_ID=P_ITEM_ID
AND LOC_ONHAND > 0 THEN 1
WHEN INV_ITEM_ID !=P_ITEM_ID
AND LOC_ONHAND > 0 THEN 0
WHEN LOC_ONHAND = 0
AND INV_ITEM_ID = 0 AND LOCATOR_ID=0 THEN 1
END RESULT
INTO RESULT
FROM (
SELECT MAX(INVENTORY_ITEM_ID) INV_ITEM_ID
,MAX(LOCATOR_ID) LOCATOR_ID
,MAX(LOC_ONHAND) LOC_ONHAND
FROM (
SELECT
B.INVENTORY_ITEM_ID,
B.LOCATOR_ID,
SUM(PRIMARY_TRANSACTION_QUANTITY)LOC_ONHAND
FROM MTL_ONHAND_QUANTITIES_DETAIL B
WHERE 1=1
AND B.LOCATOR_ID =P_LOC_ID----3887
--AND (B.INVENTORY_ITEM_ID = :P_INVENTORY_ITEM_ID) 236005
GROUP BY
B.LOCATOR_ID
,B.INVENTORY_ITEM_ID
UNION ALL
SELECT 0 INVENTORY_ITEM_ID
,0 LOCATOR_ID
,0 LOC_ONHAND
FROM DUAL
)
);
RETURN (RESULT);
EXCEPTION
WHEN OTHERS
THEN
RETURN NULL;
END XX_ITEM_LOC_ONHAND;
CREATE OR REPLACE FUNCTION APPS.item_code (item_id IN NUMBER,org_id IN NUMBER)
RETURN CHAR
IS
item_code VARCHAR (40);
BEGIN
SELECT segment1
INTO item_code
FROM inv.mtl_system_items_b item
WHERE inventory_item_id = item_id AND organization_id = org_id;
RETURN (item_code);
EXCEPTION
WHEN OTHERS
THEN
RETURN NULL;
END item_code;
Open Miscellaneous Transaction Form
Open Personalization Form
1. Create condition: WHEN-NEW-FORM-INSTANCE
Restrict Subinventory Locator To Store One Item Only
Trigger Event : WHEN-VALIDATE-RECORD
Trigger Object : MTL_TRX_LINE
Condition : 0=(SELECT XX_ITEM_LOC_ONHAND (
:MTL_TRX_LINE.LOCATOR_ID,:MTL_TRX_LINE.INVENTORY_ITEM_ID) AA FROM DUAL)
2. Action Tab:
a. Choosethe type Message
MessageText :
=' ‫المدخل‬ ‫الصنف‬ ‫عن‬ ‫مخنلف‬ ‫صنف‬ ‫به‬ ‫يوجد‬ ‫أنه‬ ‫حيث‬ ‫المكان‬ ‫هذا‬ ‫إستخدام‬ ‫يمكن‬ ‫'ال‬ ||CHR(10)|| (select 'Locator Code' ||' : '||
LOC_INF.segment1 || '.' || LOC_INF.segment2 || '.' || LOC_INF.segment3 || '.' || LOC_INF.segment4
||CHR(10)||'Locator Description'||' : '|| DESCRIPTION
from inv.mtl_item_locations LOC_INF
where INVENTORY_LOCATION_ID=:MTL_TRX_LINE.LOCATOR_ID) ||CHR(10)||'‫المدخل‬ ‫الصنف‬ : '||
(select item_code(:MTL_TRX_LINE.INVENTORY_ITEM_ID,:MTL_TRX_LINE.ORGANIZATION_ID) from dual)||CHR(10)||' ‫الصنف‬
‫هو‬ ‫به‬ ‫المسموح‬ :'||
(SELECT
distinct item_code(B.INVENTORY_ITEM_ID,B.ORGANIZATION_ID) ON_ITEM_CODE
FROM MTL_ONHAND_QUANTITIES_DETAIL B
WHERE 1=1
AND B.LOCATOR_ID=:MTL_TRX_LINE.LOCATOR_ID)
------------------------------------------------------------------------------------------------------------------------------------
Create New Action
SaveYour Work
Close Form
Switch Responsibility
Test Scenario
SaveWithout Any Error
If You Try To Select Another Item To Store In The Same Locator You Have Error message
And FormNot Save The Record
Done
‫هلل‬ ‫الحمد‬
For Receipts Transactions
0=(SELECT XX_ITEM_LOC_ONHAND( :RCV_TRANSACTION.LOCATOR_ID,:RCV_TRANSACTION.ITEM_ID) AA FROMDUAL)
AND:OVERFLOW_REGION.ROUTING_NAME='DirectDelivery'
Action
=' ‫المدخل‬ ‫الصنف‬ ‫عن‬ ‫مخنلف‬ ‫صنف‬ ‫به‬ ‫يوجد‬ ‫أنه‬ ‫حيث‬ ‫المكان‬ ‫هذا‬ ‫إستخدام‬ ‫يمكن‬ ‫'ال‬||CHR(10)||(select'LocatorCode'||' : '||
LOC_INF.segment1||'.' || LOC_INF.segment2||'.' || LOC_INF.segment3||'.' ||LOC_INF.segment4
||CHR(10)||'Locator Description'||':'|| DESCRIPTION
from inv.mtl_item_locationsLOC_INF
where INVENTORY_LOCATION_ID=:RCV_TRANSACTION.LOCATOR_ID) ||CHR(10)||'‫المدخل‬ ‫الصنف‬:'||
(selectitem_code(:RCV_TRANSACTION.ITEM_ID,:RCV_TRANSACTION.TO_ORGANIZATION_ID) from
dual)||CHR(10)||'‫هو‬ ‫به‬ ‫المسموح‬ ‫الصنف‬:'||
(SELECT
distinctitem_code(B.INVENTORY_ITEM_ID,B.ORGANIZATION_ID) ON_ITEM_CODE
FROM MTL_ONHAND_QUANTITIES_DETAILB
WHERE 1=1
ANDB.LOCATOR_ID=:RCV_TRANSACTION.LOCATOR_ID)
Test
Personalization who i can restrict subinventory locator to store one item only
Ad

More Related Content

What's hot (20)

Swift 3.0 の新しい機能(のうちの9つ)
Swift 3.0 の新しい機能(のうちの9つ)Swift 3.0 の新しい機能(のうちの9つ)
Swift 3.0 の新しい機能(のうちの9つ)
Tomohiro Kumagai
 
Pointer
PointerPointer
Pointer
khyati thakkar
 
Swift で JavaScript 始めませんか? #iOSDC
Swift で JavaScript 始めませんか? #iOSDCSwift で JavaScript 始めませんか? #iOSDC
Swift で JavaScript 始めませんか? #iOSDC
Tomohiro Kumagai
 
Odoo - From v7 to v8: the new api
Odoo - From v7 to v8: the new apiOdoo - From v7 to v8: the new api
Odoo - From v7 to v8: the new api
Odoo
 
Chap 6 c++
Chap 6 c++Chap 6 c++
Chap 6 c++
Venkateswarlu Vuggam
 
Chap 6 c++
Chap 6 c++Chap 6 c++
Chap 6 c++
Venkateswarlu Vuggam
 
Chap 4 c++
Chap 4 c++Chap 4 c++
Chap 4 c++
Venkateswarlu Vuggam
 
Building l10n Payroll Structures from the Ground up
Building l10n Payroll Structures from the Ground upBuilding l10n Payroll Structures from the Ground up
Building l10n Payroll Structures from the Ground up
Odoo
 
Formal methods Project Report for the support of slides uploaded
Formal methods Project Report for the support of slides uploaded Formal methods Project Report for the support of slides uploaded
Formal methods Project Report for the support of slides uploaded
Shoaib Haseeb
 
Ranges calendar-novosibirsk-2015-08
Ranges calendar-novosibirsk-2015-08Ranges calendar-novosibirsk-2015-08
Ranges calendar-novosibirsk-2015-08
Platonov Sergey
 
How to Create a l10n Payroll Structure
How to Create a l10n Payroll StructureHow to Create a l10n Payroll Structure
How to Create a l10n Payroll Structure
Odoo
 
08 Queries
08 Queries08 Queries
08 Queries
Ranjan Kumar
 
Formal methods
Formal methods Formal methods
Formal methods
Shoaib Haseeb
 
Doc1
Doc1Doc1
Doc1
Nethra Mahadev
 
Iterative control structures, looping, types of loops, loop working
Iterative control structures, looping, types of loops, loop workingIterative control structures, looping, types of loops, loop working
Iterative control structures, looping, types of loops, loop working
Neeru Mittal
 
Javascript ch7
Javascript ch7Javascript ch7
Javascript ch7
Brady Cheng
 
OpenERP Technical Memento V0.7.3
OpenERP Technical Memento V0.7.3OpenERP Technical Memento V0.7.3
OpenERP Technical Memento V0.7.3
Borni DHIFI
 
Notes for GNU Octave - Numerical Programming - for Students - 02 of 02 by aru...
Notes for GNU Octave - Numerical Programming - for Students - 02 of 02 by aru...Notes for GNU Octave - Numerical Programming - for Students - 02 of 02 by aru...
Notes for GNU Octave - Numerical Programming - for Students - 02 of 02 by aru...
ssuserd6b1fd
 
Notes for C Programming for MCA, BCA, B. Tech CSE, ECE and MSC (CS) 3 of 5 b...
Notes for C Programming for MCA, BCA, B. Tech CSE, ECE and MSC (CS) 3 of 5  b...Notes for C Programming for MCA, BCA, B. Tech CSE, ECE and MSC (CS) 3 of 5  b...
Notes for C Programming for MCA, BCA, B. Tech CSE, ECE and MSC (CS) 3 of 5 b...
ssuserd6b1fd
 
c programming
c programmingc programming
c programming
Arun Umrao
 
Swift 3.0 の新しい機能(のうちの9つ)
Swift 3.0 の新しい機能(のうちの9つ)Swift 3.0 の新しい機能(のうちの9つ)
Swift 3.0 の新しい機能(のうちの9つ)
Tomohiro Kumagai
 
Swift で JavaScript 始めませんか? #iOSDC
Swift で JavaScript 始めませんか? #iOSDCSwift で JavaScript 始めませんか? #iOSDC
Swift で JavaScript 始めませんか? #iOSDC
Tomohiro Kumagai
 
Odoo - From v7 to v8: the new api
Odoo - From v7 to v8: the new apiOdoo - From v7 to v8: the new api
Odoo - From v7 to v8: the new api
Odoo
 
Building l10n Payroll Structures from the Ground up
Building l10n Payroll Structures from the Ground upBuilding l10n Payroll Structures from the Ground up
Building l10n Payroll Structures from the Ground up
Odoo
 
Formal methods Project Report for the support of slides uploaded
Formal methods Project Report for the support of slides uploaded Formal methods Project Report for the support of slides uploaded
Formal methods Project Report for the support of slides uploaded
Shoaib Haseeb
 
Ranges calendar-novosibirsk-2015-08
Ranges calendar-novosibirsk-2015-08Ranges calendar-novosibirsk-2015-08
Ranges calendar-novosibirsk-2015-08
Platonov Sergey
 
How to Create a l10n Payroll Structure
How to Create a l10n Payroll StructureHow to Create a l10n Payroll Structure
How to Create a l10n Payroll Structure
Odoo
 
Iterative control structures, looping, types of loops, loop working
Iterative control structures, looping, types of loops, loop workingIterative control structures, looping, types of loops, loop working
Iterative control structures, looping, types of loops, loop working
Neeru Mittal
 
OpenERP Technical Memento V0.7.3
OpenERP Technical Memento V0.7.3OpenERP Technical Memento V0.7.3
OpenERP Technical Memento V0.7.3
Borni DHIFI
 
Notes for GNU Octave - Numerical Programming - for Students - 02 of 02 by aru...
Notes for GNU Octave - Numerical Programming - for Students - 02 of 02 by aru...Notes for GNU Octave - Numerical Programming - for Students - 02 of 02 by aru...
Notes for GNU Octave - Numerical Programming - for Students - 02 of 02 by aru...
ssuserd6b1fd
 
Notes for C Programming for MCA, BCA, B. Tech CSE, ECE and MSC (CS) 3 of 5 b...
Notes for C Programming for MCA, BCA, B. Tech CSE, ECE and MSC (CS) 3 of 5  b...Notes for C Programming for MCA, BCA, B. Tech CSE, ECE and MSC (CS) 3 of 5  b...
Notes for C Programming for MCA, BCA, B. Tech CSE, ECE and MSC (CS) 3 of 5 b...
ssuserd6b1fd
 

Similar to Personalization who i can restrict subinventory locator to store one item only (9)

Custom Lot Generation .docx
Custom Lot Generation .docxCustom Lot Generation .docx
Custom Lot Generation .docx
Mina Lotfy
 
Personalization to restrict subinventory lov in interorganization transfer كي...
Personalization to restrict subinventory lov in interorganization transfer كي...Personalization to restrict subinventory lov in interorganization transfer كي...
Personalization to restrict subinventory lov in interorganization transfer كي...
Ahmed Elshayeb
 
What\'s New in C# 4.0
What\'s New in C# 4.0What\'s New in C# 4.0
What\'s New in C# 4.0
Eyal Vardi
 
MQTC_v2014_Tracing_On_Linux.pdf
MQTC_v2014_Tracing_On_Linux.pdfMQTC_v2014_Tracing_On_Linux.pdf
MQTC_v2014_Tracing_On_Linux.pdf
HaziNayabD
 
Inventory aging report using oracle discoverer desktop
Inventory aging report using oracle discoverer desktopInventory aging report using oracle discoverer desktop
Inventory aging report using oracle discoverer desktop
Ahmed Elshayeb
 
ActiveRecord Query Interface (2), Season 2
ActiveRecord Query Interface (2), Season 2ActiveRecord Query Interface (2), Season 2
ActiveRecord Query Interface (2), Season 2
RORLAB
 
Items Subinventory Assignment كيفية ربط مخزن معين بعدة أصناف بإستخدام API
Items Subinventory Assignment كيفية ربط مخزن معين بعدة أصناف بإستخدام APIItems Subinventory Assignment كيفية ربط مخزن معين بعدة أصناف بإستخدام API
Items Subinventory Assignment كيفية ربط مخزن معين بعدة أصناف بإستخدام API
Ahmed Elshayeb
 
DEF CON 23 - Topher Timzen - acquiring net objects from the managed Heap
DEF CON 23 - Topher Timzen - acquiring net objects from the managed HeapDEF CON 23 - Topher Timzen - acquiring net objects from the managed Heap
DEF CON 23 - Topher Timzen - acquiring net objects from the managed Heap
Felipe Prado
 
Les22
Les22Les22
Les22
Sudharsan S
 
Custom Lot Generation .docx
Custom Lot Generation .docxCustom Lot Generation .docx
Custom Lot Generation .docx
Mina Lotfy
 
Personalization to restrict subinventory lov in interorganization transfer كي...
Personalization to restrict subinventory lov in interorganization transfer كي...Personalization to restrict subinventory lov in interorganization transfer كي...
Personalization to restrict subinventory lov in interorganization transfer كي...
Ahmed Elshayeb
 
What\'s New in C# 4.0
What\'s New in C# 4.0What\'s New in C# 4.0
What\'s New in C# 4.0
Eyal Vardi
 
MQTC_v2014_Tracing_On_Linux.pdf
MQTC_v2014_Tracing_On_Linux.pdfMQTC_v2014_Tracing_On_Linux.pdf
MQTC_v2014_Tracing_On_Linux.pdf
HaziNayabD
 
Inventory aging report using oracle discoverer desktop
Inventory aging report using oracle discoverer desktopInventory aging report using oracle discoverer desktop
Inventory aging report using oracle discoverer desktop
Ahmed Elshayeb
 
ActiveRecord Query Interface (2), Season 2
ActiveRecord Query Interface (2), Season 2ActiveRecord Query Interface (2), Season 2
ActiveRecord Query Interface (2), Season 2
RORLAB
 
Items Subinventory Assignment كيفية ربط مخزن معين بعدة أصناف بإستخدام API
Items Subinventory Assignment كيفية ربط مخزن معين بعدة أصناف بإستخدام APIItems Subinventory Assignment كيفية ربط مخزن معين بعدة أصناف بإستخدام API
Items Subinventory Assignment كيفية ربط مخزن معين بعدة أصناف بإستخدام API
Ahmed Elshayeb
 
DEF CON 23 - Topher Timzen - acquiring net objects from the managed Heap
DEF CON 23 - Topher Timzen - acquiring net objects from the managed HeapDEF CON 23 - Topher Timzen - acquiring net objects from the managed Heap
DEF CON 23 - Topher Timzen - acquiring net objects from the managed Heap
Felipe Prado
 
Ad

More from Ahmed Elshayeb (20)

Oracle Purchasing Internal Requisition
Oracle Purchasing Internal RequisitionOracle Purchasing Internal Requisition
Oracle Purchasing Internal Requisition
Ahmed Elshayeb
 
Personalization select all record from menu for manage buyer work load
Personalization select all record from menu for manage buyer work loadPersonalization select all record from menu for manage buyer work load
Personalization select all record from menu for manage buyer work load
Ahmed Elshayeb
 
Sales Order needs to be automatically reserved, shipped & invoiced without an...
Sales Order needs to be automatically reserved, shipped & invoiced without an...Sales Order needs to be automatically reserved, shipped & invoiced without an...
Sales Order needs to be automatically reserved, shipped & invoiced without an...
Ahmed Elshayeb
 
Customized security roles
Customized security rolesCustomized security roles
Customized security roles
Ahmed Elshayeb
 
Cascading dependencies
Cascading dependenciesCascading dependencies
Cascading dependencies
Ahmed Elshayeb
 
Select all record from menu for matching item type in ap invoice personalization
Select all record from menu for matching item type in ap invoice personalizationSelect all record from menu for matching item type in ap invoice personalization
Select all record from menu for matching item type in ap invoice personalization
Ahmed Elshayeb
 
How to configure LCM After receiving
How to configure LCM After receivingHow to configure LCM After receiving
How to configure LCM After receiving
Ahmed Elshayeb
 
Select All Record From Tools Menu On Find Receipts For Matching Form
Select All Record From Tools Menu On Find Receipts For Matching FormSelect All Record From Tools Menu On Find Receipts For Matching Form
Select All Record From Tools Menu On Find Receipts For Matching Form
Ahmed Elshayeb
 
Run report from menu Personalization كيفية تشغيل تقرير أو ما شابة من خلال شا...
Run report from menu  Personalization كيفية تشغيل تقرير أو ما شابة من خلال شا...Run report from menu  Personalization كيفية تشغيل تقرير أو ما شابة من خلال شا...
Run report from menu Personalization كيفية تشغيل تقرير أو ما شابة من خلال شا...
Ahmed Elshayeb
 
How to install a font using xml publisher administrator
How to install a font using xml publisher administratorHow to install a font using xml publisher administrator
How to install a font using xml publisher administrator
Ahmed Elshayeb
 
Oracle Order Management (Assign freight cost on shipping transaction)
Oracle Order Management (Assign freight cost on shipping transaction)Oracle Order Management (Assign freight cost on shipping transaction)
Oracle Order Management (Assign freight cost on shipping transaction)
Ahmed Elshayeb
 
Personalizations for control deliver to organizations in Purchase Requisition...
Personalizations for control deliver to organizations in Purchase Requisition...Personalizations for control deliver to organizations in Purchase Requisition...
Personalizations for control deliver to organizations in Purchase Requisition...
Ahmed Elshayeb
 
Assign Freight Cost On Shipping Transaction
Assign Freight Cost On Shipping TransactionAssign Freight Cost On Shipping Transaction
Assign Freight Cost On Shipping Transaction
Ahmed Elshayeb
 
Procedure To Store Database Object Size And Number Of Rows In Custom Table
Procedure To Store Database Object Size And Number Of Rows In Custom TableProcedure To Store Database Object Size And Number Of Rows In Custom Table
Procedure To Store Database Object Size And Number Of Rows In Custom Table
Ahmed Elshayeb
 
How to remove disable and cancel shipment functionality in enter purchase or...
How to remove  disable and cancel shipment functionality in enter purchase or...How to remove  disable and cancel shipment functionality in enter purchase or...
How to remove disable and cancel shipment functionality in enter purchase or...
Ahmed Elshayeb
 
Oracle Inventory Restrict user from update item attribute personalization
Oracle Inventory Restrict user from update item attribute personalizationOracle Inventory Restrict user from update item attribute personalization
Oracle Inventory Restrict user from update item attribute personalization
Ahmed Elshayeb
 
Oracle Web Adi For upload item master
Oracle Web Adi For upload item masterOracle Web Adi For upload item master
Oracle Web Adi For upload item master
Ahmed Elshayeb
 
Oracle Personalization How To Restricting users from assigning items to diffe...
Oracle Personalization How To Restricting users from assigning items to diffe...Oracle Personalization How To Restricting users from assigning items to diffe...
Oracle Personalization How To Restricting users from assigning items to diffe...
Ahmed Elshayeb
 
Customize the login homepage For Oracle EBS R12
Customize the login homepage For Oracle EBS R12Customize the login homepage For Oracle EBS R12
Customize the login homepage For Oracle EBS R12
Ahmed Elshayeb
 
Oracle Advanced Pricing (Creating a discount modifier using qualifiers)
Oracle Advanced Pricing (Creating a discount modifier using qualifiers)Oracle Advanced Pricing (Creating a discount modifier using qualifiers)
Oracle Advanced Pricing (Creating a discount modifier using qualifiers)
Ahmed Elshayeb
 
Oracle Purchasing Internal Requisition
Oracle Purchasing Internal RequisitionOracle Purchasing Internal Requisition
Oracle Purchasing Internal Requisition
Ahmed Elshayeb
 
Personalization select all record from menu for manage buyer work load
Personalization select all record from menu for manage buyer work loadPersonalization select all record from menu for manage buyer work load
Personalization select all record from menu for manage buyer work load
Ahmed Elshayeb
 
Sales Order needs to be automatically reserved, shipped & invoiced without an...
Sales Order needs to be automatically reserved, shipped & invoiced without an...Sales Order needs to be automatically reserved, shipped & invoiced without an...
Sales Order needs to be automatically reserved, shipped & invoiced without an...
Ahmed Elshayeb
 
Customized security roles
Customized security rolesCustomized security roles
Customized security roles
Ahmed Elshayeb
 
Cascading dependencies
Cascading dependenciesCascading dependencies
Cascading dependencies
Ahmed Elshayeb
 
Select all record from menu for matching item type in ap invoice personalization
Select all record from menu for matching item type in ap invoice personalizationSelect all record from menu for matching item type in ap invoice personalization
Select all record from menu for matching item type in ap invoice personalization
Ahmed Elshayeb
 
How to configure LCM After receiving
How to configure LCM After receivingHow to configure LCM After receiving
How to configure LCM After receiving
Ahmed Elshayeb
 
Select All Record From Tools Menu On Find Receipts For Matching Form
Select All Record From Tools Menu On Find Receipts For Matching FormSelect All Record From Tools Menu On Find Receipts For Matching Form
Select All Record From Tools Menu On Find Receipts For Matching Form
Ahmed Elshayeb
 
Run report from menu Personalization كيفية تشغيل تقرير أو ما شابة من خلال شا...
Run report from menu  Personalization كيفية تشغيل تقرير أو ما شابة من خلال شا...Run report from menu  Personalization كيفية تشغيل تقرير أو ما شابة من خلال شا...
Run report from menu Personalization كيفية تشغيل تقرير أو ما شابة من خلال شا...
Ahmed Elshayeb
 
How to install a font using xml publisher administrator
How to install a font using xml publisher administratorHow to install a font using xml publisher administrator
How to install a font using xml publisher administrator
Ahmed Elshayeb
 
Oracle Order Management (Assign freight cost on shipping transaction)
Oracle Order Management (Assign freight cost on shipping transaction)Oracle Order Management (Assign freight cost on shipping transaction)
Oracle Order Management (Assign freight cost on shipping transaction)
Ahmed Elshayeb
 
Personalizations for control deliver to organizations in Purchase Requisition...
Personalizations for control deliver to organizations in Purchase Requisition...Personalizations for control deliver to organizations in Purchase Requisition...
Personalizations for control deliver to organizations in Purchase Requisition...
Ahmed Elshayeb
 
Assign Freight Cost On Shipping Transaction
Assign Freight Cost On Shipping TransactionAssign Freight Cost On Shipping Transaction
Assign Freight Cost On Shipping Transaction
Ahmed Elshayeb
 
Procedure To Store Database Object Size And Number Of Rows In Custom Table
Procedure To Store Database Object Size And Number Of Rows In Custom TableProcedure To Store Database Object Size And Number Of Rows In Custom Table
Procedure To Store Database Object Size And Number Of Rows In Custom Table
Ahmed Elshayeb
 
How to remove disable and cancel shipment functionality in enter purchase or...
How to remove  disable and cancel shipment functionality in enter purchase or...How to remove  disable and cancel shipment functionality in enter purchase or...
How to remove disable and cancel shipment functionality in enter purchase or...
Ahmed Elshayeb
 
Oracle Inventory Restrict user from update item attribute personalization
Oracle Inventory Restrict user from update item attribute personalizationOracle Inventory Restrict user from update item attribute personalization
Oracle Inventory Restrict user from update item attribute personalization
Ahmed Elshayeb
 
Oracle Web Adi For upload item master
Oracle Web Adi For upload item masterOracle Web Adi For upload item master
Oracle Web Adi For upload item master
Ahmed Elshayeb
 
Oracle Personalization How To Restricting users from assigning items to diffe...
Oracle Personalization How To Restricting users from assigning items to diffe...Oracle Personalization How To Restricting users from assigning items to diffe...
Oracle Personalization How To Restricting users from assigning items to diffe...
Ahmed Elshayeb
 
Customize the login homepage For Oracle EBS R12
Customize the login homepage For Oracle EBS R12Customize the login homepage For Oracle EBS R12
Customize the login homepage For Oracle EBS R12
Ahmed Elshayeb
 
Oracle Advanced Pricing (Creating a discount modifier using qualifiers)
Oracle Advanced Pricing (Creating a discount modifier using qualifiers)Oracle Advanced Pricing (Creating a discount modifier using qualifiers)
Oracle Advanced Pricing (Creating a discount modifier using qualifiers)
Ahmed Elshayeb
 
Ad

Recently uploaded (20)

Disinformation in Society Report 2025 Key Findings
Disinformation in Society Report 2025 Key FindingsDisinformation in Society Report 2025 Key Findings
Disinformation in Society Report 2025 Key Findings
MariumAbdulhussein
 
Accounting_Basics_Complete_Guide_By_CA_Suvidha_Chaplot (1).pdf
Accounting_Basics_Complete_Guide_By_CA_Suvidha_Chaplot (1).pdfAccounting_Basics_Complete_Guide_By_CA_Suvidha_Chaplot (1).pdf
Accounting_Basics_Complete_Guide_By_CA_Suvidha_Chaplot (1).pdf
CA Suvidha Chaplot
 
TNR Gold Investor Summary - Building The Green Energy Metals Royalty and Gold...
TNR Gold Investor Summary - Building The Green Energy Metals Royalty and Gold...TNR Gold Investor Summary - Building The Green Energy Metals Royalty and Gold...
TNR Gold Investor Summary - Building The Green Energy Metals Royalty and Gold...
Kirill Klip
 
2_English_Vocabulary_In_Use_Pre-Intermediate_Cambridge_-_Fourth_Edition (1).pdf
2_English_Vocabulary_In_Use_Pre-Intermediate_Cambridge_-_Fourth_Edition (1).pdf2_English_Vocabulary_In_Use_Pre-Intermediate_Cambridge_-_Fourth_Edition (1).pdf
2_English_Vocabulary_In_Use_Pre-Intermediate_Cambridge_-_Fourth_Edition (1).pdf
ThiNgc22
 
From Sunlight to Savings The Rise of Homegrown Solar Power.pdf
From Sunlight to Savings The Rise of Homegrown Solar Power.pdfFrom Sunlight to Savings The Rise of Homegrown Solar Power.pdf
From Sunlight to Savings The Rise of Homegrown Solar Power.pdf
Insolation Energy
 
NewBase 05 May 2025 Energy News issue - 1785 by Khaled Al Awadi_compressed.pdf
NewBase 05 May 2025  Energy News issue - 1785 by Khaled Al Awadi_compressed.pdfNewBase 05 May 2025  Energy News issue - 1785 by Khaled Al Awadi_compressed.pdf
NewBase 05 May 2025 Energy News issue - 1785 by Khaled Al Awadi_compressed.pdf
Khaled Al Awadi
 
Comments on Cloud Stream Part II Mobile Hub V1 Hub Agency.pdf
Comments on Cloud Stream Part II Mobile Hub V1 Hub Agency.pdfComments on Cloud Stream Part II Mobile Hub V1 Hub Agency.pdf
Comments on Cloud Stream Part II Mobile Hub V1 Hub Agency.pdf
Brij Consulting, LLC
 
BeMetals_Presentation_May_2025 .pdf
BeMetals_Presentation_May_2025      .pdfBeMetals_Presentation_May_2025      .pdf
BeMetals_Presentation_May_2025 .pdf
DerekIwanaka2
 
Affinity.co Lifecycle Marketing Presentation
Affinity.co Lifecycle Marketing PresentationAffinity.co Lifecycle Marketing Presentation
Affinity.co Lifecycle Marketing Presentation
omiller199514
 
From Dreams to Threads: The Story Behind The Chhapai
From Dreams to Threads: The Story Behind The ChhapaiFrom Dreams to Threads: The Story Behind The Chhapai
From Dreams to Threads: The Story Behind The Chhapai
The Chhapai
 
Alan Stalcup - The Enterprising CEO
Alan  Stalcup  -  The  Enterprising  CEOAlan  Stalcup  -  The  Enterprising  CEO
Alan Stalcup - The Enterprising CEO
Alan Stalcup
 
The Fascinating World of Hats: A Brief History of Hats
The Fascinating World of Hats: A Brief History of HatsThe Fascinating World of Hats: A Brief History of Hats
The Fascinating World of Hats: A Brief History of Hats
nimrabilal030
 
EquariusAI analytics for business water risk
EquariusAI analytics for business water riskEquariusAI analytics for business water risk
EquariusAI analytics for business water risk
Peter Adriaens
 
Influence of Career Development on Retention of Employees in Private Univers...
Influence of Career Development on Retention of  Employees in Private Univers...Influence of Career Development on Retention of  Employees in Private Univers...
Influence of Career Development on Retention of Employees in Private Univers...
publication11
 
Brandon Flatley - A Skilled Musician
Brandon Flatley - A Skilled MusicianBrandon Flatley - A Skilled Musician
Brandon Flatley - A Skilled Musician
Brandon Flatley
 
www.visualmedia.com digital markiting (1).pptx
www.visualmedia.com digital markiting (1).pptxwww.visualmedia.com digital markiting (1).pptx
www.visualmedia.com digital markiting (1).pptx
Davinder Singh
 
The Rise of Payroll Outsourcing in the UK: Key Statistics for 2025
The Rise of Payroll Outsourcing in the UK: Key Statistics for 2025The Rise of Payroll Outsourcing in the UK: Key Statistics for 2025
The Rise of Payroll Outsourcing in the UK: Key Statistics for 2025
QX Accounting Services Ltd
 
Alec Lawler - A Passion For Building Brand Awareness
Alec Lawler - A Passion For Building Brand AwarenessAlec Lawler - A Passion For Building Brand Awareness
Alec Lawler - A Passion For Building Brand Awareness
Alec Lawler
 
The Peter Cowley Entrepreneurship Event Master 30th.pdf
The Peter Cowley Entrepreneurship Event Master 30th.pdfThe Peter Cowley Entrepreneurship Event Master 30th.pdf
The Peter Cowley Entrepreneurship Event Master 30th.pdf
Richard Lucas
 
Mexico Office Furniture Market Share, Size, Growth & Trends (2025-2034)
Mexico Office Furniture Market Share, Size, Growth & Trends (2025-2034)Mexico Office Furniture Market Share, Size, Growth & Trends (2025-2034)
Mexico Office Furniture Market Share, Size, Growth & Trends (2025-2034)
janewatson684
 
Disinformation in Society Report 2025 Key Findings
Disinformation in Society Report 2025 Key FindingsDisinformation in Society Report 2025 Key Findings
Disinformation in Society Report 2025 Key Findings
MariumAbdulhussein
 
Accounting_Basics_Complete_Guide_By_CA_Suvidha_Chaplot (1).pdf
Accounting_Basics_Complete_Guide_By_CA_Suvidha_Chaplot (1).pdfAccounting_Basics_Complete_Guide_By_CA_Suvidha_Chaplot (1).pdf
Accounting_Basics_Complete_Guide_By_CA_Suvidha_Chaplot (1).pdf
CA Suvidha Chaplot
 
TNR Gold Investor Summary - Building The Green Energy Metals Royalty and Gold...
TNR Gold Investor Summary - Building The Green Energy Metals Royalty and Gold...TNR Gold Investor Summary - Building The Green Energy Metals Royalty and Gold...
TNR Gold Investor Summary - Building The Green Energy Metals Royalty and Gold...
Kirill Klip
 
2_English_Vocabulary_In_Use_Pre-Intermediate_Cambridge_-_Fourth_Edition (1).pdf
2_English_Vocabulary_In_Use_Pre-Intermediate_Cambridge_-_Fourth_Edition (1).pdf2_English_Vocabulary_In_Use_Pre-Intermediate_Cambridge_-_Fourth_Edition (1).pdf
2_English_Vocabulary_In_Use_Pre-Intermediate_Cambridge_-_Fourth_Edition (1).pdf
ThiNgc22
 
From Sunlight to Savings The Rise of Homegrown Solar Power.pdf
From Sunlight to Savings The Rise of Homegrown Solar Power.pdfFrom Sunlight to Savings The Rise of Homegrown Solar Power.pdf
From Sunlight to Savings The Rise of Homegrown Solar Power.pdf
Insolation Energy
 
NewBase 05 May 2025 Energy News issue - 1785 by Khaled Al Awadi_compressed.pdf
NewBase 05 May 2025  Energy News issue - 1785 by Khaled Al Awadi_compressed.pdfNewBase 05 May 2025  Energy News issue - 1785 by Khaled Al Awadi_compressed.pdf
NewBase 05 May 2025 Energy News issue - 1785 by Khaled Al Awadi_compressed.pdf
Khaled Al Awadi
 
Comments on Cloud Stream Part II Mobile Hub V1 Hub Agency.pdf
Comments on Cloud Stream Part II Mobile Hub V1 Hub Agency.pdfComments on Cloud Stream Part II Mobile Hub V1 Hub Agency.pdf
Comments on Cloud Stream Part II Mobile Hub V1 Hub Agency.pdf
Brij Consulting, LLC
 
BeMetals_Presentation_May_2025 .pdf
BeMetals_Presentation_May_2025      .pdfBeMetals_Presentation_May_2025      .pdf
BeMetals_Presentation_May_2025 .pdf
DerekIwanaka2
 
Affinity.co Lifecycle Marketing Presentation
Affinity.co Lifecycle Marketing PresentationAffinity.co Lifecycle Marketing Presentation
Affinity.co Lifecycle Marketing Presentation
omiller199514
 
From Dreams to Threads: The Story Behind The Chhapai
From Dreams to Threads: The Story Behind The ChhapaiFrom Dreams to Threads: The Story Behind The Chhapai
From Dreams to Threads: The Story Behind The Chhapai
The Chhapai
 
Alan Stalcup - The Enterprising CEO
Alan  Stalcup  -  The  Enterprising  CEOAlan  Stalcup  -  The  Enterprising  CEO
Alan Stalcup - The Enterprising CEO
Alan Stalcup
 
The Fascinating World of Hats: A Brief History of Hats
The Fascinating World of Hats: A Brief History of HatsThe Fascinating World of Hats: A Brief History of Hats
The Fascinating World of Hats: A Brief History of Hats
nimrabilal030
 
EquariusAI analytics for business water risk
EquariusAI analytics for business water riskEquariusAI analytics for business water risk
EquariusAI analytics for business water risk
Peter Adriaens
 
Influence of Career Development on Retention of Employees in Private Univers...
Influence of Career Development on Retention of  Employees in Private Univers...Influence of Career Development on Retention of  Employees in Private Univers...
Influence of Career Development on Retention of Employees in Private Univers...
publication11
 
Brandon Flatley - A Skilled Musician
Brandon Flatley - A Skilled MusicianBrandon Flatley - A Skilled Musician
Brandon Flatley - A Skilled Musician
Brandon Flatley
 
www.visualmedia.com digital markiting (1).pptx
www.visualmedia.com digital markiting (1).pptxwww.visualmedia.com digital markiting (1).pptx
www.visualmedia.com digital markiting (1).pptx
Davinder Singh
 
The Rise of Payroll Outsourcing in the UK: Key Statistics for 2025
The Rise of Payroll Outsourcing in the UK: Key Statistics for 2025The Rise of Payroll Outsourcing in the UK: Key Statistics for 2025
The Rise of Payroll Outsourcing in the UK: Key Statistics for 2025
QX Accounting Services Ltd
 
Alec Lawler - A Passion For Building Brand Awareness
Alec Lawler - A Passion For Building Brand AwarenessAlec Lawler - A Passion For Building Brand Awareness
Alec Lawler - A Passion For Building Brand Awareness
Alec Lawler
 
The Peter Cowley Entrepreneurship Event Master 30th.pdf
The Peter Cowley Entrepreneurship Event Master 30th.pdfThe Peter Cowley Entrepreneurship Event Master 30th.pdf
The Peter Cowley Entrepreneurship Event Master 30th.pdf
Richard Lucas
 
Mexico Office Furniture Market Share, Size, Growth & Trends (2025-2034)
Mexico Office Furniture Market Share, Size, Growth & Trends (2025-2034)Mexico Office Furniture Market Share, Size, Growth & Trends (2025-2034)
Mexico Office Furniture Market Share, Size, Growth & Trends (2025-2034)
janewatson684
 

Personalization who i can restrict subinventory locator to store one item only

  • 1. Personalization Who I Can Restrict Subinventory Locator To Store One Item Only Purpose : Restrict Subinventory Locator To Store One Item Only Example : We Have Many Stock Locator And We Need To Store One Item For Each Locator 1- Connect To Database To Create Tow Function CREATE OR REPLACE FUNCTION XX_ITEM_LOC_ONHAND ( P_LOC_IDIN NUMBER,P_ITEM_ID IN NUMBER) RETURN CHAR IS RESULT VARCHAR (40); BEGIN SELECT CASE WHEN INV_ITEM_ID=P_ITEM_ID AND LOC_ONHAND > 0 THEN 1 WHEN INV_ITEM_ID !=P_ITEM_ID AND LOC_ONHAND > 0 THEN 0 WHEN LOC_ONHAND = 0 AND INV_ITEM_ID = 0 AND LOCATOR_ID=0 THEN 1 END RESULT INTO RESULT FROM ( SELECT MAX(INVENTORY_ITEM_ID) INV_ITEM_ID ,MAX(LOCATOR_ID) LOCATOR_ID ,MAX(LOC_ONHAND) LOC_ONHAND FROM ( SELECT B.INVENTORY_ITEM_ID, B.LOCATOR_ID, SUM(PRIMARY_TRANSACTION_QUANTITY)LOC_ONHAND FROM MTL_ONHAND_QUANTITIES_DETAIL B WHERE 1=1 AND B.LOCATOR_ID =P_LOC_ID----3887 --AND (B.INVENTORY_ITEM_ID = :P_INVENTORY_ITEM_ID) 236005 GROUP BY B.LOCATOR_ID ,B.INVENTORY_ITEM_ID UNION ALL SELECT 0 INVENTORY_ITEM_ID ,0 LOCATOR_ID ,0 LOC_ONHAND FROM DUAL ) ); RETURN (RESULT); EXCEPTION WHEN OTHERS THEN RETURN NULL; END XX_ITEM_LOC_ONHAND; CREATE OR REPLACE FUNCTION APPS.item_code (item_id IN NUMBER,org_id IN NUMBER) RETURN CHAR
  • 2. IS item_code VARCHAR (40); BEGIN SELECT segment1 INTO item_code FROM inv.mtl_system_items_b item WHERE inventory_item_id = item_id AND organization_id = org_id; RETURN (item_code); EXCEPTION WHEN OTHERS THEN RETURN NULL; END item_code; Open Miscellaneous Transaction Form
  • 3. Open Personalization Form 1. Create condition: WHEN-NEW-FORM-INSTANCE Restrict Subinventory Locator To Store One Item Only
  • 4. Trigger Event : WHEN-VALIDATE-RECORD Trigger Object : MTL_TRX_LINE Condition : 0=(SELECT XX_ITEM_LOC_ONHAND ( :MTL_TRX_LINE.LOCATOR_ID,:MTL_TRX_LINE.INVENTORY_ITEM_ID) AA FROM DUAL) 2. Action Tab: a. Choosethe type Message
  • 5. MessageText : =' ‫المدخل‬ ‫الصنف‬ ‫عن‬ ‫مخنلف‬ ‫صنف‬ ‫به‬ ‫يوجد‬ ‫أنه‬ ‫حيث‬ ‫المكان‬ ‫هذا‬ ‫إستخدام‬ ‫يمكن‬ ‫'ال‬ ||CHR(10)|| (select 'Locator Code' ||' : '|| LOC_INF.segment1 || '.' || LOC_INF.segment2 || '.' || LOC_INF.segment3 || '.' || LOC_INF.segment4 ||CHR(10)||'Locator Description'||' : '|| DESCRIPTION from inv.mtl_item_locations LOC_INF where INVENTORY_LOCATION_ID=:MTL_TRX_LINE.LOCATOR_ID) ||CHR(10)||'‫المدخل‬ ‫الصنف‬ : '|| (select item_code(:MTL_TRX_LINE.INVENTORY_ITEM_ID,:MTL_TRX_LINE.ORGANIZATION_ID) from dual)||CHR(10)||' ‫الصنف‬ ‫هو‬ ‫به‬ ‫المسموح‬ :'|| (SELECT distinct item_code(B.INVENTORY_ITEM_ID,B.ORGANIZATION_ID) ON_ITEM_CODE FROM MTL_ONHAND_QUANTITIES_DETAIL B WHERE 1=1 AND B.LOCATOR_ID=:MTL_TRX_LINE.LOCATOR_ID) ------------------------------------------------------------------------------------------------------------------------------------ Create New Action
  • 8. SaveWithout Any Error If You Try To Select Another Item To Store In The Same Locator You Have Error message And FormNot Save The Record Done ‫هلل‬ ‫الحمد‬
  • 9. For Receipts Transactions 0=(SELECT XX_ITEM_LOC_ONHAND( :RCV_TRANSACTION.LOCATOR_ID,:RCV_TRANSACTION.ITEM_ID) AA FROMDUAL) AND:OVERFLOW_REGION.ROUTING_NAME='DirectDelivery' Action
  • 10. =' ‫المدخل‬ ‫الصنف‬ ‫عن‬ ‫مخنلف‬ ‫صنف‬ ‫به‬ ‫يوجد‬ ‫أنه‬ ‫حيث‬ ‫المكان‬ ‫هذا‬ ‫إستخدام‬ ‫يمكن‬ ‫'ال‬||CHR(10)||(select'LocatorCode'||' : '|| LOC_INF.segment1||'.' || LOC_INF.segment2||'.' || LOC_INF.segment3||'.' ||LOC_INF.segment4 ||CHR(10)||'Locator Description'||':'|| DESCRIPTION from inv.mtl_item_locationsLOC_INF where INVENTORY_LOCATION_ID=:RCV_TRANSACTION.LOCATOR_ID) ||CHR(10)||'‫المدخل‬ ‫الصنف‬:'|| (selectitem_code(:RCV_TRANSACTION.ITEM_ID,:RCV_TRANSACTION.TO_ORGANIZATION_ID) from dual)||CHR(10)||'‫هو‬ ‫به‬ ‫المسموح‬ ‫الصنف‬:'|| (SELECT distinctitem_code(B.INVENTORY_ITEM_ID,B.ORGANIZATION_ID) ON_ITEM_CODE FROM MTL_ONHAND_QUANTITIES_DETAILB WHERE 1=1 ANDB.LOCATOR_ID=:RCV_TRANSACTION.LOCATOR_ID)
  • 11. Test