The following lines contain the word 'select', 'insert', 'update' or 'delete':
Update quote with Price_request_id
*******************************************************/
l_qte_header_rec := p_qte_header_rec;
ASO_QUOTE_PUB.Update_Quote(
p_api_version_number => 1.0,
p_init_msg_list => FND_API.G_FALSE,
p_commit => FND_API.G_FALSE,
P_Validation_Level => FND_API.G_VALID_LEVEL_FULL,
p_control_rec => l_control_rec,
p_qte_header_rec => l_qte_header_rec,
P_hd_Price_Attributes_Tbl => l_hd_Price_Attributes_Tbl,
P_hd_Payment_Tbl => l_hd_Payment_Tbl,
P_hd_Shipment_Tbl => l_hd_Shipment_Tbl,
P_hd_Freight_Charge_Tbl => l_hd_Freight_Charge_Tbl,
P_hd_Tax_Detail_Tbl => l_hd_Tax_Detail_Tbl,
P_hd_Attr_Ext_Tbl => l_hd_Attr_Ext_Tbl,
P_hd_Sales_Credit_Tbl => l_hd_Sales_Credit_Tbl,
P_hd_Quote_Party_Tbl => l_hd_Quote_Party_Tbl,
P_Qte_Line_Tbl => l_Qte_Line_Tbl,
P_Qte_Line_Dtl_Tbl => l_Qte_Line_Dtl_Tbl,
P_Line_Attr_Ext_Tbl => l_Line_Attr_Ext_Tbl,
P_line_rltship_tbl => l_line_rltship_tbl,
P_Price_Adjustment_Tbl => l_Price_Adjustment_Tbl,
P_Price_Adj_Attr_Tbl => l_Price_Adj_Attr_Tbl,
P_Price_Adj_Rltship_Tbl => l_Price_Adj_Rltship_Tbl,
P_Ln_Price_Attributes_Tbl => l_Ln_Price_Attributes_Tbl,
P_Ln_Payment_Tbl => l_Ln_Payment_Tbl,
P_Ln_Shipment_Tbl => l_Ln_Shipment_Tbl,
P_Ln_Freight_Charge_Tbl => l_Ln_Freight_Charge_Tbl,
P_Ln_Tax_Detail_Tbl => l_Ln_Tax_Detail_Tbl,
P_ln_Sales_Credit_Tbl => l_ln_Sales_Credit_Tbl,
P_ln_Quote_Party_Tbl => l_ln_Quote_Party_Tbl,
X_Qte_Header_Rec => lx_qte_header_rec,
X_Qte_Line_Tbl => lx_Qte_Line_Tbl,
X_Qte_Line_Dtl_Tbl => lx_Qte_Line_Dtl_Tbl,
X_hd_Price_Attributes_Tbl => lx_hd_Price_Attr_Tbl,
X_hd_Payment_Tbl => lx_hd_Payment_Tbl,
X_hd_Shipment_Tbl => lx_hd_Shipment_Tbl,
X_hd_Freight_Charge_Tbl => lx_hd_Freight_Charge_Tbl,
X_hd_Tax_Detail_Tbl => lx_hd_Tax_Detail_Tbl,
X_hd_Attr_Ext_Tbl => lX_hd_Attr_Ext_Tbl,
X_hd_Sales_Credit_Tbl => lx_hd_Sales_Credit_Tbl,
X_hd_Quote_Party_Tbl => lx_Quote_Party_Tbl,
X_Line_Attr_Ext_Tbl => lx_Line_Attr_Ext_Tbl,
X_line_rltship_tbl => lx_line_rltship_tbl,
X_Price_Adjustment_Tbl => lx_Price_Adjustment_Tbl,
X_Price_Adj_Attr_Tbl => lx_Price_Adj_Attr_Tbl,
X_Price_Adj_Rltship_Tbl => lx_Price_Adj_Rltship_Tbl,
X_ln_Price_Attributes_Tbl => lx_ln_Price_Attr_Tbl,
X_ln_Payment_Tbl => lx_ln_Payment_Tbl,
X_ln_Shipment_Tbl => lx_ln_Shipment_Tbl,
X_ln_Freight_Charge_Tbl => lx_ln_Freight_Charge_Tbl,
X_ln_Tax_Detail_Tbl => lx_ln_Tax_Detail_Tbl,
X_Ln_Sales_Credit_Tbl => lX_Ln_Sales_Credit_Tbl,
X_Ln_Quote_Party_Tbl => lX_Ln_Quote_Party_Tbl,
X_Return_Status => x_Return_Status,
X_Msg_Count => x_Msg_Count,
X_Msg_Data => x_Msg_Data);
l_last_update_date DATE;
Call update quote with pricing parameters
********************************************************/
FND_FILE.PUT_LINE(FND_FILE.LOG,'Quote Header Id for Batch Pricing='||p_quote_header_id);
SELECT a.quote_name ,a.price_request_id, a.org_id into l_quote_name ,l_request_id, l_org_id
FROM ASO_QUOTE_HEADERS_ALL a
WHERE a.quote_header_id = p_quote_header_id;
SELECT a.last_update_date into l_last_update_date
FROM ASO_QUOTE_HEADERS_ALL a
WHERE a.quote_header_id = p_quote_header_id;
l_qte_header_rec.last_update_date := l_last_update_date;
FND_FILE.PUT_LINE(FND_FILE.LOG,'Before Update quote');
ASO_QUOTE_PUB.Update_Quote(
p_api_version_number => 1.0,
p_init_msg_list => FND_API.G_FALSE,
p_commit => FND_API.G_false,
p_control_rec => l_control_rec,
p_qte_header_rec => l_qte_header_rec,
X_Qte_Header_Rec => lx_qte_header_rec,
X_Qte_Line_Tbl => lx_Qte_Line_Tbl,
X_Qte_Line_Dtl_Tbl => lx_Qte_Line_Dtl_Tbl,
X_hd_Price_Attributes_Tbl => lx_hd_Price_Attr_Tbl,
X_hd_Payment_Tbl => lx_hd_Payment_Tbl,
X_hd_Shipment_Tbl => lx_hd_Shipment_Tbl,
X_hd_Freight_Charge_Tbl => lx_hd_Freight_Charge_Tbl,
X_hd_Tax_Detail_Tbl => lx_hd_Tax_Detail_Tbl,
X_hd_Attr_Ext_Tbl => lX_hd_Attr_Ext_Tbl,
X_hd_Sales_Credit_Tbl => lx_hd_Sales_Credit_Tbl,
X_hd_Quote_Party_Tbl => lx_Quote_Party_Tbl,
X_Line_Attr_Ext_Tbl => lx_Line_Attr_Ext_Tbl,
X_line_rltship_tbl => lx_line_rltship_tbl,
X_Price_Adjustment_Tbl => lx_Price_Adjustment_Tbl,
X_Price_Adj_Attr_Tbl => lx_Price_Adj_Attr_Tbl,
X_Price_Adj_Rltship_Tbl => lx_Price_Adj_Rltship_Tbl,
X_ln_Price_Attributes_Tbl => lx_ln_Price_Attr_Tbl,
X_ln_Payment_Tbl => lx_ln_Payment_Tbl,
X_ln_Shipment_Tbl => lx_ln_Shipment_Tbl,
X_ln_Freight_Charge_Tbl => lx_ln_Freight_Charge_Tbl,
X_ln_Tax_Detail_Tbl => lx_ln_Tax_Detail_Tbl,
X_Ln_Sales_Credit_Tbl => lX_Ln_Sales_Credit_Tbl,
X_Ln_Quote_Party_Tbl => lX_Ln_Quote_Party_Tbl,
X_Return_Status => x_Return_Status,
X_Msg_Count => x_Msg_Count,
X_Msg_Data => x_Msg_Data);
select a.quote_name,a.price_request_id from aso_quote_headers_all a
where a.quote_header_id = p_quote_header_id;
select employee_id from fnd_user
where user_id = p_user_id;
Update price_request_id in ASO_QUOTE_HEADERS_ALL
********************************************************/
procedure Update_price_req_id(p_quote_header_id IN Number) is
G_USER_ID NUMBER := FND_GLOBAL.USER_ID;
l_last_update_date Date := SYSDATE;
Update ASO_QUOTE_HEADERS_ALL
set price_request_id = null,
last_update_date = l_last_update_date,
object_version_number = object_version_number + 1,
last_updated_by = G_USER_ID,
last_update_login = G_LOGIN_ID
where quote_header_id =p_quote_header_id;
end Update_price_req_id;
select quote_number
from aso_quote_headers_all
where quote_header_id = p_quote_header_id;
select ASO_WFNOTIFICATION_S2.NEXTVAL into wf_itemkey_seq from dual;
Update_price_req_id(p_quote_header_id => p_quote_header_id);
Select price_request_id into l_request_id from aso_quote_headers_all
Where quote_header_id =p_quote_header_id;
SELECT qha.quote_number, hca.account_number,
hp.party_type
FROM aso_quote_headers_all qha,
hz_parties hp,
hz_cust_accounts hca
WHERE qha.cust_account_id = hca.cust_account_id(+)
AND hca.party_id = hp.party_id
AND qha.party_id = hca.party_id
AND qha.quote_header_id = p_quote_header_id;
SELECT qha.quote_number, hca.account_number,
hp.party_type,qha.org_id
FROM aso_quote_headers_all qha,
hz_parties hp,
hz_cust_accounts hca
WHERE qha.cust_account_id = hca.cust_account_id(+)
AND qha.cust_party_id = hp.party_id
AND qha.quote_header_id =p_quote_header_id;