SlideShare a Scribd company logo
1 of 7
Validate Maximum Expiration Date For Items Lots
Purpose : Restrict Lot Expiration Date Within (Transaction Date + Constant Number)
Steps :
1- Apply Lot Expiration Control
- Master Item Form
You Can Define Different Number Of Days For Each Organization
Create Function On Data Base To Resolve Number Of Days For Each Item In Each Organization
CREATE OR REPLACE function APPS.GET_ITEM_SHELF_LIFE_DAYS(
P_ORG_ID in NUMBER,
P_ITEM_ID in NUMBER
) return VARCHAR is
X varchar2(3000);
begin
SELECT itemv.SHELF_LIFE_DAYS INTO X
-- ,itemv.INVENTORY_ITEM_ID,
-- itemv.SHELF_LIFE_CODE,
-- itemv.LOT_CONTROL_CODE
FROM MTL_SYSTEM_ITEMS_FVL itemv
WHERE itemv.ORGANIZATION_ID =P_ORG_ID
--AND (itemv.Segment1 =:pitem_code or :pitem_code is null)
AND itemv.INVENTORY_ITEM_ID = P_ITEM_ID
AND itemv.SHELF_LIFE_CODE = 4
AND itemv.LOT_CONTROL_CODE = 2;
return x;
exception when others then return null;
end;
/
Perform the following forms Personalization on Sales Order Form
1. Login to Oracle Apps with the specified user name and password
2. Navigate to Inventory Responsibility > Miscellaneous Transaction
3. Click Help > Diagnostics > Custom code > Click on the last selection:
'Personalize'
4. Under Conditions tab > Trigger Event = ' WHEN-NEW-ITEM-INSTANCE ', and
Trigger object = ' LOT_ENTRY.TRANSACTION_QUANTITY '
Condition =
1=1 AND :MTL_TRX_LINE.TRANSACTION_ACTION_ID IN (27)
AND :LOT_ENTRY.LOT_EXPIRATION_DATE>:MTL_TRX_LINE.TRANSACTION_DATE+((SELECT
GET_ITEM_SHELF_LIFE_DAYS(:MTL_TRX_LINE.ORGANIZATION_ID,:MTL_TRX_LINE.INVENTORY_ITE
M_ID) FROM DUAL))
6. Set the Context level to User and Value to
--Note: to simplify setup required, you can choose to set the condition context to responsibility.
This would allow you to assign a group of users to a responsibility, then the setup above would
only need completed once at the responsibility level. Otherwise this setup step would be required
for each user.
7. Click to Actions tab and define following actions -
Seq. Type Langua
ge
Message
Type
Message Text
10 Message All Show ='Maximum Expiration Date For This Lot Is :
'||':'||TO_CHAR(:MTL_TRX_LINE.TRANSACTION_DATE+((SEL
ECT
GET_ITEM_SHELF_LIFE_DAYS(:MTL_TRX_LINE.ORGANIZA
TION_ID,:MTL_TRX_LINE.INVENTORY_ITEM_ID) FROM
DUAL)))
8.Save the changes.
Seq. Type Language Builtin Type Argument
20 Builtin All DO_KEY CLEAR_RECORD
9.Close the Sales Order form and re-open it. Now test it.
-----------------------------------------------------------------------------------------------------------------------------------------------------------
Seq. Type Langua
ge
Message
Type
Message Text
10 Message All Show ='Maximum Expiration Date For This Lot Is :
'||':'||TO_CHAR(:HEADER.RECEIPT_DATE+ ((SELECT
GET_ITEM_SHELF_LIFE_DAYS(:RCV_TRANSACTION.TO_OR
GANIZATION_ID,:RCV_TRANSACTION.ITEM_ID) FROM
DUAL)))
1=1
AND :LOT_ENTRY.LOT_EXPIRATION_DATE>(:HEADER.RECEIPT_DATE+(SELECT
GET_ITEM_SHELF_LIFE_DAYS(:RCV_TRANSACTION.TO_ORGANIZATION_ID,:RCV_
TRANSACTION.ITEM_ID)FROM DUAL))
Seq. Type Langua
ge
Message
Type
Message Text
10 Message All Show ='Maximum Expiration Date For This Lot Is :
'||':'||TO_CHAR(:RCV_TRANSACTION.TRANSACTION_DATE_N
B+ ((SELECT
GET_ITEM_SHELF_LIFE_DAYS(:RCV_TRANSACTION.TO_OR
GANIZATION_ID,:RCV_TRANSACTION.ITEM_ID) FROM
DUAL)))
1=1
AND
:LOT_ENTRY.LOT_EXPIRATION_DATE>(:RCV_TRANSACTION.TRANSACTION_DAT
E_NB+(SELECT
GET_ITEM_SHELF_LIFE_DAYS(:RCV_TRANSACTION.TO_ORGANIZATION_ID,:RCV_
TRANSACTION.ITEM_ID)FROM DUAL))
Done ‫هلل‬ ‫الحمد‬

More Related Content

What's hot

Oracle EBS R12 Sales order personalization
Oracle EBS R12 Sales order personalizationOracle EBS R12 Sales order personalization
Oracle EBS R12 Sales order personalizationAhmed Elshayeb
 
Oracle SCM Functional Interview Questions & Answers - Inventory Module - Part...
Oracle SCM Functional Interview Questions & Answers - Inventory Module - Part...Oracle SCM Functional Interview Questions & Answers - Inventory Module - Part...
Oracle SCM Functional Interview Questions & Answers - Inventory Module - Part...Boopathy CS
 
Oracle R12 inventory Table name details with description
Oracle R12 inventory Table name details with descriptionOracle R12 inventory Table name details with description
Oracle R12 inventory Table name details with descriptionBoopathy CS
 
Oracle R12 SCM Functional Interview Questions - Order Management,
Oracle R12 SCM Functional Interview Questions - Order Management, Oracle R12 SCM Functional Interview Questions - Order Management,
Oracle R12 SCM Functional Interview Questions - Order Management, Boopathy CS
 
Inventory in Oracle apps
Inventory in Oracle apps Inventory in Oracle apps
Inventory in Oracle apps gbalagee
 
How to Close Period in Oracle Apps Inventory
How to Close Period in Oracle Apps Inventory How to Close Period in Oracle Apps Inventory
How to Close Period in Oracle Apps Inventory Bizinsight Consulting Inc
 
R12 subinventory transfer and inter org transfers
R12 subinventory transfer and inter org transfersR12 subinventory transfer and inter org transfers
R12 subinventory transfer and inter org transfersshravan kumar chelika
 
Send mail with attached report layout
Send mail with attached report layoutSend mail with attached report layout
Send mail with attached report layoutAhmed Elshayeb
 
Oracle SCM Functional Interview Questions & Answers - Order Management Module...
Oracle SCM Functional Interview Questions & Answers - Order Management Module...Oracle SCM Functional Interview Questions & Answers - Order Management Module...
Oracle SCM Functional Interview Questions & Answers - Order Management Module...Boopathy CS
 
Enhancing Oracle Outside Processing Functionality
Enhancing Oracle Outside Processing FunctionalityEnhancing Oracle Outside Processing Functionality
Enhancing Oracle Outside Processing FunctionalityKPIT
 
Personalization to restrict values in customer name and number lov in sales o...
Personalization to restrict values in customer name and number lov in sales o...Personalization to restrict values in customer name and number lov in sales o...
Personalization to restrict values in customer name and number lov in sales o...Ahmed Elshayeb
 
Purchase Order Approval Using Approval Management Engine
Purchase Order Approval Using Approval Management EnginePurchase Order Approval Using Approval Management Engine
Purchase Order Approval Using Approval Management EngineAh_Ismail
 
Oracle Inventory – Inventory Controls
Oracle Inventory – Inventory ControlsOracle Inventory – Inventory Controls
Oracle Inventory – Inventory ControlsBoopathy CS
 
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
 
Oracle Inventory – Types of Move Orders
Oracle Inventory – Types of Move OrdersOracle Inventory – Types of Move Orders
Oracle Inventory – Types of Move OrdersBoopathy CS
 
Oracle Sourcing Setup
Oracle Sourcing SetupOracle Sourcing Setup
Oracle Sourcing SetupAjay Singh
 
Easing Reconciling Oracle Inventory and General Ledger with Simplified Proced...
Easing Reconciling Oracle Inventory and General Ledger with Simplified Proced...Easing Reconciling Oracle Inventory and General Ledger with Simplified Proced...
Easing Reconciling Oracle Inventory and General Ledger with Simplified Proced...KPIT
 
Oracle R12 SCM Functional Interview Questions - Order Management
Oracle R12 SCM Functional Interview Questions - Order ManagementOracle R12 SCM Functional Interview Questions - Order Management
Oracle R12 SCM Functional Interview Questions - Order ManagementBoopathy CS
 
How to configure LCM After receiving
How to configure LCM After receivingHow to configure LCM After receiving
How to configure LCM After receivingAhmed Elshayeb
 
EBS-OPM Costing.docx
EBS-OPM Costing.docxEBS-OPM Costing.docx
EBS-OPM Costing.docxMina Lotfy
 

What's hot (20)

Oracle EBS R12 Sales order personalization
Oracle EBS R12 Sales order personalizationOracle EBS R12 Sales order personalization
Oracle EBS R12 Sales order personalization
 
Oracle SCM Functional Interview Questions & Answers - Inventory Module - Part...
Oracle SCM Functional Interview Questions & Answers - Inventory Module - Part...Oracle SCM Functional Interview Questions & Answers - Inventory Module - Part...
Oracle SCM Functional Interview Questions & Answers - Inventory Module - Part...
 
Oracle R12 inventory Table name details with description
Oracle R12 inventory Table name details with descriptionOracle R12 inventory Table name details with description
Oracle R12 inventory Table name details with description
 
Oracle R12 SCM Functional Interview Questions - Order Management,
Oracle R12 SCM Functional Interview Questions - Order Management, Oracle R12 SCM Functional Interview Questions - Order Management,
Oracle R12 SCM Functional Interview Questions - Order Management,
 
Inventory in Oracle apps
Inventory in Oracle apps Inventory in Oracle apps
Inventory in Oracle apps
 
How to Close Period in Oracle Apps Inventory
How to Close Period in Oracle Apps Inventory How to Close Period in Oracle Apps Inventory
How to Close Period in Oracle Apps Inventory
 
R12 subinventory transfer and inter org transfers
R12 subinventory transfer and inter org transfersR12 subinventory transfer and inter org transfers
R12 subinventory transfer and inter org transfers
 
Send mail with attached report layout
Send mail with attached report layoutSend mail with attached report layout
Send mail with attached report layout
 
Oracle SCM Functional Interview Questions & Answers - Order Management Module...
Oracle SCM Functional Interview Questions & Answers - Order Management Module...Oracle SCM Functional Interview Questions & Answers - Order Management Module...
Oracle SCM Functional Interview Questions & Answers - Order Management Module...
 
Enhancing Oracle Outside Processing Functionality
Enhancing Oracle Outside Processing FunctionalityEnhancing Oracle Outside Processing Functionality
Enhancing Oracle Outside Processing Functionality
 
Personalization to restrict values in customer name and number lov in sales o...
Personalization to restrict values in customer name and number lov in sales o...Personalization to restrict values in customer name and number lov in sales o...
Personalization to restrict values in customer name and number lov in sales o...
 
Purchase Order Approval Using Approval Management Engine
Purchase Order Approval Using Approval Management EnginePurchase Order Approval Using Approval Management Engine
Purchase Order Approval Using Approval Management Engine
 
Oracle Inventory – Inventory Controls
Oracle Inventory – Inventory ControlsOracle Inventory – Inventory Controls
Oracle Inventory – Inventory Controls
 
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...
 
Oracle Inventory – Types of Move Orders
Oracle Inventory – Types of Move OrdersOracle Inventory – Types of Move Orders
Oracle Inventory – Types of Move Orders
 
Oracle Sourcing Setup
Oracle Sourcing SetupOracle Sourcing Setup
Oracle Sourcing Setup
 
Easing Reconciling Oracle Inventory and General Ledger with Simplified Proced...
Easing Reconciling Oracle Inventory and General Ledger with Simplified Proced...Easing Reconciling Oracle Inventory and General Ledger with Simplified Proced...
Easing Reconciling Oracle Inventory and General Ledger with Simplified Proced...
 
Oracle R12 SCM Functional Interview Questions - Order Management
Oracle R12 SCM Functional Interview Questions - Order ManagementOracle R12 SCM Functional Interview Questions - Order Management
Oracle R12 SCM Functional Interview Questions - Order Management
 
How to configure LCM After receiving
How to configure LCM After receivingHow to configure LCM After receiving
How to configure LCM After receiving
 
EBS-OPM Costing.docx
EBS-OPM Costing.docxEBS-OPM Costing.docx
EBS-OPM Costing.docx
 

Viewers also liked

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
 
Restrict user from use account aliases incompatible with transaction action
Restrict user from use account aliases incompatible with transaction actionRestrict user from use account aliases incompatible with transaction action
Restrict user from use account aliases incompatible with transaction actionAhmed 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 R12Ahmed Elshayeb
 
Personalization Validate Po Quantity With PR
Personalization Validate Po Quantity With PRPersonalization Validate Po Quantity With PR
Personalization Validate Po Quantity With PRAhmed Elshayeb
 
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 desktopAhmed Elshayeb
 
Elshayeb Expense Subinventory And Items Scenario
Elshayeb Expense Subinventory And Items ScenarioElshayeb Expense Subinventory And Items Scenario
Elshayeb Expense Subinventory And Items ScenarioAhmed 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 personalizationAhmed 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 masterAhmed Elshayeb
 
Oracle ERP Personalization for control master items list
Oracle ERP Personalization for control master items listOracle ERP Personalization for control master items list
Oracle ERP Personalization for control master items listAhmed Elshayeb
 
Oracle EBS Tracking items costing return from customer
Oracle EBS Tracking items costing return from customerOracle EBS Tracking items costing return from customer
Oracle EBS Tracking items costing return from customerAhmed 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 TableAhmed Elshayeb
 
Elshayeb Oracle R12 Order Management
Elshayeb Oracle R12 Order ManagementElshayeb Oracle R12 Order Management
Elshayeb Oracle R12 Order ManagementAhmed Elshayeb
 
Oracle Purchasing R12 Setup Steps
Oracle Purchasing R12 Setup StepsOracle Purchasing R12 Setup Steps
Oracle Purchasing R12 Setup StepsAhmed Elshayeb
 
Oracle Purchasing ivas
Oracle Purchasing ivasOracle Purchasing ivas
Oracle Purchasing ivasAli Ibrahim
 
Dynamics CRM 2013 Advanced Customizations
Dynamics CRM 2013 Advanced CustomizationsDynamics CRM 2013 Advanced Customizations
Dynamics CRM 2013 Advanced CustomizationsSatish
 
Introduction to Custom Development in Microsoft Dynamics CRM 2015
Introduction to Custom Development in Microsoft Dynamics CRM 2015Introduction to Custom Development in Microsoft Dynamics CRM 2015
Introduction to Custom Development in Microsoft Dynamics CRM 2015Ashish Vishwakarma
 
Plugins 101 In Microsoft Dynamics CRM 2015
Plugins 101 In Microsoft Dynamics CRM 2015Plugins 101 In Microsoft Dynamics CRM 2015
Plugins 101 In Microsoft Dynamics CRM 2015Ashish Vishwakarma
 
Views & Business Rules in Dynamics CRM 2015
Views & Business Rules in Dynamics CRM 2015Views & Business Rules in Dynamics CRM 2015
Views & Business Rules in Dynamics CRM 2015Ashish Vishwakarma
 
Javascript & OData Microsoft Dynamics CRM
Javascript & OData Microsoft Dynamics CRMJavascript & OData Microsoft Dynamics CRM
Javascript & OData Microsoft Dynamics CRMAshish Vishwakarma
 

Viewers also liked (20)

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)
 
Restrict user from use account aliases incompatible with transaction action
Restrict user from use account aliases incompatible with transaction actionRestrict user from use account aliases incompatible with transaction action
Restrict user from use account aliases incompatible with transaction action
 
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
 
Personalization Validate Po Quantity With PR
Personalization Validate Po Quantity With PRPersonalization Validate Po Quantity With PR
Personalization Validate Po Quantity With PR
 
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
 
Elshayeb Expense Subinventory And Items Scenario
Elshayeb Expense Subinventory And Items ScenarioElshayeb Expense Subinventory And Items Scenario
Elshayeb Expense Subinventory And Items Scenario
 
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
 
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
 
Oracle ERP Personalization for control master items list
Oracle ERP Personalization for control master items listOracle ERP Personalization for control master items list
Oracle ERP Personalization for control master items list
 
Oracle EBS Tracking items costing return from customer
Oracle EBS Tracking items costing return from customerOracle EBS Tracking items costing return from customer
Oracle EBS Tracking items costing return from customer
 
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
 
Elshayeb Oracle R12 Order Management
Elshayeb Oracle R12 Order ManagementElshayeb Oracle R12 Order Management
Elshayeb Oracle R12 Order Management
 
Oracle Purchasing R12 Setup Steps
Oracle Purchasing R12 Setup StepsOracle Purchasing R12 Setup Steps
Oracle Purchasing R12 Setup Steps
 
Oracle Purchasing ivas
Oracle Purchasing ivasOracle Purchasing ivas
Oracle Purchasing ivas
 
moh_elshayeb_2
moh_elshayeb_2moh_elshayeb_2
moh_elshayeb_2
 
Dynamics CRM 2013 Advanced Customizations
Dynamics CRM 2013 Advanced CustomizationsDynamics CRM 2013 Advanced Customizations
Dynamics CRM 2013 Advanced Customizations
 
Introduction to Custom Development in Microsoft Dynamics CRM 2015
Introduction to Custom Development in Microsoft Dynamics CRM 2015Introduction to Custom Development in Microsoft Dynamics CRM 2015
Introduction to Custom Development in Microsoft Dynamics CRM 2015
 
Plugins 101 In Microsoft Dynamics CRM 2015
Plugins 101 In Microsoft Dynamics CRM 2015Plugins 101 In Microsoft Dynamics CRM 2015
Plugins 101 In Microsoft Dynamics CRM 2015
 
Views & Business Rules in Dynamics CRM 2015
Views & Business Rules in Dynamics CRM 2015Views & Business Rules in Dynamics CRM 2015
Views & Business Rules in Dynamics CRM 2015
 
Javascript & OData Microsoft Dynamics CRM
Javascript & OData Microsoft Dynamics CRMJavascript & OData Microsoft Dynamics CRM
Javascript & OData Microsoft Dynamics CRM
 

Similar to Validate maximum expiration date for items lots

Android App Development - 02 Activity and intent
Android App Development - 02 Activity and intentAndroid App Development - 02 Activity and intent
Android App Development - 02 Activity and intentDiego Grancini
 
Run report from menu Personalization كيفية تشغيل تقرير أو ما شابة من خلال شا...
Run report from menu  Personalization كيفية تشغيل تقرير أو ما شابة من خلال شا...Run report from menu  Personalization كيفية تشغيل تقرير أو ما شابة من خلال شا...
Run report from menu Personalization كيفية تشغيل تقرير أو ما شابة من خلال شا...Ahmed Elshayeb
 
PART-2 : Mastering RTOS FreeRTOS and STM32Fx with Debugging
PART-2 : Mastering RTOS FreeRTOS and STM32Fx with DebuggingPART-2 : Mastering RTOS FreeRTOS and STM32Fx with Debugging
PART-2 : Mastering RTOS FreeRTOS and STM32Fx with DebuggingFastBit Embedded Brain Academy
 
Leture5 exercise onactivities
Leture5 exercise onactivitiesLeture5 exercise onactivities
Leture5 exercise onactivitiesmaamir farooq
 
Lecture exercise on activities
Lecture exercise on activitiesLecture exercise on activities
Lecture exercise on activitiesmaamir farooq
 
Refining The System Definition
Refining The System DefinitionRefining The System Definition
Refining The System DefinitionSandeep Ganji
 
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 personalizationAhmed 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 FormAhmed Elshayeb
 
MegaMart Managemant Final Document
MegaMart Managemant Final DocumentMegaMart Managemant Final Document
MegaMart Managemant Final DocumentNicholas Birger
 
Intent, Service and BroadcastReciver (2).ppt
Intent, Service and BroadcastReciver (2).pptIntent, Service and BroadcastReciver (2).ppt
Intent, Service and BroadcastReciver (2).pptBirukMarkos
 
React state
React  stateReact  state
React stateDucat
 
Programming II hiding, and .pdf
 Programming II hiding, and .pdf Programming II hiding, and .pdf
Programming II hiding, and .pdfaludin007
 
Assignment DetailsYou have learned that some markets are compet.docx
Assignment DetailsYou have learned that some markets are compet.docxAssignment DetailsYou have learned that some markets are compet.docx
Assignment DetailsYou have learned that some markets are compet.docxfaithxdunce63732
 
On hand quantities import
On hand quantities importOn hand quantities import
On hand quantities importMuhammad Luqman
 
Diving into VS 2015 Day5
Diving into VS 2015 Day5Diving into VS 2015 Day5
Diving into VS 2015 Day5Akhil Mittal
 
Ruby on rails
Ruby on rails Ruby on rails
Ruby on rails Mohit Jain
 

Similar to Validate maximum expiration date for items lots (20)

Android App Development - 02 Activity and intent
Android App Development - 02 Activity and intentAndroid App Development - 02 Activity and intent
Android App Development - 02 Activity and intent
 
Run report from menu Personalization كيفية تشغيل تقرير أو ما شابة من خلال شا...
Run report from menu  Personalization كيفية تشغيل تقرير أو ما شابة من خلال شا...Run report from menu  Personalization كيفية تشغيل تقرير أو ما شابة من خلال شا...
Run report from menu Personalization كيفية تشغيل تقرير أو ما شابة من خلال شا...
 
Notification android
Notification androidNotification android
Notification android
 
unit3.pptx
unit3.pptxunit3.pptx
unit3.pptx
 
PART-2 : Mastering RTOS FreeRTOS and STM32Fx with Debugging
PART-2 : Mastering RTOS FreeRTOS and STM32Fx with DebuggingPART-2 : Mastering RTOS FreeRTOS and STM32Fx with Debugging
PART-2 : Mastering RTOS FreeRTOS and STM32Fx with Debugging
 
Leture5 exercise onactivities
Leture5 exercise onactivitiesLeture5 exercise onactivities
Leture5 exercise onactivities
 
Lecture exercise on activities
Lecture exercise on activitiesLecture exercise on activities
Lecture exercise on activities
 
Refining The System Definition
Refining The System DefinitionRefining The System Definition
Refining The System Definition
 
Android intents in android application-chapter7
Android intents in android application-chapter7Android intents in android application-chapter7
Android intents in android application-chapter7
 
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
 
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
 
MegaMart Managemant Final Document
MegaMart Managemant Final DocumentMegaMart Managemant Final Document
MegaMart Managemant Final Document
 
Intent, Service and BroadcastReciver (2).ppt
Intent, Service and BroadcastReciver (2).pptIntent, Service and BroadcastReciver (2).ppt
Intent, Service and BroadcastReciver (2).ppt
 
React state
React  stateReact  state
React state
 
Programming II hiding, and .pdf
 Programming II hiding, and .pdf Programming II hiding, and .pdf
Programming II hiding, and .pdf
 
Android - Android Intent Types
Android - Android Intent TypesAndroid - Android Intent Types
Android - Android Intent Types
 
Assignment DetailsYou have learned that some markets are compet.docx
Assignment DetailsYou have learned that some markets are compet.docxAssignment DetailsYou have learned that some markets are compet.docx
Assignment DetailsYou have learned that some markets are compet.docx
 
On hand quantities import
On hand quantities importOn hand quantities import
On hand quantities import
 
Diving into VS 2015 Day5
Diving into VS 2015 Day5Diving into VS 2015 Day5
Diving into VS 2015 Day5
 
Ruby on rails
Ruby on rails Ruby on rails
Ruby on rails
 

More from Ahmed Elshayeb

Personalization who i can restrict subinventory locator to store one item only
Personalization who i can restrict subinventory locator to store one item onlyPersonalization who i can restrict subinventory locator to store one item only
Personalization who i can restrict subinventory locator to store one item onlyAhmed Elshayeb
 
Oracle Purchasing Internal Requisition
Oracle Purchasing Internal RequisitionOracle Purchasing Internal Requisition
Oracle Purchasing Internal RequisitionAhmed 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 loadAhmed 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 rolesAhmed Elshayeb
 
Cascading dependencies
Cascading dependenciesCascading dependencies
Cascading dependenciesAhmed Elshayeb
 
Oracle Personalization Restrict Subinventory And Lot Number LOV Dependent On...
Oracle Personalization Restrict Subinventory And Lot Number LOV  Dependent On...Oracle Personalization Restrict Subinventory And Lot Number LOV  Dependent On...
Oracle Personalization Restrict Subinventory And Lot Number LOV Dependent On...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 administratorAhmed 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
 
Items Subinventory Assignment كيفية ربط مخزن معين بعدة أصناف بإستخدام API
Items Subinventory Assignment كيفية ربط مخزن معين بعدة أصناف بإستخدام APIItems Subinventory Assignment كيفية ربط مخزن معين بعدة أصناف بإستخدام API
Items Subinventory Assignment كيفية ربط مخزن معين بعدة أصناف بإستخدام APIAhmed Elshayeb
 
Assign Freight Cost On Shipping Transaction
Assign Freight Cost On Shipping TransactionAssign Freight Cost On Shipping Transaction
Assign Freight Cost On Shipping TransactionAhmed Elshayeb
 

More from Ahmed Elshayeb (12)

Personalization who i can restrict subinventory locator to store one item only
Personalization who i can restrict subinventory locator to store one item onlyPersonalization who i can restrict subinventory locator to store one item only
Personalization who i can restrict subinventory locator to store one item only
 
Oracle Purchasing Internal Requisition
Oracle Purchasing Internal RequisitionOracle Purchasing Internal Requisition
Oracle Purchasing Internal Requisition
 
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
 
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...
 
Customized security roles
Customized security rolesCustomized security roles
Customized security roles
 
Cascading dependencies
Cascading dependenciesCascading dependencies
Cascading dependencies
 
Oracle Personalization Restrict Subinventory And Lot Number LOV Dependent On...
Oracle Personalization Restrict Subinventory And Lot Number LOV  Dependent On...Oracle Personalization Restrict Subinventory And Lot Number LOV  Dependent On...
Oracle Personalization Restrict Subinventory And Lot Number LOV Dependent On...
 
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
 
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)
 
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...
 
Items Subinventory Assignment كيفية ربط مخزن معين بعدة أصناف بإستخدام API
Items Subinventory Assignment كيفية ربط مخزن معين بعدة أصناف بإستخدام APIItems Subinventory Assignment كيفية ربط مخزن معين بعدة أصناف بإستخدام API
Items Subinventory Assignment كيفية ربط مخزن معين بعدة أصناف بإستخدام API
 
Assign Freight Cost On Shipping Transaction
Assign Freight Cost On Shipping TransactionAssign Freight Cost On Shipping Transaction
Assign Freight Cost On Shipping Transaction
 

Recently uploaded

Cash Payment 9602870969 Escort Service in Udaipur Call Girls
Cash Payment 9602870969 Escort Service in Udaipur Call GirlsCash Payment 9602870969 Escort Service in Udaipur Call Girls
Cash Payment 9602870969 Escort Service in Udaipur Call GirlsApsara Of India
 
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdfRenandantas16
 
VIP Kolkata Call Girl Howrah 👉 8250192130 Available With Room
VIP Kolkata Call Girl Howrah 👉 8250192130  Available With RoomVIP Kolkata Call Girl Howrah 👉 8250192130  Available With Room
VIP Kolkata Call Girl Howrah 👉 8250192130 Available With Roomdivyansh0kumar0
 
Call Girls in Mehrauli Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Mehrauli Delhi 💯Call Us 🔝8264348440🔝Call Girls in Mehrauli Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Mehrauli Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Non Text Magic Studio Magic Design for Presentations L&P.pptx
Non Text Magic Studio Magic Design for Presentations L&P.pptxNon Text Magic Studio Magic Design for Presentations L&P.pptx
Non Text Magic Studio Magic Design for Presentations L&P.pptxAbhayThakur200703
 
M.C Lodges -- Guest House in Jhang.
M.C Lodges --  Guest House in Jhang.M.C Lodges --  Guest House in Jhang.
M.C Lodges -- Guest House in Jhang.Aaiza Hassan
 
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,noida100girls
 
Progress Report - Oracle Database Analyst Summit
Progress  Report - Oracle Database Analyst SummitProgress  Report - Oracle Database Analyst Summit
Progress Report - Oracle Database Analyst SummitHolger Mueller
 
VIP Call Girls Pune Kirti 8617697112 Independent Escort Service Pune
VIP Call Girls Pune Kirti 8617697112 Independent Escort Service PuneVIP Call Girls Pune Kirti 8617697112 Independent Escort Service Pune
VIP Call Girls Pune Kirti 8617697112 Independent Escort Service PuneCall girls in Ahmedabad High profile
 
7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...Paul Menig
 
Russian Faridabad Call Girls(Badarpur) : ☎ 8168257667, @4999
Russian Faridabad Call Girls(Badarpur) : ☎ 8168257667, @4999Russian Faridabad Call Girls(Badarpur) : ☎ 8168257667, @4999
Russian Faridabad Call Girls(Badarpur) : ☎ 8168257667, @4999Tina Ji
 
Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023Neil Kimberley
 
Pharma Works Profile of Karan Communications
Pharma Works Profile of Karan CommunicationsPharma Works Profile of Karan Communications
Pharma Works Profile of Karan Communicationskarancommunications
 
Sales & Marketing Alignment: How to Synergize for Success
Sales & Marketing Alignment: How to Synergize for SuccessSales & Marketing Alignment: How to Synergize for Success
Sales & Marketing Alignment: How to Synergize for SuccessAggregage
 
Monte Carlo simulation : Simulation using MCSM
Monte Carlo simulation : Simulation using MCSMMonte Carlo simulation : Simulation using MCSM
Monte Carlo simulation : Simulation using MCSMRavindra Nath Shukla
 
Call Girls in Gomti Nagar - 7388211116 - With room Service
Call Girls in Gomti Nagar - 7388211116  - With room ServiceCall Girls in Gomti Nagar - 7388211116  - With room Service
Call Girls in Gomti Nagar - 7388211116 - With room Servicediscovermytutordmt
 
GD Birla and his contribution in management
GD Birla and his contribution in managementGD Birla and his contribution in management
GD Birla and his contribution in managementchhavia330
 

Recently uploaded (20)

Cash Payment 9602870969 Escort Service in Udaipur Call Girls
Cash Payment 9602870969 Escort Service in Udaipur Call GirlsCash Payment 9602870969 Escort Service in Udaipur Call Girls
Cash Payment 9602870969 Escort Service in Udaipur Call Girls
 
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
 
VIP Kolkata Call Girl Howrah 👉 8250192130 Available With Room
VIP Kolkata Call Girl Howrah 👉 8250192130  Available With RoomVIP Kolkata Call Girl Howrah 👉 8250192130  Available With Room
VIP Kolkata Call Girl Howrah 👉 8250192130 Available With Room
 
Call Girls in Mehrauli Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Mehrauli Delhi 💯Call Us 🔝8264348440🔝Call Girls in Mehrauli Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Mehrauli Delhi 💯Call Us 🔝8264348440🔝
 
Non Text Magic Studio Magic Design for Presentations L&P.pptx
Non Text Magic Studio Magic Design for Presentations L&P.pptxNon Text Magic Studio Magic Design for Presentations L&P.pptx
Non Text Magic Studio Magic Design for Presentations L&P.pptx
 
M.C Lodges -- Guest House in Jhang.
M.C Lodges --  Guest House in Jhang.M.C Lodges --  Guest House in Jhang.
M.C Lodges -- Guest House in Jhang.
 
Forklift Operations: Safety through Cartoons
Forklift Operations: Safety through CartoonsForklift Operations: Safety through Cartoons
Forklift Operations: Safety through Cartoons
 
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Old Faridabad ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
 
Progress Report - Oracle Database Analyst Summit
Progress  Report - Oracle Database Analyst SummitProgress  Report - Oracle Database Analyst Summit
Progress Report - Oracle Database Analyst Summit
 
VIP Call Girls Pune Kirti 8617697112 Independent Escort Service Pune
VIP Call Girls Pune Kirti 8617697112 Independent Escort Service PuneVIP Call Girls Pune Kirti 8617697112 Independent Escort Service Pune
VIP Call Girls Pune Kirti 8617697112 Independent Escort Service Pune
 
KestrelPro Flyer Japan IT Week 2024 (English)
KestrelPro Flyer Japan IT Week 2024 (English)KestrelPro Flyer Japan IT Week 2024 (English)
KestrelPro Flyer Japan IT Week 2024 (English)
 
7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...
 
Russian Faridabad Call Girls(Badarpur) : ☎ 8168257667, @4999
Russian Faridabad Call Girls(Badarpur) : ☎ 8168257667, @4999Russian Faridabad Call Girls(Badarpur) : ☎ 8168257667, @4999
Russian Faridabad Call Girls(Badarpur) : ☎ 8168257667, @4999
 
Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023
 
Pharma Works Profile of Karan Communications
Pharma Works Profile of Karan CommunicationsPharma Works Profile of Karan Communications
Pharma Works Profile of Karan Communications
 
Sales & Marketing Alignment: How to Synergize for Success
Sales & Marketing Alignment: How to Synergize for SuccessSales & Marketing Alignment: How to Synergize for Success
Sales & Marketing Alignment: How to Synergize for Success
 
Monte Carlo simulation : Simulation using MCSM
Monte Carlo simulation : Simulation using MCSMMonte Carlo simulation : Simulation using MCSM
Monte Carlo simulation : Simulation using MCSM
 
Best Practices for Implementing an External Recruiting Partnership
Best Practices for Implementing an External Recruiting PartnershipBest Practices for Implementing an External Recruiting Partnership
Best Practices for Implementing an External Recruiting Partnership
 
Call Girls in Gomti Nagar - 7388211116 - With room Service
Call Girls in Gomti Nagar - 7388211116  - With room ServiceCall Girls in Gomti Nagar - 7388211116  - With room Service
Call Girls in Gomti Nagar - 7388211116 - With room Service
 
GD Birla and his contribution in management
GD Birla and his contribution in managementGD Birla and his contribution in management
GD Birla and his contribution in management
 

Validate maximum expiration date for items lots

  • 1. Validate Maximum Expiration Date For Items Lots Purpose : Restrict Lot Expiration Date Within (Transaction Date + Constant Number) Steps : 1- Apply Lot Expiration Control - Master Item Form
  • 2. You Can Define Different Number Of Days For Each Organization
  • 3. Create Function On Data Base To Resolve Number Of Days For Each Item In Each Organization CREATE OR REPLACE function APPS.GET_ITEM_SHELF_LIFE_DAYS( P_ORG_ID in NUMBER, P_ITEM_ID in NUMBER ) return VARCHAR is X varchar2(3000); begin SELECT itemv.SHELF_LIFE_DAYS INTO X -- ,itemv.INVENTORY_ITEM_ID, -- itemv.SHELF_LIFE_CODE, -- itemv.LOT_CONTROL_CODE FROM MTL_SYSTEM_ITEMS_FVL itemv WHERE itemv.ORGANIZATION_ID =P_ORG_ID --AND (itemv.Segment1 =:pitem_code or :pitem_code is null) AND itemv.INVENTORY_ITEM_ID = P_ITEM_ID AND itemv.SHELF_LIFE_CODE = 4 AND itemv.LOT_CONTROL_CODE = 2; return x; exception when others then return null; end; /
  • 4. Perform the following forms Personalization on Sales Order Form 1. Login to Oracle Apps with the specified user name and password 2. Navigate to Inventory Responsibility > Miscellaneous Transaction 3. Click Help > Diagnostics > Custom code > Click on the last selection: 'Personalize' 4. Under Conditions tab > Trigger Event = ' WHEN-NEW-ITEM-INSTANCE ', and Trigger object = ' LOT_ENTRY.TRANSACTION_QUANTITY ' Condition = 1=1 AND :MTL_TRX_LINE.TRANSACTION_ACTION_ID IN (27) AND :LOT_ENTRY.LOT_EXPIRATION_DATE>:MTL_TRX_LINE.TRANSACTION_DATE+((SELECT GET_ITEM_SHELF_LIFE_DAYS(:MTL_TRX_LINE.ORGANIZATION_ID,:MTL_TRX_LINE.INVENTORY_ITE M_ID) FROM DUAL)) 6. Set the Context level to User and Value to
  • 5. --Note: to simplify setup required, you can choose to set the condition context to responsibility. This would allow you to assign a group of users to a responsibility, then the setup above would only need completed once at the responsibility level. Otherwise this setup step would be required for each user. 7. Click to Actions tab and define following actions - Seq. Type Langua ge Message Type Message Text 10 Message All Show ='Maximum Expiration Date For This Lot Is : '||':'||TO_CHAR(:MTL_TRX_LINE.TRANSACTION_DATE+((SEL ECT GET_ITEM_SHELF_LIFE_DAYS(:MTL_TRX_LINE.ORGANIZA TION_ID,:MTL_TRX_LINE.INVENTORY_ITEM_ID) FROM DUAL))) 8.Save the changes.
  • 6. Seq. Type Language Builtin Type Argument 20 Builtin All DO_KEY CLEAR_RECORD 9.Close the Sales Order form and re-open it. Now test it. ----------------------------------------------------------------------------------------------------------------------------------------------------------- Seq. Type Langua ge Message Type Message Text 10 Message All Show ='Maximum Expiration Date For This Lot Is : '||':'||TO_CHAR(:HEADER.RECEIPT_DATE+ ((SELECT GET_ITEM_SHELF_LIFE_DAYS(:RCV_TRANSACTION.TO_OR GANIZATION_ID,:RCV_TRANSACTION.ITEM_ID) FROM DUAL))) 1=1 AND :LOT_ENTRY.LOT_EXPIRATION_DATE>(:HEADER.RECEIPT_DATE+(SELECT GET_ITEM_SHELF_LIFE_DAYS(:RCV_TRANSACTION.TO_ORGANIZATION_ID,:RCV_ TRANSACTION.ITEM_ID)FROM DUAL))
  • 7. Seq. Type Langua ge Message Type Message Text 10 Message All Show ='Maximum Expiration Date For This Lot Is : '||':'||TO_CHAR(:RCV_TRANSACTION.TRANSACTION_DATE_N B+ ((SELECT GET_ITEM_SHELF_LIFE_DAYS(:RCV_TRANSACTION.TO_OR GANIZATION_ID,:RCV_TRANSACTION.ITEM_ID) FROM DUAL))) 1=1 AND :LOT_ENTRY.LOT_EXPIRATION_DATE>(:RCV_TRANSACTION.TRANSACTION_DAT E_NB+(SELECT GET_ITEM_SHELF_LIFE_DAYS(:RCV_TRANSACTION.TO_ORGANIZATION_ID,:RCV_ TRANSACTION.ITEM_ID)FROM DUAL)) Done ‫هلل‬ ‫الحمد‬