How to create a sales order with several Model (PTO) lines by API?
Hi
By using process_order, I can create a sales order with one PTO (1 MODEL line with several OPTION lines).
But it fail to create several PTO.
The following piece of code for populating lines table.
The first MODEL and OPTION lines are been created as expected, But second MODEL is created as CLASS.
An additional OPTION line is been created automatically somehow too.
Line# | Item Type |
---|---|
1.1 | MODEL |
1.1.1 | OPTION |
1.1.1 | CLASS |
1.1.2 | OPTION |
1.1.3 | OPTION |
-- ATO Model
l_line_tbl_index :=1;
-- Changed attributes
l_line_tbl(l_line_tbl_index) := OE_ORDER_PUB.G_MISS_LINE_REC;
l_line_tbl(l_line_tbl_index).ordered_quantity := 1;