/*DML to update Sales Order Type After Booking Sales Order in Oracle APPS R12*/
UPDATE oe_order_headers_all
SET order_type_id = 9999
WHERE order_number = <--SO_NUMBER-->;
UPDATE wsh_delivery_details wdd
SET source_header_type_id = 9999,
SET source_header_type_id = 9999,
source_header_type_name = '---SO_TYPE_NAME---'
WHERE source_header_number = '<--SO_NUMBER-->';
WHERE source_header_number = '<--SO_NUMBER-->';
UPDATE mtl_sales_orders
SET segment2 = '---SO_TYPE_NAME---'
SET segment2 = '---SO_TYPE_NAME---'
WHERE segment1 = '<--SO_NUMBER-->';
/*Sales Order Type Name & Id*/
SELECT transaction_type_id,
name
FROM wsh_transaction_types_vl wtt ;
name
FROM wsh_transaction_types_vl wtt ;
No comments:
Post a Comment