DBA Data[Home] [Help]

APPS.JG_ZZ_VAT_REP_UTILITY dependencies on FND_API

Line 17: fnd_api.g_ret_sts_success in get_last_processed_date procedure.

13: pv_reallocate_flag <> 'Y' in validate_process_initiation.
14:
15: 31-May-2006 Aparajita. Version#120.4. xBuild-6
16: changed comparison with 'Y' to compare against
17: fnd_api.g_ret_sts_success in get_last_processed_date procedure.
18: Also in decode, if value is not g_ret_sts_success,
19: changed from 0 to null as count function is being used.
20:
21: Added code to hanlde ALL for pv_source

Line 131: ( pv_process_name = 'SELECTION' and selection_status_flag = fnd_api.g_ret_sts_success)

127: where
128: vat_reporting_entity_id = pn_vat_reporting_entity_id
129: and ( pv_source = 'ALL' or source = pv_source)
130: and (
131: ( pv_process_name = 'SELECTION' and selection_status_flag = fnd_api.g_ret_sts_success)
132: or
133: ( pv_process_name = 'ALLOCATION' and allocation_status_flag = fnd_api.g_ret_sts_success)
134: or
135: ( pv_process_name = 'FINAL REPORTING' and

Line 133: ( pv_process_name = 'ALLOCATION' and allocation_status_flag = fnd_api.g_ret_sts_success)

129: and ( pv_source = 'ALL' or source = pv_source)
130: and (
131: ( pv_process_name = 'SELECTION' and selection_status_flag = fnd_api.g_ret_sts_success)
132: or
133: ( pv_process_name = 'ALLOCATION' and allocation_status_flag = fnd_api.g_ret_sts_success)
134: or
135: ( pv_process_name = 'FINAL REPORTING' and
136: final_reporting_status_flag = fnd_api.g_ret_sts_success)
137: );

Line 136: final_reporting_status_flag = fnd_api.g_ret_sts_success)

132: or
133: ( pv_process_name = 'ALLOCATION' and allocation_status_flag = fnd_api.g_ret_sts_success)
134: or
135: ( pv_process_name = 'FINAL REPORTING' and
136: final_reporting_status_flag = fnd_api.g_ret_sts_success)
137: );
138:
139:
140: begin

Line 248: xv_return_status := fnd_api.g_ret_sts_success;

244: if ld_last_processed_date is not null then
245:
246: if ld_last_processed_date + 1 = pd_start_date then
247: /* There is no gap in period */
248: xv_return_status := fnd_api.g_ret_sts_success;
249: xv_return_message := 'There is no gap in period';
250: else
251: xv_return_status := fnd_api.g_ret_sts_error;
252: xv_return_message := 'Processing has successfully happened till ' || ld_last_processed_date ||

Line 251: xv_return_status := fnd_api.g_ret_sts_error;

247: /* There is no gap in period */
248: xv_return_status := fnd_api.g_ret_sts_success;
249: xv_return_message := 'There is no gap in period';
250: else
251: xv_return_status := fnd_api.g_ret_sts_error;
252: xv_return_message := 'Processing has successfully happened till ' || ld_last_processed_date ||
253: '. Gap in processing period is not allowed.';
254: end if;
255:

Line 264: xv_return_status := fnd_api.g_ret_sts_success;

260: fetch c_get_first_period_start_date into ld_first_period_start_date;
261: close c_get_first_period_start_date;
262:
263: if ld_first_period_start_date = pd_start_date then
264: xv_return_status := fnd_api.g_ret_sts_success;
265: xv_return_message := 'This period is the first period in the calendar, so no gap.';
266: else
267: xv_return_status := fnd_api.g_ret_sts_error;
268: xv_return_message := 'No period has been processed, the current period is not the first period in the calendar, Cannot proceed.';

Line 267: xv_return_status := fnd_api.g_ret_sts_error;

263: if ld_first_period_start_date = pd_start_date then
264: xv_return_status := fnd_api.g_ret_sts_success;
265: xv_return_message := 'This period is the first period in the calendar, so no gap.';
266: else
267: xv_return_status := fnd_api.g_ret_sts_error;
268: xv_return_message := 'No period has been processed, the current period is not the first period in the calendar, Cannot proceed.';
269: end if;
270:
271: end if; /* ld_last_processed_date is not null */

Line 355: xv_return_status := fnd_api.g_ret_sts_success;

351: and ( (pv_source = 'ALL') OR (pv_source <> 'ALL' and source = pv_source) );
352:
353: End if;
354:
355: xv_return_status := fnd_api.g_ret_sts_success;
356: return;
357:
358: /* Exception handling is not required as this is called internally and error handling is in the outer most procedure */
359: end pre_process_update;

Line 507: xv_return_status := fnd_api.g_ret_sts_error;

503: fnd_message.set_name('JG', 'JG_ZZ_VAT_NO_SELECTION');
504: fnd_message.set_token('SOURCE', lv_source);
505: fnd_message.set_token('PROCESS_NAME', pv_process_name);
506: xv_return_message := fnd_message.get;
507: xv_return_status := fnd_api.g_ret_sts_error;
508: goto error_exit_from_procedure;
509: end if;
510:
511: /* Control comes here only Selection process is being run for the first time for a given combination */

Line 543: if xv_return_status <> fnd_api.g_ret_sts_success then

539: xv_return_status => xv_return_status,
540: xv_return_message => xv_return_message
541: );
542:
543: if xv_return_status <> fnd_api.g_ret_sts_success then
544: goto error_exit_from_procedure;
545: end if;
546:
547: */

Line 570: if cur_rec_jg_zz_vat_rep_status.final_reporting_status_flag = fnd_api.g_ret_sts_success then

566:
567: /* Record exists in jg_zz_vat_rep_status for the given combination */
568:
569: /* Validation # 2: Common validation - Final reporting should not have happened */
570: if cur_rec_jg_zz_vat_rep_status.final_reporting_status_flag = fnd_api.g_ret_sts_success then
571: fnd_message.set_name('JG', 'JG_ZZ_VAT_FINALLY_REPORTED');
572: fnd_message.set_token('SOURCE', lv_source);
573: fnd_message.set_token('PROCESS_NAME', pv_process_name);
574: xv_return_message := fnd_message.get;

Line 575: xv_return_status := fnd_api.g_ret_sts_error;

571: fnd_message.set_name('JG', 'JG_ZZ_VAT_FINALLY_REPORTED');
572: fnd_message.set_token('SOURCE', lv_source);
573: fnd_message.set_token('PROCESS_NAME', pv_process_name);
574: xv_return_message := fnd_message.get;
575: xv_return_status := fnd_api.g_ret_sts_error;
576: goto error_exit_from_procedure;
577: end if;
578:
579:

Line 600: if xv_return_status <> fnd_api.g_ret_sts_success then

596: xv_return_status => xv_return_status,
597: xv_return_message => xv_return_message
598: );
599:
600: if xv_return_status <> fnd_api.g_ret_sts_success then
601: goto error_exit_from_procedure;
602: end if;
603:
604: end if;

Line 614: if xv_return_status <> fnd_api.g_ret_sts_success then

610: p_reporting_status_id => cur_rec_jg_zz_vat_rep_status.reporting_status_id,
611: x_return_status => xv_return_status
612: );
613:
614: if xv_return_status <> fnd_api.g_ret_sts_success then
615: fnd_message.set_name('JG', 'JG_ZZ_VAT_GENERIC_ERROR');
616: fnd_message.set_token('PROCESS_DETAILS', ' during purge of previous selection data');
617: xv_return_message := fnd_message.get;
618: goto error_exit_from_procedure;

Line 624: if cur_rec_jg_zz_vat_rep_status.selection_status_flag <> fnd_api.g_ret_sts_success then

620:
621: elsif pv_process_name = 'ALLOCATION' then
622:
623: /* Check if selection has already happened successfully */
624: if cur_rec_jg_zz_vat_rep_status.selection_status_flag <> fnd_api.g_ret_sts_success then
625: fnd_message.set_name('JG', 'JG_ZZ_VAT_ERROR_SELECTION');
626: fnd_message.set_token('SOURCE', lv_source);
627: fnd_message.set_token('PROCESS_NAME', pv_process_name);
628: xv_return_message := fnd_message.get;

Line 629: xv_return_status := fnd_api.g_ret_sts_error;

625: fnd_message.set_name('JG', 'JG_ZZ_VAT_ERROR_SELECTION');
626: fnd_message.set_token('SOURCE', lv_source);
627: fnd_message.set_token('PROCESS_NAME', pv_process_name);
628: xv_return_message := fnd_message.get;
629: xv_return_status := fnd_api.g_ret_sts_error;
630: goto error_exit_from_procedure;
631: end if;
632:
633:

Line 647: if xv_return_status <> fnd_api.g_ret_sts_success then

643: xv_return_status => xv_return_status,
644: xv_return_message => xv_return_message
645: );
646:
647: if xv_return_status <> fnd_api.g_ret_sts_success then
648: goto error_exit_from_procedure;
649: end if;
650:
651: end if;

Line 666: if xv_return_status <> fnd_api.g_ret_sts_success then

662: xv_return_status => xv_return_status,
663: xv_return_message => xv_return_message
664: );
665:
666: if xv_return_status <> fnd_api.g_ret_sts_success then
667: goto error_exit_from_procedure;
668: end if;
669:
670: end if;

Line 675: if cur_rec_jg_zz_vat_rep_status.selection_status_flag <> fnd_api.g_ret_sts_success then

671:
672: elsif pv_process_name = 'FINAL REPORTING' then
673:
674: /* Check if selection has already happened successfully */
675: if cur_rec_jg_zz_vat_rep_status.selection_status_flag <> fnd_api.g_ret_sts_success then
676: fnd_message.set_name('JG', 'JG_ZZ_VAT_ERROR_SELECTION');
677: fnd_message.set_token('SOURCE', lv_source);
678: fnd_message.set_token('PROCESS_NAME', pv_process_name);
679: xv_return_message := fnd_message.get;

Line 680: xv_return_status := fnd_api.g_ret_sts_error;

676: fnd_message.set_name('JG', 'JG_ZZ_VAT_ERROR_SELECTION');
677: fnd_message.set_token('SOURCE', lv_source);
678: fnd_message.set_token('PROCESS_NAME', pv_process_name);
679: xv_return_message := fnd_message.get;
680: xv_return_status := fnd_api.g_ret_sts_error;
681: goto error_exit_from_procedure;
682: end if;
683:
684: if cur_rec_jg_zz_vat_rep_status.allocation_status_flag = 'N' then

Line 692: xv_return_status := fnd_api.g_ret_sts_error;

688: fnd_message.set_name('JG', 'JG_ZZ_VAT_NO_ALLOCATION');
689: fnd_message.set_token('SOURCE', lv_source);
690: fnd_message.set_token('PROCESS_NAME', pv_process_name);
691: xv_return_message := fnd_message.get;
692: xv_return_status := fnd_api.g_ret_sts_error;
693: goto error_exit_from_procedure;
694: end if;
695:
696: elsif cur_rec_jg_zz_vat_rep_status.allocation_status_flag <> fnd_api.g_ret_sts_success then

Line 696: elsif cur_rec_jg_zz_vat_rep_status.allocation_status_flag <> fnd_api.g_ret_sts_success then

692: xv_return_status := fnd_api.g_ret_sts_error;
693: goto error_exit_from_procedure;
694: end if;
695:
696: elsif cur_rec_jg_zz_vat_rep_status.allocation_status_flag <> fnd_api.g_ret_sts_success then
697:
698: fnd_message.set_name('JG', 'JG_ZZ_VAT_ERROR_ALLOCATION');
699: fnd_message.set_token('SOURCE', lv_source);
700: fnd_message.set_token('PROCESS_NAME', pv_process_name);

Line 702: xv_return_status := fnd_api.g_ret_sts_error;

698: fnd_message.set_name('JG', 'JG_ZZ_VAT_ERROR_ALLOCATION');
699: fnd_message.set_token('SOURCE', lv_source);
700: fnd_message.set_token('PROCESS_NAME', pv_process_name);
701: xv_return_message := fnd_message.get;
702: xv_return_status := fnd_api.g_ret_sts_error;
703: goto error_exit_from_procedure;
704:
705: end if; /* Has allocation happend successfully or is it enabled but not happened */
706:

Line 722: if xv_return_status <> fnd_api.g_ret_sts_success then

718: xv_return_status => xv_return_status,
719: xv_return_message => xv_return_message
720: );
721:
722: if xv_return_status <> fnd_api.g_ret_sts_success then
723: goto error_exit_from_procedure;
724: end if;
725:
726: Revised approach change */

Line 774: if xv_return_status =fnd_api.g_ret_sts_success then

770: xv_return_status => xv_return_status ,
771: xv_return_message => xv_return_message
772: );
773:
774: if xv_return_status =fnd_api.g_ret_sts_success then
775: return;
776: end if;
777: << exit_from_procedure >>
778:

Line 784: xv_return_status := fnd_api.g_ret_sts_unexp_error;

780: return;
781:
782: exception
783: when others then
784: xv_return_status := fnd_api.g_ret_sts_unexp_error;
785: xv_return_message := 'jg_zz_vat_rep_utility.validate_process_initiation~Unexpected Error -' || sqlerrm;
786: return;
787: end validate_process_initiation;
788: /* ================================== End of validate_process_initiation =============================== */

Line 860: xv_return_status := fnd_api.g_ret_sts_success;

856: and ( (pv_source = 'ALL') OR (pv_source <> 'ALL' and source = pv_source) );
857:
858: End if;
859:
860: xv_return_status := fnd_api.g_ret_sts_success;
861: return;
862:
863:
864: exception

Line 866: xv_return_status := fnd_api.g_ret_sts_unexp_error;

862:
863:
864: exception
865: when others then
866: xv_return_status := fnd_api.g_ret_sts_unexp_error;
867: xv_return_message := 'jg_zz_vat_rep_utility.post_process_update~Unexpected Error -' || sqlerrm;
868: return;
869: end post_process_update;
870: /* ================================== End of post_process_update =============================== */

Line 889: count(decode(final_reporting_status_flag, fnd_api.g_ret_sts_success, 1, null)) final_record

885: pv_tax_calendar_period varchar2,
886: pv_tax_calendar_year number,
887: pv_source varchar2) is
888: select count(vat_reporting_entity_id) total_record,
889: count(decode(final_reporting_status_flag, fnd_api.g_ret_sts_success, 1, null)) final_record
890: from jg_zz_vat_rep_status
891: where vat_reporting_entity_id = pn_vat_reporting_entity_id
892: and ( tax_calendar_period = nvl(pv_tax_calendar_period,'-1')
893: or tax_calendar_year=nvl(pv_tax_calendar_year,-1))

Line 1067: xv_return_status := fnd_api.g_ret_sts_error;

1063: begin
1064:
1065: if pn_vat_reporting_entity_id is null then
1066: /* This parameter is required for entities of all level*/
1067: xv_return_status := fnd_api.g_ret_sts_error;
1068: fnd_message.set_name('JG', 'JG_ZZ_VAT_INVALID_ENTITY');
1069: fnd_message.set_token('PARAMETER', 'TRN');
1070: fnd_message.set_token('LEVEL', 'pv_entity_level_code');
1071: xv_return_message := fnd_message.get;

Line 1072: xv_return_status := fnd_api.g_ret_sts_error;

1068: fnd_message.set_name('JG', 'JG_ZZ_VAT_INVALID_ENTITY');
1069: fnd_message.set_token('PARAMETER', 'TRN');
1070: fnd_message.set_token('LEVEL', 'pv_entity_level_code');
1071: xv_return_message := fnd_message.get;
1072: xv_return_status := fnd_api.g_ret_sts_error;
1073: goto exit_from_procedure;
1074: end if;
1075:
1076: if pv_entity_level_code = 'LEDGER' then

Line 1079: xv_return_status := fnd_api.g_ret_sts_error;

1075:
1076: if pv_entity_level_code = 'LEDGER' then
1077:
1078: if pn_ledger_id is null then /* Required parameter */
1079: xv_return_status := fnd_api.g_ret_sts_error;
1080: fnd_message.set_name('JG', 'JG_ZZ_VAT_INVALID_ENTITY');
1081: fnd_message.set_token('PARAMETER', 'LEDGER');
1082: fnd_message.set_token('LEVEL', 'pv_entity_level_code');
1083: xv_return_message := fnd_message.get;

Line 1093: xv_return_status := fnd_api.g_ret_sts_error;

1089:
1090: if pv_entity_level_code = 'BSV' then
1091:
1092: if pn_ledger_id is null then /* Required parameter */
1093: xv_return_status := fnd_api.g_ret_sts_error;
1094: fnd_message.set_name('JG', 'JG_ZZ_VAT_INVALID_ENTITY');
1095: fnd_message.set_token('PARAMETER', 'LEDGER');
1096: fnd_message.set_token('LEVEL', 'pv_entity_level_code');
1097: xv_return_message := fnd_message.get;

Line 1102: xv_return_status := fnd_api.g_ret_sts_error;

1098: goto exit_from_procedure;
1099: end if;
1100:
1101: if pv_balancing_segment_value is null then
1102: xv_return_status := fnd_api.g_ret_sts_error;
1103: fnd_message.set_name('JG', 'JG_ZZ_VAT_INVALID_ENTITY');
1104: fnd_message.set_token('PARAMETER', 'BSV');
1105: fnd_message.set_token('LEVEL', 'pv_entity_level_code');
1106: xv_return_message := fnd_message.get;

Line 1112: xv_return_status := fnd_api.g_ret_sts_success;

1108:
1109: end if;
1110:
1111:
1112: xv_return_status := fnd_api.g_ret_sts_success;
1113:
1114: << exit_from_procedure >>
1115: return;
1116:

Line 1119: xv_return_status := fnd_api.g_ret_sts_unexp_error;

1115: return;
1116:
1117: exception
1118: when others then
1119: xv_return_status := fnd_api.g_ret_sts_unexp_error;
1120: xv_return_message := 'jg_zz_vat_rep_utility.validate_entity_attributes~Unexpected Error -' || sqlerrm;
1121: return;
1122: end validate_entity_attributes;
1123: /* ============================== End of validate_entity_attributes =========================== */

Line 1205: xv_return_status := fnd_api.g_ret_sts_success;

1201: );
1202:
1203:
1204: << exit_from_procedure >>
1205: xv_return_status := fnd_api.g_ret_sts_success;
1206: return;
1207:
1208: exception
1209: when others then

Line 1210: xv_return_status := fnd_api.g_ret_sts_unexp_error;

1206: return;
1207:
1208: exception
1209: when others then
1210: xv_return_status := fnd_api.g_ret_sts_unexp_error;
1211: xv_return_message := 'jg_zz_vat_rep_utility.create_accounting_entity~Unexpected Error -' || sqlerrm;
1212: return;
1213: end create_accounting_entity;
1214: /* ============================ End of create_accounting_entity ============================ */

Line 1295: if lv_return_status <> fnd_api.g_ret_sts_success then

1291: xv_return_status => lv_return_status ,
1292: xv_return_message => lv_return_message
1293: );
1294:
1295: if lv_return_status <> fnd_api.g_ret_sts_success then
1296: /* Entity does not have valid attributes */
1297: lv_entity_identifier := lv_return_message;
1298: goto exit_from_procedure ;
1299: end if;

Line 1424: if xv_return_status <> fnd_api.g_ret_sts_success then

1420: xv_return_status => xv_return_status ,
1421: xv_return_message => xv_return_message
1422: );
1423:
1424: if xv_return_status <> fnd_api.g_ret_sts_success then
1425: goto exit_from_procedure;
1426: end if;
1427:
1428: if pv_entity_level_code = 'LE' then

Line 1430: xv_return_status := fnd_api.g_ret_sts_success;

1426: end if;
1427:
1428: if pv_entity_level_code = 'LE' then
1429: xn_vat_reporting_entity_id := pn_vat_reporting_entity_id;
1430: xv_return_status := fnd_api.g_ret_sts_success;
1431: goto exit_from_procedure;
1432: else
1433:
1434: xn_vat_reporting_entity_id :=

Line 1457: xv_return_status := fnd_api.g_ret_sts_success;

1453: xv_return_message => xv_return_message
1454: );
1455:
1456: else
1457: xv_return_status := fnd_api.g_ret_sts_success;
1458: end if;
1459:
1460: end if; /* pv_entity_level_code */
1461:

Line 1468: xv_return_status := fnd_api.g_ret_sts_unexp_error;

1464:
1465:
1466: exception
1467: when others then
1468: xv_return_status := fnd_api.g_ret_sts_unexp_error;
1469: xv_return_message := 'jg_zz_vat_rep_utility.maintain_selection_entities~Unexpected Error -' || sqlerrm;
1470: return;
1471: end maintain_selection_entities;
1472: /* ============================ End of maintain_selection_entities ============================ */