362: --## p_cust_acct_roles_rec hz_customer_accounts_pub.cust_acct_roles_rec_type;
363: --## p_role_resp_rec hz_customer_accounts_pub.role_resp_rec_type;
364:
365: -- The below two record definitions are for V2 APIs
366: p_cust_acct_roles_rec HZ_CUST_ACCOUNT_ROLE_V2PUB.cust_account_role_rec_type;
367: p_role_resp_rec HZ_CUST_ACCOUNT_ROLE_V2PUB.role_responsibility_rec_type;
368:
369: l_responsibility_id NUMBER;
370:
363: --## p_role_resp_rec hz_customer_accounts_pub.role_resp_rec_type;
364:
365: -- The below two record definitions are for V2 APIs
366: p_cust_acct_roles_rec HZ_CUST_ACCOUNT_ROLE_V2PUB.cust_account_role_rec_type;
367: p_role_resp_rec HZ_CUST_ACCOUNT_ROLE_V2PUB.role_responsibility_rec_type;
368:
369: l_responsibility_id NUMBER;
370:
371: CURSOR C_Get_Resp(role_id NUMBER, role_type VARCHAR2) IS
425: -- old TCA API call
426: -- hz_customer_accounts_pub.create_cust_acct_roles.
427:
428:
429: HZ_CUST_ACCOUNT_ROLE_V2PUB.create_cust_account_role (
430: p_init_msg_list => FND_API.G_FALSE,
431: p_cust_account_role_rec => p_cust_acct_roles_rec,
432: x_cust_account_role_id => x_cust_acct_role_id,
433: x_return_status => l_return_status,
469: -- old TCA API call
470: -- HZ_CUSTOMER_ACCOUNTS_PUB.create_role_resp.
471:
472: -- version 2 API
473: HZ_CUST_ACCOUNT_ROLE_V2PUB.create_role_responsibility (
474: p_init_msg_list => FND_API.G_FALSE,
475: p_role_responsibility_rec => p_role_resp_rec,
476: x_responsibility_id => l_responsibility_id,
477: x_return_status => l_return_status,