Professional Documents
Culture Documents
oe_order_pub.header_rec_type;
oe_order_pub.line_tbl_type;
oe_order_pub.request_tbl_type;
oe_order_pub.header_adj_tbl_type;
oe_order_pub.line_adj_tbl_type;
oe_order_pub.header_scredit_tbl_type;
oe_order_pub.line_scredit_tbl_type;
oe_order_pub.request_rec_type;
VARCHAR2 (1000);
NUMBER;
VARCHAR2 (1000);
NUMBER
:= 1.0;
VARCHAR2 (10)
:= fnd_api.g_false;
VARCHAR2 (10)
:= fnd_api.g_false;
VARCHAR2 (10)
:= fnd_api.g_false;
VARCHAR2 (1);
NUMBER;
VARCHAR2 (100);
oe_order_pub.header_rec_type
:= oe_order_pub.g_miss_header_rec;
p_old_header_rec
oe_order_pub.header_rec_type
:= oe_order_pub.g_miss_header_rec;
p_header_val_rec
oe_order_pub.header_val_rec_type
:= oe_order_pub.g_miss_header_val_rec;
p_old_header_val_rec
oe_order_pub.header_val_rec_type
:= oe_order_pub.g_miss_header_val_rec;
p_header_adj_tbl
oe_order_pub.header_adj_tbl_type
:= oe_order_pub.g_miss_header_adj_tbl;
p_old_header_adj_tbl
oe_order_pub.header_adj_tbl_type
:= oe_order_pub.g_miss_header_adj_tbl;
p_header_adj_val_tbl
oe_order_pub.header_adj_val_tbl_type
:= oe_order_pub.g_miss_header_adj_val_tbl;
p_old_header_adj_val_tbl
oe_order_pub.header_adj_val_tbl_type
:= oe_order_pub.g_miss_header_adj_val_tbl;
p_header_price_att_tbl
oe_order_pub.header_price_att_tbl_type
:= oe_order_pub.g_miss_header_price_att_tbl;
p_old_header_price_att_tbl
oe_order_pub.header_price_att_tbl_type
:= oe_order_pub.g_miss_header_price_att_tbl;
p_header_adj_att_tbl
oe_order_pub.header_adj_att_tbl_type
:= oe_order_pub.g_miss_header_adj_att_tbl;
p_old_header_adj_att_tbl
oe_order_pub.header_adj_att_tbl_type
:= oe_order_pub.g_miss_header_adj_att_tbl;
p_header_adj_assoc_tbl
oe_order_pub.header_adj_assoc_tbl_type
:= oe_order_pub.g_miss_header_adj_assoc_tbl;
p_old_header_adj_assoc_tbl
oe_order_pub.header_adj_assoc_tbl_type
:= oe_order_pub.g_miss_header_adj_assoc_tbl;
p_header_scredit_tbl
oe_order_pub.header_scredit_tbl_type
:= oe_order_pub.g_miss_header_scredit_tbl;
p_old_header_scredit_tbl
oe_order_pub.header_scredit_tbl_type
:= oe_order_pub.g_miss_header_scredit_tbl;
p_header_scredit_val_tbl
oe_order_pub.header_scredit_val_tbl_type
:= oe_order_pub.g_miss_header_scredit_val_tbl;
p_old_header_scredit_val_tbl oe_order_pub.header_scredit_val_tbl_type
:= oe_order_pub.g_miss_header_scredit_val_tbl;
p_line_tbl
p_old_line_tbl
p_line_val_tbl
p_old_line_val_tbl
p_line_adj_tbl
p_old_line_adj_tbl
p_line_adj_val_tbl
p_old_line_adj_val_tbl
p_line_price_att_tbl
p_old_line_price_att_tbl
p_line_adj_att_tbl
p_old_line_adj_att_tbl
p_line_adj_assoc_tbl
p_old_line_adj_assoc_tbl
p_line_scredit_tbl
p_old_line_scredit_tbl
p_line_scredit_val_tbl
p_old_line_scredit_val_tbl
p_lot_serial_tbl
p_old_lot_serial_tbl
p_lot_serial_val_tbl
p_old_lot_serial_val_tbl
p_action_request_tbl
x_header_val_rec
x_header_adj_tbl
x_header_adj_val_tbl
x_header_price_att_tbl
x_header_adj_att_tbl
x_header_adj_assoc_tbl
x_header_scredit_tbl
x_header_scredit_val_tbl
x_line_val_tbl
x_line_adj_tbl
x_line_adj_val_tbl
x_line_price_att_tbl
x_line_adj_att_tbl
x_line_adj_assoc_tbl
oe_order_pub.line_tbl_type
:= oe_order_pub.g_miss_line_tbl;
oe_order_pub.line_tbl_type
:= oe_order_pub.g_miss_line_tbl;
oe_order_pub.line_val_tbl_type
:= oe_order_pub.g_miss_line_val_tbl;
oe_order_pub.line_val_tbl_type
:= oe_order_pub.g_miss_line_val_tbl;
oe_order_pub.line_adj_tbl_type
:= oe_order_pub.g_miss_line_adj_tbl;
oe_order_pub.line_adj_tbl_type
:= oe_order_pub.g_miss_line_adj_tbl;
oe_order_pub.line_adj_val_tbl_type
:= oe_order_pub.g_miss_line_adj_val_tbl;
oe_order_pub.line_adj_val_tbl_type
:= oe_order_pub.g_miss_line_adj_val_tbl;
oe_order_pub.line_price_att_tbl_type
:= oe_order_pub.g_miss_line_price_att_tbl;
oe_order_pub.line_price_att_tbl_type
:= oe_order_pub.g_miss_line_price_att_tbl;
oe_order_pub.line_adj_att_tbl_type
:= oe_order_pub.g_miss_line_adj_att_tbl;
oe_order_pub.line_adj_att_tbl_type
:= oe_order_pub.g_miss_line_adj_att_tbl;
oe_order_pub.line_adj_assoc_tbl_type
:= oe_order_pub.g_miss_line_adj_assoc_tbl;
oe_order_pub.line_adj_assoc_tbl_type
:= oe_order_pub.g_miss_line_adj_assoc_tbl;
oe_order_pub.line_scredit_tbl_type
:= oe_order_pub.g_miss_line_scredit_tbl;
oe_order_pub.line_scredit_tbl_type
:= oe_order_pub.g_miss_line_scredit_tbl;
oe_order_pub.line_scredit_val_tbl_type
:= oe_order_pub.g_miss_line_scredit_val_tbl;
oe_order_pub.line_scredit_val_tbl_type
:= oe_order_pub.g_miss_line_scredit_val_tbl;
oe_order_pub.lot_serial_tbl_type
:= oe_order_pub.g_miss_lot_serial_tbl;
oe_order_pub.lot_serial_tbl_type
:= oe_order_pub.g_miss_lot_serial_tbl;
oe_order_pub.lot_serial_val_tbl_type
:= oe_order_pub.g_miss_lot_serial_val_tbl;
oe_order_pub.lot_serial_val_tbl_type
:= oe_order_pub.g_miss_lot_serial_val_tbl;
oe_order_pub.request_tbl_type
:= oe_order_pub.g_miss_request_tbl;
oe_order_pub.header_val_rec_type;
oe_order_pub.header_adj_tbl_type;
oe_order_pub.header_adj_val_tbl_type;
oe_order_pub.header_price_att_tbl_type;
oe_order_pub.header_adj_att_tbl_type;
oe_order_pub.header_adj_assoc_tbl_type;
oe_order_pub.header_scredit_tbl_type;
oe_order_pub.header_scredit_val_tbl_type;
oe_order_pub.line_val_tbl_type;
oe_order_pub.line_adj_tbl_type;
oe_order_pub.line_adj_val_tbl_type;
oe_order_pub.line_price_att_tbl_type;
oe_order_pub.line_adj_att_tbl_type;
oe_order_pub.line_adj_assoc_tbl_type;
x_line_scredit_tbl
oe_order_pub.line_scredit_tbl_type;
x_line_scredit_val_tbl
oe_order_pub.line_scredit_val_tbl_type;
x_lot_serial_tbl
oe_order_pub.lot_serial_tbl_type;
x_lot_serial_val_tbl
oe_order_pub.lot_serial_val_tbl_type;
x_action_request_tbl
oe_order_pub.request_tbl_type;
x_debug_file
VARCHAR2 (100);
l_line_tbl_index
NUMBER;
l_msg_index_out
NUMBER (10);
l_user_id
fnd_user.user_id%TYPE;
l_appl_id
fnd_application.application_id%TYPE;
l_resp_id
fnd_responsibility.responsibility_id%TYPE;
l_org_id
hr_operating_units.organization_id%TYPE;
l_sold_to_org_id
hz_cust_accounts.cust_account_id%TYPE;
l_ship_to_org_id
hz_cust_site_uses_all.site_use_id%TYPE;
l_cust_acct_site_id
hz_cust_acct_sites_all.cust_acct_site_id%TYPE;
l_party_id
hz_parties.party_id%TYPE;
l_price_list_id
qp_list_headers_b.list_header_id%TYPE;
l_primary_salesrep_id
ra_salesreps.salesrep_id%TYPE;
l_order_type_id
oe_transaction_types_all.transaction_type_id%T
YPE;
l_order_line_type_id
oe_transaction_types_all.transaction_type_id%T
YPE;
l_order_category_code
oe_transaction_types_all.order_category_code%T
YPE;
l_inventory_item_id
mtl_system_items_b.inventory_item_id%TYPE;
l_currency_code
qp_list_headers.currency_code%TYPE;
l_party_site_id
hz_party_sites.party_site_id%TYPE;
BEGIN
DBMS_OUTPUT.ENABLE (1000000);
--fnd_global.apps_initialize (-1, 21623, 660);
fnd_global.apps_initialize(2011,21623, 660);
mo_global.init('ONT');
-- pass in user_id, responsibility_id, and application_id
oe_msg_pub.initialize;
oe_debug_pub.initialize;
l_org_id := fnd_profile.VALUE ('ORG_ID');
-- Get Price List ID, Primary SalesRep, Order Type ID and Order Category Code
BEGIN
SELECT price_list_id
,order_category_code
,default_outbound_line_type_id
INTO l_price_list_id
,l_order_category_code
,l_order_line_type_id
FROM oe_transaction_types_all
WHERE transaction_type_id =
(SELECT transaction_type_id
FROM oe_transaction_types_all
WHERE transaction_type_id IN (SELECT transaction_type_id
FROM oe_transaction_types_tl
WHERE NAME = '02 Sales Order'))
;
DBMS_OUTPUT.put_line
DBMS_OUTPUT.put_line
);
DBMS_OUTPUT.put_line
DBMS_OUTPUT.put_line
);
=>
=>
=>
=>
=>
=>
=>
=>
=>
=>
=>
=>
l_line_tbl
x_line_val_tbl
x_line_adj_tbl
x_line_adj_val_tbl
x_line_price_att_tbl
x_line_adj_att_tbl
x_line_adj_assoc_tbl
x_line_scredit_tbl
x_line_scredit_val_tbl
x_lot_serial_tbl
x_lot_serial_val_tbl
l_action_request_tbl
FOR i IN 1 .. l_msg_count
LOOP
oe_msg_pub.get (p_msg_index
,p_encoded
,p_data
,p_msg_index_out
);
DBMS_OUTPUT.put_line ('message is: '
DBMS_OUTPUT.put_line ('message index
END LOOP;
=>
=>
=>
=>
i
fnd_api.g_false
l_msg_data
l_msg_index_out
|| l_msg_data);
is: ' || l_msg_index_out);
=>
=>
=>
=>
i
fnd_api.g_false
l_msg_data
l_msg_index_out
|| l_msg_data);
is: ' || l_msg_index_out);
END IF;
ELSE
DBMS_OUTPUT.put_line ('Submit Draft Workflow Failed');
END IF;*/
-- END Order Quote WORKFLOW SUBMISSION
END;
/
COMMIT ;