SlideShare ist ein Scribd-Unternehmen logo
1 von 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;

Weitere ähnliche Inhalte

Was ist angesagt?

Oracle Purchasing Internal Requisition
Oracle Purchasing Internal RequisitionOracle Purchasing Internal Requisition
Oracle Purchasing Internal RequisitionAhmed Elshayeb
 
Oracle SCM Functional Interview Questions & Answers - Inventory Module - Part...
Oracle SCM Functional Interview Questions & Answers - Inventory Module - Part...Oracle SCM Functional Interview Questions & Answers - Inventory Module - Part...
Oracle SCM Functional Interview Questions & Answers - Inventory Module - Part...Boopathy CS
 
Oracle R12.1.3 Costing Overview
Oracle R12.1.3 Costing OverviewOracle R12.1.3 Costing Overview
Oracle R12.1.3 Costing OverviewPritesh Mogane
 
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 R12 SCM Functional Interview Questions - Order Management,
Oracle R12 SCM Functional Interview Questions - Order Management, Oracle R12 SCM Functional Interview Questions - Order Management,
Oracle R12 SCM Functional Interview Questions - Order Management, Boopathy CS
 
Oracle R12 SCM Functional Interview Questions - Order Management
Oracle R12 SCM Functional Interview Questions - Order ManagementOracle R12 SCM Functional Interview Questions - Order Management
Oracle R12 SCM Functional Interview Questions - Order ManagementBoopathy CS
 
How to configure LCM After receiving
How to configure LCM After receivingHow to configure LCM After receiving
How to configure LCM After receivingAhmed Elshayeb
 
How to Close Period in Oracle Apps Inventory
How to Close Period in Oracle Apps Inventory How to Close Period in Oracle Apps Inventory
How to Close Period in Oracle Apps Inventory Bizinsight Consulting Inc
 
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
 
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
 
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
 
Oracle WIP – Supply Types:
Oracle WIP – Supply Types:Oracle WIP – Supply Types:
Oracle WIP – Supply Types:Boopathy CS
 
Oracle Payables R12 ivas
Oracle Payables R12 ivasOracle Payables R12 ivas
Oracle Payables R12 ivasAli Ibrahim
 
Sales order approval process
Sales order approval  processSales order approval  process
Sales order approval processsandy51450
 
Oracle EBS: Intercompany Invoicing
Oracle EBS: Intercompany InvoicingOracle EBS: Intercompany Invoicing
Oracle EBS: Intercompany InvoicingEric Guether
 
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 Purchasing – Different types of Receiving Options
Oracle Purchasing – Different types of Receiving OptionsOracle Purchasing – Different types of Receiving Options
Oracle Purchasing – Different types of Receiving OptionsBoopathy CS
 

Was ist angesagt? (20)

Oracle Purchasing Internal Requisition
Oracle Purchasing Internal RequisitionOracle Purchasing Internal Requisition
Oracle Purchasing Internal Requisition
 
Oracle SCM Functional Interview Questions & Answers - Inventory Module - Part...
Oracle SCM Functional Interview Questions & Answers - Inventory Module - Part...Oracle SCM Functional Interview Questions & Answers - Inventory Module - Part...
Oracle SCM Functional Interview Questions & Answers - Inventory Module - Part...
 
Oracle R12.1.3 Costing Overview
Oracle R12.1.3 Costing OverviewOracle R12.1.3 Costing Overview
Oracle R12.1.3 Costing Overview
 
Elshayeb Expense Subinventory And Items Scenario
Elshayeb Expense Subinventory And Items ScenarioElshayeb Expense Subinventory And Items Scenario
Elshayeb Expense Subinventory And Items Scenario
 
Oracle R12 SCM Functional Interview Questions - Order Management,
Oracle R12 SCM Functional Interview Questions - Order Management, Oracle R12 SCM Functional Interview Questions - Order Management,
Oracle R12 SCM Functional Interview Questions - Order Management,
 
Oracle R12 SCM Functional Interview Questions - Order Management
Oracle R12 SCM Functional Interview Questions - Order ManagementOracle R12 SCM Functional Interview Questions - Order Management
Oracle R12 SCM Functional Interview Questions - Order Management
 
How to configure LCM After receiving
How to configure LCM After receivingHow to configure LCM After receiving
How to configure LCM After receiving
 
How to Close Period in Oracle Apps Inventory
How to Close Period in Oracle Apps Inventory How to Close Period in Oracle Apps Inventory
How to Close Period in Oracle Apps Inventory
 
Order Line Sets in Oracle Order Management
Order Line Sets in Oracle Order ManagementOrder Line Sets in Oracle Order Management
Order Line Sets in Oracle Order Management
 
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...
 
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
 
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
 
Discrete Job Closure Process
Discrete Job Closure ProcessDiscrete Job Closure Process
Discrete Job Closure Process
 
Oracle WIP – Supply Types:
Oracle WIP – Supply Types:Oracle WIP – Supply Types:
Oracle WIP – Supply Types:
 
Move order types
Move order typesMove order types
Move order types
 
Oracle Payables R12 ivas
Oracle Payables R12 ivasOracle Payables R12 ivas
Oracle Payables R12 ivas
 
Sales order approval process
Sales order approval  processSales order approval  process
Sales order approval process
 
Oracle EBS: Intercompany Invoicing
Oracle EBS: Intercompany InvoicingOracle EBS: Intercompany Invoicing
Oracle EBS: Intercompany Invoicing
 
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 Purchasing – Different types of Receiving Options
Oracle Purchasing – Different types of Receiving OptionsOracle Purchasing – Different types of Receiving Options
Oracle Purchasing – Different types of Receiving Options
 

Andere mochten auch

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

Andere mochten auch (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
 
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 &...
 
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
 

Ähnlich wie 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
 
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 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
 

Ähnlich wie 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
 

Mehr von shravan kumar chelika

Mehr von 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
 

Kürzlich hochgeladen

Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterMateoGardella
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
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
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...KokoStevan
 
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
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 

Kürzlich hochgeladen (20)

Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
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...
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
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
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
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
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.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;