- Internal & Purchase Requisitions created by users
- Purchase Orders created for the requisitions (inventory and non inventory items)
- Receiving transactions with PO and Requisition information
1. Back ordering unspecified quantities
2. Closing the delivery automatically by submitting the Trip stop program after ship confirm is successful
CREATE OR REPLACE PROCEDURE erps_ship_confirm_delivery (
v_delivery_name IN VARCHAR2, — delivery number
v_action IN VARCHAR2, — Pass ‘B’ to backorder the unspecified quantity
p_ship_conf_status OUT VARCHAR2,
x_msg_data OUT VARCHAR2)
IS
p_api_version_number NUMBER;
init_msg_list VARCHAR2 (30);
x_msg_count NUMBER;
x_msg_details VARCHAR2 (32000);
x_msg_summary VARCHAR2 (32000);
p_validation_level NUMBER;
p_commit VARCHAR2 (30);
x_return_status VARCHAR2 (15);
source_code VARCHAR2 (15);
changed_attributes wsh_delivery_details_pub.changedattributetabtype;
p_action_code VARCHAR2 (15);
p_delivery_id NUMBER;
p_delivery_name VARCHAR2 (30);
p_asg_trip_id NUMBER;
p_asg_trip_name VARCHAR2 (30);
p_asg_pickup_stop_id NUMBER;
p_asg_pickup_loc_id NUMBER;
p_asg_pickup_loc_code VARCHAR2 (30);
p_asg_pickup_arr_date DATE;
p_asg_pickup_dep_date DATE;
p_asg_dropoff_stop_id NUMBER;
p_asg_dropoff_loc_id NUMBER;
p_asg_dropoff_loc_code VARCHAR2 (30);
p_asg_dropoff_arr_date DATE;
p_asg_dropoff_dep_date DATE;
p_sc_action_flag VARCHAR2 (10);
p_sc_close_trip_flag VARCHAR2 (10);
p_defer_iface VARCHAR2 (10);
p_sc_create_bol_flag VARCHAR2 (10);
p_sc_stage_del_flag VARCHAR2 (10);
p_sc_trip_ship_method VARCHAR2 (30);
p_sc_actual_dep_date VARCHAR2 (30);
p_sc_report_set_id NUMBER;
p_sc_report_set_name VARCHAR2 (60);
p_wv_override_flag VARCHAR2 (10);
x_trip_id VARCHAR2 (30);
x_trip_name VARCHAR2 (30);
p_msg_data VARCHAR2 (32000);
fail_api EXCEPTION;
BEGIN
x_return_status := wsh_util_core.g_ret_sts_success;
p_action_code := ‘CONFIRM’;
p_delivery_name := v_delivery_name;
p_sc_action_flag := v_action;
p_sc_close_trip_flag := ‘Y’; — Trip stop concurrent program will be submitted automatically
p_defer_iface := ‘N’;
wsh_deliveries_pub.
delivery_action (p_api_version_number => 1.0,
p_init_msg_list => init_msg_list,
x_return_status => x_return_status,
x_msg_count => x_msg_count,
x_msg_data => p_msg_data,
p_action_code => p_action_code,
p_delivery_id => p_delivery_id,
p_delivery_name => p_delivery_name,
p_asg_trip_id => p_asg_trip_id,
p_asg_trip_name => p_asg_trip_name,
p_asg_pickup_stop_id => p_asg_pickup_stop_id,
p_asg_pickup_loc_id => p_asg_pickup_loc_id,
p_asg_pickup_loc_code => p_asg_pickup_loc_code,
p_asg_pickup_arr_date => p_asg_pickup_arr_date,
p_asg_pickup_dep_date => p_asg_pickup_dep_date,
p_asg_dropoff_stop_id => p_asg_dropoff_stop_id,
p_asg_dropoff_loc_id => p_asg_dropoff_loc_id,
p_asg_dropoff_loc_code => p_asg_dropoff_loc_code,
p_asg_dropoff_arr_date => p_asg_dropoff_arr_date,
p_asg_dropoff_dep_date => p_asg_dropoff_dep_date,
p_sc_action_flag => p_sc_action_flag,
p_sc_close_trip_flag => p_sc_close_trip_flag,
p_sc_create_bol_flag => p_sc_create_bol_flag,
p_sc_stage_del_flag => p_sc_stage_del_flag,
p_sc_trip_ship_method => p_sc_trip_ship_method,
p_sc_actual_dep_date => p_sc_actual_dep_date,
p_sc_report_set_id => p_sc_report_set_id,
p_sc_report_set_name => p_sc_report_set_name,
p_sc_defer_interface_flag => p_defer_iface,
p_wv_override_flag => p_wv_override_flag,
x_trip_id => x_trip_id,
x_trip_name => x_trip_name);
IF (x_return_status != wsh_util_core.g_ret_sts_success)
THEN
wsh_util_core.get_messages (‘Y’,
x_msg_summary,
x_msg_details,
x_msg_count);
IF x_msg_count > 1
THEN
x_msg_data := x_msg_summary || x_msg_details;
ELSE
x_msg_data := x_msg_summary;
END IF;
p_ship_conf_status := ‘E’;
ELSE
p_ship_conf_status := ‘S’;
END IF;
END erps_ship_confirm_delivery;
SHIP CONFIRMATION THROUGH FORMS
Navigate to Shipping responsibility >> Shipping >> Transactions
Query the delivery that need to be ship confirmed
click ship confirm button.
SELECT DISTINCT
fmep.menu_id,
DECODE (
fmep.function_id,
NULL, DECODE (
fmec.function_id,
NULL, DECODE (fmec1.function_id,
NULL, ‘No Func’,
fmec1.function_id),
fmec.function_id),
fmep.function_id)
funcID,
fff.user_function_name,
fff.description
FROM fnd_form_functions_tl fff,
fnd_menu_entries fmec1,
fnd_menu_entries fmec,
fnd_menu_entries fmep
WHERE fmep.menu_id = (SELECT menu_id
FROM fnd_menus
WHERE menu_name = ‘INV_NAVIGATE’ –Change the menu according to your requirement
AND ROWNUM = 1)
AND fmep.sub_menu_id = fmec.menu_id(+)
AND fmec.sub_menu_id = fmec1.menu_id(+)
AND fff.function_id =
DECODE (
fmep.function_id,
NULL, DECODE (
fmec.function_id,
NULL, DECODE (fmec1.function_id,
NULL, -999,
fmec1.function_id),
fmec.function_id),
fmep.function_id)
ORDER BY DECODE (
fmep.function_id,
NULL, DECODE (
fmec.function_id,
NULL, DECODE (fmec1.function_id,
NULL, ‘No Func’,
fmec1.function_id),
fmec.function_id),
fmep.function_id)
Latest Posts
- R12 – How to Handle NULL for :$FLEX$.VALUE_SET_NAME In Oracle ERPAugust 25, 2023 - 1:20 pm
- R12 – How to Delete Oracle AR TransactionsMarch 22, 2019 - 8:37 pm
- How to Define Custom Key Flexfield (KFF) in R12January 19, 2018 - 5:43 pm
- AutoLock Box Concepts In R12November 10, 2017 - 8:30 am
- R12 – java.sql.SQLException: Invalid column type in OAFSeptember 15, 2017 - 9:39 am
Recent Comments