179:
180: ) IS
181:
182: --cust_rel_rec HZ_cust_acct_info_pub.cust_acct_relate_rec_type;
183: cust_rel_rec HZ_CUST_ACCOUNT_V2PUB.cust_acct_relate_rec_type;
184:
185: tmp_var VARCHAR2(2000);
186: i number;
187: tmp_var1 VARCHAR2(2000);
228: x_msg_data);
229: */
230:
231: -- call V2 API.
232: HZ_CUST_ACCOUNT_V2PUB.create_cust_acct_relate (
233: p_cust_acct_relate_rec => cust_rel_rec,
234: x_return_status => x_return_status,
235: x_msg_count => x_msg_count,
236: x_msg_data => x_msg_data
284:
285: ) IS
286:
287: --cust_rel_rec hz_cust_acct_info_pub.cust_acct_relate_rec_type;
288: cust_rel_rec HZ_CUST_ACCOUNT_V2PUB.cust_acct_relate_rec_type;
289: tmp_var VARCHAR2(2000);
290: i number;
291: tmp_var1 VARCHAR2(2000);
292: l_object_version NUMBER;
349: cust_rel_rec.relationship_type := INIT_SWITCH(X_relationship_type);
350:
351: --{Bug Fix: 3237327
352: IF X_Row_Id IS NOT NULL THEN
353: HZ_CUST_ACCOUNT_V2PUB.update_cust_acct_relate (
354: p_cust_acct_relate_rec => cust_rel_rec,
355: p_object_version_number => l_object_version,
356: p_rowid => X_Row_Id,
357: x_return_status => x_return_status,
357: x_return_status => x_return_status,
358: x_msg_count => x_msg_count,
359: x_msg_data => x_msg_data );
360: ELSE
361: HZ_CUST_ACCOUNT_V2PUB.update_cust_acct_relate (
362: p_cust_acct_relate_rec => cust_rel_rec,
363: p_object_version_number => l_object_version,
364: x_return_status => x_return_status,
365: x_msg_count => x_msg_count,