SlideShare a Scribd company logo
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

How to auto create trip in oracle order management
How to auto create trip in oracle order managementHow to auto create trip in oracle order management
How to auto create trip in oracle order management
shravan kumar chelika
 
Inventory in Oracle apps
Inventory in Oracle apps Inventory in Oracle apps
Inventory in Oracle apps
gbalagee
 
Personalization Validate Po Quantity With PR
Personalization Validate Po Quantity With PRPersonalization Validate Po Quantity With PR
Personalization Validate Po Quantity With PR
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
 
Oracle R12 Apps - Order Management Tables & Descriptions
Oracle R12 Apps - Order Management Tables & DescriptionsOracle R12 Apps - Order Management Tables & Descriptions
Oracle R12 Apps - Order Management Tables & Descriptions
Boopathy CS
 
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
shravan kumar chelika
 
Validation type 'special' in value sets
Validation type 'special' in value setsValidation type 'special' in value sets
Validation type 'special' in value sets
Feras Ahmad
 
Pick pack and ship confirm process in oracle apps
Pick pack and ship confirm process in oracle appsPick pack and ship confirm process in oracle apps
Pick pack and ship confirm process in oracle apps
shravan kumar chelika
 
Elshayeb Oracle R12 Order Management
Elshayeb Oracle R12 Order ManagementElshayeb Oracle R12 Order Management
Elshayeb Oracle R12 Order Management
Ahmed Elshayeb
 
Oracle Inventory – Types of Move Orders
Oracle Inventory – Types of Move OrdersOracle Inventory – Types of Move Orders
Oracle Inventory – Types of Move Orders
Boopathy CS
 
Oracle R12 Apps - Purchasing Module Setup Steps
Oracle R12 Apps - Purchasing Module Setup Steps Oracle R12 Apps - Purchasing Module Setup Steps
Oracle R12 Apps - Purchasing Module Setup Steps
Boopathy CS
 
Technical architecture for order management
Technical architecture for order managementTechnical architecture for order management
Technical architecture for order management
Mohit kumar Gupta
 
Personalization how to restrict transaction type list of values
Personalization how to restrict transaction type list of valuesPersonalization how to restrict transaction type list of values
Personalization how to restrict transaction type list of values
Ahmed Elshayeb
 
Oracle Inventory Complete Implementation Setups.
Oracle Inventory Complete Implementation Setups.Oracle Inventory Complete Implementation Setups.
Oracle Inventory Complete Implementation Setups.
Muhammad Mansoor Ali
 
PO Position Hierarchy in R12
PO Position Hierarchy in R12PO Position Hierarchy in R12
PO Position Hierarchy in R12
parinay jain
 
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
 
Oracle R12 Order Management - Back to Back (B2B) Order Flow:
Oracle R12 Order Management - Back to Back (B2B) Order Flow:Oracle R12 Order Management - Back to Back (B2B) Order Flow:
Oracle R12 Order Management - Back to Back (B2B) Order Flow:
Boopathy CS
 
EBS-OPM Costing.docx
EBS-OPM Costing.docxEBS-OPM Costing.docx
EBS-OPM Costing.docx
Mina Lotfy
 
Oracle EBS R12 Order Management Notes
Oracle EBS R12 Order Management NotesOracle EBS R12 Order Management Notes
Oracle EBS R12 Order Management Notes
Tech Leads IT
 

What's hot (20)

How to auto create trip in oracle order management
How to auto create trip in oracle order managementHow to auto create trip in oracle order management
How to auto create trip in oracle order management
 
Inventory in Oracle apps
Inventory in Oracle apps Inventory in Oracle apps
Inventory in Oracle apps
 
Personalization Validate Po Quantity With PR
Personalization Validate Po Quantity With PRPersonalization Validate Po Quantity With PR
Personalization Validate Po Quantity With PR
 
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...
 
Oracle R12 Apps - Order Management Tables & Descriptions
Oracle R12 Apps - Order Management Tables & DescriptionsOracle R12 Apps - Order Management Tables & Descriptions
Oracle R12 Apps - Order Management Tables & Descriptions
 
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
 
Validation type 'special' in value sets
Validation type 'special' in value setsValidation type 'special' in value sets
Validation type 'special' in value sets
 
Pick pack and ship confirm process in oracle apps
Pick pack and ship confirm process in oracle appsPick pack and ship confirm process in oracle apps
Pick pack and ship confirm process in oracle apps
 
Elshayeb Oracle R12 Order Management
Elshayeb Oracle R12 Order ManagementElshayeb Oracle R12 Order Management
Elshayeb Oracle R12 Order Management
 
Oracle Inventory – Types of Move Orders
Oracle Inventory – Types of Move OrdersOracle Inventory – Types of Move Orders
Oracle Inventory – Types of Move Orders
 
Oracle R12 Apps - Purchasing Module Setup Steps
Oracle R12 Apps - Purchasing Module Setup Steps Oracle R12 Apps - Purchasing Module Setup Steps
Oracle R12 Apps - Purchasing Module Setup Steps
 
Technical architecture for order management
Technical architecture for order managementTechnical architecture for order management
Technical architecture for order management
 
Personalization how to restrict transaction type list of values
Personalization how to restrict transaction type list of valuesPersonalization how to restrict transaction type list of values
Personalization how to restrict transaction type list of values
 
Oracle Inventory Complete Implementation Setups.
Oracle Inventory Complete Implementation Setups.Oracle Inventory Complete Implementation Setups.
Oracle Inventory Complete Implementation Setups.
 
PO Position Hierarchy in R12
PO Position Hierarchy in R12PO Position Hierarchy in R12
PO Position Hierarchy in R12
 
How to configure LCM After receiving
How to configure LCM After receivingHow to configure LCM After receiving
How to configure LCM After receiving
 
Oracle R12 Order Management - Back to Back (B2B) Order Flow:
Oracle R12 Order Management - Back to Back (B2B) Order Flow:Oracle R12 Order Management - Back to Back (B2B) Order Flow:
Oracle R12 Order Management - Back to Back (B2B) Order Flow:
 
Oracle forms personalization
Oracle forms personalizationOracle forms personalization
Oracle forms personalization
 
EBS-OPM Costing.docx
EBS-OPM Costing.docxEBS-OPM Costing.docx
EBS-OPM Costing.docx
 
Oracle EBS R12 Order Management Notes
Oracle EBS R12 Order Management NotesOracle EBS R12 Order Management Notes
Oracle EBS R12 Order Management Notes
 

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 action
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
 
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
 
Elshayeb Expense Subinventory And Items Scenario
Elshayeb Expense Subinventory And Items ScenarioElshayeb Expense Subinventory And Items Scenario
Elshayeb Expense Subinventory And Items Scenario
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
 
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
 
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 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
Ahmed 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 customer
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
 
Send mail with attached report layout
Send mail with attached report layoutSend mail with attached report layout
Send mail with attached report layout
Ahmed Elshayeb
 
Oracle Purchasing R12 Setup Steps
Oracle Purchasing R12 Setup StepsOracle Purchasing R12 Setup Steps
Oracle Purchasing R12 Setup Steps
Ahmed Elshayeb
 
Oracle Purchasing ivas
Oracle Purchasing ivasOracle Purchasing ivas
Oracle Purchasing ivas
Ali Ibrahim
 
Dynamics CRM 2013 Advanced Customizations
Dynamics CRM 2013 Advanced CustomizationsDynamics CRM 2013 Advanced Customizations
Dynamics CRM 2013 Advanced Customizations
Satish
 
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
Ashish 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 2015
Ashish 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 2015
Ashish Vishwakarma
 
Javascript & OData Microsoft Dynamics CRM
Javascript & OData Microsoft Dynamics CRMJavascript & OData Microsoft Dynamics CRM
Javascript & OData Microsoft Dynamics CRM
Ashish 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
 
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
 
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...
 
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
 
Send mail with attached report layout
Send mail with attached report layoutSend mail with attached report layout
Send mail with attached report layout
 
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 intent
Diego Grancini
 
Run report from menu Personalization كيفية تشغيل تقرير أو ما شابة من خلال شا...
Run report from menu  Personalization كيفية تشغيل تقرير أو ما شابة من خلال شا...Run report from menu  Personalization كيفية تشغيل تقرير أو ما شابة من خلال شا...
Run report from menu Personalization كيفية تشغيل تقرير أو ما شابة من خلال شا...
Ahmed Elshayeb
 
Notification android
Notification androidNotification android
Notification android
ksheerod shri toshniwal
 
unit3.pptx
unit3.pptxunit3.pptx
unit3.pptx
sunilsoni446112
 
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
FastBit Embedded Brain Academy
 
Leture5 exercise onactivities
Leture5 exercise onactivitiesLeture5 exercise onactivities
Leture5 exercise onactivities
maamir farooq
 
Lecture exercise on activities
Lecture exercise on activitiesLecture exercise on activities
Lecture exercise on activities
maamir farooq
 
Refining The System Definition
Refining The System DefinitionRefining The System Definition
Refining The System DefinitionSandeep Ganji
 
Android intents in android application-chapter7
Android intents in android application-chapter7Android intents in android application-chapter7
Android intents in android application-chapter7
Dr. Ramkumar Lakshminarayanan
 
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
 
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
 
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).ppt
BirukMarkos
 
React state
React  stateReact  state
React state
Ducat
 
Programming II hiding, and .pdf
 Programming II hiding, and .pdf Programming II hiding, and .pdf
Programming II hiding, and .pdf
aludin007
 
Android - Android Intent Types
Android - Android Intent TypesAndroid - Android Intent Types
Android - Android Intent Types
Vibrant Technologies & Computers
 
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
faithxdunce63732
 
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 only
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
 
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 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
 
Items Subinventory Assignment كيفية ربط مخزن معين بعدة أصناف بإستخدام API
Items Subinventory Assignment كيفية ربط مخزن معين بعدة أصناف بإستخدام APIItems Subinventory Assignment كيفية ربط مخزن معين بعدة أصناف بإستخدام API
Items Subinventory Assignment كيفية ربط مخزن معين بعدة أصناف بإستخدام API
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
 

More from Ahmed Elshayeb (11)

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)
 
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

ikea_woodgreen_petscharity_dog-alogue_digital.pdf
ikea_woodgreen_petscharity_dog-alogue_digital.pdfikea_woodgreen_petscharity_dog-alogue_digital.pdf
ikea_woodgreen_petscharity_dog-alogue_digital.pdf
agatadrynko
 
buy old yahoo accounts buy yahoo accounts
buy old yahoo accounts buy yahoo accountsbuy old yahoo accounts buy yahoo accounts
buy old yahoo accounts buy yahoo accounts
Susan Laney
 
Creative Web Design Company in Singapore
Creative Web Design Company in SingaporeCreative Web Design Company in Singapore
Creative Web Design Company in Singapore
techboxsqauremedia
 
ikea_woodgreen_petscharity_cat-alogue_digital.pdf
ikea_woodgreen_petscharity_cat-alogue_digital.pdfikea_woodgreen_petscharity_cat-alogue_digital.pdf
ikea_woodgreen_petscharity_cat-alogue_digital.pdf
agatadrynko
 
In the Adani-Hindenburg case, what is SEBI investigating.pptx
In the Adani-Hindenburg case, what is SEBI investigating.pptxIn the Adani-Hindenburg case, what is SEBI investigating.pptx
In the Adani-Hindenburg case, what is SEBI investigating.pptx
Adani case
 
Evgen Osmak: Methods of key project parameters estimation: from the shaman-in...
Evgen Osmak: Methods of key project parameters estimation: from the shaman-in...Evgen Osmak: Methods of key project parameters estimation: from the shaman-in...
Evgen Osmak: Methods of key project parameters estimation: from the shaman-in...
Lviv Startup Club
 
Chapter 7 Final business management sciences .ppt
Chapter 7 Final business management sciences .pptChapter 7 Final business management sciences .ppt
Chapter 7 Final business management sciences .ppt
ssuser567e2d
 
The Influence of Marketing Strategy and Market Competition on Business Perfor...
The Influence of Marketing Strategy and Market Competition on Business Perfor...The Influence of Marketing Strategy and Market Competition on Business Perfor...
The Influence of Marketing Strategy and Market Competition on Business Perfor...
Adam Smith
 
Brand Analysis for an artist named Struan
Brand Analysis for an artist named StruanBrand Analysis for an artist named Struan
Brand Analysis for an artist named Struan
sarahvanessa51503
 
Authentically Social Presented by Corey Perlman
Authentically Social Presented by Corey PerlmanAuthentically Social Presented by Corey Perlman
Authentically Social Presented by Corey Perlman
Corey Perlman, Social Media Speaker and Consultant
 
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdfModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
fisherameliaisabella
 
Best Forex Brokers Comparison in INDIA 2024
Best Forex Brokers Comparison in INDIA 2024Best Forex Brokers Comparison in INDIA 2024
Best Forex Brokers Comparison in INDIA 2024
Top Forex Brokers Review
 
Tata Group Dials Taiwan for Its Chipmaking Ambition in Gujarat’s Dholera
Tata Group Dials Taiwan for Its Chipmaking Ambition in Gujarat’s DholeraTata Group Dials Taiwan for Its Chipmaking Ambition in Gujarat’s Dholera
Tata Group Dials Taiwan for Its Chipmaking Ambition in Gujarat’s Dholera
Avirahi City Dholera
 
Premium MEAN Stack Development Solutions for Modern Businesses
Premium MEAN Stack Development Solutions for Modern BusinessesPremium MEAN Stack Development Solutions for Modern Businesses
Premium MEAN Stack Development Solutions for Modern Businesses
SynapseIndia
 
Mastering B2B Payments Webinar from BlueSnap
Mastering B2B Payments Webinar from BlueSnapMastering B2B Payments Webinar from BlueSnap
Mastering B2B Payments Webinar from BlueSnap
Norma Mushkat Gaffin
 
Auditing study material for b.com final year students
Auditing study material for b.com final year  studentsAuditing study material for b.com final year  students
Auditing study material for b.com final year students
narasimhamurthyh4
 
3.0 Project 2_ Developing My Brand Identity Kit.pptx
3.0 Project 2_ Developing My Brand Identity Kit.pptx3.0 Project 2_ Developing My Brand Identity Kit.pptx
3.0 Project 2_ Developing My Brand Identity Kit.pptx
tanyjahb
 
Authentically Social by Corey Perlman - EO Puerto Rico
Authentically Social by Corey Perlman - EO Puerto RicoAuthentically Social by Corey Perlman - EO Puerto Rico
Authentically Social by Corey Perlman - EO Puerto Rico
Corey Perlman, Social Media Speaker and Consultant
 
The effects of customers service quality and online reviews on customer loyal...
The effects of customers service quality and online reviews on customer loyal...The effects of customers service quality and online reviews on customer loyal...
The effects of customers service quality and online reviews on customer loyal...
balatucanapplelovely
 
The Influence of Marketing Strategy and Market Competition on Business Perfor...
The Influence of Marketing Strategy and Market Competition on Business Perfor...The Influence of Marketing Strategy and Market Competition on Business Perfor...
The Influence of Marketing Strategy and Market Competition on Business Perfor...
Adam Smith
 

Recently uploaded (20)

ikea_woodgreen_petscharity_dog-alogue_digital.pdf
ikea_woodgreen_petscharity_dog-alogue_digital.pdfikea_woodgreen_petscharity_dog-alogue_digital.pdf
ikea_woodgreen_petscharity_dog-alogue_digital.pdf
 
buy old yahoo accounts buy yahoo accounts
buy old yahoo accounts buy yahoo accountsbuy old yahoo accounts buy yahoo accounts
buy old yahoo accounts buy yahoo accounts
 
Creative Web Design Company in Singapore
Creative Web Design Company in SingaporeCreative Web Design Company in Singapore
Creative Web Design Company in Singapore
 
ikea_woodgreen_petscharity_cat-alogue_digital.pdf
ikea_woodgreen_petscharity_cat-alogue_digital.pdfikea_woodgreen_petscharity_cat-alogue_digital.pdf
ikea_woodgreen_petscharity_cat-alogue_digital.pdf
 
In the Adani-Hindenburg case, what is SEBI investigating.pptx
In the Adani-Hindenburg case, what is SEBI investigating.pptxIn the Adani-Hindenburg case, what is SEBI investigating.pptx
In the Adani-Hindenburg case, what is SEBI investigating.pptx
 
Evgen Osmak: Methods of key project parameters estimation: from the shaman-in...
Evgen Osmak: Methods of key project parameters estimation: from the shaman-in...Evgen Osmak: Methods of key project parameters estimation: from the shaman-in...
Evgen Osmak: Methods of key project parameters estimation: from the shaman-in...
 
Chapter 7 Final business management sciences .ppt
Chapter 7 Final business management sciences .pptChapter 7 Final business management sciences .ppt
Chapter 7 Final business management sciences .ppt
 
The Influence of Marketing Strategy and Market Competition on Business Perfor...
The Influence of Marketing Strategy and Market Competition on Business Perfor...The Influence of Marketing Strategy and Market Competition on Business Perfor...
The Influence of Marketing Strategy and Market Competition on Business Perfor...
 
Brand Analysis for an artist named Struan
Brand Analysis for an artist named StruanBrand Analysis for an artist named Struan
Brand Analysis for an artist named Struan
 
Authentically Social Presented by Corey Perlman
Authentically Social Presented by Corey PerlmanAuthentically Social Presented by Corey Perlman
Authentically Social Presented by Corey Perlman
 
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdfModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
 
Best Forex Brokers Comparison in INDIA 2024
Best Forex Brokers Comparison in INDIA 2024Best Forex Brokers Comparison in INDIA 2024
Best Forex Brokers Comparison in INDIA 2024
 
Tata Group Dials Taiwan for Its Chipmaking Ambition in Gujarat’s Dholera
Tata Group Dials Taiwan for Its Chipmaking Ambition in Gujarat’s DholeraTata Group Dials Taiwan for Its Chipmaking Ambition in Gujarat’s Dholera
Tata Group Dials Taiwan for Its Chipmaking Ambition in Gujarat’s Dholera
 
Premium MEAN Stack Development Solutions for Modern Businesses
Premium MEAN Stack Development Solutions for Modern BusinessesPremium MEAN Stack Development Solutions for Modern Businesses
Premium MEAN Stack Development Solutions for Modern Businesses
 
Mastering B2B Payments Webinar from BlueSnap
Mastering B2B Payments Webinar from BlueSnapMastering B2B Payments Webinar from BlueSnap
Mastering B2B Payments Webinar from BlueSnap
 
Auditing study material for b.com final year students
Auditing study material for b.com final year  studentsAuditing study material for b.com final year  students
Auditing study material for b.com final year students
 
3.0 Project 2_ Developing My Brand Identity Kit.pptx
3.0 Project 2_ Developing My Brand Identity Kit.pptx3.0 Project 2_ Developing My Brand Identity Kit.pptx
3.0 Project 2_ Developing My Brand Identity Kit.pptx
 
Authentically Social by Corey Perlman - EO Puerto Rico
Authentically Social by Corey Perlman - EO Puerto RicoAuthentically Social by Corey Perlman - EO Puerto Rico
Authentically Social by Corey Perlman - EO Puerto Rico
 
The effects of customers service quality and online reviews on customer loyal...
The effects of customers service quality and online reviews on customer loyal...The effects of customers service quality and online reviews on customer loyal...
The effects of customers service quality and online reviews on customer loyal...
 
The Influence of Marketing Strategy and Market Competition on Business Perfor...
The Influence of Marketing Strategy and Market Competition on Business Perfor...The Influence of Marketing Strategy and Market Competition on Business Perfor...
The Influence of Marketing Strategy and Market Competition on Business Perfor...
 

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 ‫هلل‬ ‫الحمد‬