Application Programming Interface: Oracle Order Capture
Application Programming Interface: Oracle Order Capture
Application Programming Interface: Oracle Order Capture
Release 11i
Version: 1.1
Name Title
Change Record
Date Author Versio Change Reference
n
Abhijit Mitra
Table of Contents
Introduction................................................................................................................................................................................4
Naming convention................................................................................................................................................................4
Record Type Definitions............................................................................................................................................................5
Control Record Type..........................................................................................................................................................5
Submit Control Record Type.............................................................................................................................................6
Quote Header Record Type...............................................................................................................................................6
Quote Line Record Type....................................................................................................................................................8
Quote Line Detail Record Type.......................................................................................................................................10
Quote Price Attributes Record Type...............................................................................................................................12
Price Adjustment Record Type........................................................................................................................................15
Quote Price adjustment attributes REC Type.................................................................................................................16
Price Adjustment Relationship Record Type..................................................................................................................17
Quote Payment Record Type...........................................................................................................................................18
Quote Shipment Record Type..........................................................................................................................................19
Quote Freight Charges Record Type...............................................................................................................................21
Quote Tax Details Record Type......................................................................................................................................22
Quote Header Relationship Record Type........................................................................................................................23
Quote Line Relationship Record Type............................................................................................................................23
Party Relationship Record Type......................................................................................................................................24
Quote Related Object Record Type.................................................................................................................................25
Quote Line Attributes Record Type................................................................................................................................26
Order Header Record Type..............................................................................................................................................26
Order Header Record Type..............................................................................................................................................27
Order Line Record Type..................................................................................................................................................27
Control Record Type........................................................................................................................................................28
Sales Credit Record Type................................................................................................................................................28
Lot Serial Record Type....................................................................................................................................................29
API Description....................................................................................................................................................................31
Create Quote ....................................................................................................................................................................31
Create Quote Line............................................................................................................................................................43
Create Order ....................................................................................................................................................................51
Update Order ...................................................................................................................................................................59
Introduction
Oracle Order Capture has been designed and developed to be extremely flexible, highly extensible and
easily customizable.
Oracle Order Capture uses APIs for access to all the application functionality. These APIs are used by
Order Capture user interface. These APIs are available for other applications within CRM product suite for
use to build out order capturing functionality and to extend order capture functionality.
Order Capture APIs follow Oracle Application Business Object API standards with extensions to support
forms based application requirements.
Order capture APIs can be categorized in the following
Public API
Public APIs are available for customers to use to building out functionality or custom UI for their
requirements.
Private API
Private APIs are available only for Order capture product to use for internal development. Order capture
does not provide any guarantee if used outside of order capture development team.
Interface API
Interface API are a layer of indirection to the API provided by other CRM / ERP application. These APIs are
available for Order capture development and other CRM applications for use (with notification to Order
Capture Team).
Naming convention
Rest of this section of this document lists all the record types defined in
Order Capture. Each record type is followed by the list of attributes,
datatypes, a brief description of the attributes and the possible values it
can take.
This Record type is used in Quote APIs and represents the data it
can capture while creating Quote Header.
Price_Attributes_Rec_Type
OPERATION_CODE VARCHAR2(30) determines what operation needs to CREATE,UPDAT
be performed on the Price Attributes E,DELETE
record
QTE_LINE_INDEX NUMBER index into the Price Attributes table
PRICE_ATTRIBUTE_ID NUMBER Unique Id for Price Attributes table
CREATION_DATE DATE standard who column
CREATED_BY NUMBER standard who column
LAST_UPDATE_DATE DATE standard who column
LAST_UPDATED_BY NUMBER standard who column
LAST_UPDATE_LOGIN NUMBER standard who column
REQUEST_ID NUMBER standard who column
PROGRAM_APPLICATION_ID NUMBER standard who column
PROGRAM_ID NUMBER standard who column
PROGRAM_UPDATE_DATE DATE standard who column
QUOTE_HEADER_ID NUMBER Foreign Key from Quote Headers
QUOTE_LINE_ID NUMBER Foreign Key from Quote Lines
FLEX_TITLE VARCHAR2(60) Title of Flex Field
PRICING_CONTEXT VARCHAR2(30) Descriptive flex field column
PRICING_ATTRIBUTE1 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE2 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE3 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE4 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE5 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE6 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE7 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE8 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE9 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE10 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE11 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE12 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE13 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE14 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE15 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE16 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE17 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE18 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE19 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE20 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE21 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE22 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE23 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE24 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE25 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE26 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE27 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE28 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE29 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE30 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE31 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE32 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE33 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE34 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE35 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE36 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE37 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE38 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE39 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE40 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE41 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE42 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE43 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE44 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE45 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE46 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE47 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE48 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE49 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE50 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE51 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE52 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE53 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE54 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE55 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE56 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE57 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE58 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE59 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE60 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE61 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE62 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE63 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE64 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE65 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE66 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE67 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE68 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE69 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE70 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE71 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE72 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE73 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE74 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE75 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE76 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE77 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE78 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE79 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE80 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE81 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE82 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE83 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE84 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE85 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE86 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE87 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE88 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE89 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE90 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE91 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE92 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE93 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE94 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE95 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE96 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE97 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE98 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE99 VARCHAR2(150) Descriptive flex field column
PRICING_ATTRIBUTE100 VARCHAR2(150) Descriptive flex field column
CONTEXT VARCHAR2(30) Descriptive flex field structure defining
column
ATTRIBUTE1 VARCHAR2(150) Descriptive flex field column
ATTRIBUTE2 VARCHAR2(150) Descriptive flex field column
ATTRIBUTE3 VARCHAR2(150) Descriptive flex field column
ATTRIBUTE4 VARCHAR2(150) Descriptive flex field column
ATTRIBUTE5 VARCHAR2(150) Descriptive flex field column
ATTRIBUTE6 VARCHAR2(150) Descriptive flex field column
ATTRIBUTE7 VARCHAR2(150) Descriptive flex field column
ATTRIBUTE8 VARCHAR2(150) Descriptive flex field column
ATTRIBUTE9 VARCHAR2(150) Descriptive flex field column
ATTRIBUTE10 VARCHAR2(150) Descriptive flex field column
ATTRIBUTE11 VARCHAR2(150) Descriptive flex field column
ATTRIBUTE12 VARCHAR2(150) Descriptive flex field column
ATTRIBUTE13 VARCHAR2(150) Descriptive flex field column
ATTRIBUTE14 VARCHAR2(150) Descriptive flex field column
ATTRIBUTE15 VARCHAR2(150) Descriptive flex field column
This record type holds all the payment information like the
payment terms, payment methods, credit card numbers etc.
Control_Rec_Type
ATTRIBUTES DEFAULT DATATYPE DESCRIPTION VALUES
BOOK_FLAG FND_API.G_TRUE VARCHAR2(1) if set to ‘Y’ the ordered will be booked ‘Y’, ‘N’
in OM
RESERVE_FLAG FND_API.G_FALSE VARCHAR2(1) not used
CALCULATE_PRIC FND_API.G_FALSE VARCHAR2(1) if set to ‘Y’ the order will be priced by ‘Y’, ‘N’
E OM
SERVER_ID NUMBER server id needed for fulfilment
INTERFACE_FFM_ FND_API.G_TRUE VARCHAR2(1) if set to ‘N’ soft items will not ‘Y’, ‘N’
FLAG interfaced with fulfilment
This record type captures the lot and serial number information
for the quote line.
Create Quote
Package: ASO_QUOTE_PUB
Type: Public
Procedure: Create_Quote
Usage
This API allows the user to create a quote in Order Capture. If an error
occurs at the header level, the API does a rollback and no change is made
to the database. If errors occur at the line level, all the changes, except for
the invalid lines, will still be committed. The invalid lines will be returned
with the error flag set to TRUE. Values recalculated for the header should
be based on the line items in the database, not the input table, to avoid
using information from the invalid line items.
Parameters
P_Api_Version_Number IN NUMBER,
P_Commit IN VARCHAR2 :=
FND_API.G_FALSE,
P_Control_Rec IN Control_Rec_Type :=
G_Miss_Control_Rec,
P_Qte_Header_Rec IN Qte_Header_Rec_Type :=
G_MISS_Qte_Header_Rec,
P_hd_Price_Attributes_Tbl IN
ASO_QUOTE_PUB.Price_Attributes_Tbl_Type :=
G_Miss_Price_Attributes_Tbl,
P_hd_Payment_Tbl IN ASO_QUOTE_PUB.Payment_Tbl_Type
:= G_MISS_PAYMENT_TBL,
P_hd_Shipment_Rec IN
ASO_QUOTE_PUB.Shipment_Rec_Type
:=
G_MISS_SHIPMENT_REC,
P_hd_Freight_Charge_Tbl IN
ASO_QUOTE_PUB.Freight_Charge_Tbl_Type
:= G_Miss_Freight_Charge_Tbl,
P_hd_Tax_Detail_Tbl IN
ASO_QUOTE_PUB.Tax_Detail_Tbl_Type
:= G_Miss_Tax_Detail_Tbl,
P_Qte_Line_Tbl IN Qte_Line_Tbl_Type :=
G_MISS_QTE_LINE_TBL,
P_Qte_Line_Dtl_Tbl IN Qte_Line_Dtl_Tbl_Type :=
G_MISS_QTE_LINE_DTL_TBL,
P_Line_Attr_Ext_Tbl IN Line_Attribs_Ext_Tbl_Type :=
G_MISS_Line_Attribs_Ext_TBL,
P_line_rltship_tbl IN Line_Rltship_Tbl_Type :=
G_MISS_Line_Rltship_Tbl,
P_Price_Adjustment_Tbl IN Price_Adj_Tbl_Type
:= G_Miss_Price_Adj_Tbl,
P_Price_Adj_Attr_Tbl IN Price_Adj_Attr_Tbl_Type :=
G_Miss_PRICE_ADJ_ATTR_Tbl,
P_Price_Adj_Rltship_Tbl IN Price_Adj_Rltship_Tbl_Type :=
G_Miss_Price_Adj_Rltship_Tbl,
P_Ln_Price_Attributes_Tbl IN Price_Attributes_Tbl_Type :=
G_Miss_Price_Attributes_Tbl,
P_Ln_Payment_Tbl IN Payment_Tbl_Type :=
G_MISS_PAYMENT_TBL,
P_Ln_Shipment_Tbl IN Shipment_Tbl_Type :=
G_MISS_SHIPMENT_TBL,
P_Ln_Freight_Charge_Tbl IN Freight_Charge_Tbl_Type :=
G_Miss_Freight_Charge_Tbl,
P_Ln_Tax_Detail_Tbl IN Tax_Detail_Tbl_Type
:= G_Miss_Tax_Detail_Tbl,
Last_Update_Date SYSDATE
Last_Updated_By FND_GLOBAL.User_Id
Creation_Date SYSDATE
Created_By FND_GLOBAL.User_Id
Last_Update_Login FND_GLOBAL.Conc_Login_Id
Request_Id NULL
Program_Application NULL
_Id
Program_Id NULL
Program_Update_D NULL
ate
Employee_Person_I If there is only
d Salesrep_Firs
t/Last_Name,
the API will
retrieve the
related
Employee_Pe
rson_Id from
ASO_I_PEOP
LE_V
Salesrep_First_Nam NULL
e
Salesrep_Last_Nam NULL
e
Price_List_Id NULL If there is only
price_list_na
me, the API
will retrieve
the related
price_list_id
from
ASO_I_PRIC
E_LISTS_V
Price_List_Name NULL
Customer_Number NULL
Quote_Name NULL
Contact_First_Name NULL
Description NULL
Original_Quote_Id NULL
Quote_Expiration_D SYSDATE+Quote_Duration_Dat
ate e, which is determind by system
profile option
Exchange_Rate NULL
Exchange_Type_Co NULL
de
Exchange_Type_Ra NULL
te
Source_Campaign_I NULL If there is only
d Source_Camp
aign_Name,
the API will
retrieve the
related
Source_Camp
aign_Id from
ASO_I_CAM
PAIGNS_V
Source_Campaign_ NULL
Name
Ordered_Date NULL These fields
will not be
used in
Create_Quote
, and any
input will be
ignored.
Order_Type_Id Determined by system profile If there is only aso_I_order_typ
option Order- es_v
Type_Name,
the API will
retrieve the
related
Order_Type_I
d from
ASO_I_ORD
ER_TYPES_
V
Order_Type_Name NULL
Attribute_Category NULL
Attribute1_Attribute1 NULL
5
API Dependency
BEGIN
1. SAVEPOINT Create_Quote
2. Check for call compatibility
3. Do validation
Check if FND_GLOBAL.User_Id is NOT NULL;
Validate_Quote_Level_Field:
If the following fields in p_quote_header_rec have an
input value, they must be active and user accessible.
Account_Rule
Invoice_Rule
Currency
Quote_End_Date
Order_Type
Account
Contact
price_list
Validate_Quote_Level_Inter_Field:
If p_shipment_tbl has a record for quote
header(ie. quote_header_id is NOT NULL and
quote_line_id is NULL), ship_to_site_use and
ship_to_contact in that record must be active and
user_accessilble.
If p_tax_details_tbl has a record for quote
header(ie. quote_header_id is NOT NULL and
quote_line_id is NULL), in that record (1)
tax_exempt_flag must be in ‘E’, ‘R’ and ‘S’ and (2)
tax_exempt_reason_code must exist if
tax_exempt_flag is ‘E’.
If p_payment_tbl has a record for quote header(ie.
quote_header_id is NOT NULL and quote_line_id
is NULL),
payment_type/payment_option/payment_term/Che
ck/Credit_card info must match with each other.
If p_price_adjustment_tbl has a record for quote
header, the related qualifier and modifer info must
be valid.
p_shipment_tbl cannot have more than one valid record
for quote header.
p_payment_tbl cannot have more than one valid record for
quote header if payment_option of that record is not
installment_payment; if payment_option is
installment_payment, the number of valid record must
match the payment_term.
4. Convert value to id and populate default value.
5. Insert quote row into ASO_QUOTE_HEADERS
6. For each shipment rows for quote header, if Ship_To_Address_Id
is NULL, call interface API to create the address in AR; if
Ship_To_Site_Use_Id is NULL, call interface API to create
the ship_to site use in AR. After that, all the shipment rows
should have a valid ship_to_address_id and
ship_to_site_use_id.
Insert the shipment rows for quote header into
ASO_SHIPMENTS.
7. Insert tax/payment rows for quote header into
ASO_TAX_DETAILS/ASO_PAYMENTS.
8. Insert quote_related_object rows into
ASO_QUOTE_RELATED_OBJECTS.
9. Call Create_Quote_Lines to create quote lines based on
(p_qte_lines_tbl, p_qte_line_dtl_tbl, p_price_attributes_tbl,
p_price_adjustments_tbl, p_price_adj_relationship_tbl,
p_payment_tbp, p_shipment_tbl, p_freight_charge_tbl,
p_tax_details_tbl)
10. If p_control_rec.header_pricing_event =’LINE’, Call
ASO_PRICING_INT to calculate the price at Quote level. If
p_control_rec.line_pricing_event =’LINE’ then Call
ASO_PRICING_INT to calculate the price at Quote Line and
Item level.
11. Update Total_Quote_Price, Total_List_Price,
Total_Adjusted_Amount, Total_Adjusted_Percent, Total_Tax
based on quote lines that have been created.
12. Standard check of p_commit.
Usage
Test Case 1 :
DECLARE
l_control_rec ASO_QUOTE_PUB.Control_Rec_Type;
l_qte_header_rec ASO_QUOTE_PUB.Qte_Header_Rec_Type;
l_qte_line_rec ASO_QUOTE_PUB.Qte_Line_Rec_Type;
l_qte_line_tbl ASO_QUOTE_PUB.Qte_Line_Tbl_Type;
l_qte_line_dtl_tbl ASO_QUOTE_PUB.Qte_Line_Dtl_Tbl_Type;
l_hd_Price_Attr_Tbl
ASO_QUOTE_PUB.Price_Attributes_Tbl_Type;
l_hd_payment_tbl ASO_QUOTE_PUB.Payment_Tbl_Type;
l_payment_rec ASO_QUOTE_PUB.Payment_Rec_Type;
l_hd_shipment_rec ASO_QUOTE_PUB.Shipment_Rec_Type;
l_hd_freight_charge_tbl
ASO_QUOTE_PUB.Freight_Charge_Tbl_Type;
l_hd_tax_detail_tbl ASO_QUOTE_PUB.Tax_Detail_Tbl_Type;
l_tax_detail_rec ASO_QUOTE_PUB.Tax_Detail_Rec_Type;
l_Line_Attr_Ext_Tbl
ASO_QUOTE_PUB.Line_Attribs_Ext_Tbl_Type;
l_line_rltship_tbl ASO_QUOTE_PUB.Line_Rltship_Tbl_Type;
l_Price_Adjustment_Tbl ASO_QUOTE_PUB.Price_Adj_Tbl_Type;
l_Price_Adj_Attr_Tbl ASO_QUOTE_PUB.Price_Adj_Attr_Tbl_Type;
l_price_adj_rltship_tbl ASO_QUOTE_PUB.Price_Adj_Rltship_Tbl_Type;
l_ln_Price_Attr_Tbl
ASO_QUOTE_PUB.Price_Attributes_Tbl_Type;
l_ln_payment_tbl ASO_QUOTE_PUB.Payment_Tbl_Type;
l_ln_shipment_tbl ASO_QUOTE_PUB.Shipment_Tbl_Type;
l_ln_freight_charge_tbl ASO_QUOTE_PUB.Freight_Charge_Tbl_Type;
l_ln_tax_detail_tbl ASO_QUOTE_PUB.Tax_Detail_Tbl_Type;
lx_qte_header_rec ASO_QUOTE_PUB.Qte_Header_Rec_Type;
lx_qte_line_tbl ASO_QUOTE_PUB.Qte_Line_Tbl_Type;
lx_qte_line_dtl_tbl ASO_QUOTE_PUB.Qte_Line_Dtl_Tbl_Type;
lx_hd_Price_Attr_Tbl
ASO_QUOTE_PUB.Price_Attributes_Tbl_Type;
lx_hd_payment_tbl ASO_QUOTE_PUB.Payment_Tbl_Type;
lx_hd_shipment_rec ASO_QUOTE_PUB.Shipment_Rec_Type;
lx_hd_freight_charge_tbl
ASO_QUOTE_PUB.Freight_Charge_Tbl_Type;
lx_hd_tax_detail_tbl ASO_QUOTE_PUB.Tax_Detail_Tbl_Type;
lx_Line_Attr_Ext_Tbl
ASO_QUOTE_PUB.Line_Attribs_Ext_Tbl_Type;
lx_line_rltship_tbl ASO_QUOTE_PUB.Line_Rltship_Tbl_Type;
lx_Price_Adjustment_Tbl ASO_QUOTE_PUB.Price_Adj_Tbl_Type;
lx_Price_Adj_Attr_Tbl ASO_QUOTE_PUB.Price_Adj_Attr_Tbl_Type;
lx_price_adj_rltship_tbl
ASO_QUOTE_PUB.Price_Adj_Rltship_Tbl_Type;
lx_ln_Price_Attr_Tbl
ASO_QUOTE_PUB.Price_Attributes_Tbl_Type;
lx_ln_payment_tbl ASO_QUOTE_PUB.Payment_Tbl_Type;
lx_ln_shipment_tbl ASO_QUOTE_PUB.Shipment_Tbl_Type;
lx_ln_freight_charge_tbl ASO_QUOTE_PUB.Freight_Charge_Tbl_Type;
lx_ln_tax_detail_tbl ASO_QUOTE_PUB.Tax_Detail_Tbl_Type;
lX_return_status VARCHAR2(1);
lx_msg_count NUMBER;
lx_msg_data VARCHAR2(2000);
my_message VARCHAR2(2000);
BEGIN
dbms_application_info.set_client_info('204');
dbms_output.put_line('begin_0');
l_qte_header_rec.quote_number := 1;
l_qte_header_rec.quote_source_code := 'ASO';
l_qte_header_rec.currency_code := 'USD';
l_qte_header_rec.party_id := 7209;
l_qte_header_rec.cust_account_id := 7209;
l_qte_header_rec.quote_status_id := 6;
l_qte_header_rec.order_type_id := 1000;
l_qte_header_rec.price_list_id := 1000;
l_control_rec.last_update_date := '30-NOV-99';
dbms_output.put_line('begin');
ASO_QUOTE_PUB.Create_Quote (
p_commit =>FND_API.G_TRUE,
dbms_output.put_line('Messages');
dbms_output.put_line(my_message);
end loop;
dbms_output.put_line(lx_return_status);
dbms_output.put_line(to_char(lx_msg_count));
dbms_output.put_line(lx_msg_data);
dbms_output.put_line('qte_header_id: '||
to_char(lx_qte_header_rec.quote_header_id));
dbms_output.put_line('end');
END;
Called by
Application Module Type Usage Notes
ASO Form Called in procedure
iStore
Services
Create Quote Line
Package: ASO_QUOTE_PUB
Procedure: Create_Quote_Lines
Type: Public
Usage
This API allows the user to create a new quote line in Order Capture.
Parameters
P_Api_Version_Number IN NUMBER,
P_Control_Rec IN Control_Rec_Type :=
G_Miss_Control_Rec,
P_Qte_Header_Rec IN Qte_Header_Rec_Type :=
G_MISS_Qte_Header_Rec,
P_hd_Price_Attributes_Tbl IN
ASO_QUOTE_PUB.Price_Attributes_Tbl_Type :=
G_Miss_Price_Attributes_Tbl,
P_hd_Payment_Tbl IN ASO_QUOTE_PUB.Payment_Tbl_Type
:= G_MISS_PAYMENT_TBL,
P_hd_Shipment_Rec IN
ASO_QUOTE_PUB.Shipment_Rec_Type
:=
G_MISS_SHIPMENT_REC,
P_hd_Freight_Charge_Tbl IN
ASO_QUOTE_PUB.Freight_Charge_Tbl_Type
:= G_Miss_Freight_Charge_Tbl,
P_hd_Tax_Detail_Tbl IN
ASO_QUOTE_PUB.Tax_Detail_Tbl_Type
:= G_Miss_Tax_Detail_Tbl,
P_Qte_Line_Tbl IN Qte_Line_Tbl_Type :=
G_MISS_QTE_LINE_TBL,
P_Qte_Line_Dtl_Tbl IN Qte_Line_Dtl_Tbl_Type :=
G_MISS_QTE_LINE_DTL_TBL,
P_Line_Attr_Ext_Tbl IN Line_Attribs_Ext_Tbl_Type :=
G_MISS_Line_Attribs_Ext_TBL,
P_line_rltship_tbl IN Line_Rltship_Tbl_Type :=
G_MISS_Line_Rltship_Tbl,
P_Price_Adjustment_Tb IN Price_Adj_Tbl_Type :=
G_Miss_Price_Adj_Tbl,
P_Price_Adj_Attr_Tbl IN Price_Adj_Attr_Tbl_Type :=
G_Miss_PRICE_ADJ_ATTR_Tbl,
P_Price_Adj_Rltship_Tbl IN Price_Adj_Rltship_Tbl_Type :=
G_Miss_Price_Adj_Rltship_Tbl,
P_Ln_Price_Attributes_Tbl IN Price_Attributes_Tbl_Type :=
G_Miss_Price_Attributes_Tbl,
P_Ln_Payment_Tbl IN Payment_Tbl_Type :=
G_MISS_PAYMENT_TBL,
P_Ln_Shipment_Tbl IN Shipment_Tbl_Type :=
G_MISS_SHIPMENT_TBL,
P_Ln_Freight_Charge_Tbl IN Freight_Charge_Tbl_Type :=
G_Miss_Freight_Charge_Tbl,
P_Ln_Tax_Detail_Tbl IN Tax_Detail_Tbl_Type
:= G_Miss_Tax_Detail_Tbl,
created_by FND_GLOBAL.User_Id
last_update_date SYSDATE
last_updated_login FND_GLOBAL.Conc_Login_I
d
request_id NULL
program_applicati NULL
on_id
program_id NULL
program_update_d NULL
ate
quote_header_id
quote_line_status_
id
line_type_code The API retrieves this
information from the BOM
line_number
order_line_type_id
inventory_item_id
quantity 1
uom_code
campaign_id
price_list_line_id
line_adjusted_amo
unt
line_adjusted_perc
ent
line_adjusted_pric
e
line_quote_price retrieves the
unit_selling_price * quantity
attribute_category
attribute1
attribute2
attribute3
attribute4
attribute5
attribute6
attribute7
attribute8
attribute9
attribute10
attribute11
attribute12
attribute13
attribute14
attribute15
Validate_Quote_Line_Level_Inter_Field:
If quote_line_tbl has a record for the quote
header.
If p_shipment_tbl has a record for quote
header(ie. quote_header_id is NOT NULL and
quote_line_id is NOT NULL), ship_to_site_use
and ship_to_contact in that record must be
active and user_accessilble.
If p_tax_details_tbl has a record for quote
header(ie. quote_header_id is NOT NULL and
quote_line_id is NOT NULL), in that record (1)
tax_exempt_flag must be ‘E’, ‘R’ or ‘S’ and (2)
tax_exempt_reason_code must exist if
tax_exempt_flag is ‘E’.
If p_payment_tbl has a record for quote
header(ie. quote_header_id is NOT NULL and
quote_line_id is NOT NULL),
payment_type/payment_option/payment_term/C
heck/Credit_card info must match with each
other.
If p_price_adjustment_tbl has a record for quote
header, quote line the related qualifier and
modifer info must be valid.
Validate_Quote_Level_Inter_Entity:
If p_line_relationships has a record the quote
line ids must exist in
the quote_line_table.
4. Convert value to id and populate default value.
5. Insert quote line row into ASO_QUOTE_LINES
6. Insert shipment/tax/payment rows for quote line into
ASO_SHIPMENTS/ASO_TAX_DETAILS/ASO_PAYMENTS/
ASO_LINE_DETAILS/ASO_PRICE_ADJUSTMENTS/
ASO_PRICE_ADJ_RELATIONSHIPS.
7. Insert related quotes into ASO_LINE_RELATIONSHIP.
8. If p_control_rec.line_pricing_event =’LINE’, Call
ASO_PRICING_INT to calculate the price at Quote level. If
p_control_rec.line_pricing_event =’LINE’ then Call
ASO_PRICING_INT to calculate the price at Quote Line and
Item level.
9. If update_header_flag is set to ‘Y’ then Update
Total_Quote_Price, Total_List_Price,
Total_Adjusted_Amount, Total_Adjusted_Percent, Total_Tax
based on quote lines that have been created.
10. Check timestamp.
11. Standard check of p_commit.
Usage
Test Case :1
l_qte_line_rec.inventory_item_id := 1590;
l_qte_line_rec.organization_id := 204;
l_qte_line_rec.quantity := 3;
l_qte_line_rec.UOM_code := 'Ea';
l_qte_line_rec.operation_code := 'CREATE';
l_qte_line_rec.currency_code := 'USD';
l_qte_line_rec.PRICE_LIST_ID := 1000;
l_qte_line_tbl(1) := l_qte_line_rec;
OPEN c_quote(l_qte_header_rec.quote_header_id);
FETCH c_quote INTO lc_last_update_date;
CLOSE c_quote;
l_control_rec.last_update_date := lc_last_update_date;
l_qte_header_rec.last_update_date := lc_last_update_date;
l_control_rec.pricing_request_type := 'ASO';
l_control_rec.header_pricing_event := 'LINE';
l_control_rec.line_pricing_event := 'LINE';
dbms_output.put_line('begin');
ASO_QUOTE_HEADERS_PVT.Create_Quote (
p_api_version_number => 1.0,
p_commit => FND_API.G_TRUE,
p_validation_level => 0,
p_control_rec => l_control_rec,
p_qte_header_rec => l_qte_header_rec,
P_Qte_Line_Tbl => l_Qte_Line_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_Rec => lx_hd_Shipment_Rec,
X_hd_Freight_Charge_Tbl => lx_hd_Freight_Charge_Tbl,
X_hd_Tax_Detail_Tbl => lx_hd_Tax_Detail_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_Return_Status => lx_Return_Status,
X_Msg_Count => lx_Msg_Count,
X_Msg_Data => lx_Msg_Data);
dbms_output.put_line('Messages');
my_message := fnd_msg_pub.get(p_encoded => FND_API.g_false);
while (my_message is not null) loop
dbms_output.put_line(my_message);
my_message := fnd_msg_pub.get(p_encoded =>
FND_API.g_false);
end loop;
dbms_output.put_line(lx_return_status);
dbms_output.put_line(to_char(lx_msg_count));
dbms_output.put_line(lx_msg_data);
END;
/
Called by
Application Module Type Usage Notes
ASO Form Called in procedure
iStore
Services
Create Order
Package: ASO_ORDER_INT
Type: Public
Procedure: Create_Order
Usage
This API allows the user to create a new order in Order Management. This API
passes information to and from Order Management. It does not validate
information. Validation is done in the Process Order API which is called by the
Create Order. Most of the defaulting is also done by the Process Order.
If the user is using the Order Capture schema then “Submit Quote” API is
preferred over Create_Order API.
Parameters
P_Api_Version_Number IN NUMBER,
P_Init_Msg_List IN VARCHAR2 := FND_API.G_FALSE
P_Commit IN VARCHAR2 := FND_API.G_FALSE
P_Qte_Rec IN ASO_QUOTE_PUB.Qte_Header_Rec_Type
P_Header_Payment_Tbl IN ASO_QUOTE_PUB.Payment_Tbl_Type
P_Header_Price_Adj_Tbl IN ASO_QUOTE_PUB.Price_Adj_Tbl_Type
P_Header_Price_Attributes_Tbl IN ASO_QUOTE_PUB.Price_Attributes_Tbl_Type
P_Header_Price_Adj_rltship_Tbl IN ASO_QUOTE_PUB.Price_Adj_Rltship_Tbl_Type
P_Header_Price_Adj_Attr_Tbl IN ASO_QUOTE_PUB.Price_Adj_Attr_Tbl_Type
P_Header_Shipment_Tbl IN ASO_QUOTE_PUB.Shipment_Tbl_Type
P_Header_TAX_DETAIL_Tbl IN ASO_QUOTE_PUB.TAX_DETAIL_Tbl_Type
P_Header_FREIGHT_CHARGE_Tbl IN ASO_QUOTE_PUB.FREIGHT_CHARGE_Tbl_Typ
e
P_header_sales_credit_TBL IN ASO_ORDER_INT.Sales_credit_tbl_type
P_Qte_Line_Tbl IN ASO_QUOTE_PUB.Qte_Line_Tbl_Type
P_Qte_Line_Dtl_tbl IN ASO_QUOTE_PUB.Qte_Line_Dtl_tbl_Type
P_Line_Payment_Tbl IN ASO_QUOTE_PUB.Payment_Tbl_Type
P_Line_Price_Adj_Tbl IN ASO_QUOTE_PUB.Price_Adj_Tbl_Type
P_Line_Price_Attributes_Tbl IN ASO_QUOTE_PUB.Price_Attributes_Tbl_Type
P_Line_Price_Adj_rltship_Tbl IN ASO_QUOTE_PUB.Price_Adj_Rltship_Tbl_Type
P_Line_Price_Adj_Attr_Tbl IN ASO_QUOTE_PUB.Price_Adj_Attr_Tbl_Type
P_Line_Shipment_Tbl IN ASO_QUOTE_PUB.Shipment_Tbl_Type
P_Line_TAX_DETAIL_Tbl IN ASO_QUOTE_PUB.TAX_DETAIL_Tbl_Type
P_Line_FREIGHT_CHARGE_Tbl IN ASO_QUOTE_PUB.FREIGHT_CHARGE_Tbl_Typ
e
P_Line_ATTRIBS_EXT_Tbl IN ASO_QUOTE_PUB.Line_Attribs_Ext_Tbl_Type
P_Line_Rltship_Tbl IN ASO_QUOTE_PUB.Line_Rltship_Tbl_Type
P_Line_sales_credit_TBL IN ASO_ORDER_INT.Sales_credit_tbl_type
P_Lot_Serial_Tbl IN ASO_ORDER_INT.Lot_Serial_Tbl_Type
P_Control_Rec IN ASO_ORDER_INT.Control_Rec_Type
X_Order_Header_Rec OUT ASO_ORDER_INT.Order_Header_Rec_Type,
X_Order_Line_Tbl OUT ASO_ORDER_INT.Order_Line_Tbl_type,
X_Return_Status OUT VARCHAR2,
X_Msg_Count OUT NUMBER,
X_Msg_Data OUT VARCHAR2
API Dependency
Application Package Name API
ONT OE_Order_GRP Process_Order
ASO ASO_FFM_INT Submit_Fulfilment_request
GL GL_CURRENCY_API Get_rate_sql
AR HZ_CUST_ACCT_PUB create_account
create_cust_acct_roles
create_acct_site
create_acct_site_uses
Usage
Test Case 1 :
declare
l_qte_header_rec ASO_QUOTE_PUB.Qte_Header_Rec_Type;
l_qte_line_tbl ASO_QUOTE_PUB.Qte_Line_Tbl_Type;
l_ln_shipment_tbl ASO_QUOTE_PUB.Shipment_Tbl_Type;
X_return_status VARCHAR2(1);
x_msg_count NUMBER;
x_msg_data VARCHAR2(2000);
x_order_header_rec
ASO_ORDER_INT.Order_Header_rec_type;
x_order_line_tbl ASO_ORDER_INT.Order_Line_tbl_type;
p_control_rec ASO_ORDER_INT.control_rec_type;
BEGIN
dbms_application_info.set_client_info('204');
FND_PROFILE.PUT( 'USER_ID', '1001' );
l_qte_header_rec.quote_source_code := 'ASO';
l_qte_header_rec.currency_code := 'USD'; --required
l_qte_header_rec.party_id := 1000;
l_qte_header_rec.quote_header_id := 1000;
-- passed to source document id . optional
l_qte_header_rec.order_type_id := 1000;
l_qte_header_rec.price_list_id := 1000; -- required
l_qte_header_rec.employee_person_id := 41942; -- required
l_qte_header_rec.cust_account_id := 1006;
p_control_rec.book_flag := FND_API.G_TRUE;
p_control_rec.calculate_price := FND_API.G_FALSE;
l_qte_line_tbl(1).inventory_item_id := 2624;
l_qte_line_tbl(1).quantity := 1;
l_qte_line_tbl(1).UOM_code := 'Ea';
l_qte_line_tbl(1).price_list_id := 1000;
l_qte_line_tbl(1).line_category_code := 'ORDER';
l_ln_shipment_tbl(1).shipment_id := 32;
-- passed to source document line id . optional
l_ln_shipment_tbl(1).quantity := 1;
l_ln_shipment_tbl(1).qte_line_index := 1;
ASO_ORDER_INT.Create_order(
P_Api_Version_Number => 1.0,
P_Qte_Rec => l_qte_header_rec,
P_Qte_Line_Tbl => l_qte_line_tbl,
P_Line_Shipment_Tbl => l_ln_shipment_tbl,
P_control_rec => p_control_rec,
X_Order_Header_Rec => x_order_header_rec,
X_Order_Line_Tbl => x_order_line_tbl,
X_Return_Status => x_return_status,
X_Msg_Count => x_msg_count,
X_Msg_Data => x_msg_data
);
Called by
Application Module Type Usage Notes
ASO Form Called in procedure
iSupport
iStore
Service Core
Sales for
Comms
Update Order
Package: ASO_ORDER_INT
Type: Public
Procedure: Update_Order
Usage
This API allows the user to update an existing order in Order Management. This
API passes information to and from Order Management. It does not validate
information. Validation is done in the Process Order API which is called by the
Create Order.
Update order does not modify quote and relates directly to an order. Any ids
passed should relate to the ids in OM and not quote related ids.
Parameters
P_Api_Version_Number IN NUMBER,
P_Init_Msg_List IN VARCHAR2 := FND_API.G_FALSE
P_Commit IN VARCHAR2 := FND_API.G_FALSE
P_Qte_Rec IN ASO_QUOTE_PUB.Qte_Header_Rec_Type
P_Header_Payment_Tbl IN ASO_QUOTE_PUB.Payment_Tbl_Type
P_Header_Price_Adj_Tbl IN ASO_QUOTE_PUB.Price_Adj_Tbl_Type
P_Header_Price_Attributes_Tbl IN ASO_QUOTE_PUB.Price_Attributes_Tbl_Type
P_Header_Price_Adj_rltship_Tbl IN ASO_QUOTE_PUB.Price_Adj_Rltship_Tbl_Type
P_Header_Price_Adj_Attr_Tbl IN ASO_QUOTE_PUB.Price_Adj_Attr_Tbl_Type
P_Header_Shipment_Tbl IN ASO_QUOTE_PUB.Shipment_Tbl_Type
P_Header_TAX_DETAIL_Tbl IN ASO_QUOTE_PUB.TAX_DETAIL_Tbl_Type
P_Header_FREIGHT_CHARGE_Tbl IN ASO_QUOTE_PUB.FREIGHT_CHARGE_Tbl_Typ
e
P_header_sales_credit_TBL IN ASO_ORDER_INT.Sales_credit_tbl_type
P_Qte_Line_Tbl IN ASO_QUOTE_PUB.Qte_Line_Tbl_Type
P_Qte_Line_Dtl_tbl IN ASO_QUOTE_PUB.Qte_Line_Dtl_tbl_Type
P_Line_Payment_Tbl IN ASO_QUOTE_PUB.Payment_Tbl_Type
P_Line_Price_Adj_Tbl IN ASO_QUOTE_PUB.Price_Adj_Tbl_Type
P_Line_Price_Attributes_Tbl IN ASO_QUOTE_PUB.Price_Attributes_Tbl_Type
P_Line_Price_Adj_rltship_Tbl IN ASO_QUOTE_PUB.Price_Adj_Rltship_Tbl_Type
P_Line_Price_Adj_Attr_Tbl IN ASO_QUOTE_PUB.Price_Adj_Attr_Tbl_Type
P_Line_Shipment_Tbl IN ASO_QUOTE_PUB.Shipment_Tbl_Type
P_Line_TAX_DETAIL_Tbl IN ASO_QUOTE_PUB.TAX_DETAIL_Tbl_Type
P_Line_FREIGHT_CHARGE_Tbl IN ASO_QUOTE_PUB.FREIGHT_CHARGE_Tbl_Typ
e
P_Line_ATTRIBS_EXT_Tbl IN ASO_QUOTE_PUB.Line_Attribs_Ext_Tbl_Type
P_Line_Rltship_Tbl IN ASO_QUOTE_PUB.Line_Rltship_Tbl_Type
P_Line_sales_credit_TBL IN ASO_ORDER_INT.Sales_credit_tbl_type
P_Lot_Serial_Tbl IN ASO_ORDER_INT.Lot_Serial_Tbl_Type
P_Control_Rec IN ASO_ORDER_INT.Control_Rec_Type
X_Order_Header_Rec OUT ASO_ORDER_INT.Order_Header_Rec_Type,
X_Order_Line_Tbl OUT ASO_ORDER_INT.Order_Line_Tbl_type,
X_Return_Status OUT VARCHAR2,
X_Msg_Count OUT NUMBER,
X_Msg_Data OUT VARCHAR2
API Dependency
Application Package Name API
ONT OE_Order_GRP Process_Order
ASO ASO_FFM_INT Submit_Fulfilment_request
GL GL_CURRENCY_API Get_rate_sql
AR HZ_CUST_ACCT_PUB create_account
create_cust_acct_roles
create_acct_site
create_acct_site_uses
Usage
Test Case 1 :
set serveroutput on size 8000
declare
l_qte_header_rec ASO_QUOTE_PUB.Qte_Header_Rec_Type;
l_qte_line_tbl ASO_QUOTE_PUB.Qte_Line_Tbl_Type;
l_ln_shipment_tbl ASO_QUOTE_PUB.Shipment_Tbl_Type;
X_return_status VARCHAR2(1);
x_msg_count NUMBER;
x_msg_data VARCHAR2(2000);
x_order_header_rec
ASO_ORDER_INT.Order_Header_rec_type;
x_order_line_tbl ASO_ORDER_INT.Order_Line_tbl_type;
p_control_rec ASO_ORDER_INT.control_rec_type;
BEGIN
dbms_application_info.set_client_info('204');
FND_PROFILE.PUT( 'USER_ID', '1001' );
p_control_rec.book_flag := FND_API.G_FALSE;
--p_control_rec.calculate_price := FND_API.G_FALSE;
l_ln_shipment_tbl(1).qte_line_index := 1;
l_ln_shipment_tbl(1).quantity := 1;
l_ln_shipment_tbl(1).operation_code := 'CREATE';
l_ln_shipment_tbl(2).qte_line_index := 2;
l_ln_shipment_tbl(2).order_line_id := 131909;
l_ln_shipment_tbl(2).quantity := 3;
l_ln_shipment_tbl(2).operation_code := 'UPDATE';
ASO_ORDER_INT.UPDATE_order(
P_Api_Version_Number => 1.0,
P_Qte_Rec => l_qte_header_rec,
P_Qte_Line_Tbl => l_qte_line_tbl,
P_Line_Shipment_Tbl => l_ln_shipment_tbl,
P_control_rec => p_control_rec,
X_Order_Header_Rec => x_order_header_rec,
X_Order_Line_Tbl => x_order_line_tbl,
X_Return_Status => x_return_status,
X_Msg_Count => x_msg_count,
X_Msg_Data => x_msg_data
);
end;
Called by
Application Module Type Usage Notes
ASO Form Called in procedure
iSupport
iStore
Service Core
Sales for
Comms