2630: x_msg_count OUT NOCOPY NUMBER,
2631: x_msg_data OUT NOCOPY VARCHAR2
2632: ) IS
2633:
2634: p_control_rec oe_create_account_info.control_rec_type;
2635: p_account_tbl oe_create_account_info.account_tbl;
2636: p_contact_tbl oe_create_account_info.contact_tbl;
2637: p_site_tbl oe_create_account_info.site_tbl_type;
2638: p_line_site_tbl oe_create_account_info.site_tbl_type;
2631: x_msg_data OUT NOCOPY VARCHAR2
2632: ) IS
2633:
2634: p_control_rec oe_create_account_info.control_rec_type;
2635: p_account_tbl oe_create_account_info.account_tbl;
2636: p_contact_tbl oe_create_account_info.contact_tbl;
2637: p_site_tbl oe_create_account_info.site_tbl_type;
2638: p_line_site_tbl oe_create_account_info.site_tbl_type;
2639: p_party_customer_rec oe_create_account_info.party_customer_rec;
2632: ) IS
2633:
2634: p_control_rec oe_create_account_info.control_rec_type;
2635: p_account_tbl oe_create_account_info.account_tbl;
2636: p_contact_tbl oe_create_account_info.contact_tbl;
2637: p_site_tbl oe_create_account_info.site_tbl_type;
2638: p_line_site_tbl oe_create_account_info.site_tbl_type;
2639: p_party_customer_rec oe_create_account_info.party_customer_rec;
2640:
2633:
2634: p_control_rec oe_create_account_info.control_rec_type;
2635: p_account_tbl oe_create_account_info.account_tbl;
2636: p_contact_tbl oe_create_account_info.contact_tbl;
2637: p_site_tbl oe_create_account_info.site_tbl_type;
2638: p_line_site_tbl oe_create_account_info.site_tbl_type;
2639: p_party_customer_rec oe_create_account_info.party_customer_rec;
2640:
2641: l_cust_account_role_id number;
2634: p_control_rec oe_create_account_info.control_rec_type;
2635: p_account_tbl oe_create_account_info.account_tbl;
2636: p_contact_tbl oe_create_account_info.contact_tbl;
2637: p_site_tbl oe_create_account_info.site_tbl_type;
2638: p_line_site_tbl oe_create_account_info.site_tbl_type;
2639: p_party_customer_rec oe_create_account_info.party_customer_rec;
2640:
2641: l_cust_account_role_id number;
2642: l_multiple_sold_to varchar2(32000);
2635: p_account_tbl oe_create_account_info.account_tbl;
2636: p_contact_tbl oe_create_account_info.contact_tbl;
2637: p_site_tbl oe_create_account_info.site_tbl_type;
2638: p_line_site_tbl oe_create_account_info.site_tbl_type;
2639: p_party_customer_rec oe_create_account_info.party_customer_rec;
2640:
2641: l_cust_account_role_id number;
2642: l_multiple_sold_to varchar2(32000);
2643: l_sold_to_org_id VARCHAR2(80);
2675:
2676: l_debug_level NUMBER := oe_debug_pub.g_debug_level;
2677:
2678: BEGIN
2679: --oe_create_account_info.set_debug_on();
2680:
2681: IF l_debug_level > 0 THEN
2682: oe_debug_pub.add(' AAC:Inside Process Order: Automatic Account Creation');
2683: oe_debug_pub.add(' operation='||p_header_rec.operation);
3230: IF l_debug_level > 0 THEN
3231: oe_debug_pub.add('AAC: before calling Create_Account_layer for header level site creation{ ');
3232: END IF;
3233:
3234: oe_create_account_info.Create_Account_Layer(
3235: p_control_rec =>p_control_rec
3236: ,x_return_status =>x_return_status
3237: ,x_msg_count =>x_msg_count
3238: ,x_msg_data =>x_Msg_data
3960:
3961: IF l_debug_level > 0 THEN
3962: oe_debug_pub.add('AAC: line: calling Create_Account_Layer...');
3963: END IF;
3964: oe_create_account_info.Create_Account_Layer(
3965: p_control_rec =>p_control_rec
3966: ,x_return_status =>x_return_status
3967: ,x_msg_count =>x_msg_count
3968: ,x_msg_data =>x_Msg_data