20: -- This procedure use the input order information construct information
21: -- for an order header.
22: --
23: -- PARAMETERS
24: -- p_hdr in oe_order_pub.header_rec_type
25: -- x_return_status out varchar2
26: --
27: -- NOTES
28: ---------------------------------------------------------------------
44: END IF;
45: -- Mapping, default and validation rules here
46: -- Since we can not use the OM defaulting rule. We just default order type based on the cust account id
47: /*
48: IF oe_order_pub.g_hdr.order_type_id is null or
49: oe_order_pub.g_hdr.order_type_id = FND_API.g_miss_num THEN
50:
51: OPEN order_type_csr(oe_order_pub.g_hdr.sold_to_org_id);
52: FETCH order_type_csr into oe_order_pub.g_hdr.order_type_id;
45: -- Mapping, default and validation rules here
46: -- Since we can not use the OM defaulting rule. We just default order type based on the cust account id
47: /*
48: IF oe_order_pub.g_hdr.order_type_id is null or
49: oe_order_pub.g_hdr.order_type_id = FND_API.g_miss_num THEN
50:
51: OPEN order_type_csr(oe_order_pub.g_hdr.sold_to_org_id);
52: FETCH order_type_csr into oe_order_pub.g_hdr.order_type_id;
53: CLOSE order_type_csr;
47: /*
48: IF oe_order_pub.g_hdr.order_type_id is null or
49: oe_order_pub.g_hdr.order_type_id = FND_API.g_miss_num THEN
50:
51: OPEN order_type_csr(oe_order_pub.g_hdr.sold_to_org_id);
52: FETCH order_type_csr into oe_order_pub.g_hdr.order_type_id;
53: CLOSE order_type_csr;
54: END IF;
55:
48: IF oe_order_pub.g_hdr.order_type_id is null or
49: oe_order_pub.g_hdr.order_type_id = FND_API.g_miss_num THEN
50:
51: OPEN order_type_csr(oe_order_pub.g_hdr.sold_to_org_id);
52: FETCH order_type_csr into oe_order_pub.g_hdr.order_type_id;
53: CLOSE order_type_csr;
54: END IF;
55:
56: OZF_CHARGEBACK_ATTRMAP_PUB.Create_Global_Header(
60: ,p_validation_level => FND_API.G_VALID_LEVEL_FULL
61: ,x_return_status => l_return_status
62: ,x_msg_data => l_msg_data
63: ,x_msg_count => l_msg_count
64: ,xp_hdr => oe_order_pub.g_hdr
65: ,p_interface_id => p_hdr.chargeback_int_id
66: );
67: */
68:
103: -- This procedure use the input order information construct information
104: -- for an order header.
105: --
106: -- PARAMETERS
107: -- p_line in oe_order_pub.line_rec_type
108: -- x_return_status out NOCOPY varchar2
109: --
110: -- NOTES
111: ---------------------------------------------------------------------
132: ,p_validation_level => FND_API.G_VALID_LEVEL_FULL
133: ,x_return_status => l_return_status
134: ,x_msg_data => l_msg_data
135: ,x_msg_count => l_msg_count
136: ,xp_line => oe_order_pub.g_line
137: ,p_interface_id => p_line.chargeback_int_id
138: );
139: */
140: WF_EVENT.AddParameterToList(
459: IF xp_line_tbl(I).line_type_code = G_HDR_TYPE THEN
460: IF OZF_DEBUG_LOW_ON THEN
461: ozf_utility_PVT.debug_message('before build header' );
462: END IF;
463: oe_order_pub.g_hdr := g_header_rec;
464: build_order_header( p_hdr => xp_line_tbl(I),
465: x_return_status => l_return_status);
466: IF l_return_status = FND_API.g_ret_sts_error THEN
467: RAISE FND_API.g_exc_error;
481: -- It has to be line
482: IF OZF_DEBUG_LOW_ON THEN
483: ozf_utility_PVT.debug_message('before build line' );
484: END IF;
485: oe_order_pub.g_line := g_line_rec_tbl(I);
486: build_order_line( p_line => xp_line_tbl(I),
487: x_return_status => l_return_status);
488: IF l_return_status = FND_API.g_ret_sts_error THEN
489: RAISE FND_API.g_exc_error;