DBA Data[Home] [Help]

APPS.HZ_AIA_CUSTOM_PKG dependencies on FND_API

Line 9: IF(px_org_cust.organization_obj.duns_number_c = FND_API.G_MISS_CHAR) THEN

5:
6: PROCEDURE remove_gmiss(
7: px_org_cust IN OUT NOCOPY HZ_ORG_CUST_BO) IS
8: BEGIN
9: IF(px_org_cust.organization_obj.duns_number_c = FND_API.G_MISS_CHAR) THEN
10: px_org_cust.organization_obj.duns_number_c := NULL;
11: END IF;
12: IF(px_org_cust.organization_obj.contact_objs IS NOT NULL AND
13: px_org_cust.organization_obj.contact_objs.COUNT > 0) THEN

Line 15: IF(px_org_cust.organization_obj.contact_objs(i).job_title = FND_API.G_MISS_CHAR) THEN

11: END IF;
12: IF(px_org_cust.organization_obj.contact_objs IS NOT NULL AND
13: px_org_cust.organization_obj.contact_objs.COUNT > 0) THEN
14: FOR i IN 1..px_org_cust.organization_obj.contact_objs.COUNT LOOP
15: IF(px_org_cust.organization_obj.contact_objs(i).job_title = FND_API.G_MISS_CHAR) THEN
16: px_org_cust.organization_obj.contact_objs(i).job_title := null;
17: END IF;
18: -- clear g_miss_char in person profile object
19: IF(px_org_cust.organization_obj.contact_objs(i).person_profile_obj IS NOT NULL) THEN

Line 20: IF(px_org_cust.organization_obj.contact_objs(i).person_profile_obj.person_pre_name_adjunct = FND_API.G_MISS_CHAR) THEN

16: px_org_cust.organization_obj.contact_objs(i).job_title := null;
17: END IF;
18: -- clear g_miss_char in person profile object
19: IF(px_org_cust.organization_obj.contact_objs(i).person_profile_obj IS NOT NULL) THEN
20: IF(px_org_cust.organization_obj.contact_objs(i).person_profile_obj.person_pre_name_adjunct = FND_API.G_MISS_CHAR) THEN
21: px_org_cust.organization_obj.contact_objs(i).person_profile_obj.person_pre_name_adjunct:= null;
22: END IF;
23: IF(px_org_cust.organization_obj.contact_objs(i).person_profile_obj.person_middle_name = FND_API.G_MISS_CHAR) THEN
24: px_org_cust.organization_obj.contact_objs(i).person_profile_obj.person_middle_name := null;

Line 23: IF(px_org_cust.organization_obj.contact_objs(i).person_profile_obj.person_middle_name = FND_API.G_MISS_CHAR) THEN

19: IF(px_org_cust.organization_obj.contact_objs(i).person_profile_obj IS NOT NULL) THEN
20: IF(px_org_cust.organization_obj.contact_objs(i).person_profile_obj.person_pre_name_adjunct = FND_API.G_MISS_CHAR) THEN
21: px_org_cust.organization_obj.contact_objs(i).person_profile_obj.person_pre_name_adjunct:= null;
22: END IF;
23: IF(px_org_cust.organization_obj.contact_objs(i).person_profile_obj.person_middle_name = FND_API.G_MISS_CHAR) THEN
24: px_org_cust.organization_obj.contact_objs(i).person_profile_obj.person_middle_name := null;
25: END IF;
26: IF(px_org_cust.organization_obj.contact_objs(i).person_profile_obj.person_title = FND_API.G_MISS_CHAR) THEN
27: px_org_cust.organization_obj.contact_objs(i).person_profile_obj.person_title := null;

Line 26: IF(px_org_cust.organization_obj.contact_objs(i).person_profile_obj.person_title = FND_API.G_MISS_CHAR) THEN

22: END IF;
23: IF(px_org_cust.organization_obj.contact_objs(i).person_profile_obj.person_middle_name = FND_API.G_MISS_CHAR) THEN
24: px_org_cust.organization_obj.contact_objs(i).person_profile_obj.person_middle_name := null;
25: END IF;
26: IF(px_org_cust.organization_obj.contact_objs(i).person_profile_obj.person_title = FND_API.G_MISS_CHAR) THEN
27: px_org_cust.organization_obj.contact_objs(i).person_profile_obj.person_title := null;
28: END IF;
29: IF(px_org_cust.organization_obj.contact_objs(i).person_profile_obj.known_as = FND_API.G_MISS_CHAR) THEN
30: px_org_cust.organization_obj.contact_objs(i).person_profile_obj.known_as := null;

Line 29: IF(px_org_cust.organization_obj.contact_objs(i).person_profile_obj.known_as = FND_API.G_MISS_CHAR) THEN

25: END IF;
26: IF(px_org_cust.organization_obj.contact_objs(i).person_profile_obj.person_title = FND_API.G_MISS_CHAR) THEN
27: px_org_cust.organization_obj.contact_objs(i).person_profile_obj.person_title := null;
28: END IF;
29: IF(px_org_cust.organization_obj.contact_objs(i).person_profile_obj.known_as = FND_API.G_MISS_CHAR) THEN
30: px_org_cust.organization_obj.contact_objs(i).person_profile_obj.known_as := null;
31: END IF;
32: IF(px_org_cust.organization_obj.contact_objs(i).person_profile_obj.gender = FND_API.G_MISS_CHAR) THEN
33: px_org_cust.organization_obj.contact_objs(i).person_profile_obj.gender := null;

Line 32: IF(px_org_cust.organization_obj.contact_objs(i).person_profile_obj.gender = FND_API.G_MISS_CHAR) THEN

28: END IF;
29: IF(px_org_cust.organization_obj.contact_objs(i).person_profile_obj.known_as = FND_API.G_MISS_CHAR) THEN
30: px_org_cust.organization_obj.contact_objs(i).person_profile_obj.known_as := null;
31: END IF;
32: IF(px_org_cust.organization_obj.contact_objs(i).person_profile_obj.gender = FND_API.G_MISS_CHAR) THEN
33: px_org_cust.organization_obj.contact_objs(i).person_profile_obj.gender := null;
34: END IF;
35: END IF;
36: -- clear g_miss_char in contact's email

Line 40: IF(px_org_cust.organization_obj.contact_objs(i).email_objs(j).email_address = FND_API.G_MISS_CHAR) THEN

36: -- clear g_miss_char in contact's email
37: IF(px_org_cust.organization_obj.contact_objs(i).email_objs IS NOT NULL AND
38: px_org_cust.organization_obj.contact_objs(i).email_objs.COUNT > 0) THEN
39: FOR j IN 1..px_org_cust.organization_obj.contact_objs(i).email_objs.COUNT LOOP
40: IF(px_org_cust.organization_obj.contact_objs(i).email_objs(j).email_address = FND_API.G_MISS_CHAR) THEN
41: px_org_cust.organization_obj.contact_objs(i).email_objs(j).email_address := NULL;
42: END IF;
43: END LOOP;
44: END IF;

Line 49: IF(px_org_cust.organization_obj.contact_objs(i).web_objs(j).url = FND_API.G_MISS_CHAR) THEN

45: -- clear g_miss_char in contact's web
46: IF(px_org_cust.organization_obj.contact_objs(i).web_objs IS NOT NULL AND
47: px_org_cust.organization_obj.contact_objs(i).web_objs.COUNT > 0) THEN
48: FOR j IN 1..px_org_cust.organization_obj.contact_objs(i).web_objs.COUNT LOOP
49: IF(px_org_cust.organization_obj.contact_objs(i).web_objs(j).url = FND_API.G_MISS_CHAR) THEN
50: px_org_cust.organization_obj.contact_objs(i).web_objs(j).url := NULL;
51: END IF;
52: END LOOP;
53: END IF;

Line 60: IF(px_org_cust.organization_obj.party_site_objs(i).location_obj.address2 = FND_API.G_MISS_CHAR) THEN

56: IF(px_org_cust.organization_obj.party_site_objs IS NOT NULL AND
57: px_org_cust.organization_obj.party_site_objs.COUNT > 0) THEN
58: FOR i IN 1..px_org_cust.organization_obj.party_site_objs.COUNT LOOP
59: IF(px_org_cust.organization_obj.party_site_objs(i).location_obj IS NOT NULL) THEN
60: IF(px_org_cust.organization_obj.party_site_objs(i).location_obj.address2 = FND_API.G_MISS_CHAR) THEN
61: px_org_cust.organization_obj.party_site_objs(i).location_obj.address2 := NULL;
62: END IF;
63: IF(px_org_cust.organization_obj.party_site_objs(i).location_obj.address3 = FND_API.G_MISS_CHAR) THEN
64: px_org_cust.organization_obj.party_site_objs(i).location_obj.address3 := NULL;

Line 63: IF(px_org_cust.organization_obj.party_site_objs(i).location_obj.address3 = FND_API.G_MISS_CHAR) THEN

59: IF(px_org_cust.organization_obj.party_site_objs(i).location_obj IS NOT NULL) THEN
60: IF(px_org_cust.organization_obj.party_site_objs(i).location_obj.address2 = FND_API.G_MISS_CHAR) THEN
61: px_org_cust.organization_obj.party_site_objs(i).location_obj.address2 := NULL;
62: END IF;
63: IF(px_org_cust.organization_obj.party_site_objs(i).location_obj.address3 = FND_API.G_MISS_CHAR) THEN
64: px_org_cust.organization_obj.party_site_objs(i).location_obj.address3 := NULL;
65: END IF;
66: IF(px_org_cust.organization_obj.party_site_objs(i).location_obj.address4 = FND_API.G_MISS_CHAR) THEN
67: px_org_cust.organization_obj.party_site_objs(i).location_obj.address4 := NULL;

Line 66: IF(px_org_cust.organization_obj.party_site_objs(i).location_obj.address4 = FND_API.G_MISS_CHAR) THEN

62: END IF;
63: IF(px_org_cust.organization_obj.party_site_objs(i).location_obj.address3 = FND_API.G_MISS_CHAR) THEN
64: px_org_cust.organization_obj.party_site_objs(i).location_obj.address3 := NULL;
65: END IF;
66: IF(px_org_cust.organization_obj.party_site_objs(i).location_obj.address4 = FND_API.G_MISS_CHAR) THEN
67: px_org_cust.organization_obj.party_site_objs(i).location_obj.address4 := NULL;
68: END IF;
69: IF(px_org_cust.organization_obj.party_site_objs(i).location_obj.city = FND_API.G_MISS_CHAR) THEN
70: px_org_cust.organization_obj.party_site_objs(i).location_obj.city := NULL;

Line 69: IF(px_org_cust.organization_obj.party_site_objs(i).location_obj.city = FND_API.G_MISS_CHAR) THEN

65: END IF;
66: IF(px_org_cust.organization_obj.party_site_objs(i).location_obj.address4 = FND_API.G_MISS_CHAR) THEN
67: px_org_cust.organization_obj.party_site_objs(i).location_obj.address4 := NULL;
68: END IF;
69: IF(px_org_cust.organization_obj.party_site_objs(i).location_obj.city = FND_API.G_MISS_CHAR) THEN
70: px_org_cust.organization_obj.party_site_objs(i).location_obj.city := NULL;
71: END IF;
72: IF(px_org_cust.organization_obj.party_site_objs(i).location_obj.county = FND_API.G_MISS_CHAR) THEN
73: px_org_cust.organization_obj.party_site_objs(i).location_obj.county := NULL;

Line 72: IF(px_org_cust.organization_obj.party_site_objs(i).location_obj.county = FND_API.G_MISS_CHAR) THEN

68: END IF;
69: IF(px_org_cust.organization_obj.party_site_objs(i).location_obj.city = FND_API.G_MISS_CHAR) THEN
70: px_org_cust.organization_obj.party_site_objs(i).location_obj.city := NULL;
71: END IF;
72: IF(px_org_cust.organization_obj.party_site_objs(i).location_obj.county = FND_API.G_MISS_CHAR) THEN
73: px_org_cust.organization_obj.party_site_objs(i).location_obj.county := NULL;
74: END IF;
75: IF(px_org_cust.organization_obj.party_site_objs(i).location_obj.postal_code = FND_API.G_MISS_CHAR) THEN
76: px_org_cust.organization_obj.party_site_objs(i).location_obj.postal_code := NULL;

Line 75: IF(px_org_cust.organization_obj.party_site_objs(i).location_obj.postal_code = FND_API.G_MISS_CHAR) THEN

71: END IF;
72: IF(px_org_cust.organization_obj.party_site_objs(i).location_obj.county = FND_API.G_MISS_CHAR) THEN
73: px_org_cust.organization_obj.party_site_objs(i).location_obj.county := NULL;
74: END IF;
75: IF(px_org_cust.organization_obj.party_site_objs(i).location_obj.postal_code = FND_API.G_MISS_CHAR) THEN
76: px_org_cust.organization_obj.party_site_objs(i).location_obj.postal_code := NULL;
77: END IF;
78: IF(px_org_cust.organization_obj.party_site_objs(i).location_obj.state = FND_API.G_MISS_CHAR) THEN
79: px_org_cust.organization_obj.party_site_objs(i).location_obj.state := NULL;

Line 78: IF(px_org_cust.organization_obj.party_site_objs(i).location_obj.state = FND_API.G_MISS_CHAR) THEN

74: END IF;
75: IF(px_org_cust.organization_obj.party_site_objs(i).location_obj.postal_code = FND_API.G_MISS_CHAR) THEN
76: px_org_cust.organization_obj.party_site_objs(i).location_obj.postal_code := NULL;
77: END IF;
78: IF(px_org_cust.organization_obj.party_site_objs(i).location_obj.state = FND_API.G_MISS_CHAR) THEN
79: px_org_cust.organization_obj.party_site_objs(i).location_obj.state := NULL;
80: END IF;
81: IF(px_org_cust.organization_obj.party_site_objs(i).location_obj.province = FND_API.G_MISS_CHAR) THEN
82: px_org_cust.organization_obj.party_site_objs(i).location_obj.province := NULL;

Line 81: IF(px_org_cust.organization_obj.party_site_objs(i).location_obj.province = FND_API.G_MISS_CHAR) THEN

77: END IF;
78: IF(px_org_cust.organization_obj.party_site_objs(i).location_obj.state = FND_API.G_MISS_CHAR) THEN
79: px_org_cust.organization_obj.party_site_objs(i).location_obj.state := NULL;
80: END IF;
81: IF(px_org_cust.organization_obj.party_site_objs(i).location_obj.province = FND_API.G_MISS_CHAR) THEN
82: px_org_cust.organization_obj.party_site_objs(i).location_obj.province := NULL;
83: END IF;
84: END IF;
85: END LOOP;

Line 90: IF(px_org_cust.organization_obj.email_objs(i).email_address = FND_API.G_MISS_CHAR) THEN

86: END IF;
87: IF(px_org_cust.organization_obj.email_objs IS NOT NULL AND
88: px_org_cust.organization_obj.email_objs.COUNT > 0) THEN
89: FOR i IN 1..px_org_cust.organization_obj.email_objs.COUNT LOOP
90: IF(px_org_cust.organization_obj.email_objs(i).email_address = FND_API.G_MISS_CHAR) THEN
91: px_org_cust.organization_obj.email_objs(i).email_address := NULL;
92: END IF;
93: END LOOP;
94: END IF;

Line 98: IF(px_org_cust.organization_obj.web_objs(i).url = FND_API.G_MISS_CHAR) THEN

94: END IF;
95: IF(px_org_cust.organization_obj.web_objs IS NOT NULL AND
96: px_org_cust.organization_obj.web_objs.COUNT > 0) THEN
97: FOR i IN 1..px_org_cust.organization_obj.web_objs.COUNT LOOP
98: IF(px_org_cust.organization_obj.web_objs(i).url = FND_API.G_MISS_CHAR) THEN
99: px_org_cust.organization_obj.web_objs(i).url := NULL;
100: END IF;
101: END LOOP;
102: END IF;

Line 103: IF(px_org_cust.organization_obj.duns_number_c = FND_API.G_MISS_CHAR) THEN

99: px_org_cust.organization_obj.web_objs(i).url := NULL;
100: END IF;
101: END LOOP;
102: END IF;
103: IF(px_org_cust.organization_obj.duns_number_c = FND_API.G_MISS_CHAR) THEN
104: px_org_cust.organization_obj.duns_number_c := NULL;
105: END IF;
106: END remove_gmiss;
107:

Line 262: WHEN fnd_api.g_exc_error THEN

258: CLOSE other_ou;
259: END LOOP;
260: END IF;
261: EXCEPTION
262: WHEN fnd_api.g_exc_error THEN
263: IF fnd_log.level_procedure>=fnd_log.g_current_runtime_level THEN
264: hz_utility_v2pub.debug(p_message=>'get_acct_merge_obj(-)',
265: p_prefix=>l_debug_prefix,
266: p_msg_level=>fnd_log.level_procedure);

Line 268: WHEN fnd_api.g_exc_unexpected_error THEN

264: hz_utility_v2pub.debug(p_message=>'get_acct_merge_obj(-)',
265: p_prefix=>l_debug_prefix,
266: p_msg_level=>fnd_log.level_procedure);
267: END IF;
268: WHEN fnd_api.g_exc_unexpected_error THEN
269: IF fnd_log.level_procedure>=fnd_log.g_current_runtime_level THEN
270: hz_utility_v2pub.debug(p_message=>'get_acct_merge_obj(-)',
271: p_prefix=>l_debug_prefix,
272: p_msg_level=>fnd_log.level_procedure);

Line 329: p_init_msg_list => fnd_api.g_false,

325: x_org_cust_objs.EXTEND;
326: x_org_cust_objs(i) := HZ_ORG_CUST_BO(null, null, null);
327:
328: HZ_EXTRACT_ORGANIZATION_BO_PVT.get_organization_bo(
329: p_init_msg_list => fnd_api.g_false,
330: p_organization_id => l_org_id,
331: p_action_type => null,
332: x_organization_obj => x_org_cust_objs(i).organization_obj,
333: x_return_status => l_return_status,

Line 337: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN

333: x_return_status => l_return_status,
334: x_msg_count => l_msg_count,
335: x_msg_data => l_msg_data);
336:
337: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
338: RAISE FND_API.G_EXC_ERROR;
339: END IF;
340:
341: HZ_EXTRACT_CUST_ACCT_BO_PVT.get_cust_acct_bos(

Line 338: RAISE FND_API.G_EXC_ERROR;

334: x_msg_count => l_msg_count,
335: x_msg_data => l_msg_data);
336:
337: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
338: RAISE FND_API.G_EXC_ERROR;
339: END IF;
340:
341: HZ_EXTRACT_CUST_ACCT_BO_PVT.get_cust_acct_bos(
342: p_init_msg_list => fnd_api.g_false,

Line 342: p_init_msg_list => fnd_api.g_false,

338: RAISE FND_API.G_EXC_ERROR;
339: END IF;
340:
341: HZ_EXTRACT_CUST_ACCT_BO_PVT.get_cust_acct_bos(
342: p_init_msg_list => fnd_api.g_false,
343: p_parent_id => l_org_id,
344: p_cust_acct_id => l_ca_id,
345: p_action_type => null,
346: x_cust_acct_objs => x_org_cust_objs(i).account_objs,

Line 351: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN

347: x_return_status => l_return_status,
348: x_msg_count => l_msg_count,
349: x_msg_data => l_msg_data);
350:
351: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
352: RAISE FND_API.G_EXC_ERROR;
353: END IF;
354: i := i + 1;
355: END LOOP;

Line 352: RAISE FND_API.G_EXC_ERROR;

348: x_msg_count => l_msg_count,
349: x_msg_data => l_msg_data);
350:
351: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
352: RAISE FND_API.G_EXC_ERROR;
353: END IF;
354: i := i + 1;
355: END LOOP;
356: CLOSE get_related_org_cust;

Line 358: WHEN fnd_api.g_exc_error THEN

354: i := i + 1;
355: END LOOP;
356: CLOSE get_related_org_cust;
357: EXCEPTION
358: WHEN fnd_api.g_exc_error THEN
359: IF fnd_log.level_procedure>=fnd_log.g_current_runtime_level THEN
360: hz_utility_v2pub.debug(p_message=>'get_related_org_cust_objs(-)',
361: p_prefix=>l_debug_prefix,
362: p_msg_level=>fnd_log.level_procedure);

Line 364: WHEN fnd_api.g_exc_unexpected_error THEN

360: hz_utility_v2pub.debug(p_message=>'get_related_org_cust_objs(-)',
361: p_prefix=>l_debug_prefix,
362: p_msg_level=>fnd_log.level_procedure);
363: END IF;
364: WHEN fnd_api.g_exc_unexpected_error THEN
365: IF fnd_log.level_procedure>=fnd_log.g_current_runtime_level THEN
366: hz_utility_v2pub.debug(p_message=>'get_related_org_cust_objs(-)',
367: p_prefix=>l_debug_prefix,
368: p_msg_level=>fnd_log.level_procedure);

Line 535: WHEN fnd_api.g_exc_error THEN

531: END LOOP;
532: CLOSE get_merge_parties;
533: END IF;
534: EXCEPTION
535: WHEN fnd_api.g_exc_error THEN
536: IF fnd_log.level_procedure>=fnd_log.g_current_runtime_level THEN
537: hz_utility_v2pub.debug(p_message=>'get_party_merge_objs(-)',
538: p_prefix=>l_debug_prefix,
539: p_msg_level=>fnd_log.level_procedure);

Line 541: WHEN fnd_api.g_exc_unexpected_error THEN

537: hz_utility_v2pub.debug(p_message=>'get_party_merge_objs(-)',
538: p_prefix=>l_debug_prefix,
539: p_msg_level=>fnd_log.level_procedure);
540: END IF;
541: WHEN fnd_api.g_exc_unexpected_error THEN
542: IF fnd_log.level_procedure>=fnd_log.g_current_runtime_level THEN
543: hz_utility_v2pub.debug(p_message=>'get_party_merge_objs(-)',
544: p_prefix=>l_debug_prefix,
545: p_msg_level=>fnd_log.level_procedure);

Line 560: p_validate_bo_flag IN VARCHAR2 := fnd_api.g_true,

556: END IF;
557: END get_party_merge_objs;
558:
559: PROCEDURE sync_acct_update(
560: p_validate_bo_flag IN VARCHAR2 := fnd_api.g_true,
561: p_org_cust_obj IN HZ_ORG_CUST_BO,
562: p_created_by_module IN VARCHAR2,
563: p_obj_source IN VARCHAR2 := null,
564: x_return_status OUT NOCOPY VARCHAR2,

Line 617: x_return_status := FND_API.G_RET_STS_SUCCESS;

613: BEGIN
614: SAVEPOINT do_sync_acct_update;
615:
616: -- initialize API return status to success.
617: x_return_status := FND_API.G_RET_STS_SUCCESS;
618:
619: -- Debug info.
620: IF fnd_log.level_procedure>=fnd_log.g_current_runtime_level THEN
621: hz_utility_v2pub.debug(p_message=>'sync_acct_update(+)',

Line 635: p_return_obj_flag => fnd_api.g_true,

631: HZ_ORGANIZATION_BO_PUB.update_organization_bo(
632: p_organization_obj => l_org_obj,
633: p_created_by_module => p_created_by_module,
634: p_obj_source => p_obj_source,
635: p_return_obj_flag => fnd_api.g_true,
636: x_return_status => x_return_status,
637: x_messages => x_messages,
638: x_return_obj => l_return_org_obj,
639: x_organization_id => l_organization_id,

Line 644: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN

640: x_organization_os => l_organization_os,
641: x_organization_osr => l_organization_osr
642: );
643:
644: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN
645: RAISE fnd_api.g_exc_error;
646: END IF;
647:
648: l_input_acct_obj := p_org_cust_obj.account_objs(1);

Line 645: RAISE fnd_api.g_exc_error;

641: x_organization_osr => l_organization_osr
642: );
643:
644: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN
645: RAISE fnd_api.g_exc_error;
646: END IF;
647:
648: l_input_acct_obj := p_org_cust_obj.account_objs(1);
649:

Line 684: p_return_obj_flag => fnd_api.g_true,

680: HZ_ORG_CUST_BO_PUB.update_org_cust_bo(
681: p_org_cust_obj => l_org_cust_bo,
682: p_created_by_module => p_created_by_module,
683: p_obj_source => p_obj_source,
684: p_return_obj_flag => fnd_api.g_true,
685: x_return_status => x_return_status,
686: x_messages => x_messages,
687: x_return_obj => l_return_obj,
688: x_organization_id => l_organization_id

Line 691: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN

687: x_return_obj => l_return_obj,
688: x_organization_id => l_organization_id
689: );
690:
691: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN
692: RAISE fnd_api.g_exc_error;
693: END IF;
694:
695: x_return_obj := l_return_obj;

Line 692: RAISE fnd_api.g_exc_error;

688: x_organization_id => l_organization_id
689: );
690:
691: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN
692: RAISE fnd_api.g_exc_error;
693: END IF;
694:
695: x_return_obj := l_return_obj;
696: x_return_obj.organization_obj := l_return_org_obj;

Line 706: WHEN fnd_api.g_exc_error THEN

702: p_prefix=>l_debug_prefix,
703: p_msg_level=>fnd_log.level_procedure);
704: END IF;
705: EXCEPTION
706: WHEN fnd_api.g_exc_error THEN
707: ROLLBACK TO do_sync_acct_update;
708:
709: x_return_status := fnd_api.g_ret_sts_error;
710:

Line 709: x_return_status := fnd_api.g_ret_sts_error;

705: EXCEPTION
706: WHEN fnd_api.g_exc_error THEN
707: ROLLBACK TO do_sync_acct_update;
708:
709: x_return_status := fnd_api.g_ret_sts_error;
710:
711: IF fnd_log.level_procedure>=fnd_log.g_current_runtime_level THEN
712: hz_utility_v2pub.debug(p_message=>'sync_acct_update(-)',
713: p_prefix=>l_debug_prefix,

Line 716: WHEN fnd_api.g_exc_unexpected_error THEN

712: hz_utility_v2pub.debug(p_message=>'sync_acct_update(-)',
713: p_prefix=>l_debug_prefix,
714: p_msg_level=>fnd_log.level_procedure);
715: END IF;
716: WHEN fnd_api.g_exc_unexpected_error THEN
717: ROLLBACK TO do_sync_acct_update;
718:
719: x_return_status := fnd_api.g_ret_sts_error;
720:

Line 719: x_return_status := fnd_api.g_ret_sts_error;

715: END IF;
716: WHEN fnd_api.g_exc_unexpected_error THEN
717: ROLLBACK TO do_sync_acct_update;
718:
719: x_return_status := fnd_api.g_ret_sts_error;
720:
721: IF fnd_log.level_procedure>=fnd_log.g_current_runtime_level THEN
722: hz_utility_v2pub.debug(p_message=>'sync_acct_update(-)',
723: p_prefix=>l_debug_prefix,

Line 729: x_return_status := fnd_api.g_ret_sts_unexp_error;

725: END IF;
726: WHEN OTHERS THEN
727: ROLLBACK TO do_sync_acct_update;
728:
729: x_return_status := fnd_api.g_ret_sts_unexp_error;
730:
731: fnd_message.set_name('AR', 'HZ_API_OTHERS_EXCEP');
732: fnd_message.set_token('ERROR' ,SQLERRM);
733: fnd_msg_pub.add;

Line 743: p_validate_bo_flag IN VARCHAR2 := fnd_api.g_true,

739: END IF;
740: END sync_acct_update;
741:
742: PROCEDURE sync_acct_order(
743: p_validate_bo_flag IN VARCHAR2 := fnd_api.g_true,
744: p_org_cust_obj IN HZ_ORG_CUST_BO,
745: p_created_by_module IN VARCHAR2,
746: p_obj_source IN VARCHAR2 := null,
747: x_return_status OUT NOCOPY VARCHAR2,

Line 820: x_return_status := FND_API.G_RET_STS_SUCCESS;

816: BEGIN
817: SAVEPOINT do_sync_acct_order;
818:
819: -- initialize API return status to success.
820: x_return_status := FND_API.G_RET_STS_SUCCESS;
821:
822: -- Debug info.
823: IF fnd_log.level_procedure>=fnd_log.g_current_runtime_level THEN
824: hz_utility_v2pub.debug(p_message=>'sync_acct_order(+)',

Line 838: p_return_obj_flag => fnd_api.g_true,

834: p_validate_bo_flag => p_validate_bo_flag,
835: p_organization_obj => l_org_obj,
836: p_created_by_module => p_created_by_module,
837: p_obj_source => p_obj_source,
838: p_return_obj_flag => fnd_api.g_true,
839: x_return_status => x_return_status,
840: x_messages => x_messages,
841: x_return_obj => l_return_org_obj,
842: x_organization_id => l_organization_id,

Line 847: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN

843: x_organization_os => l_organization_os,
844: x_organization_osr => l_organization_osr
845: );
846:
847: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN
848: RAISE fnd_api.g_exc_error;
849: END IF;
850:
851: x_return_obj.organization_obj := l_return_org_obj;

Line 848: RAISE fnd_api.g_exc_error;

844: x_organization_osr => l_organization_osr
845: );
846:
847: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN
848: RAISE fnd_api.g_exc_error;
849: END IF;
850:
851: x_return_obj.organization_obj := l_return_org_obj;
852:

Line 955: p_return_obj_flag => fnd_api.g_true,

951: p_validate_bo_flag => p_validate_bo_flag,
952: p_org_cust_obj => l_org_cust_bo,
953: p_created_by_module => p_created_by_module,
954: p_obj_source => p_obj_source,
955: p_return_obj_flag => fnd_api.g_true,
956: x_return_status => x_return_status,
957: x_messages => x_messages,
958: x_return_obj => l_return_obj,
959: x_organization_id => l_organization_id

Line 973: p_return_obj_flag => fnd_api.g_true,

969: p_validate_bo_flag => p_validate_bo_flag,
970: p_cust_acct_obj => l_input_acct_obj,
971: p_created_by_module => p_created_by_module,
972: p_obj_source => p_obj_source,
973: p_return_obj_flag => fnd_api.g_true,
974: x_return_status => x_return_status,
975: x_messages => x_messages,
976: x_return_obj => l_return_acct_obj,
977: x_cust_acct_id => l_cust_acct_id,

Line 986: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN

982: px_parent_osr => l_organization_osr,
983: px_parent_obj_type => l_obj_type
984: );
985: */
986: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN
987: RAISE fnd_api.g_exc_error;
988: END IF;
989: /*
990: x_return_obj.account_objs.EXTEND;

Line 987: RAISE fnd_api.g_exc_error;

983: px_parent_obj_type => l_obj_type
984: );
985: */
986: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN
987: RAISE fnd_api.g_exc_error;
988: END IF;
989: /*
990: x_return_obj.account_objs.EXTEND;
991: x_return_obj.account_objs(1) := l_return_acct_obj;

Line 1002: WHEN fnd_api.g_exc_error THEN

998: p_prefix=>l_debug_prefix,
999: p_msg_level=>fnd_log.level_procedure);
1000: END IF;
1001: EXCEPTION
1002: WHEN fnd_api.g_exc_error THEN
1003: ROLLBACK TO do_sync_acct_order;
1004:
1005: x_return_status := fnd_api.g_ret_sts_error;
1006:

Line 1005: x_return_status := fnd_api.g_ret_sts_error;

1001: EXCEPTION
1002: WHEN fnd_api.g_exc_error THEN
1003: ROLLBACK TO do_sync_acct_order;
1004:
1005: x_return_status := fnd_api.g_ret_sts_error;
1006:
1007: IF fnd_log.level_procedure>=fnd_log.g_current_runtime_level THEN
1008: hz_utility_v2pub.debug(p_message=>'sync_acct_order(-)',
1009: p_prefix=>l_debug_prefix,

Line 1012: WHEN fnd_api.g_exc_unexpected_error THEN

1008: hz_utility_v2pub.debug(p_message=>'sync_acct_order(-)',
1009: p_prefix=>l_debug_prefix,
1010: p_msg_level=>fnd_log.level_procedure);
1011: END IF;
1012: WHEN fnd_api.g_exc_unexpected_error THEN
1013: ROLLBACK TO do_sync_acct_order;
1014:
1015: x_return_status := fnd_api.g_ret_sts_error;
1016:

Line 1015: x_return_status := fnd_api.g_ret_sts_error;

1011: END IF;
1012: WHEN fnd_api.g_exc_unexpected_error THEN
1013: ROLLBACK TO do_sync_acct_order;
1014:
1015: x_return_status := fnd_api.g_ret_sts_error;
1016:
1017: IF fnd_log.level_procedure>=fnd_log.g_current_runtime_level THEN
1018: hz_utility_v2pub.debug(p_message=>'sync_acct_order(-)',
1019: p_prefix=>l_debug_prefix,

Line 1025: x_return_status := fnd_api.g_ret_sts_unexp_error;

1021: END IF;
1022: WHEN OTHERS THEN
1023: ROLLBACK TO do_sync_acct_order;
1024:
1025: x_return_status := fnd_api.g_ret_sts_unexp_error;
1026:
1027: fnd_message.set_name('AR', 'HZ_API_OTHERS_EXCEP');
1028: fnd_message.set_token('ERROR' ,SQLERRM);
1029: fnd_msg_pub.add;

Line 1040: p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE,

1036: END sync_acct_order;
1037:
1038:
1039: PROCEDURE get_merge_org_custs(
1040: p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE,
1041: p_from_org_id IN NUMBER,
1042: p_to_org_id IN NUMBER,
1043: p_from_acct_id IN NUMBER,
1044: p_to_acct_id IN NUMBER,

Line 1056: x_return_status := FND_API.G_RET_STS_SUCCESS;

1052: l_org_id NUMBER;
1053: l_acct_id NUMBER;
1054: BEGIN
1055: -- initialize API return status to success.
1056: x_return_status := FND_API.G_RET_STS_SUCCESS;
1057:
1058: -- Initialize message list if p_init_msg_list is set to TRUE
1059: IF FND_API.to_Boolean(p_init_msg_list) THEN
1060: FND_MSG_PUB.initialize;

Line 1059: IF FND_API.to_Boolean(p_init_msg_list) THEN

1055: -- initialize API return status to success.
1056: x_return_status := FND_API.G_RET_STS_SUCCESS;
1057:
1058: -- Initialize message list if p_init_msg_list is set to TRUE
1059: IF FND_API.to_Boolean(p_init_msg_list) THEN
1060: FND_MSG_PUB.initialize;
1061: END IF;
1062:
1063: -- Debug info.

Line 1090: p_init_msg_list => fnd_api.g_false,

1086: l_acct_id := p_to_acct_id;
1087: END IF;
1088:
1089: HZ_EXTRACT_ORGANIZATION_BO_PVT.get_organization_bo(
1090: p_init_msg_list => fnd_api.g_false,
1091: p_organization_id => l_org_id,
1092: p_action_type => NULL,
1093: x_organization_obj => x_org_cust_objs(i).organization_obj,
1094: x_return_status => x_return_status,

Line 1098: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN

1094: x_return_status => x_return_status,
1095: x_msg_count => l_msg_count,
1096: x_msg_data => l_msg_data);
1097:
1098: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN
1099: RAISE FND_API.G_EXC_ERROR;
1100: END IF;
1101: /*
1102: IF(x_org_cust_obj.organization_obj IS NULL OR x_org_cust_obj.organization_obj.organization_id IS NULL)THEN

Line 1099: RAISE FND_API.G_EXC_ERROR;

1095: x_msg_count => l_msg_count,
1096: x_msg_data => l_msg_data);
1097:
1098: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN
1099: RAISE FND_API.G_EXC_ERROR;
1100: END IF;
1101: /*
1102: IF(x_org_cust_obj.organization_obj IS NULL OR x_org_cust_obj.organization_obj.organization_id IS NULL)THEN
1103: fnd_message.set_name('AR', 'HZ_API_INVALID_TCA_ID');

Line 1105: fnd_msg_pub.count_and_get(p_encoded => fnd_api.g_false,

1101: /*
1102: IF(x_org_cust_obj.organization_obj IS NULL OR x_org_cust_obj.organization_obj.organization_id IS NULL)THEN
1103: fnd_message.set_name('AR', 'HZ_API_INVALID_TCA_ID');
1104: fnd_msg_pub.add;
1105: fnd_msg_pub.count_and_get(p_encoded => fnd_api.g_false,
1106: p_count => l_msg_count,
1107: p_data => l_msg_data);
1108: RAISE FND_API.G_EXC_ERROR;
1109: END IF;

Line 1108: RAISE FND_API.G_EXC_ERROR;

1104: fnd_msg_pub.add;
1105: fnd_msg_pub.count_and_get(p_encoded => fnd_api.g_false,
1106: p_count => l_msg_count,
1107: p_data => l_msg_data);
1108: RAISE FND_API.G_EXC_ERROR;
1109: END IF;
1110: */
1111: HZ_EXTRACT_CUST_ACCT_BO_PVT.get_cust_acct_bos(
1112: p_init_msg_list => fnd_api.g_false,

Line 1112: p_init_msg_list => fnd_api.g_false,

1108: RAISE FND_API.G_EXC_ERROR;
1109: END IF;
1110: */
1111: HZ_EXTRACT_CUST_ACCT_BO_PVT.get_cust_acct_bos(
1112: p_init_msg_list => fnd_api.g_false,
1113: p_parent_id => l_org_id,
1114: p_cust_acct_id => l_acct_id,
1115: p_action_type => NULL,
1116: x_cust_acct_objs => x_org_cust_objs(i).account_objs,

Line 1121: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN

1117: x_return_status => x_return_status,
1118: x_msg_count => l_msg_count,
1119: x_msg_data => l_msg_data);
1120:
1121: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN
1122: RAISE FND_API.G_EXC_ERROR;
1123: END IF;
1124: END LOOP;
1125: /*

Line 1122: RAISE FND_API.G_EXC_ERROR;

1118: x_msg_count => l_msg_count,
1119: x_msg_data => l_msg_data);
1120:
1121: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN
1122: RAISE FND_API.G_EXC_ERROR;
1123: END IF;
1124: END LOOP;
1125: /*
1126: IF(x_org_cust_obj.account_objs IS NULL OR x_org_cust_obj.account_objs.COUNT < 1)THEN

Line 1129: fnd_msg_pub.count_and_get(p_encoded => fnd_api.g_false,

1125: /*
1126: IF(x_org_cust_obj.account_objs IS NULL OR x_org_cust_obj.account_objs.COUNT < 1)THEN
1127: fnd_message.set_name('AR', 'HZ_API_INVALID_TCA_ID');
1128: fnd_msg_pub.add;
1129: fnd_msg_pub.count_and_get(p_encoded => fnd_api.g_false,
1130: p_count => l_msg_count,
1131: p_data => l_msg_data);
1132: RAISE FND_API.G_EXC_ERROR;
1133: END IF;

Line 1132: RAISE FND_API.G_EXC_ERROR;

1128: fnd_msg_pub.add;
1129: fnd_msg_pub.count_and_get(p_encoded => fnd_api.g_false,
1130: p_count => l_msg_count,
1131: p_data => l_msg_data);
1132: RAISE FND_API.G_EXC_ERROR;
1133: END IF;
1134: */
1135: -- Debug info.
1136: IF fnd_log.level_exception>=fnd_log.g_current_runtime_level THEN

Line 1150: WHEN fnd_api.g_exc_error THEN

1146: p_prefix=>l_debug_prefix,
1147: p_msg_level=>fnd_log.level_procedure);
1148: END IF;
1149: EXCEPTION
1150: WHEN fnd_api.g_exc_error THEN
1151: x_return_status := fnd_api.g_ret_sts_error;
1152: x_messages := HZ_PARTY_BO_PVT.return_all_messages(
1153: x_return_status => x_return_status,
1154: x_msg_count => l_msg_count,

Line 1151: x_return_status := fnd_api.g_ret_sts_error;

1147: p_msg_level=>fnd_log.level_procedure);
1148: END IF;
1149: EXCEPTION
1150: WHEN fnd_api.g_exc_error THEN
1151: x_return_status := fnd_api.g_ret_sts_error;
1152: x_messages := HZ_PARTY_BO_PVT.return_all_messages(
1153: x_return_status => x_return_status,
1154: x_msg_count => l_msg_count,
1155: x_msg_data => l_msg_data);

Line 1169: WHEN fnd_api.g_exc_unexpected_error THEN

1165: hz_utility_v2pub.debug(p_message=>'get_merge_org_custs(-)',
1166: p_prefix=>l_debug_prefix,
1167: p_msg_level=>fnd_log.level_procedure);
1168: END IF;
1169: WHEN fnd_api.g_exc_unexpected_error THEN
1170: x_return_status := fnd_api.g_ret_sts_unexp_error;
1171: x_messages := HZ_PARTY_BO_PVT.return_all_messages(
1172: x_return_status => x_return_status,
1173: x_msg_count => l_msg_count,

Line 1170: x_return_status := fnd_api.g_ret_sts_unexp_error;

1166: p_prefix=>l_debug_prefix,
1167: p_msg_level=>fnd_log.level_procedure);
1168: END IF;
1169: WHEN fnd_api.g_exc_unexpected_error THEN
1170: x_return_status := fnd_api.g_ret_sts_unexp_error;
1171: x_messages := HZ_PARTY_BO_PVT.return_all_messages(
1172: x_return_status => x_return_status,
1173: x_msg_count => l_msg_count,
1174: x_msg_data => l_msg_data);

Line 1189: x_return_status := fnd_api.g_ret_sts_unexp_error;

1185: p_prefix=>l_debug_prefix,
1186: p_msg_level=>fnd_log.level_procedure);
1187: END IF;
1188: WHEN OTHERS THEN
1189: x_return_status := fnd_api.g_ret_sts_unexp_error;
1190: fnd_message.set_name('AR', 'HZ_API_OTHERS_EXCEP');
1191: fnd_message.set_token('ERROR' ,SQLERRM);
1192: fnd_msg_pub.add;
1193: fnd_msg_pub.count_and_get(p_encoded => fnd_api.g_false,

Line 1193: fnd_msg_pub.count_and_get(p_encoded => fnd_api.g_false,

1189: x_return_status := fnd_api.g_ret_sts_unexp_error;
1190: fnd_message.set_name('AR', 'HZ_API_OTHERS_EXCEP');
1191: fnd_message.set_token('ERROR' ,SQLERRM);
1192: fnd_msg_pub.add;
1193: fnd_msg_pub.count_and_get(p_encoded => fnd_api.g_false,
1194: p_count => l_msg_count,
1195: p_data => l_msg_data);
1196: x_messages := HZ_PARTY_BO_PVT.return_all_messages(
1197: x_return_status => x_return_status,