SlideShare a Scribd company logo
Auto Create Trip In Oracle Order Management
What is a Trip?
A trip is an instance of a specific freight carried departing from particular location containing deliveries.
A trip is carrier specific and contains at least 2 stops such as the pick-up stop and drop-off stop. Trips can
be created automatically or manually…
What is a Stop?
A stop is a point along the route of a trip where goods are either picked up, dropped off or both..
Consider the following Business Scenario:
A sales order is placed for two items: a desktop CPU and a monitor. The order lines are booked and
Scheduled in Order Management. The inventory for the desktop CPU resides in the M1 inventory
Organization and the Monitor resides in V1 inventory organization. The objective is to create a plan that
enables the shipments of the individual items to be made from their respective inventory organizations,
merge or consolidate at an intermediate distribution center location, and deliver to the customer’s
ultimate ship to location as a single shipment….
Once the order is booked, the order lines are imported into Shipping Execution where the
Transportation Planner has visibility to the lines. At this point, the planner creates Trip 1
(Consisting of Carrier and vehicle information) for the desktop CPU located in Warehouse 1 in
Seattle, WA. The key element depicting the Trip is the ship method.
The creation of the Trip can be done in a variety of ways depending on your business process.
1) Auto create Trip
When a Trip is created using the Auto create Trip functionality, 2 stops are created.
The first stop consists of the location where the shipment is picked up, (Ship From) and the second stop
is the location where the shipment is dropped off (Ship To). In the business scenario we’re describing, an
Intermediate stop needs to be defined and assigned to the Trip 1.
Lets create an auto trip from the applications:
Log on to Applications and navigate to the responsibility : Order Management Super User, Vision
Operations (USA):
Double Click on Sales Orders:
Enter the Customer Information and the rest of the information should be defaulted automatically,click
on the Line Items Tab:
Enter the Line Information and then click on ‘Book Order’:
You will see the following note click OK , make a note of the Order Number(in this case -69413) and
close the form:
Navigate to the Shipping Transactions Form:
Enter the Order Number ‘69413’ and press Tab and then click on ‘Find’:
You will see the two items you created on the sales order with their respective delivery detail id,now to
auto create the trip you need to select the lines (Edit->Select all) and from the Actions menu select the
‘Auto-create Trip’ option.
What happens when you select the action ‘Auto-create Trip’ and click on ‘Go’?
Oracle Shipping Execution creates the trips, creates the pick up and dropoff stops, autocreates the
deliveries, and assigns the deliveries to trips.
Verify the Action has completed by clicking on the Tabs ‘Path by Trip’ and ‘Path by Stop’,note the trip id:
You would see minimum two stops – One for Pickup and One for Drop off:
The Next step would be to Pick Release the Trip, inorder to do that query the trip from the Shipping
Transactions form:
Before selecting from the Actions ‘Launch Pick Release’,enter the Ship Method and save it…then click on
‘Go’:
The following Note is shown :
You can verify the requests by :
The next step is to ship confirm the Trip:
Navigate to the Shipping Transactions form and then select the Action ‘Ship Confirm’ and click on ‘Go’:
You should see the following note:
The Interface Trip Stop program runs in the backend and kicks off the other necessary programs like Bill
of Lading,Packing Slip Report,Commercial Invoice etc..You will see the status of the Trip change from
‘Open’ to ‘Closed’…
Technical Side Code:
We can do the same from backend by using the Oracle Public API :
procedure auto_create_trip( p_user_id IN NUMBER,
p_resp_id IN
NUMBER,
p_order_num IN
VARCHAR2,
p_resp_appl_id IN
NUMBER,
p_action IN
VARCHAR2,
p_org_id IN
NUMBER,
p_del_detail_id IN
NUMBER,
x_trip_number OUT
NUMBER,
x_del_trip_name OUT
VARCHAR2,
x_delivery_name OUT
NUMBER,
x_mast_status OUT
VARCHAR2,
x_mast_err_msg OUT
VARCHAR2
)
is
lv_return_status VARCHAR2 (1);
ln_msg_count NUMBER;
lv_msg_data VARCHAR2 (4000);
ln_trip_id NUMBER;
lv_trip_name VARCHAR2 (30);
l_line_tbl wsh_util_core.id_tab_type;
l_del_rows_tbl wsh_util_core.id_tab_type;
ln_line_no NUMBER := 0;
l_msg_index_out NUMBER;
p_master_trip VARCHAR2(30);
p_err_msg VARCHAR2(3000);
END_CHK_EXCEP exception;
cursor del_detid(p_order_num VARCHAR2)
is
select delivery_detail_id
from wsh_deliverables_v
where 1=1
and source_header_number=p_order_num;
begin
/* Setting the oracle applications context for the particular session */
fnd_global.apps_initialize (
user_id => p_user_id
, resp_id => p_resp_id
, resp_appl_id => p_resp_appl_id
, security_group_id => 0
);
--Initialize message list
FND_MSG_PUB.INITIALIZE;
/* Setting the org context for the particular session */
mo_global.set_policy_context('S',p_org_id);
mo_global.init ('ONT');
if p_del_detail_id is null then
for c_del_detid in del_detid(p_order_num)
loop
dbms_output.put_line('Calling the Oracle API with Delivery Detail Id : '
|| c_del_detid.delivery_detail_id);
ln_line_no := NVL (ln_line_no, 0) + 1;
dbms_output.put_line('Calling the Oracle API with Line Number: ' ||
ln_line_no);
l_line_tbl (ln_line_no) := c_del_detid.delivery_detail_id;
dbms_output.put_line('Calling the Oracle API for delivery detail id : '
|| l_line_tbl (ln_line_no) );
end loop;
else
l_line_tbl(1):=p_del_detail_id;
end if;
begin
wsh_delivery_details_pub.autocreate_del_trip (p_api_version_number
=> 1.0 ,
p_init_msg_list => fnd_api.g_false,
p_commit => fnd_api.g_false,
x_return_status => lv_return_status,
x_msg_count => ln_msg_count,
x_msg_data => lv_msg_data,
p_line_rows => l_line_tbl,
x_del_rows => l_del_rows_tbl,
x_trip_id => ln_trip_id,
x_trip_name => lv_trip_name
);
COMMIT;
exception
WHEN others THEN
dbms_output.put_line('Error From the Oracle API : ' || lv_msg_data);
x_mast_status := 'E';
x_mast_err_msg := SUBSTR(x_mast_err_msg ||' '||'Other Procedure
Errors.'||SQLERRM, 1, 240);
Raise END_CHK_EXCEP;
end;
IF NVL (ln_msg_count, 0) > 0
THEN
FOR j IN 1 .. ln_msg_count
LOOP
fnd_msg_pub.get (p_msg_index => j,
p_encoded => 'F',
p_data => lv_msg_data,
p_msg_index_out => l_msg_index_out
);
END LOOP;
END IF;
dbms_output.put_line('Status of API is : ' || lv_return_status || ' - '
|| lv_msg_data);
IF NVL (lv_return_status, 'X') = 'S'
THEN
x_del_trip_name := lv_trip_name;
x_trip_number := ln_trip_id;
x_delivery_name := l_del_rows_tbl(1);
x_mast_status := 'S';
x_mast_err_msg :='API Successfully Completed';
dbms_output.put_line('Trip Name = : ' || x_del_trip_name);
dbms_output.put_line('Trip Number is = : ' || x_trip_number);
dbms_output.put_line('Delivery Number is = : ' ||
x_delivery_name);
ELSIF NVL (lv_return_status, 'X') = 'E'
THEN
p_err_msg := lv_msg_data;
dbms_output.put_line('Error Due to : ' || p_err_msg);
x_mast_status := 'E';
x_mast_err_msg := 'Error Due to ' || ' - ' || p_err_msg || ' -
' || sqlerrm;
END IF;
COMMIT;
EXCEPTION
WHEN END_CHK_EXCEP THEN
x_mast_status := 'E';
x_mast_err_msg := 'Error Due to ' || ' - ' || x_mast_err_msg ||
' - ' || sqlerrm;
WHEN others THEN
x_mast_status := 'E';
x_mast_err_msg := SUBSTR(x_mast_err_msg ||' '||'Other
Procedure Errors.'||SQLERRM, 1, 240);
END auto_create_trip;

More Related Content

What's hot

Oracle SCM Functional Interview Questions & Answers - Inventory Module
Oracle SCM Functional Interview Questions & Answers - Inventory ModuleOracle SCM Functional Interview Questions & Answers - Inventory Module
Oracle SCM Functional Interview Questions & Answers - Inventory Module
Boopathy CS
 
Oracle R12 Work In Process
Oracle R12 Work In ProcessOracle R12 Work In Process
Oracle R12 Work In Process
Pritesh Mogane
 
Oracle Purchasing Internal Requisition
Oracle Purchasing Internal RequisitionOracle Purchasing Internal Requisition
Oracle Purchasing Internal Requisition
Ahmed Elshayeb
 
Oracle R12.1.3 Costing Overview
Oracle R12.1.3 Costing OverviewOracle R12.1.3 Costing Overview
Oracle R12.1.3 Costing Overview
Pritesh Mogane
 
Oracle Order Management & Shipping Execution – Sales Order Line Status Flow &...
Oracle Order Management & Shipping Execution – Sales Order Line Status Flow &...Oracle Order Management & Shipping Execution – Sales Order Line Status Flow &...
Oracle Order Management & Shipping Execution – Sales Order Line Status Flow &...
Boopathy CS
 
Elshayeb Oracle R12 Order Management
Elshayeb Oracle R12 Order ManagementElshayeb Oracle R12 Order Management
Elshayeb Oracle R12 Order Management
Ahmed Elshayeb
 
R12 inventory features
R12 inventory featuresR12 inventory features
R12 inventory features
Suresh Mishra
 
Oracle inventory R12 Setup Guide
Oracle inventory R12 Setup GuideOracle inventory R12 Setup Guide
Oracle inventory R12 Setup Guide
Ahmed 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
 
Sales order approval process
Sales order approval  processSales order approval  process
Sales order approval process
sandy51450
 
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
 
Move order types
Move order typesMove order types
Move order types
Shiv Om Mishra
 
BOM & WIP
BOM & WIPBOM & WIP
BOM & WIP
rajeev s
 
Oracle Purchasing – Purchase Order Types & Difference between Standard & Plan...
Oracle Purchasing – Purchase Order Types & Difference between Standard & Plan...Oracle Purchasing – Purchase Order Types & Difference between Standard & Plan...
Oracle Purchasing – Purchase Order Types & Difference between Standard & Plan...
Boopathy CS
 
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
 
Understanding credit check in oracle e business suite
Understanding credit check in oracle e business suiteUnderstanding credit check in oracle e business suite
Understanding credit check in oracle e business suite
Olumide Idowu
 
Inventory in Oracle apps
Inventory in Oracle apps Inventory in Oracle apps
Inventory in Oracle apps
gbalagee
 
Inventory receiving processes for serial controlled items
Inventory receiving processes for serial controlled itemsInventory receiving processes for serial controlled items
Inventory receiving processes for serial controlled items
Avishek Roychoudhuri
 
R12 Intercompany Flow
R12 Intercompany FlowR12 Intercompany Flow
R12 Intercompany Flow
ravisagaram
 
Oracle Quality setup
Oracle Quality setupOracle Quality setup
Oracle Quality setup
Mina Lotfy
 

What's hot (20)

Oracle SCM Functional Interview Questions & Answers - Inventory Module
Oracle SCM Functional Interview Questions & Answers - Inventory ModuleOracle SCM Functional Interview Questions & Answers - Inventory Module
Oracle SCM Functional Interview Questions & Answers - Inventory Module
 
Oracle R12 Work In Process
Oracle R12 Work In ProcessOracle R12 Work In Process
Oracle R12 Work In Process
 
Oracle Purchasing Internal Requisition
Oracle Purchasing Internal RequisitionOracle Purchasing Internal Requisition
Oracle Purchasing Internal Requisition
 
Oracle R12.1.3 Costing Overview
Oracle R12.1.3 Costing OverviewOracle R12.1.3 Costing Overview
Oracle R12.1.3 Costing Overview
 
Oracle Order Management & Shipping Execution – Sales Order Line Status Flow &...
Oracle Order Management & Shipping Execution – Sales Order Line Status Flow &...Oracle Order Management & Shipping Execution – Sales Order Line Status Flow &...
Oracle Order Management & Shipping Execution – Sales Order Line Status Flow &...
 
Elshayeb Oracle R12 Order Management
Elshayeb Oracle R12 Order ManagementElshayeb Oracle R12 Order Management
Elshayeb Oracle R12 Order Management
 
R12 inventory features
R12 inventory featuresR12 inventory features
R12 inventory features
 
Oracle inventory R12 Setup Guide
Oracle inventory R12 Setup GuideOracle inventory R12 Setup Guide
Oracle inventory R12 Setup Guide
 
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...
 
Sales order approval process
Sales order approval  processSales order approval  process
Sales order approval process
 
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
 
Move order types
Move order typesMove order types
Move order types
 
BOM & WIP
BOM & WIPBOM & WIP
BOM & WIP
 
Oracle Purchasing – Purchase Order Types & Difference between Standard & Plan...
Oracle Purchasing – Purchase Order Types & Difference between Standard & Plan...Oracle Purchasing – Purchase Order Types & Difference between Standard & Plan...
Oracle Purchasing – Purchase Order Types & Difference between Standard & Plan...
 
How to configure LCM After receiving
How to configure LCM After receivingHow to configure LCM After receiving
How to configure LCM After receiving
 
Understanding credit check in oracle e business suite
Understanding credit check in oracle e business suiteUnderstanding credit check in oracle e business suite
Understanding credit check in oracle e business suite
 
Inventory in Oracle apps
Inventory in Oracle apps Inventory in Oracle apps
Inventory in Oracle apps
 
Inventory receiving processes for serial controlled items
Inventory receiving processes for serial controlled itemsInventory receiving processes for serial controlled items
Inventory receiving processes for serial controlled items
 
R12 Intercompany Flow
R12 Intercompany FlowR12 Intercompany Flow
R12 Intercompany Flow
 
Oracle Quality setup
Oracle Quality setupOracle Quality setup
Oracle Quality setup
 

Viewers also liked

Oracle Inventory
Oracle InventoryOracle Inventory
Oracle Inventory
shravan kumar chelika
 
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 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 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
 
How to create PO with ASN
How to create PO with ASNHow to create PO with ASN
How to create PO with ASN
shravan kumar chelika
 
Get On Hand Quantities Through API
Get On Hand Quantities Through APIGet On Hand Quantities Through API
Get On Hand Quantities Through API
shravan kumar chelika
 
Attach a image to the requisition line in iprocurement
Attach a image to the requisition line in iprocurementAttach a image to the requisition line in iprocurement
Attach a image to the requisition line in iprocurement
shravan kumar chelika
 
Build Restful Service using ADFBC
Build Restful Service using ADFBCBuild Restful Service using ADFBC
Build Restful Service using ADFBC
shravan kumar chelika
 
How to convert custom plsql to web services-Soap OR Rest
How to convert custom plsql to web services-Soap OR RestHow to convert custom plsql to web services-Soap OR Rest
How to convert custom plsql to web services-Soap OR Rest
shravan kumar chelika
 
iExpenses Setup
iExpenses SetupiExpenses Setup
iExpenses Setup
shravan kumar chelika
 
iExpenses Introduction
iExpenses IntroductioniExpenses Introduction
iExpenses Introduction
shravan kumar chelika
 
Oracle Apps INVENTORY
Oracle Apps INVENTORY Oracle Apps INVENTORY
Oracle Apps INVENTORY
Manu MK
 
Mandatory sql functions for beginners
Mandatory sql functions for beginnersMandatory sql functions for beginners
Mandatory sql functions for beginners
shravan kumar chelika
 
Expense personalization
Expense personalizationExpense personalization
Expense personalization
shravan kumar chelika
 
R12 Shipping Execution User guide
R12 Shipping Execution User guideR12 Shipping Execution User guide
R12 Shipping Execution User guide
Nawaz Sk
 
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
 
Basics of oracle service contracts
Basics of oracle service contractsBasics of oracle service contracts
Basics of oracle service contracts
shravan kumar chelika
 
Oracle glossary
Oracle glossaryOracle glossary
Oracle glossary
shravan kumar chelika
 

Viewers also liked (20)

Oracle Inventory
Oracle InventoryOracle Inventory
Oracle Inventory
 
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 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 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
 
How to create PO with ASN
How to create PO with ASNHow to create PO with ASN
How to create PO with ASN
 
Get On Hand Quantities Through API
Get On Hand Quantities Through APIGet On Hand Quantities Through API
Get On Hand Quantities Through API
 
Attach a image to the requisition line in iprocurement
Attach a image to the requisition line in iprocurementAttach a image to the requisition line in iprocurement
Attach a image to the requisition line in iprocurement
 
Build Restful Service using ADFBC
Build Restful Service using ADFBCBuild Restful Service using ADFBC
Build Restful Service using ADFBC
 
How to convert custom plsql to web services-Soap OR Rest
How to convert custom plsql to web services-Soap OR RestHow to convert custom plsql to web services-Soap OR Rest
How to convert custom plsql to web services-Soap OR Rest
 
iExpenses Setup
iExpenses SetupiExpenses Setup
iExpenses Setup
 
iExpenses Introduction
iExpenses IntroductioniExpenses Introduction
iExpenses Introduction
 
Physical inventory
Physical inventoryPhysical inventory
Physical inventory
 
Oracle Apps INVENTORY
Oracle Apps INVENTORY Oracle Apps INVENTORY
Oracle Apps INVENTORY
 
Mandatory sql functions for beginners
Mandatory sql functions for beginnersMandatory sql functions for beginners
Mandatory sql functions for beginners
 
Expense personalization
Expense personalizationExpense personalization
Expense personalization
 
R12 Shipping Execution User guide
R12 Shipping Execution User guideR12 Shipping Execution User guide
R12 Shipping Execution User guide
 
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
 
Basics of oracle service contracts
Basics of oracle service contractsBasics of oracle service contracts
Basics of oracle service contracts
 
Oracle apps r12 scm functional training
Oracle apps r12 scm functional trainingOracle apps r12 scm functional training
Oracle apps r12 scm functional training
 
Oracle glossary
Oracle glossaryOracle glossary
Oracle glossary
 

Similar to How to auto create trip in oracle order management

Resources-Training-Order-To-Cash- ETON Technologies.pdf
Resources-Training-Order-To-Cash- ETON Technologies.pdfResources-Training-Order-To-Cash- ETON Technologies.pdf
Resources-Training-Order-To-Cash- ETON Technologies.pdf
ssuserf4597f
 
Base tables for order to cash
Base tables for order to cashBase tables for order to cash
Base tables for order to cash
pranav kumar verma
 
Integration of payment gateways using Paypal account
Integration of payment gateways using Paypal account Integration of payment gateways using Paypal account
Integration of payment gateways using Paypal account
Phenom People
 
Oracle applications oracle applications interview questions (faqs)
Oracle applications  oracle applications interview questions (faqs)Oracle applications  oracle applications interview questions (faqs)
Oracle applications oracle applications interview questions (faqs)
sivavbk
 
Sap sd configuration
Sap sd configurationSap sd configuration
Sap sd configuration
jo.gill2010
 
List of Coversions in Oracle Apps
List of Coversions in Oracle AppsList of Coversions in Oracle Apps
List of Coversions in Oracle Apps
Prem Kumar
 
SAP - Transportation Module Study material
SAP - Transportation Module Study materialSAP - Transportation Module Study material
SAP - Transportation Module Study material
Minda Industries Ltd, SAP centre
 
Routing Jobsite Field Data for Approval and Billing in 4castplus
Routing Jobsite Field Data for Approval and Billing in 4castplusRouting Jobsite Field Data for Approval and Billing in 4castplus
Routing Jobsite Field Data for Approval and Billing in 4castplus
4castplus
 
Order to cash cycle
Order to cash cycleOrder to cash cycle
Order to cash cycle
Maheedhar Kambham
 
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
 
Order to cash
Order to cashOrder to cash
Order to cash
Chetan Khanzode
 
Order to cash with tables
Order to cash with tablesOrder to cash with tables
Order to cash with tables
sharatit
 
Customers Delight-Sales Order Enterin,Booking,Picking And Shipping Made Easy
Customers Delight-Sales Order Enterin,Booking,Picking And Shipping Made EasyCustomers Delight-Sales Order Enterin,Booking,Picking And Shipping Made Easy
Customers Delight-Sales Order Enterin,Booking,Picking And Shipping Made Easy
guestee7e88fc
 
Ordertocashcycle 111011122119-phpapp01
Ordertocashcycle 111011122119-phpapp01Ordertocashcycle 111011122119-phpapp01
Ordertocashcycle 111011122119-phpapp01
ssantosh1234
 
O2 c and p2p cycles
O2 c and p2p cyclesO2 c and p2p cycles
O2 c and p2p cycles
gsriramsunil
 
Oracle Applications - Sales Order Entering,Booking,Picking And Shipping Made ...
Oracle Applications - Sales Order Entering,Booking,Picking And Shipping Made ...Oracle Applications - Sales Order Entering,Booking,Picking And Shipping Made ...
Oracle Applications - Sales Order Entering,Booking,Picking And Shipping Made ...
Bala Murugan
 
Air import and export operations and documentations v1.4
Air import and export operations and documentations v1.4Air import and export operations and documentations v1.4
Air import and export operations and documentations v1.4
UploadFiles2
 
Sahil Dhungel & Het Unadkat Data Mining.pdf
Sahil Dhungel & Het Unadkat Data Mining.pdfSahil Dhungel & Het Unadkat Data Mining.pdf
Sahil Dhungel & Het Unadkat Data Mining.pdf
HetUnadkat
 
Documentation
DocumentationDocumentation
Documentation
minhnv85
 
Check printing in_r12
Check printing in_r12Check printing in_r12
Check printing in_r12
Rajesh Khatri
 

Similar to How to auto create trip in oracle order management (20)

Resources-Training-Order-To-Cash- ETON Technologies.pdf
Resources-Training-Order-To-Cash- ETON Technologies.pdfResources-Training-Order-To-Cash- ETON Technologies.pdf
Resources-Training-Order-To-Cash- ETON Technologies.pdf
 
Base tables for order to cash
Base tables for order to cashBase tables for order to cash
Base tables for order to cash
 
Integration of payment gateways using Paypal account
Integration of payment gateways using Paypal account Integration of payment gateways using Paypal account
Integration of payment gateways using Paypal account
 
Oracle applications oracle applications interview questions (faqs)
Oracle applications  oracle applications interview questions (faqs)Oracle applications  oracle applications interview questions (faqs)
Oracle applications oracle applications interview questions (faqs)
 
Sap sd configuration
Sap sd configurationSap sd configuration
Sap sd configuration
 
List of Coversions in Oracle Apps
List of Coversions in Oracle AppsList of Coversions in Oracle Apps
List of Coversions in Oracle Apps
 
SAP - Transportation Module Study material
SAP - Transportation Module Study materialSAP - Transportation Module Study material
SAP - Transportation Module Study material
 
Routing Jobsite Field Data for Approval and Billing in 4castplus
Routing Jobsite Field Data for Approval and Billing in 4castplusRouting Jobsite Field Data for Approval and Billing in 4castplus
Routing Jobsite Field Data for Approval and Billing in 4castplus
 
Order to cash cycle
Order to cash cycleOrder to cash cycle
Order to cash cycle
 
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...
 
Order to cash
Order to cashOrder to cash
Order to cash
 
Order to cash with tables
Order to cash with tablesOrder to cash with tables
Order to cash with tables
 
Customers Delight-Sales Order Enterin,Booking,Picking And Shipping Made Easy
Customers Delight-Sales Order Enterin,Booking,Picking And Shipping Made EasyCustomers Delight-Sales Order Enterin,Booking,Picking And Shipping Made Easy
Customers Delight-Sales Order Enterin,Booking,Picking And Shipping Made Easy
 
Ordertocashcycle 111011122119-phpapp01
Ordertocashcycle 111011122119-phpapp01Ordertocashcycle 111011122119-phpapp01
Ordertocashcycle 111011122119-phpapp01
 
O2 c and p2p cycles
O2 c and p2p cyclesO2 c and p2p cycles
O2 c and p2p cycles
 
Oracle Applications - Sales Order Entering,Booking,Picking And Shipping Made ...
Oracle Applications - Sales Order Entering,Booking,Picking And Shipping Made ...Oracle Applications - Sales Order Entering,Booking,Picking And Shipping Made ...
Oracle Applications - Sales Order Entering,Booking,Picking And Shipping Made ...
 
Air import and export operations and documentations v1.4
Air import and export operations and documentations v1.4Air import and export operations and documentations v1.4
Air import and export operations and documentations v1.4
 
Sahil Dhungel & Het Unadkat Data Mining.pdf
Sahil Dhungel & Het Unadkat Data Mining.pdfSahil Dhungel & Het Unadkat Data Mining.pdf
Sahil Dhungel & Het Unadkat Data Mining.pdf
 
Documentation
DocumentationDocumentation
Documentation
 
Check printing in_r12
Check printing in_r12Check printing in_r12
Check printing in_r12
 

More from shravan kumar chelika

Create rest webservice for oracle public api using java class via jdeveloper
Create rest webservice for oracle public api using java class via jdeveloperCreate rest webservice for oracle public api using java class via jdeveloper
Create rest webservice for oracle public api using java class via jdeveloper
shravan kumar chelika
 
Oracle mobile cloud service
Oracle mobile cloud serviceOracle mobile cloud service
Oracle mobile cloud service
shravan kumar chelika
 
Basics of Oracle Order Management
Basics of Oracle Order ManagementBasics of Oracle Order Management
Basics of Oracle Order Management
shravan kumar chelika
 
Basics of Oracle Purchasing
Basics of Oracle PurchasingBasics of Oracle Purchasing
Basics of Oracle Purchasing
shravan kumar chelika
 
Procure to pay flow
Procure to pay flowProcure to pay flow
Procure to pay flow
shravan kumar chelika
 
Order to cash cycle
Order to cash cycleOrder to cash cycle
Order to cash cycle
shravan kumar chelika
 

More from shravan kumar chelika (7)

Create rest webservice for oracle public api using java class via jdeveloper
Create rest webservice for oracle public api using java class via jdeveloperCreate rest webservice for oracle public api using java class via jdeveloper
Create rest webservice for oracle public api using java class via jdeveloper
 
Oracle mobile cloud service
Oracle mobile cloud serviceOracle mobile cloud service
Oracle mobile cloud service
 
Basics of Oracle Order Management
Basics of Oracle Order ManagementBasics of Oracle Order Management
Basics of Oracle Order Management
 
Basics of Oracle Purchasing
Basics of Oracle PurchasingBasics of Oracle Purchasing
Basics of Oracle Purchasing
 
Procure to pay flow
Procure to pay flowProcure to pay flow
Procure to pay flow
 
Order to cash cycle
Order to cash cycleOrder to cash cycle
Order to cash cycle
 
Fixed assets-set-up
Fixed assets-set-upFixed assets-set-up
Fixed assets-set-up
 

Recently uploaded

Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 

Recently uploaded (20)

Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 

How to auto create trip in oracle order management

  • 1. Auto Create Trip In Oracle Order Management What is a Trip? A trip is an instance of a specific freight carried departing from particular location containing deliveries. A trip is carrier specific and contains at least 2 stops such as the pick-up stop and drop-off stop. Trips can be created automatically or manually… What is a Stop? A stop is a point along the route of a trip where goods are either picked up, dropped off or both.. Consider the following Business Scenario: A sales order is placed for two items: a desktop CPU and a monitor. The order lines are booked and Scheduled in Order Management. The inventory for the desktop CPU resides in the M1 inventory Organization and the Monitor resides in V1 inventory organization. The objective is to create a plan that enables the shipments of the individual items to be made from their respective inventory organizations, merge or consolidate at an intermediate distribution center location, and deliver to the customer’s ultimate ship to location as a single shipment…. Once the order is booked, the order lines are imported into Shipping Execution where the
  • 2. Transportation Planner has visibility to the lines. At this point, the planner creates Trip 1 (Consisting of Carrier and vehicle information) for the desktop CPU located in Warehouse 1 in Seattle, WA. The key element depicting the Trip is the ship method. The creation of the Trip can be done in a variety of ways depending on your business process. 1) Auto create Trip When a Trip is created using the Auto create Trip functionality, 2 stops are created. The first stop consists of the location where the shipment is picked up, (Ship From) and the second stop is the location where the shipment is dropped off (Ship To). In the business scenario we’re describing, an Intermediate stop needs to be defined and assigned to the Trip 1. Lets create an auto trip from the applications: Log on to Applications and navigate to the responsibility : Order Management Super User, Vision Operations (USA): Double Click on Sales Orders: Enter the Customer Information and the rest of the information should be defaulted automatically,click on the Line Items Tab:
  • 3. Enter the Line Information and then click on ‘Book Order’:
  • 4. You will see the following note click OK , make a note of the Order Number(in this case -69413) and close the form: Navigate to the Shipping Transactions Form:
  • 5. Enter the Order Number ‘69413’ and press Tab and then click on ‘Find’: You will see the two items you created on the sales order with their respective delivery detail id,now to auto create the trip you need to select the lines (Edit->Select all) and from the Actions menu select the ‘Auto-create Trip’ option.
  • 6. What happens when you select the action ‘Auto-create Trip’ and click on ‘Go’? Oracle Shipping Execution creates the trips, creates the pick up and dropoff stops, autocreates the deliveries, and assigns the deliveries to trips. Verify the Action has completed by clicking on the Tabs ‘Path by Trip’ and ‘Path by Stop’,note the trip id:
  • 7. You would see minimum two stops – One for Pickup and One for Drop off: The Next step would be to Pick Release the Trip, inorder to do that query the trip from the Shipping Transactions form:
  • 8. Before selecting from the Actions ‘Launch Pick Release’,enter the Ship Method and save it…then click on ‘Go’: The following Note is shown :
  • 9. You can verify the requests by :
  • 10. The next step is to ship confirm the Trip: Navigate to the Shipping Transactions form and then select the Action ‘Ship Confirm’ and click on ‘Go’: You should see the following note: The Interface Trip Stop program runs in the backend and kicks off the other necessary programs like Bill of Lading,Packing Slip Report,Commercial Invoice etc..You will see the status of the Trip change from ‘Open’ to ‘Closed’… Technical Side Code: We can do the same from backend by using the Oracle Public API : procedure auto_create_trip( p_user_id IN NUMBER, p_resp_id IN NUMBER, p_order_num IN VARCHAR2, p_resp_appl_id IN NUMBER,
  • 11. p_action IN VARCHAR2, p_org_id IN NUMBER, p_del_detail_id IN NUMBER, x_trip_number OUT NUMBER, x_del_trip_name OUT VARCHAR2, x_delivery_name OUT NUMBER, x_mast_status OUT VARCHAR2, x_mast_err_msg OUT VARCHAR2 ) is lv_return_status VARCHAR2 (1); ln_msg_count NUMBER; lv_msg_data VARCHAR2 (4000); ln_trip_id NUMBER; lv_trip_name VARCHAR2 (30); l_line_tbl wsh_util_core.id_tab_type; l_del_rows_tbl wsh_util_core.id_tab_type; ln_line_no NUMBER := 0; l_msg_index_out NUMBER; p_master_trip VARCHAR2(30); p_err_msg VARCHAR2(3000); END_CHK_EXCEP exception; cursor del_detid(p_order_num VARCHAR2) is select delivery_detail_id from wsh_deliverables_v where 1=1 and source_header_number=p_order_num; begin /* Setting the oracle applications context for the particular session */ fnd_global.apps_initialize ( user_id => p_user_id , resp_id => p_resp_id , resp_appl_id => p_resp_appl_id , security_group_id => 0 ); --Initialize message list FND_MSG_PUB.INITIALIZE; /* Setting the org context for the particular session */ mo_global.set_policy_context('S',p_org_id); mo_global.init ('ONT');
  • 12. if p_del_detail_id is null then for c_del_detid in del_detid(p_order_num) loop dbms_output.put_line('Calling the Oracle API with Delivery Detail Id : ' || c_del_detid.delivery_detail_id); ln_line_no := NVL (ln_line_no, 0) + 1; dbms_output.put_line('Calling the Oracle API with Line Number: ' || ln_line_no); l_line_tbl (ln_line_no) := c_del_detid.delivery_detail_id; dbms_output.put_line('Calling the Oracle API for delivery detail id : ' || l_line_tbl (ln_line_no) ); end loop; else l_line_tbl(1):=p_del_detail_id; end if; begin wsh_delivery_details_pub.autocreate_del_trip (p_api_version_number => 1.0 , p_init_msg_list => fnd_api.g_false, p_commit => fnd_api.g_false, x_return_status => lv_return_status, x_msg_count => ln_msg_count, x_msg_data => lv_msg_data, p_line_rows => l_line_tbl, x_del_rows => l_del_rows_tbl, x_trip_id => ln_trip_id, x_trip_name => lv_trip_name ); COMMIT; exception WHEN others THEN dbms_output.put_line('Error From the Oracle API : ' || lv_msg_data); x_mast_status := 'E'; x_mast_err_msg := SUBSTR(x_mast_err_msg ||' '||'Other Procedure Errors.'||SQLERRM, 1, 240); Raise END_CHK_EXCEP; end; IF NVL (ln_msg_count, 0) > 0 THEN FOR j IN 1 .. ln_msg_count
  • 13. LOOP fnd_msg_pub.get (p_msg_index => j, p_encoded => 'F', p_data => lv_msg_data, p_msg_index_out => l_msg_index_out ); END LOOP; END IF; dbms_output.put_line('Status of API is : ' || lv_return_status || ' - ' || lv_msg_data); IF NVL (lv_return_status, 'X') = 'S' THEN x_del_trip_name := lv_trip_name; x_trip_number := ln_trip_id; x_delivery_name := l_del_rows_tbl(1); x_mast_status := 'S'; x_mast_err_msg :='API Successfully Completed'; dbms_output.put_line('Trip Name = : ' || x_del_trip_name); dbms_output.put_line('Trip Number is = : ' || x_trip_number); dbms_output.put_line('Delivery Number is = : ' || x_delivery_name); ELSIF NVL (lv_return_status, 'X') = 'E' THEN p_err_msg := lv_msg_data; dbms_output.put_line('Error Due to : ' || p_err_msg); x_mast_status := 'E'; x_mast_err_msg := 'Error Due to ' || ' - ' || p_err_msg || ' - ' || sqlerrm; END IF; COMMIT; EXCEPTION WHEN END_CHK_EXCEP THEN x_mast_status := 'E'; x_mast_err_msg := 'Error Due to ' || ' - ' || x_mast_err_msg || ' - ' || sqlerrm; WHEN others THEN x_mast_status := 'E'; x_mast_err_msg := SUBSTR(x_mast_err_msg ||' '||'Other Procedure Errors.'||SQLERRM, 1, 240); END auto_create_trip;