API oe_order_pub.process_order to split SO line giving issue, it creating extra lines sporadically
Hi
I am working on a custom solution to split sales order lines through API.
I am calling the oe_order_pub.process_order API in a conditional loop like below where we are passing line_id, header_id, new_quantity, item_id for a bunch of orders and lines and for each header_id, line_id, item_id combination and creating records in cursor index (vl_line_tbl_index)
Loop --starts
IF (vl_line_tbl_index = 1)
THEN
FND_FILE.PUT_LINE (FND_FILE.LOG,'1 Entered for lineseq: '||vl_line_tbl_index);
vl_header_rec_in := oe_order_pub.g_miss_header_rec;