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

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 appsshravan kumar chelika
 
R12 Intercompany Flow
R12 Intercompany FlowR12 Intercompany Flow
R12 Intercompany Flowravisagaram
 
105322956 advance-pricing-total-oracle-apps
105322956 advance-pricing-total-oracle-apps105322956 advance-pricing-total-oracle-apps
105322956 advance-pricing-total-oracle-appsShivakumar Karajagi
 
Oracle R12.1.3 Costing Overview
Oracle R12.1.3 Costing OverviewOracle R12.1.3 Costing Overview
Oracle R12.1.3 Costing OverviewPritesh Mogane
 
Oracle Process Manufacturing Setup EBS12.2
Oracle Process Manufacturing Setup EBS12.2Oracle Process Manufacturing Setup EBS12.2
Oracle Process Manufacturing Setup EBS12.2Mina Lotfy
 
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
 
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
 
Oracle R12 Apps – SCM Functional Interview Questions & Answers – Purchasing M...
Oracle R12 Apps – SCM Functional Interview Questions & Answers – Purchasing M...Oracle R12 Apps – SCM Functional Interview Questions & Answers – Purchasing M...
Oracle R12 Apps – SCM Functional Interview Questions & Answers – Purchasing M...Boopathy CS
 
Locator control in oracle inventory
Locator control in oracle inventoryLocator control in oracle inventory
Locator control in oracle inventorysheshito
 
Functional i store overview knoworacle
Functional i store overview knoworacleFunctional i store overview knoworacle
Functional i store overview knoworaclegaurav.upmanyu
 
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
 
PO Position Hierarchy in R12
PO Position Hierarchy in R12PO Position Hierarchy in R12
PO Position Hierarchy in R12parinay jain
 
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 Purchasing R12 Setup Steps
Oracle Purchasing R12 Setup StepsOracle Purchasing R12 Setup Steps
Oracle Purchasing R12 Setup StepsAhmed Elshayeb
 
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
 
Drop Ship Sales Order Across Operating Units
Drop Ship Sales Order Across Operating UnitsDrop Ship Sales Order Across Operating Units
Drop Ship Sales Order Across Operating UnitsBizinsight Consulting Inc
 
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
 

What's hot (20)

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
 
R12 Intercompany Flow
R12 Intercompany FlowR12 Intercompany Flow
R12 Intercompany Flow
 
105322956 advance-pricing-total-oracle-apps
105322956 advance-pricing-total-oracle-apps105322956 advance-pricing-total-oracle-apps
105322956 advance-pricing-total-oracle-apps
 
Oracle R12.1.3 Costing Overview
Oracle R12.1.3 Costing OverviewOracle R12.1.3 Costing Overview
Oracle R12.1.3 Costing Overview
 
Oracle Process Manufacturing Setup EBS12.2
Oracle Process Manufacturing Setup EBS12.2Oracle Process Manufacturing Setup EBS12.2
Oracle Process Manufacturing Setup EBS12.2
 
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...
 
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 R12 Apps – SCM Functional Interview Questions & Answers – Purchasing M...
Oracle R12 Apps – SCM Functional Interview Questions & Answers – Purchasing M...Oracle R12 Apps – SCM Functional Interview Questions & Answers – Purchasing M...
Oracle R12 Apps – SCM Functional Interview Questions & Answers – Purchasing M...
 
Sla and cost acctg
Sla and cost acctgSla and cost acctg
Sla and cost acctg
 
Discrete Job Closure Process
Discrete Job Closure ProcessDiscrete Job Closure Process
Discrete Job Closure Process
 
Locator control in oracle inventory
Locator control in oracle inventoryLocator control in oracle inventory
Locator control in oracle inventory
 
Functional i store overview knoworacle
Functional i store overview knoworacleFunctional i store overview knoworacle
Functional i store overview knoworacle
 
Oracle R12 Purchasing setup
Oracle R12 Purchasing setupOracle R12 Purchasing setup
Oracle R12 Purchasing setup
 
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
 
PO Position Hierarchy in R12
PO Position Hierarchy in R12PO Position Hierarchy in R12
PO Position Hierarchy in R12
 
Elshayeb Expense Subinventory And Items Scenario
Elshayeb Expense Subinventory And Items ScenarioElshayeb Expense Subinventory And Items Scenario
Elshayeb Expense Subinventory And Items Scenario
 
Oracle Purchasing R12 Setup Steps
Oracle Purchasing R12 Setup StepsOracle Purchasing R12 Setup Steps
Oracle Purchasing R12 Setup Steps
 
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 &...
 
Drop Ship Sales Order Across Operating Units
Drop Ship Sales Order Across Operating UnitsDrop Ship Sales Order Across Operating Units
Drop Ship Sales Order Across Operating Units
 
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
 

Viewers also liked

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 listAhmed Elshayeb
 
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 iprocurementshravan 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 Restshravan 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 beginnersshravan kumar chelika
 
R12 Shipping Execution User guide
R12 Shipping Execution User guideR12 Shipping Execution User guide
R12 Shipping Execution User guideNawaz 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 transfersshravan kumar chelika
 
Blanket purchase agreement and blanket release in oracle r12
Blanket purchase agreement and blanket release in oracle r12Blanket purchase agreement and blanket release in oracle r12
Blanket purchase agreement and blanket release in oracle r12G Madhusudhan
 

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
 
Blanket purchase agreement and blanket release in oracle r12
Blanket purchase agreement and blanket release in oracle r12Blanket purchase agreement and blanket release in oracle r12
Blanket purchase agreement and blanket release in oracle r12
 
Oracle apps r12 scm functional training
Oracle apps r12 scm functional trainingOracle apps r12 scm functional training
Oracle apps r12 scm functional training
 

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.pdfssuserf4597f
 
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 configurationjo.gill2010
 
List of Coversions in Oracle Apps
List of Coversions in Oracle AppsList of Coversions in Oracle Apps
List of Coversions in Oracle AppsPrem Kumar
 
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 4castplus4castplus
 
Order to cash with tables
Order to cash with tablesOrder to cash with tables
Order to cash with tablessharatit
 
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 Easyguestee7e88fc
 
Ordertocashcycle 111011122119-phpapp01
Ordertocashcycle 111011122119-phpapp01Ordertocashcycle 111011122119-phpapp01
Ordertocashcycle 111011122119-phpapp01ssantosh1234
 
O2 c and p2p cycles
O2 c and p2p cyclesO2 c and p2p cycles
O2 c and p2p cyclesgsriramsunil
 
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.4UploadFiles2
 
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.pdfHetUnadkat
 
Documentation
DocumentationDocumentation
Documentationminhnv85
 
Check printing in_r12
Check printing in_r12Check printing in_r12
Check printing in_r12Rajesh Khatri
 
Ci guide vv_dsn_202106 v2
Ci guide vv_dsn_202106 v2Ci guide vv_dsn_202106 v2
Ci guide vv_dsn_202106 v2KarynForsyth
 

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
 
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
 
Ci guide vv_dsn_202106 v2
Ci guide vv_dsn_202106 v2Ci guide vv_dsn_202106 v2
Ci guide vv_dsn_202106 v2
 

More from shravan kumar chelika

More from shravan kumar chelika (8)

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
 
Oracle glossary
Oracle glossaryOracle glossary
Oracle glossary
 
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

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 

Recently uploaded (20)

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 

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;