DBA Data[Home] [Help]

APPS.CSI_COUNTER_TEMPLATE_PVT dependencies on FND_API

Line 109: IF p_default_value = FND_API.G_MISS_CHAR THEN

105: l_default_value VARCHAR2(240);
106: l_minimum_value VARCHAR2(240);
107: l_maximum_value VARCHAR2(240);
108: BEGIN
109: IF p_default_value = FND_API.G_MISS_CHAR THEN
110: l_default_value := NULL;
111: END IF;
112:
113: IF p_maximum_value = FND_API.G_MISS_CHAR THEN

Line 113: IF p_maximum_value = FND_API.G_MISS_CHAR THEN

109: IF p_default_value = FND_API.G_MISS_CHAR THEN
110: l_default_value := NULL;
111: END IF;
112:
113: IF p_maximum_value = FND_API.G_MISS_CHAR THEN
114: l_maximum_value := NULL;
115: END IF;
116:
117: IF p_minimum_value = FND_API.G_MISS_CHAR THEN

Line 117: IF p_minimum_value = FND_API.G_MISS_CHAR THEN

113: IF p_maximum_value = FND_API.G_MISS_CHAR THEN
114: l_maximum_value := NULL;
115: END IF;
116:
117: IF p_minimum_value = FND_API.G_MISS_CHAR THEN
118: l_minimum_value := NULL;
119: END IF;
120:
121: IF p_property_data_type = 'CHAR' THEN

Line 228: AND Nvl(group_id, FND_API.G_MISS_NUM) = Nvl(p_group_id, FND_API.G_MISS_NUM)-- Added for bug 9088368

224: SELECT 'x'
225: INTO l_exists
226: FROM csi_counter_template_vl
227: WHERE upper(name) = upper(p_name)
228: AND Nvl(group_id, FND_API.G_MISS_NUM) = Nvl(p_group_id, FND_API.G_MISS_NUM)-- Added for bug 9088368
229: AND COUNTER_ID <> Nvl(p_counter_id, FND_API.G_MISS_NUM);
230: csi_ctr_gen_utility_pvt.ExitWithErrMsg('CSI_API_CTR_DUP_NAME','CTR_NAME',p_name);
231: EXCEPTION
232: WHEN NO_DATA_FOUND THEN

Line 229: AND COUNTER_ID <> Nvl(p_counter_id, FND_API.G_MISS_NUM);

225: INTO l_exists
226: FROM csi_counter_template_vl
227: WHERE upper(name) = upper(p_name)
228: AND Nvl(group_id, FND_API.G_MISS_NUM) = Nvl(p_group_id, FND_API.G_MISS_NUM)-- Added for bug 9088368
229: AND COUNTER_ID <> Nvl(p_counter_id, FND_API.G_MISS_NUM);
230: csi_ctr_gen_utility_pvt.ExitWithErrMsg('CSI_API_CTR_DUP_NAME','CTR_NAME',p_name);
231: EXCEPTION
232: WHEN NO_DATA_FOUND THEN
233: NULL;

Line 556: IF NOT FND_API.Compatible_API_Call (l_api_version,

552: -- Standard Start of API savepoint
553: SAVEPOINT create_counter_group_pvt;
554:
555: -- Standard call to check for call compatibility.
556: IF NOT FND_API.Compatible_API_Call (l_api_version,
557: p_api_version,
558: l_api_name ,
559: G_PKG_NAME ) THEN
560: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 560: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

556: IF NOT FND_API.Compatible_API_Call (l_api_version,
557: p_api_version,
558: l_api_name ,
559: G_PKG_NAME ) THEN
560: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
561: END IF;
562:
563: -- Initialize message list if p_init_msg_list is set to TRUE.
564: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

Line 564: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

560: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
561: END IF;
562:
563: -- Initialize message list if p_init_msg_list is set to TRUE.
564: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
565: FND_MSG_PUB.initialize;
566: END IF;
567:
568: -- Initialize API return status to success

Line 569: x_return_status := FND_API.G_RET_STS_SUCCESS;

565: FND_MSG_PUB.initialize;
566: END IF;
567:
568: -- Initialize API return status to success
569: x_return_status := FND_API.G_RET_STS_SUCCESS;
570:
571: -- Read the debug profiles values in to global variable 7197402
572: CSI_CTR_GEN_UTILITY_PVT.read_debug_profiles;
573:

Line 579: nvl(p_commit,FND_API.G_FALSE) ||'-'||

575: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
576: csi_ctr_gen_utility_pvt.put_line
577: ('create_counter_group_pvt' ||'-'||
578: p_api_version ||'-'||
579: nvl(p_commit,FND_API.G_FALSE) ||'-'||
580: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
581: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
582: END IF;
583:

Line 580: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||

576: csi_ctr_gen_utility_pvt.put_line
577: ('create_counter_group_pvt' ||'-'||
578: p_api_version ||'-'||
579: nvl(p_commit,FND_API.G_FALSE) ||'-'||
580: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
581: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
582: END IF;
583:
584: ----

Line 581: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );

577: ('create_counter_group_pvt' ||'-'||
578: p_api_version ||'-'||
579: nvl(p_commit,FND_API.G_FALSE) ||'-'||
580: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
581: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
582: END IF;
583:
584: ----
585: -- Initialize_Desc_Flex(p_ctr_grp_rec.desc_flex, l_desc_flex);

Line 594: IF p_counter_groups_rec.description = FND_API.G_MISS_CHAR then

590:
591: l_name := p_counter_groups_rec.name;
592:
593:
594: IF p_counter_groups_rec.description = FND_API.G_MISS_CHAR then
595: l_description := null;
596: ELSE
597: l_description := p_counter_groups_rec.description;
598: END IF;

Line 600: IF p_counter_groups_rec.template_flag = FND_API.G_MISS_CHAR then

596: ELSE
597: l_description := p_counter_groups_rec.description;
598: END IF;
599:
600: IF p_counter_groups_rec.template_flag = FND_API.G_MISS_CHAR then
601: l_template_flag := 'N';
602: ELSE
603: l_template_flag := nvl(p_counter_groups_rec.template_flag,'N');
604: END IF;

Line 608: IF p_counter_groups_rec.association_type = FND_API.G_MISS_CHAR then

604: END IF;
605:
606: validate_counter_group(l_name, l_template_flag);
607:
608: IF p_counter_groups_rec.association_type = FND_API.G_MISS_CHAR then
609: l_association_type := null;
610: ELSE
611: l_association_type := p_counter_groups_rec.association_type;
612: END IF;

Line 614: if nvl(p_counter_groups_rec.start_date_active,FND_API.G_MISS_DATE) = FND_API.G_MISS_DATE then

610: ELSE
611: l_association_type := p_counter_groups_rec.association_type;
612: END IF;
613:
614: if nvl(p_counter_groups_rec.start_date_active,FND_API.G_MISS_DATE) = FND_API.G_MISS_DATE then
615: l_start_date_active := sysdate;
616: else
617: l_start_date_active := p_counter_groups_rec.start_date_active;
618: end if;

Line 622: if p_counter_groups_rec.end_date_active = FND_API.G_MISS_DATE then

618: end if;
619:
620: validate_start_date(l_start_date_active);
621:
622: if p_counter_groups_rec.end_date_active = FND_API.G_MISS_DATE then
623: l_end_date_active := null;
624: else
625: l_end_date_active := p_counter_groups_rec.end_date_active;
626: end if;

Line 634: if p_counter_groups_rec.attribute1 = FND_API.G_MISS_CHAR then

630: CSI_CTR_GEN_UTILITY_PVT.ExitWithErrMsg('CSI_ALL_END_DATE');
631: end if;
632: end if;
633:
634: if p_counter_groups_rec.attribute1 = FND_API.G_MISS_CHAR then
635: l_attribute1 := null;
636: else
637: l_attribute1 := p_counter_groups_rec.attribute1;
638: end if;

Line 640: if p_counter_groups_rec.attribute2 = FND_API.G_MISS_CHAR then

636: else
637: l_attribute1 := p_counter_groups_rec.attribute1;
638: end if;
639:
640: if p_counter_groups_rec.attribute2 = FND_API.G_MISS_CHAR then
641: l_attribute2 := null;
642: else
643: l_attribute2 := p_counter_groups_rec.attribute2;
644: end if;

Line 646: if p_counter_groups_rec.attribute3 = FND_API.G_MISS_CHAR then

642: else
643: l_attribute2 := p_counter_groups_rec.attribute2;
644: end if;
645:
646: if p_counter_groups_rec.attribute3 = FND_API.G_MISS_CHAR then
647: l_attribute3 := null;
648: else
649: l_attribute3 := p_counter_groups_rec.attribute3;
650: end if;

Line 652: if p_counter_groups_rec.attribute4 = FND_API.G_MISS_CHAR then

648: else
649: l_attribute3 := p_counter_groups_rec.attribute3;
650: end if;
651:
652: if p_counter_groups_rec.attribute4 = FND_API.G_MISS_CHAR then
653: l_attribute4 := null;
654: else
655: l_attribute4 := p_counter_groups_rec.attribute4;
656: end if;

Line 658: if p_counter_groups_rec.attribute5 = FND_API.G_MISS_CHAR then

654: else
655: l_attribute4 := p_counter_groups_rec.attribute4;
656: end if;
657:
658: if p_counter_groups_rec.attribute5 = FND_API.G_MISS_CHAR then
659: l_attribute5 := null;
660: else
661: l_attribute5 := p_counter_groups_rec.attribute5;
662: end if;

Line 664: if p_counter_groups_rec.attribute6 = FND_API.G_MISS_CHAR then

660: else
661: l_attribute5 := p_counter_groups_rec.attribute5;
662: end if;
663:
664: if p_counter_groups_rec.attribute6 = FND_API.G_MISS_CHAR then
665: l_attribute6 := null;
666: else
667: l_attribute6 := p_counter_groups_rec.attribute6;
668: end if;

Line 670: if p_counter_groups_rec.attribute7 = FND_API.G_MISS_CHAR then

666: else
667: l_attribute6 := p_counter_groups_rec.attribute6;
668: end if;
669:
670: if p_counter_groups_rec.attribute7 = FND_API.G_MISS_CHAR then
671: l_attribute7 := null;
672: else
673: l_attribute7 := p_counter_groups_rec.attribute7;
674: end if;

Line 676: if p_counter_groups_rec.attribute8 = FND_API.G_MISS_CHAR then

672: else
673: l_attribute7 := p_counter_groups_rec.attribute7;
674: end if;
675:
676: if p_counter_groups_rec.attribute8 = FND_API.G_MISS_CHAR then
677: l_attribute8 := null;
678: else
679: l_attribute8 := p_counter_groups_rec.attribute8;
680: end if;

Line 682: if p_counter_groups_rec.attribute9 = FND_API.G_MISS_CHAR then

678: else
679: l_attribute8 := p_counter_groups_rec.attribute8;
680: end if;
681:
682: if p_counter_groups_rec.attribute9 = FND_API.G_MISS_CHAR then
683: l_attribute9 := null;
684: else
685: l_attribute9 := p_counter_groups_rec.attribute9;
686: end if;

Line 688: if p_counter_groups_rec.attribute10 = FND_API.G_MISS_CHAR then

684: else
685: l_attribute9 := p_counter_groups_rec.attribute9;
686: end if;
687:
688: if p_counter_groups_rec.attribute10 = FND_API.G_MISS_CHAR then
689: l_attribute10 := null;
690: else
691: l_attribute10 := p_counter_groups_rec.attribute10;
692: end if;

Line 694: if p_counter_groups_rec.attribute11 = FND_API.G_MISS_CHAR then

690: else
691: l_attribute10 := p_counter_groups_rec.attribute10;
692: end if;
693:
694: if p_counter_groups_rec.attribute11 = FND_API.G_MISS_CHAR then
695: l_attribute11 := null;
696: else
697: l_attribute11 := p_counter_groups_rec.attribute11;
698: end if;

Line 700: if p_counter_groups_rec.attribute12 = FND_API.G_MISS_CHAR then

696: else
697: l_attribute11 := p_counter_groups_rec.attribute11;
698: end if;
699:
700: if p_counter_groups_rec.attribute12 = FND_API.G_MISS_CHAR then
701: l_attribute12 := null;
702: else
703: l_attribute12 := p_counter_groups_rec.attribute12;
704: end if;

Line 706: if p_counter_groups_rec.attribute13 = FND_API.G_MISS_CHAR then

702: else
703: l_attribute12 := p_counter_groups_rec.attribute12;
704: end if;
705:
706: if p_counter_groups_rec.attribute13 = FND_API.G_MISS_CHAR then
707: l_attribute13 := null;
708: else
709: l_attribute13 := p_counter_groups_rec.attribute13;
710: end if;

Line 712: if p_counter_groups_rec.attribute14 = FND_API.G_MISS_CHAR then

708: else
709: l_attribute13 := p_counter_groups_rec.attribute13;
710: end if;
711:
712: if p_counter_groups_rec.attribute14 = FND_API.G_MISS_CHAR then
713: l_attribute14 := null;
714: else
715: l_attribute14 := p_counter_groups_rec.attribute14;
716: end if;

Line 718: if p_counter_groups_rec.attribute15 = FND_API.G_MISS_CHAR then

714: else
715: l_attribute14 := p_counter_groups_rec.attribute14;
716: end if;
717:
718: if p_counter_groups_rec.attribute15 = FND_API.G_MISS_CHAR then
719: l_attribute15 := null;
720: else
721: l_attribute15 := p_counter_groups_rec.attribute15;
722: end if;

Line 724: if p_counter_groups_rec.context = FND_API.G_MISS_CHAR then

720: else
721: l_attribute15 := p_counter_groups_rec.attribute15;
722: end if;
723:
724: if p_counter_groups_rec.context = FND_API.G_MISS_CHAR then
725: l_context := null;
726: else
727: l_context := p_counter_groups_rec.context;
728: end if;

Line 730: if p_counter_groups_rec.created_from_ctr_grp_tmpl_id = FND_API.G_MISS_NUM then

726: else
727: l_context := p_counter_groups_rec.context;
728: end if;
729:
730: if p_counter_groups_rec.created_from_ctr_grp_tmpl_id = FND_API.G_MISS_NUM then
731: l_created_from_ctr_grp_tmpl_id := null;
732: else
733: l_created_from_ctr_grp_tmpl_id := p_counter_groups_rec.created_from_ctr_grp_tmpl_id;
734: end if;

Line 743: -- RAISE FND_API.G_EXC_ERROR;

739: l_SOURCE_COUNTER_GROUP_ID:=p_counter_groups_rec.SOURCE_COUNTER_GROUP_ID;
740: --Code added for bug 8326815 -End
741:
742: -- IF NOT(CS_COUNTERS_EXT_PVT.Is_StartEndDate_Valid(l_st_dt,l_end_dt)) THEN
743: -- RAISE FND_API.G_EXC_ERROR;
744: -- END IF;
745:
746: /* Call the table Handler */
747: CSI_GROUPING_PKG.Insert_Row(

Line 788: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN

784: );
785:
786: p_counter_groups_rec.counter_group_id := l_counter_group_id;
787:
788: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN
789: ROLLBACK TO create_counter_group_pvt;
790: RETURN;
791: END IF;
792:

Line 795: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN

791: END IF;
792:
793: /* End of table handler call */
794:
795: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN
796: COMMIT WORK;
797: END IF;
798:
799: -- Standard call to get message count and IF count is get message info.

Line 805: WHEN FND_API.G_EXC_ERROR THEN

801: ( p_count => x_msg_count,
802: p_data => x_msg_data
803: );
804: EXCEPTION
805: WHEN FND_API.G_EXC_ERROR THEN
806: x_return_status := FND_API.G_RET_STS_ERROR ;
807: ROLLBACK TO create_counter_group_pvt;
808: FND_MSG_PUB.Count_And_Get
809: ( p_count => x_msg_count,

Line 806: x_return_status := FND_API.G_RET_STS_ERROR ;

802: p_data => x_msg_data
803: );
804: EXCEPTION
805: WHEN FND_API.G_EXC_ERROR THEN
806: x_return_status := FND_API.G_RET_STS_ERROR ;
807: ROLLBACK TO create_counter_group_pvt;
808: FND_MSG_PUB.Count_And_Get
809: ( p_count => x_msg_count,
810: p_data => x_msg_data

Line 812: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN

808: FND_MSG_PUB.Count_And_Get
809: ( p_count => x_msg_count,
810: p_data => x_msg_data
811: );
812: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
813: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
814: ROLLBACK TO create_counter_group_pvt;
815: FND_MSG_PUB.Count_And_Get
816: ( p_count => x_msg_count,

Line 813: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

809: ( p_count => x_msg_count,
810: p_data => x_msg_data
811: );
812: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
813: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
814: ROLLBACK TO create_counter_group_pvt;
815: FND_MSG_PUB.Count_And_Get
816: ( p_count => x_msg_count,
817: p_data => x_msg_data

Line 820: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

816: ( p_count => x_msg_count,
817: p_data => x_msg_data
818: );
819: WHEN OTHERS THEN
820: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
821: ROLLBACK TO create_counter_group_pvt;
822: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
823: FND_MSG_PUB.Add_Exc_Msg
824: ( G_PKG_NAME,

Line 914: IF NOT FND_API.Compatible_API_Call (l_api_version,

910: -- Standard Start of API savepoint
911: SAVEPOINT create_item_association_pvt;
912:
913: -- Standard call to check for call compatibility.
914: IF NOT FND_API.Compatible_API_Call (l_api_version,
915: p_api_version,
916: l_api_name ,
917: G_PKG_NAME ) THEN
918: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 918: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

914: IF NOT FND_API.Compatible_API_Call (l_api_version,
915: p_api_version,
916: l_api_name ,
917: G_PKG_NAME ) THEN
918: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
919: END IF;
920:
921: -- Initialize message list if p_init_msg_list is set to TRUE.
922: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

Line 922: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

918: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
919: END IF;
920:
921: -- Initialize message list if p_init_msg_list is set to TRUE.
922: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
923: FND_MSG_PUB.initialize;
924: END IF;
925:
926: -- Read the debug profiles values in to global variable 7197402

Line 930: x_return_status := FND_API.G_RET_STS_SUCCESS;

926: -- Read the debug profiles values in to global variable 7197402
927: CSI_CTR_GEN_UTILITY_PVT.read_debug_profiles;
928:
929: -- Initialize API return status to success
930: x_return_status := FND_API.G_RET_STS_SUCCESS;
931:
932: --
933: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
934: csi_ctr_gen_utility_pvt.put_line

Line 937: nvl(p_commit,FND_API.G_FALSE) ||'-'||

933: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
934: csi_ctr_gen_utility_pvt.put_line
935: ( 'create_item_association_pvt' ||'-'||
936: p_api_version ||'-'||
937: nvl(p_commit,FND_API.G_FALSE) ||'-'||
938: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
939: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
940: END IF;
941:

Line 938: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||

934: csi_ctr_gen_utility_pvt.put_line
935: ( 'create_item_association_pvt' ||'-'||
936: p_api_version ||'-'||
937: nvl(p_commit,FND_API.G_FALSE) ||'-'||
938: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
939: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
940: END IF;
941:
942: if p_ctr_item_associations_rec.group_id = FND_API.G_MISS_NUM then

Line 939: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );

935: ( 'create_item_association_pvt' ||'-'||
936: p_api_version ||'-'||
937: nvl(p_commit,FND_API.G_FALSE) ||'-'||
938: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
939: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
940: END IF;
941:
942: if p_ctr_item_associations_rec.group_id = FND_API.G_MISS_NUM then
943: l_group_id := null;

Line 942: if p_ctr_item_associations_rec.group_id = FND_API.G_MISS_NUM then

938: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
939: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
940: END IF;
941:
942: if p_ctr_item_associations_rec.group_id = FND_API.G_MISS_NUM then
943: l_group_id := null;
944: else
945: l_group_id := p_ctr_item_associations_rec.group_id;
946: end if;

Line 948: if p_ctr_item_associations_rec.inventory_item_id = FND_API.G_MISS_NUM then

944: else
945: l_group_id := p_ctr_item_associations_rec.group_id;
946: end if;
947:
948: if p_ctr_item_associations_rec.inventory_item_id = FND_API.G_MISS_NUM then
949: l_inventory_item_id := null;
950: else
951: l_inventory_item_id := p_ctr_item_associations_rec.inventory_item_id;
952: end if;

Line 954: if p_ctr_item_associations_rec.associated_to_group= FND_API.G_MISS_CHAR then

950: else
951: l_inventory_item_id := p_ctr_item_associations_rec.inventory_item_id;
952: end if;
953:
954: if p_ctr_item_associations_rec.associated_to_group= FND_API.G_MISS_CHAR then
955: l_associated_to_group := 'N';
956: else
957: l_associated_to_group := p_ctr_item_associations_rec.associated_to_group;
958: end if;

Line 960: if p_ctr_item_associations_rec.counter_id = FND_API.G_MISS_NUM then

956: else
957: l_associated_to_group := p_ctr_item_associations_rec.associated_to_group;
958: end if;
959:
960: if p_ctr_item_associations_rec.counter_id = FND_API.G_MISS_NUM then
961: l_counter_id := null;
962: else
963: l_counter_id := p_ctr_item_associations_rec.counter_id;
964: end if;

Line 966: if p_ctr_item_associations_rec.security_group_id = FND_API.G_MISS_NUM then

962: else
963: l_counter_id := p_ctr_item_associations_rec.counter_id;
964: end if;
965:
966: if p_ctr_item_associations_rec.security_group_id = FND_API.G_MISS_NUM then
967: l_security_group_id := null;
968: else
969: l_security_group_id := p_ctr_item_associations_rec.security_group_id;
970: end if;

Line 972: if p_ctr_item_associations_rec.use_past_reading = FND_API.G_MISS_NUM then

968: else
969: l_security_group_id := p_ctr_item_associations_rec.security_group_id;
970: end if;
971:
972: if p_ctr_item_associations_rec.use_past_reading = FND_API.G_MISS_NUM then
973: l_use_past_reading := null;
974: else
975: l_use_past_reading := p_ctr_item_associations_rec.use_past_reading;
976: end if;

Line 978: if p_ctr_item_associations_rec.usage_rate = FND_API.G_MISS_NUM then

974: else
975: l_use_past_reading := p_ctr_item_associations_rec.use_past_reading;
976: end if;
977:
978: if p_ctr_item_associations_rec.usage_rate = FND_API.G_MISS_NUM then
979: l_usage_rate := null;
980: else
981: l_usage_rate := p_ctr_item_associations_rec.usage_rate;
982: end if;

Line 984: if nvl(p_ctr_item_associations_rec.start_date_active, FND_API.G_MISS_DATE) = FND_API.G_MISS_DATE then

980: else
981: l_usage_rate := p_ctr_item_associations_rec.usage_rate;
982: end if;
983:
984: if nvl(p_ctr_item_associations_rec.start_date_active, FND_API.G_MISS_DATE) = FND_API.G_MISS_DATE then
985: l_start_date_active := sysdate;
986: else
987: l_start_date_active := p_ctr_item_associations_rec.start_date_active;
988: end if;

Line 1020: if p_ctr_item_associations_rec.end_date_active = FND_API.G_MISS_DATE then

1016: END IF;
1017: CLOSE c2_counter;
1018: END IF;
1019:
1020: if p_ctr_item_associations_rec.end_date_active = FND_API.G_MISS_DATE then
1021: l_end_date_active := null;
1022: else
1023: l_end_date_active := p_ctr_item_associations_rec.end_date_active;
1024: end if;

Line 1032: if p_ctr_item_associations_rec.attribute1 = FND_API.G_MISS_CHAR then

1028: CSI_CTR_GEN_UTILITY_PVT.ExitWithErrMsg('CSI_ALL_END_DATE');
1029: end if;
1030: end if;
1031:
1032: if p_ctr_item_associations_rec.attribute1 = FND_API.G_MISS_CHAR then
1033: l_attribute1 := null;
1034: else
1035: l_attribute1 := p_ctr_item_associations_rec.attribute1;
1036: end if;

Line 1038: if p_ctr_item_associations_rec.attribute2 = FND_API.G_MISS_CHAR then

1034: else
1035: l_attribute1 := p_ctr_item_associations_rec.attribute1;
1036: end if;
1037:
1038: if p_ctr_item_associations_rec.attribute2 = FND_API.G_MISS_CHAR then
1039: l_attribute2 := null;
1040: else
1041: l_attribute2 := p_ctr_item_associations_rec.attribute2;
1042: end if;

Line 1044: if p_ctr_item_associations_rec.attribute3 = FND_API.G_MISS_CHAR then

1040: else
1041: l_attribute2 := p_ctr_item_associations_rec.attribute2;
1042: end if;
1043:
1044: if p_ctr_item_associations_rec.attribute3 = FND_API.G_MISS_CHAR then
1045: l_attribute3 := null;
1046: else
1047: l_attribute3 := p_ctr_item_associations_rec.attribute3;
1048: end if;

Line 1050: if p_ctr_item_associations_rec.attribute4 = FND_API.G_MISS_CHAR then

1046: else
1047: l_attribute3 := p_ctr_item_associations_rec.attribute3;
1048: end if;
1049:
1050: if p_ctr_item_associations_rec.attribute4 = FND_API.G_MISS_CHAR then
1051: l_attribute4 := null;
1052: else
1053: l_attribute4 := p_ctr_item_associations_rec.attribute4;
1054: end if;

Line 1056: if p_ctr_item_associations_rec.attribute5 = FND_API.G_MISS_CHAR then

1052: else
1053: l_attribute4 := p_ctr_item_associations_rec.attribute4;
1054: end if;
1055:
1056: if p_ctr_item_associations_rec.attribute5 = FND_API.G_MISS_CHAR then
1057: l_attribute5 := null;
1058: else
1059: l_attribute5 := p_ctr_item_associations_rec.attribute5;
1060: end if;

Line 1062: if p_ctr_item_associations_rec.attribute6 = FND_API.G_MISS_CHAR then

1058: else
1059: l_attribute5 := p_ctr_item_associations_rec.attribute5;
1060: end if;
1061:
1062: if p_ctr_item_associations_rec.attribute6 = FND_API.G_MISS_CHAR then
1063: l_attribute6 := null;
1064: else
1065: l_attribute6 := p_ctr_item_associations_rec.attribute6;
1066: end if;

Line 1068: if p_ctr_item_associations_rec.attribute7 = FND_API.G_MISS_CHAR then

1064: else
1065: l_attribute6 := p_ctr_item_associations_rec.attribute6;
1066: end if;
1067:
1068: if p_ctr_item_associations_rec.attribute7 = FND_API.G_MISS_CHAR then
1069: l_attribute7 := null;
1070: else
1071: l_attribute7 := p_ctr_item_associations_rec.attribute7;
1072: end if;

Line 1074: if p_ctr_item_associations_rec.attribute8 = FND_API.G_MISS_CHAR then

1070: else
1071: l_attribute7 := p_ctr_item_associations_rec.attribute7;
1072: end if;
1073:
1074: if p_ctr_item_associations_rec.attribute8 = FND_API.G_MISS_CHAR then
1075: l_attribute8 := null;
1076: else
1077: l_attribute8 := p_ctr_item_associations_rec.attribute8;
1078: end if;

Line 1080: if p_ctr_item_associations_rec.attribute9 = FND_API.G_MISS_CHAR then

1076: else
1077: l_attribute8 := p_ctr_item_associations_rec.attribute8;
1078: end if;
1079:
1080: if p_ctr_item_associations_rec.attribute9 = FND_API.G_MISS_CHAR then
1081: l_attribute9 := null;
1082: else
1083: l_attribute9 := p_ctr_item_associations_rec.attribute9;
1084: end if;

Line 1086: if p_ctr_item_associations_rec.attribute10 = FND_API.G_MISS_CHAR then

1082: else
1083: l_attribute9 := p_ctr_item_associations_rec.attribute9;
1084: end if;
1085:
1086: if p_ctr_item_associations_rec.attribute10 = FND_API.G_MISS_CHAR then
1087: l_attribute10 := null;
1088: else
1089: l_attribute10 := p_ctr_item_associations_rec.attribute10;
1090: end if;

Line 1092: if p_ctr_item_associations_rec.attribute11 = FND_API.G_MISS_CHAR then

1088: else
1089: l_attribute10 := p_ctr_item_associations_rec.attribute10;
1090: end if;
1091:
1092: if p_ctr_item_associations_rec.attribute11 = FND_API.G_MISS_CHAR then
1093: l_attribute11 := null;
1094: else
1095: l_attribute11 := p_ctr_item_associations_rec.attribute11;
1096: end if;

Line 1098: if p_ctr_item_associations_rec.attribute12 = FND_API.G_MISS_CHAR then

1094: else
1095: l_attribute11 := p_ctr_item_associations_rec.attribute11;
1096: end if;
1097:
1098: if p_ctr_item_associations_rec.attribute12 = FND_API.G_MISS_CHAR then
1099: l_attribute12 := null;
1100: else
1101: l_attribute12 := p_ctr_item_associations_rec.attribute12;
1102: end if;

Line 1104: if p_ctr_item_associations_rec.attribute13 = FND_API.G_MISS_CHAR then

1100: else
1101: l_attribute12 := p_ctr_item_associations_rec.attribute12;
1102: end if;
1103:
1104: if p_ctr_item_associations_rec.attribute13 = FND_API.G_MISS_CHAR then
1105: l_attribute13 := null;
1106: else
1107: l_attribute13 := p_ctr_item_associations_rec.attribute13;
1108: end if;

Line 1110: if p_ctr_item_associations_rec.attribute14 = FND_API.G_MISS_CHAR then

1106: else
1107: l_attribute13 := p_ctr_item_associations_rec.attribute13;
1108: end if;
1109:
1110: if p_ctr_item_associations_rec.attribute14 = FND_API.G_MISS_CHAR then
1111: l_attribute14 := null;
1112: else
1113: l_attribute14 := p_ctr_item_associations_rec.attribute14;
1114: end if;

Line 1116: if p_ctr_item_associations_rec.attribute15 = FND_API.G_MISS_CHAR then

1112: else
1113: l_attribute14 := p_ctr_item_associations_rec.attribute14;
1114: end if;
1115:
1116: if p_ctr_item_associations_rec.attribute15 = FND_API.G_MISS_CHAR then
1117: l_attribute15 := null;
1118: else
1119: l_attribute15 := p_ctr_item_associations_rec.attribute15;
1120: end if;

Line 1122: if p_ctr_item_associations_rec.attribute_category = FND_API.G_MISS_CHAR then

1118: else
1119: l_attribute15 := p_ctr_item_associations_rec.attribute15;
1120: end if;
1121:
1122: if p_ctr_item_associations_rec.attribute_category = FND_API.G_MISS_CHAR then
1123: l_attribute_category := null;
1124: else
1125: l_attribute_category := p_ctr_item_associations_rec.attribute_category;
1126: end if;

Line 1128: if p_ctr_item_associations_rec.migrated_flag = FND_API.G_MISS_CHAR then

1124: else
1125: l_attribute_category := p_ctr_item_associations_rec.attribute_category;
1126: end if;
1127:
1128: if p_ctr_item_associations_rec.migrated_flag = FND_API.G_MISS_CHAR then
1129: l_migrated_flag := null;
1130: else
1131: l_migrated_flag := p_ctr_item_associations_rec.migrated_flag;
1132: end if;

Line 1134: if p_ctr_item_associations_rec.maint_organization_id = FND_API.G_MISS_NUM then

1130: else
1131: l_migrated_flag := p_ctr_item_associations_rec.migrated_flag;
1132: end if;
1133:
1134: if p_ctr_item_associations_rec.maint_organization_id = FND_API.G_MISS_NUM then
1135: l_maint_organization_id := null;
1136: else
1137: l_maint_organization_id := p_ctr_item_associations_rec.maint_organization_id;
1138: end if;

Line 1140: if p_ctr_item_associations_rec.primary_failure_flag = FND_API.G_MISS_CHAR then

1136: else
1137: l_maint_organization_id := p_ctr_item_associations_rec.maint_organization_id;
1138: end if;
1139:
1140: if p_ctr_item_associations_rec.primary_failure_flag = FND_API.G_MISS_CHAR then
1141: l_primary_failure_flag := null;
1142: else
1143: l_primary_failure_flag := p_ctr_item_associations_rec.primary_failure_flag;
1144: end if;

Line 1287: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN

1283: ,p_PRIMARY_FAILURE_FLAG => l_primary_failure_flag
1284: );
1285:
1286:
1287: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN
1288: ROLLBACK TO create_item_association_pvt;
1289: RETURN;
1290: END IF;
1291:

Line 1294: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN

1290: END IF;
1291:
1292: /* End of table handler call */
1293:
1294: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN
1295: COMMIT WORK;
1296: END IF;
1297:
1298: -- Standard call to get message count and IF count is get message info.

Line 1304: WHEN FND_API.G_EXC_ERROR THEN

1300: ( p_count => x_msg_count,
1301: p_data => x_msg_data
1302: );
1303: EXCEPTION
1304: WHEN FND_API.G_EXC_ERROR THEN
1305: x_return_status := FND_API.G_RET_STS_ERROR ;
1306: ROLLBACK TO create_item_association_pvt;
1307: FND_MSG_PUB.Count_And_Get
1308: ( p_count => x_msg_count,

Line 1305: x_return_status := FND_API.G_RET_STS_ERROR ;

1301: p_data => x_msg_data
1302: );
1303: EXCEPTION
1304: WHEN FND_API.G_EXC_ERROR THEN
1305: x_return_status := FND_API.G_RET_STS_ERROR ;
1306: ROLLBACK TO create_item_association_pvt;
1307: FND_MSG_PUB.Count_And_Get
1308: ( p_count => x_msg_count,
1309: p_data => x_msg_data

Line 1311: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN

1307: FND_MSG_PUB.Count_And_Get
1308: ( p_count => x_msg_count,
1309: p_data => x_msg_data
1310: );
1311: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
1312: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
1313: ROLLBACK TO create_item_association_pvt;
1314: FND_MSG_PUB.Count_And_Get
1315: ( p_count => x_msg_count,

Line 1312: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

1308: ( p_count => x_msg_count,
1309: p_data => x_msg_data
1310: );
1311: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
1312: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
1313: ROLLBACK TO create_item_association_pvt;
1314: FND_MSG_PUB.Count_And_Get
1315: ( p_count => x_msg_count,
1316: p_data => x_msg_data

Line 1319: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

1315: ( p_count => x_msg_count,
1316: p_data => x_msg_data
1317: );
1318: WHEN OTHERS THEN
1319: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
1320: ROLLBACK TO create_item_association_pvt;
1321: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
1322: FND_MSG_PUB.Add_Exc_Msg
1323: ( G_PKG_NAME,

Line 1441: IF NOT FND_API.Compatible_API_Call (l_api_version,

1437: -- Standard Start of API savepoint
1438: SAVEPOINT create_counter_template_pvt;
1439:
1440: -- Standard call to check for call compatibility.
1441: IF NOT FND_API.Compatible_API_Call (l_api_version,
1442: p_api_version,
1443: l_api_name ,
1444: G_PKG_NAME ) THEN
1445: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 1445: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

1441: IF NOT FND_API.Compatible_API_Call (l_api_version,
1442: p_api_version,
1443: l_api_name ,
1444: G_PKG_NAME ) THEN
1445: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
1446: END IF;
1447:
1448: -- Initialize message list if p_init_msg_list is set to TRUE.
1449: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

Line 1449: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

1445: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
1446: END IF;
1447:
1448: -- Initialize message list if p_init_msg_list is set to TRUE.
1449: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
1450: FND_MSG_PUB.initialize;
1451: END IF;
1452:
1453: -- Read the debug profiles values in to global variable 7197402

Line 1457: x_return_status := FND_API.G_RET_STS_SUCCESS;

1453: -- Read the debug profiles values in to global variable 7197402
1454: CSI_CTR_GEN_UTILITY_PVT.read_debug_profiles;
1455:
1456: -- Initialize API return status to success
1457: x_return_status := FND_API.G_RET_STS_SUCCESS;
1458:
1459: --
1460: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
1461: csi_ctr_gen_utility_pvt.put_line

Line 1464: nvl(p_commit,FND_API.G_FALSE) ||'-'||

1460: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
1461: csi_ctr_gen_utility_pvt.put_line
1462: ( 'create_counter_template_pvt' ||'-'||
1463: p_api_version ||'-'||
1464: nvl(p_commit,FND_API.G_FALSE) ||'-'||
1465: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
1466: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
1467: END IF;
1468:

Line 1465: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||

1461: csi_ctr_gen_utility_pvt.put_line
1462: ( 'create_counter_template_pvt' ||'-'||
1463: p_api_version ||'-'||
1464: nvl(p_commit,FND_API.G_FALSE) ||'-'||
1465: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
1466: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
1467: END IF;
1468:
1469: if p_counter_template_rec.group_id = FND_API.G_MISS_NUM then

Line 1466: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );

1462: ( 'create_counter_template_pvt' ||'-'||
1463: p_api_version ||'-'||
1464: nvl(p_commit,FND_API.G_FALSE) ||'-'||
1465: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
1466: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
1467: END IF;
1468:
1469: if p_counter_template_rec.group_id = FND_API.G_MISS_NUM then
1470: l_group_id := null;

Line 1469: if p_counter_template_rec.group_id = FND_API.G_MISS_NUM then

1465: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
1466: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
1467: END IF;
1468:
1469: if p_counter_template_rec.group_id = FND_API.G_MISS_NUM then
1470: l_group_id := null;
1471: else
1472: l_group_id := p_counter_template_rec.group_id;
1473: end if;

Line 1475: if p_counter_template_rec.counter_id = FND_API.G_MISS_NUM then

1471: else
1472: l_group_id := p_counter_template_rec.group_id;
1473: end if;
1474:
1475: if p_counter_template_rec.counter_id = FND_API.G_MISS_NUM then
1476: l_counter_id := null;
1477: else
1478: l_counter_id := p_counter_template_rec.counter_id;
1479: end if;

Line 1481: if p_counter_template_rec.name = FND_API.G_MISS_CHAR then

1477: else
1478: l_counter_id := p_counter_template_rec.counter_id;
1479: end if;
1480:
1481: if p_counter_template_rec.name = FND_API.G_MISS_CHAR then
1482: l_name := null;
1483: else
1484: l_name := p_counter_template_rec.name;
1485: end if;

Line 1487: if p_counter_template_rec.description = FND_API.G_MISS_CHAR then

1483: else
1484: l_name := p_counter_template_rec.name;
1485: end if;
1486:
1487: if p_counter_template_rec.description = FND_API.G_MISS_CHAR then
1488: l_description := null;
1489: else
1490: l_description := p_counter_template_rec.description;
1491: end if;

Line 1493: if p_counter_template_rec.counter_type = FND_API.G_MISS_CHAR then

1489: else
1490: l_description := p_counter_template_rec.description;
1491: end if;
1492:
1493: if p_counter_template_rec.counter_type = FND_API.G_MISS_CHAR then
1494: l_counter_type := null;
1495: else
1496: l_counter_type := p_counter_template_rec.counter_type;
1497: end if;

Line 1499: if p_counter_template_rec.uom_code = FND_API.G_MISS_CHAR then

1495: else
1496: l_counter_type := p_counter_template_rec.counter_type;
1497: end if;
1498:
1499: if p_counter_template_rec.uom_code = FND_API.G_MISS_CHAR then
1500: l_uom_code := null;
1501: else
1502: l_uom_code := p_counter_template_rec.uom_code;
1503: end if;

Line 1505: if p_counter_template_rec.usage_item_id = FND_API.G_MISS_NUM then

1501: else
1502: l_uom_code := p_counter_template_rec.uom_code;
1503: end if;
1504:
1505: if p_counter_template_rec.usage_item_id = FND_API.G_MISS_NUM then
1506: l_usage_item_id := null;
1507: else
1508: l_usage_item_id := p_counter_template_rec.usage_item_id;
1509: end if;

Line 1511: if p_counter_template_rec.reading_type = FND_API.G_MISS_NUM then

1507: else
1508: l_usage_item_id := p_counter_template_rec.usage_item_id;
1509: end if;
1510:
1511: if p_counter_template_rec.reading_type = FND_API.G_MISS_NUM then
1512: l_reading_type := null;
1513: else
1514: l_reading_type := p_counter_template_rec.reading_type;
1515: end if;

Line 1517: if p_counter_template_rec.step_value = FND_API.G_MISS_NUM then

1513: else
1514: l_reading_type := p_counter_template_rec.reading_type;
1515: end if;
1516:
1517: if p_counter_template_rec.step_value = FND_API.G_MISS_NUM then
1518: l_step_value := null;
1519: else
1520: l_step_value := p_counter_template_rec.step_value;
1521: end if;

Line 1523: if p_counter_template_rec.direction = FND_API.G_MISS_CHAR then

1519: else
1520: l_step_value := p_counter_template_rec.step_value;
1521: end if;
1522:
1523: if p_counter_template_rec.direction = FND_API.G_MISS_CHAR then
1524: l_direction := null;
1525: else
1526: l_direction := p_counter_template_rec.direction;
1527: end if;

Line 1529: if p_counter_template_rec.estimation_id = FND_API.G_MISS_NUM then

1525: else
1526: l_direction := p_counter_template_rec.direction;
1527: end if;
1528:
1529: if p_counter_template_rec.estimation_id = FND_API.G_MISS_NUM then
1530: l_estimation_id := null;
1531: else
1532: l_estimation_id := p_counter_template_rec.estimation_id;
1533: end if;

Line 1535: if p_counter_template_rec.derive_function = FND_API.G_MISS_CHAR then

1531: else
1532: l_estimation_id := p_counter_template_rec.estimation_id;
1533: end if;
1534:
1535: if p_counter_template_rec.derive_function = FND_API.G_MISS_CHAR then
1536: l_derive_function := null;
1537: else
1538: l_derive_function := p_counter_template_rec.derive_function;
1539: end if;

Line 1541: if p_counter_template_rec.formula_text = FND_API.G_MISS_CHAR then

1537: else
1538: l_derive_function := p_counter_template_rec.derive_function;
1539: end if;
1540:
1541: if p_counter_template_rec.formula_text = FND_API.G_MISS_CHAR then
1542: l_formula_text := null;
1543: else
1544: l_formula_text := p_counter_template_rec.formula_text;
1545: end if;

Line 1547: if p_counter_template_rec.derive_counter_id = FND_API.G_MISS_NUM then

1543: else
1544: l_formula_text := p_counter_template_rec.formula_text;
1545: end if;
1546:
1547: if p_counter_template_rec.derive_counter_id = FND_API.G_MISS_NUM then
1548: l_derive_counter_id := null;
1549: else
1550: l_derive_counter_id := p_counter_template_rec.derive_counter_id;
1551: end if;

Line 1553: if p_counter_template_rec.filter_type = FND_API.G_MISS_CHAR then

1549: else
1550: l_derive_counter_id := p_counter_template_rec.derive_counter_id;
1551: end if;
1552:
1553: if p_counter_template_rec.filter_type = FND_API.G_MISS_CHAR then
1554: l_filter_type := null;
1555: else
1556: l_filter_type := p_counter_template_rec.filter_type;
1557: end if;

Line 1559: if p_counter_template_rec.filter_reading_count = FND_API.G_MISS_NUM then

1555: else
1556: l_filter_type := p_counter_template_rec.filter_type;
1557: end if;
1558:
1559: if p_counter_template_rec.filter_reading_count = FND_API.G_MISS_NUM then
1560: l_filter_reading_count := null;
1561: else
1562: l_filter_reading_count := p_counter_template_rec.filter_reading_count;
1563: end if;

Line 1565: if p_counter_template_rec.filter_time_uom = FND_API.G_MISS_CHAR then

1561: else
1562: l_filter_reading_count := p_counter_template_rec.filter_reading_count;
1563: end if;
1564:
1565: if p_counter_template_rec.filter_time_uom = FND_API.G_MISS_CHAR then
1566: l_filter_time_uom := null;
1567: else
1568: l_filter_time_uom := p_counter_template_rec.filter_time_uom;
1569: end if;

Line 1571: if p_counter_template_rec.automatic_rollover = FND_API.G_MISS_CHAR then

1567: else
1568: l_filter_time_uom := p_counter_template_rec.filter_time_uom;
1569: end if;
1570:
1571: if p_counter_template_rec.automatic_rollover = FND_API.G_MISS_CHAR then
1572: l_automatic_rollover := null;
1573: else
1574: l_automatic_rollover := p_counter_template_rec.automatic_rollover;
1575: end if;

Line 1577: if p_counter_template_rec.rollover_last_reading = FND_API.G_MISS_NUM then

1573: else
1574: l_automatic_rollover := p_counter_template_rec.automatic_rollover;
1575: end if;
1576:
1577: if p_counter_template_rec.rollover_last_reading = FND_API.G_MISS_NUM then
1578: l_rollover_last_reading := null;
1579: else
1580: l_rollover_last_reading := p_counter_template_rec.rollover_last_reading;
1581: end if;

Line 1583: if p_counter_template_rec.rollover_first_reading = FND_API.G_MISS_NUM then

1579: else
1580: l_rollover_last_reading := p_counter_template_rec.rollover_last_reading;
1581: end if;
1582:
1583: if p_counter_template_rec.rollover_first_reading = FND_API.G_MISS_NUM then
1584: l_rollover_first_reading := null;
1585: else
1586: l_rollover_first_reading := p_counter_template_rec.rollover_first_reading;
1587: end if;

Line 1589: if p_counter_template_rec.tolerance_plus = FND_API.G_MISS_NUM then

1585: else
1586: l_rollover_first_reading := p_counter_template_rec.rollover_first_reading;
1587: end if;
1588:
1589: if p_counter_template_rec.tolerance_plus = FND_API.G_MISS_NUM then
1590: l_tolerance_plus := null;
1591: else
1592: l_tolerance_plus := p_counter_template_rec.tolerance_plus;
1593: end if;

Line 1595: if p_counter_template_rec.security_group_id = FND_API.G_MISS_NUM then

1591: else
1592: l_tolerance_plus := p_counter_template_rec.tolerance_plus;
1593: end if;
1594:
1595: if p_counter_template_rec.security_group_id = FND_API.G_MISS_NUM then
1596: l_security_group_id := null;
1597: else
1598: l_security_group_id := p_counter_template_rec.security_group_id;
1599: end if;

Line 1601: if p_counter_template_rec.tolerance_minus = FND_API.G_MISS_NUM then

1597: else
1598: l_security_group_id := p_counter_template_rec.security_group_id;
1599: end if;
1600:
1601: if p_counter_template_rec.tolerance_minus = FND_API.G_MISS_NUM then
1602: l_tolerance_minus := null;
1603: else
1604: l_tolerance_minus := p_counter_template_rec.tolerance_minus;
1605: end if;

Line 1607: if p_counter_template_rec.used_in_scheduling = FND_API.G_MISS_CHAR then

1603: else
1604: l_tolerance_minus := p_counter_template_rec.tolerance_minus;
1605: end if;
1606:
1607: if p_counter_template_rec.used_in_scheduling = FND_API.G_MISS_CHAR then
1608: l_used_in_scheduling := null;
1609: else
1610: l_used_in_scheduling := p_counter_template_rec.used_in_scheduling;
1611: end if;

Line 1613: if p_counter_template_rec.initial_reading = FND_API.G_MISS_NUM then

1609: else
1610: l_used_in_scheduling := p_counter_template_rec.used_in_scheduling;
1611: end if;
1612:
1613: if p_counter_template_rec.initial_reading = FND_API.G_MISS_NUM then
1614: l_initial_reading := null;
1615: else
1616: l_initial_reading := p_counter_template_rec.initial_reading;
1617: end if;

Line 1619: if p_counter_template_rec.default_usage_rate = FND_API.G_MISS_NUM then

1615: else
1616: l_initial_reading := p_counter_template_rec.initial_reading;
1617: end if;
1618:
1619: if p_counter_template_rec.default_usage_rate = FND_API.G_MISS_NUM then
1620: l_default_usage_rate := null;
1621: else
1622: l_default_usage_rate := p_counter_template_rec.default_usage_rate;
1623: end if;

Line 1625: if p_counter_template_rec.use_past_reading = FND_API.G_MISS_NUM then

1621: else
1622: l_default_usage_rate := p_counter_template_rec.default_usage_rate;
1623: end if;
1624:
1625: if p_counter_template_rec.use_past_reading = FND_API.G_MISS_NUM then
1626: l_use_past_reading := null;
1627: else
1628: l_use_past_reading := p_counter_template_rec.use_past_reading;
1629: end if;

Line 1631: if nvl(p_counter_template_rec.start_date_active,FND_API.G_MISS_DATE) = FND_API.G_MISS_DATE then

1627: else
1628: l_use_past_reading := p_counter_template_rec.use_past_reading;
1629: end if;
1630:
1631: if nvl(p_counter_template_rec.start_date_active,FND_API.G_MISS_DATE) = FND_API.G_MISS_DATE then
1632: l_start_date_active := sysdate;
1633: else
1634: l_start_date_active := p_counter_template_rec.start_date_active;
1635: end if;

Line 1653: if p_counter_template_rec.end_date_active = FND_API.G_MISS_DATE then

1649: CLOSE c1_group;
1650:
1651: END IF;
1652:
1653: if p_counter_template_rec.end_date_active = FND_API.G_MISS_DATE then
1654: l_end_date_active := null;
1655: else
1656: l_end_date_active := p_counter_template_rec.end_date_active;
1657: end if;

Line 1665: if p_counter_template_rec.attribute1 = FND_API.G_MISS_CHAR then

1661: CSI_CTR_GEN_UTILITY_PVT.ExitWithErrMsg('CSI_ALL_END_DATE');
1662: end if;
1663: end if;
1664:
1665: if p_counter_template_rec.attribute1 = FND_API.G_MISS_CHAR then
1666: l_attribute1 := null;
1667: else
1668: l_attribute1 := p_counter_template_rec.attribute1;
1669: end if;

Line 1671: if p_counter_template_rec.attribute2 = FND_API.G_MISS_CHAR then

1667: else
1668: l_attribute1 := p_counter_template_rec.attribute1;
1669: end if;
1670:
1671: if p_counter_template_rec.attribute2 = FND_API.G_MISS_CHAR then
1672: l_attribute2 := null;
1673: else
1674: l_attribute2 := p_counter_template_rec.attribute2;
1675: end if;

Line 1677: if p_counter_template_rec.attribute3 = FND_API.G_MISS_CHAR then

1673: else
1674: l_attribute2 := p_counter_template_rec.attribute2;
1675: end if;
1676:
1677: if p_counter_template_rec.attribute3 = FND_API.G_MISS_CHAR then
1678: l_attribute3 := null;
1679: else
1680: l_attribute3 := p_counter_template_rec.attribute3;
1681: end if;

Line 1683: if p_counter_template_rec.attribute4 = FND_API.G_MISS_CHAR then

1679: else
1680: l_attribute3 := p_counter_template_rec.attribute3;
1681: end if;
1682:
1683: if p_counter_template_rec.attribute4 = FND_API.G_MISS_CHAR then
1684: l_attribute4 := null;
1685: else
1686: l_attribute4 := p_counter_template_rec.attribute4;
1687: end if;

Line 1689: if p_counter_template_rec.attribute5 = FND_API.G_MISS_CHAR then

1685: else
1686: l_attribute4 := p_counter_template_rec.attribute4;
1687: end if;
1688:
1689: if p_counter_template_rec.attribute5 = FND_API.G_MISS_CHAR then
1690: l_attribute5 := null;
1691: else
1692: l_attribute5 := p_counter_template_rec.attribute5;
1693: end if;

Line 1695: if p_counter_template_rec.attribute6 = FND_API.G_MISS_CHAR then

1691: else
1692: l_attribute5 := p_counter_template_rec.attribute5;
1693: end if;
1694:
1695: if p_counter_template_rec.attribute6 = FND_API.G_MISS_CHAR then
1696: l_attribute6 := null;
1697: else
1698: l_attribute6 := p_counter_template_rec.attribute6;
1699: end if;

Line 1701: if p_counter_template_rec.attribute7 = FND_API.G_MISS_CHAR then

1697: else
1698: l_attribute6 := p_counter_template_rec.attribute6;
1699: end if;
1700:
1701: if p_counter_template_rec.attribute7 = FND_API.G_MISS_CHAR then
1702: l_attribute7 := null;
1703: else
1704: l_attribute7 := p_counter_template_rec.attribute7;
1705: end if;

Line 1707: if p_counter_template_rec.attribute8 = FND_API.G_MISS_CHAR then

1703: else
1704: l_attribute7 := p_counter_template_rec.attribute7;
1705: end if;
1706:
1707: if p_counter_template_rec.attribute8 = FND_API.G_MISS_CHAR then
1708: l_attribute8 := null;
1709: else
1710: l_attribute8 := p_counter_template_rec.attribute8;
1711: end if;

Line 1713: if p_counter_template_rec.attribute9 = FND_API.G_MISS_CHAR then

1709: else
1710: l_attribute8 := p_counter_template_rec.attribute8;
1711: end if;
1712:
1713: if p_counter_template_rec.attribute9 = FND_API.G_MISS_CHAR then
1714: l_attribute9 := null;
1715: else
1716: l_attribute9 := p_counter_template_rec.attribute9;
1717: end if;

Line 1719: if p_counter_template_rec.attribute10 = FND_API.G_MISS_CHAR then

1715: else
1716: l_attribute9 := p_counter_template_rec.attribute9;
1717: end if;
1718:
1719: if p_counter_template_rec.attribute10 = FND_API.G_MISS_CHAR then
1720: l_attribute10 := null;
1721: else
1722: l_attribute10 := p_counter_template_rec.attribute10;
1723: end if;

Line 1725: if p_counter_template_rec.attribute11 = FND_API.G_MISS_CHAR then

1721: else
1722: l_attribute10 := p_counter_template_rec.attribute10;
1723: end if;
1724:
1725: if p_counter_template_rec.attribute11 = FND_API.G_MISS_CHAR then
1726: l_attribute11 := null;
1727: else
1728: l_attribute11 := p_counter_template_rec.attribute11;
1729: end if;

Line 1731: if p_counter_template_rec.attribute12 = FND_API.G_MISS_CHAR then

1727: else
1728: l_attribute11 := p_counter_template_rec.attribute11;
1729: end if;
1730:
1731: if p_counter_template_rec.attribute12 = FND_API.G_MISS_CHAR then
1732: l_attribute12 := null;
1733: else
1734: l_attribute12 := p_counter_template_rec.attribute12;
1735: end if;

Line 1737: if p_counter_template_rec.attribute13 = FND_API.G_MISS_CHAR then

1733: else
1734: l_attribute12 := p_counter_template_rec.attribute12;
1735: end if;
1736:
1737: if p_counter_template_rec.attribute13 = FND_API.G_MISS_CHAR then
1738: l_attribute13 := null;
1739: else
1740: l_attribute13 := p_counter_template_rec.attribute13;
1741: end if;

Line 1743: if p_counter_template_rec.attribute14 = FND_API.G_MISS_CHAR then

1739: else
1740: l_attribute13 := p_counter_template_rec.attribute13;
1741: end if;
1742:
1743: if p_counter_template_rec.attribute14 = FND_API.G_MISS_CHAR then
1744: l_attribute14 := null;
1745: else
1746: l_attribute14 := p_counter_template_rec.attribute14;
1747: end if;

Line 1749: if p_counter_template_rec.attribute15 = FND_API.G_MISS_CHAR then

1745: else
1746: l_attribute14 := p_counter_template_rec.attribute14;
1747: end if;
1748:
1749: if p_counter_template_rec.attribute15 = FND_API.G_MISS_CHAR then
1750: l_attribute15 := null;
1751: else
1752: l_attribute15 := p_counter_template_rec.attribute15;
1753: end if;

Line 1755: if p_counter_template_rec.attribute16 = FND_API.G_MISS_CHAR then

1751: else
1752: l_attribute15 := p_counter_template_rec.attribute15;
1753: end if;
1754:
1755: if p_counter_template_rec.attribute16 = FND_API.G_MISS_CHAR then
1756: l_attribute16 := null;
1757: else
1758: l_attribute16 := p_counter_template_rec.attribute16;
1759: end if;

Line 1761: if p_counter_template_rec.attribute17 = FND_API.G_MISS_CHAR then

1757: else
1758: l_attribute16 := p_counter_template_rec.attribute16;
1759: end if;
1760:
1761: if p_counter_template_rec.attribute17 = FND_API.G_MISS_CHAR then
1762: l_attribute17 := null;
1763: else
1764: l_attribute17 := p_counter_template_rec.attribute17;
1765: end if;

Line 1767: if p_counter_template_rec.attribute18 = FND_API.G_MISS_CHAR then

1763: else
1764: l_attribute17 := p_counter_template_rec.attribute17;
1765: end if;
1766:
1767: if p_counter_template_rec.attribute18 = FND_API.G_MISS_CHAR then
1768: l_attribute18 := null;
1769: else
1770: l_attribute18 := p_counter_template_rec.attribute18;
1771: end if;

Line 1773: if p_counter_template_rec.attribute19 = FND_API.G_MISS_CHAR then

1769: else
1770: l_attribute18 := p_counter_template_rec.attribute18;
1771: end if;
1772:
1773: if p_counter_template_rec.attribute19 = FND_API.G_MISS_CHAR then
1774: l_attribute19 := null;
1775: else
1776: l_attribute19 := p_counter_template_rec.attribute19;
1777: end if;

Line 1779: if p_counter_template_rec.attribute20 = FND_API.G_MISS_CHAR then

1775: else
1776: l_attribute19 := p_counter_template_rec.attribute19;
1777: end if;
1778:
1779: if p_counter_template_rec.attribute20 = FND_API.G_MISS_CHAR then
1780: l_attribute20 := null;
1781: else
1782: l_attribute20 := p_counter_template_rec.attribute20;
1783: end if;

Line 1785: if p_counter_template_rec.attribute21 = FND_API.G_MISS_CHAR then

1781: else
1782: l_attribute20 := p_counter_template_rec.attribute20;
1783: end if;
1784:
1785: if p_counter_template_rec.attribute21 = FND_API.G_MISS_CHAR then
1786: l_attribute21 := null;
1787: else
1788: l_attribute21 := p_counter_template_rec.attribute21;
1789: end if;

Line 1791: if p_counter_template_rec.attribute22 = FND_API.G_MISS_CHAR then

1787: else
1788: l_attribute21 := p_counter_template_rec.attribute21;
1789: end if;
1790:
1791: if p_counter_template_rec.attribute22 = FND_API.G_MISS_CHAR then
1792: l_attribute22 := null;
1793: else
1794: l_attribute22 := p_counter_template_rec.attribute22;
1795: end if;

Line 1797: if p_counter_template_rec.attribute23 = FND_API.G_MISS_CHAR then

1793: else
1794: l_attribute22 := p_counter_template_rec.attribute22;
1795: end if;
1796:
1797: if p_counter_template_rec.attribute23 = FND_API.G_MISS_CHAR then
1798: l_attribute23 := null;
1799: else
1800: l_attribute23 := p_counter_template_rec.attribute23;
1801: end if;

Line 1803: if p_counter_template_rec.attribute24 = FND_API.G_MISS_CHAR then

1799: else
1800: l_attribute23 := p_counter_template_rec.attribute23;
1801: end if;
1802:
1803: if p_counter_template_rec.attribute24 = FND_API.G_MISS_CHAR then
1804: l_attribute24 := null;
1805: else
1806: l_attribute24 := p_counter_template_rec.attribute24;
1807: end if;

Line 1809: if p_counter_template_rec.attribute25 = FND_API.G_MISS_CHAR then

1805: else
1806: l_attribute24 := p_counter_template_rec.attribute24;
1807: end if;
1808:
1809: if p_counter_template_rec.attribute25 = FND_API.G_MISS_CHAR then
1810: l_attribute25 := null;
1811: else
1812: l_attribute25 := p_counter_template_rec.attribute25;
1813: end if;

Line 1815: if p_counter_template_rec.attribute26 = FND_API.G_MISS_CHAR then

1811: else
1812: l_attribute25 := p_counter_template_rec.attribute25;
1813: end if;
1814:
1815: if p_counter_template_rec.attribute26 = FND_API.G_MISS_CHAR then
1816: l_attribute26 := null;
1817: else
1818: l_attribute26 := p_counter_template_rec.attribute26;
1819: end if;

Line 1821: if p_counter_template_rec.attribute27 = FND_API.G_MISS_CHAR then

1817: else
1818: l_attribute26 := p_counter_template_rec.attribute26;
1819: end if;
1820:
1821: if p_counter_template_rec.attribute27 = FND_API.G_MISS_CHAR then
1822: l_attribute27 := null;
1823: else
1824: l_attribute27 := p_counter_template_rec.attribute27;
1825: end if;

Line 1827: if p_counter_template_rec.attribute28 = FND_API.G_MISS_CHAR then

1823: else
1824: l_attribute27 := p_counter_template_rec.attribute27;
1825: end if;
1826:
1827: if p_counter_template_rec.attribute28 = FND_API.G_MISS_CHAR then
1828: l_attribute28 := null;
1829: else
1830: l_attribute28 := p_counter_template_rec.attribute28;
1831: end if;

Line 1833: if p_counter_template_rec.attribute29 = FND_API.G_MISS_CHAR then

1829: else
1830: l_attribute28 := p_counter_template_rec.attribute28;
1831: end if;
1832:
1833: if p_counter_template_rec.attribute29 = FND_API.G_MISS_CHAR then
1834: l_attribute29 := null;
1835: else
1836: l_attribute29 := p_counter_template_rec.attribute29;
1837: end if;

Line 1839: if p_counter_template_rec.attribute30 = FND_API.G_MISS_CHAR then

1835: else
1836: l_attribute29 := p_counter_template_rec.attribute29;
1837: end if;
1838:
1839: if p_counter_template_rec.attribute30 = FND_API.G_MISS_CHAR then
1840: l_attribute30 := null;
1841: else
1842: l_attribute30 := p_counter_template_rec.attribute30;
1843: end if;

Line 1845: if p_counter_template_rec.attribute_category = FND_API.G_MISS_CHAR then

1841: else
1842: l_attribute30 := p_counter_template_rec.attribute30;
1843: end if;
1844:
1845: if p_counter_template_rec.attribute_category = FND_API.G_MISS_CHAR then
1846: l_attribute_category := null;
1847: else
1848: l_attribute_category := p_counter_template_rec.attribute_category;
1849: end if;

Line 1851: if p_counter_template_rec.association_type = FND_API.G_MISS_CHAR then

1847: else
1848: l_attribute_category := p_counter_template_rec.attribute_category;
1849: end if;
1850:
1851: if p_counter_template_rec.association_type = FND_API.G_MISS_CHAR then
1852: l_association_type := null;
1853: else
1854: l_association_type := p_counter_template_rec.association_type;
1855: end if;

Line 1861: if p_counter_template_rec.group_id = FND_API.G_MISS_NUM then

1857: if l_association_type is null then
1858: l_association_type := 'TRACKABLE';
1859: end if;
1860:
1861: if p_counter_template_rec.group_id = FND_API.G_MISS_NUM then
1862: l_group_id := null;
1863: else
1864: l_group_id := p_counter_template_rec.group_id;
1865: end if;

Line 1867: if p_counter_template_rec.time_based_manual_entry = FND_API.G_MISS_CHAR then

1863: else
1864: l_group_id := p_counter_template_rec.group_id;
1865: end if;
1866:
1867: if p_counter_template_rec.time_based_manual_entry = FND_API.G_MISS_CHAR then
1868: l_time_based_manual_entry := 'N';
1869: else
1870: l_time_based_manual_entry := p_counter_template_rec.time_based_manual_entry;
1871: end if;

Line 1873: if p_counter_template_rec.eam_required_flag = FND_API.G_MISS_CHAR then

1869: else
1870: l_time_based_manual_entry := p_counter_template_rec.time_based_manual_entry;
1871: end if;
1872:
1873: if p_counter_template_rec.eam_required_flag = FND_API.G_MISS_CHAR then
1874: l_eam_required_flag := null;
1875: else
1876: l_eam_required_flag := p_counter_template_rec.eam_required_flag;
1877: end if;

Line 1879: if nvl(p_counter_template_rec.initial_reading_date, FND_API.G_MISS_DATE) = FND_API.G_MISS_DATE then

1875: else
1876: l_eam_required_flag := p_counter_template_rec.eam_required_flag;
1877: end if;
1878:
1879: if nvl(p_counter_template_rec.initial_reading_date, FND_API.G_MISS_DATE) = FND_API.G_MISS_DATE then
1880: l_initial_reading_date := sysdate;
1881: else
1882: l_initial_reading_date := p_counter_template_rec.initial_reading_date;
1883: end if;

Line 1901: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN

1897: ,x_msg_count => x_msg_count
1898: ,x_msg_data => x_msg_data
1899: );
1900:
1901: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN
1902: l_msg_index := 1;
1903: l_msg_count := x_msg_count;
1904:
1905: WHILE l_msg_count > 0 LOOP

Line 1908: FND_API.G_FALSE );

1904:
1905: WHILE l_msg_count > 0 LOOP
1906: x_msg_data := FND_MSG_PUB.GET
1907: (l_msg_index,
1908: FND_API.G_FALSE );
1909: csi_ctr_gen_utility_pvt.put_line('Error from CSI_COUNTER_PVT.CREATE_COUNTER_GROUP');
1910: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
1911: l_msg_index := l_msg_index + 1;
1912: l_msg_count := l_msg_count - 1;

Line 1914: RAISE FND_API.G_EXC_ERROR;

1910: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
1911: l_msg_index := l_msg_index + 1;
1912: l_msg_count := l_msg_count - 1;
1913: END LOOP;
1914: RAISE FND_API.G_EXC_ERROR;
1915: END IF;
1916:
1917: l_defaulted_group_id := l_counter_groups_rec.counter_group_id;
1918: else

Line 2018: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN

2014: );
2015:
2016: p_counter_template_rec.counter_id := l_counter_id;
2017:
2018: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN
2019: ROLLBACK TO create_counter_template_pvt;
2020: RETURN;
2021: END IF;
2022:

Line 2025: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN

2021: END IF;
2022:
2023: /* End of table handler call */
2024:
2025: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN
2026: COMMIT WORK;
2027: END IF;
2028:
2029: -- Standard call to get message count and IF count is get message info.

Line 2035: WHEN FND_API.G_EXC_ERROR THEN

2031: ( p_count => x_msg_count,
2032: p_data => x_msg_data
2033: );
2034: EXCEPTION
2035: WHEN FND_API.G_EXC_ERROR THEN
2036: x_return_status := FND_API.G_RET_STS_ERROR ;
2037: ROLLBACK TO create_counter_template_pvt;
2038: FND_MSG_PUB.Count_And_Get
2039: ( p_count => x_msg_count,

Line 2036: x_return_status := FND_API.G_RET_STS_ERROR ;

2032: p_data => x_msg_data
2033: );
2034: EXCEPTION
2035: WHEN FND_API.G_EXC_ERROR THEN
2036: x_return_status := FND_API.G_RET_STS_ERROR ;
2037: ROLLBACK TO create_counter_template_pvt;
2038: FND_MSG_PUB.Count_And_Get
2039: ( p_count => x_msg_count,
2040: p_data => x_msg_data

Line 2042: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN

2038: FND_MSG_PUB.Count_And_Get
2039: ( p_count => x_msg_count,
2040: p_data => x_msg_data
2041: );
2042: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
2043: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
2044: ROLLBACK TO create_counter_template_pvt;
2045: FND_MSG_PUB.Count_And_Get
2046: ( p_count => x_msg_count,

Line 2043: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

2039: ( p_count => x_msg_count,
2040: p_data => x_msg_data
2041: );
2042: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
2043: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
2044: ROLLBACK TO create_counter_template_pvt;
2045: FND_MSG_PUB.Count_And_Get
2046: ( p_count => x_msg_count,
2047: p_data => x_msg_data

Line 2050: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

2046: ( p_count => x_msg_count,
2047: p_data => x_msg_data
2048: );
2049: WHEN OTHERS THEN
2050: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
2051: ROLLBACK TO create_counter_template_pvt;
2052: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
2053: FND_MSG_PUB.Add_Exc_Msg
2054: ( G_PKG_NAME,

Line 2130: IF NOT FND_API.Compatible_API_Call (l_api_version,

2126: -- Standard Start of API savepoint
2127: SAVEPOINT create_ctr_property_tmpl_pvt;
2128:
2129: -- Standard call to check for call compatibility.
2130: IF NOT FND_API.Compatible_API_Call (l_api_version,
2131: p_api_version,
2132: l_api_name ,
2133: G_PKG_NAME ) THEN
2134: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 2134: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

2130: IF NOT FND_API.Compatible_API_Call (l_api_version,
2131: p_api_version,
2132: l_api_name ,
2133: G_PKG_NAME ) THEN
2134: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2135: END IF;
2136:
2137: -- Initialize message list if p_init_msg_list is set to TRUE.
2138: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

Line 2138: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

2134: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2135: END IF;
2136:
2137: -- Initialize message list if p_init_msg_list is set to TRUE.
2138: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
2139: FND_MSG_PUB.initialize;
2140: END IF;
2141:
2142: -- Read the debug profiles values in to global variable 7197402

Line 2146: x_return_status := FND_API.G_RET_STS_SUCCESS;

2142: -- Read the debug profiles values in to global variable 7197402
2143: CSI_CTR_GEN_UTILITY_PVT.read_debug_profiles;
2144:
2145: -- Initialize API return status to success
2146: x_return_status := FND_API.G_RET_STS_SUCCESS;
2147:
2148: --
2149: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
2150: csi_ctr_gen_utility_pvt.put_line( 'create_ctr_property_tmpl_pvt' ||'-'||

Line 2152: nvl(p_commit,FND_API.G_FALSE) ||'-'||

2148: --
2149: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
2150: csi_ctr_gen_utility_pvt.put_line( 'create_ctr_property_tmpl_pvt' ||'-'||
2151: p_api_version ||'-'||
2152: nvl(p_commit,FND_API.G_FALSE) ||'-'||
2153: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
2154: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
2155: END IF;
2156:

Line 2153: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||

2149: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
2150: csi_ctr_gen_utility_pvt.put_line( 'create_ctr_property_tmpl_pvt' ||'-'||
2151: p_api_version ||'-'||
2152: nvl(p_commit,FND_API.G_FALSE) ||'-'||
2153: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
2154: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
2155: END IF;
2156:
2157: if p_ctr_property_template_rec.name = FND_API.G_MISS_CHAR then

Line 2154: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );

2150: csi_ctr_gen_utility_pvt.put_line( 'create_ctr_property_tmpl_pvt' ||'-'||
2151: p_api_version ||'-'||
2152: nvl(p_commit,FND_API.G_FALSE) ||'-'||
2153: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
2154: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
2155: END IF;
2156:
2157: if p_ctr_property_template_rec.name = FND_API.G_MISS_CHAR then
2158: l_name := null;

Line 2157: if p_ctr_property_template_rec.name = FND_API.G_MISS_CHAR then

2153: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
2154: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
2155: END IF;
2156:
2157: if p_ctr_property_template_rec.name = FND_API.G_MISS_CHAR then
2158: l_name := null;
2159: else
2160: l_name := p_ctr_property_template_rec.name;
2161: end if;

Line 2163: if p_ctr_property_template_rec.description = FND_API.G_MISS_CHAR then

2159: else
2160: l_name := p_ctr_property_template_rec.name;
2161: end if;
2162:
2163: if p_ctr_property_template_rec.description = FND_API.G_MISS_CHAR then
2164: l_description := null;
2165: else
2166: l_description := p_ctr_property_template_rec.description;
2167: end if;

Line 2169: if p_ctr_property_template_rec.counter_property_id = FND_API.G_MISS_NUM then

2165: else
2166: l_description := p_ctr_property_template_rec.description;
2167: end if;
2168:
2169: if p_ctr_property_template_rec.counter_property_id = FND_API.G_MISS_NUM then
2170: l_counter_property_id := null;
2171: else
2172: l_counter_property_id := p_ctr_property_template_rec.counter_property_id;
2173: end if;

Line 2175: if p_ctr_property_template_rec.property_data_type = FND_API.G_MISS_CHAR then

2171: else
2172: l_counter_property_id := p_ctr_property_template_rec.counter_property_id;
2173: end if;
2174:
2175: if p_ctr_property_template_rec.property_data_type = FND_API.G_MISS_CHAR then
2176: l_property_data_type := null;
2177: else
2178: l_property_data_type := p_ctr_property_template_rec.property_data_type;
2179: end if;

Line 2181: if p_ctr_property_template_rec.IS_NULLABLE= FND_API.G_MISS_CHAR then

2177: else
2178: l_property_data_type := p_ctr_property_template_rec.property_data_type;
2179: end if;
2180:
2181: if p_ctr_property_template_rec.IS_NULLABLE= FND_API.G_MISS_CHAR then
2182: l_IS_NULLABLE := null;
2183: else
2184: l_IS_NULLABLE := p_ctr_property_template_rec.IS_NULLABLE;
2185: end if;

Line 2187: if p_ctr_property_template_rec.DEFAULT_VALUE= FND_API.G_MISS_CHAR then

2183: else
2184: l_IS_NULLABLE := p_ctr_property_template_rec.IS_NULLABLE;
2185: end if;
2186:
2187: if p_ctr_property_template_rec.DEFAULT_VALUE= FND_API.G_MISS_CHAR then
2188: l_DEFAULT_VALUE := null;
2189: else
2190: l_DEFAULT_VALUE := p_ctr_property_template_rec.DEFAULT_VALUE;
2191: end if;

Line 2193: if p_ctr_property_template_rec.MINIMUM_VALUE= FND_API.G_MISS_CHAR then

2189: else
2190: l_DEFAULT_VALUE := p_ctr_property_template_rec.DEFAULT_VALUE;
2191: end if;
2192:
2193: if p_ctr_property_template_rec.MINIMUM_VALUE= FND_API.G_MISS_CHAR then
2194: l_MINIMUM_VALUE := null;
2195: else
2196: l_MINIMUM_VALUE := p_ctr_property_template_rec.MINIMUM_VALUE;
2197: end if;

Line 2199: if p_ctr_property_template_rec.MAXIMUM_VALUE = FND_API.G_MISS_CHAR then

2195: else
2196: l_MINIMUM_VALUE := p_ctr_property_template_rec.MINIMUM_VALUE;
2197: end if;
2198:
2199: if p_ctr_property_template_rec.MAXIMUM_VALUE = FND_API.G_MISS_CHAR then
2200: l_MAXIMUM_VALUE := null;
2201: else
2202: l_MAXIMUM_VALUE := p_ctr_property_template_rec.MAXIMUM_VALUE;
2203: end if;

Line 2205: if p_ctr_property_template_rec.UOM_CODE = FND_API.G_MISS_CHAR then

2201: else
2202: l_MAXIMUM_VALUE := p_ctr_property_template_rec.MAXIMUM_VALUE;
2203: end if;
2204:
2205: if p_ctr_property_template_rec.UOM_CODE = FND_API.G_MISS_CHAR then
2206: l_UOM_CODE := null;
2207: else
2208: l_UOM_CODE := p_ctr_property_template_rec.UOM_CODE;
2209: end if;

Line 2211: if p_ctr_property_template_rec.property_lov_type = FND_API.G_MISS_CHAR then

2207: else
2208: l_UOM_CODE := p_ctr_property_template_rec.UOM_CODE;
2209: end if;
2210:
2211: if p_ctr_property_template_rec.property_lov_type = FND_API.G_MISS_CHAR then
2212: l_property_lov_type := null;
2213: else
2214: l_property_lov_type := p_ctr_property_template_rec.property_lov_type;
2215: end if;

Line 2217: if p_ctr_property_template_rec.counter_id = FND_API.G_MISS_NUM then

2213: else
2214: l_property_lov_type := p_ctr_property_template_rec.property_lov_type;
2215: end if;
2216:
2217: if p_ctr_property_template_rec.counter_id = FND_API.G_MISS_NUM then
2218: l_counter_id := null;
2219: else
2220: l_counter_id := p_ctr_property_template_rec.counter_id;
2221: end if;

Line 2223: if p_ctr_property_template_rec.security_group_id = FND_API.G_MISS_NUM then

2219: else
2220: l_counter_id := p_ctr_property_template_rec.counter_id;
2221: end if;
2222:
2223: if p_ctr_property_template_rec.security_group_id = FND_API.G_MISS_NUM then
2224: l_security_group_id := null;
2225: else
2226: l_security_group_id := p_ctr_property_template_rec.security_group_id;
2227: end if;

Line 2229: if nvl(p_ctr_property_template_rec.start_date_active,FND_API.G_MISS_DATE) = FND_API.G_MISS_DATE then

2225: else
2226: l_security_group_id := p_ctr_property_template_rec.security_group_id;
2227: end if;
2228:
2229: if nvl(p_ctr_property_template_rec.start_date_active,FND_API.G_MISS_DATE) = FND_API.G_MISS_DATE then
2230: l_start_date_active := sysdate;
2231: else
2232: l_start_date_active := p_ctr_property_template_rec.start_date_active;
2233: end if;

Line 2235: if p_ctr_property_template_rec.end_date_active = FND_API.G_MISS_DATE then

2231: else
2232: l_start_date_active := p_ctr_property_template_rec.start_date_active;
2233: end if;
2234:
2235: if p_ctr_property_template_rec.end_date_active = FND_API.G_MISS_DATE then
2236: l_end_date_active := null;
2237: else
2238: l_end_date_active := p_ctr_property_template_rec.end_date_active;
2239: end if;

Line 2241: if p_ctr_property_template_rec.attribute1 = FND_API.G_MISS_CHAR then

2237: else
2238: l_end_date_active := p_ctr_property_template_rec.end_date_active;
2239: end if;
2240:
2241: if p_ctr_property_template_rec.attribute1 = FND_API.G_MISS_CHAR then
2242: l_attribute1 := null;
2243: else
2244: l_attribute1 := p_ctr_property_template_rec.attribute1;
2245: end if;

Line 2247: if p_ctr_property_template_rec.attribute2 = FND_API.G_MISS_CHAR then

2243: else
2244: l_attribute1 := p_ctr_property_template_rec.attribute1;
2245: end if;
2246:
2247: if p_ctr_property_template_rec.attribute2 = FND_API.G_MISS_CHAR then
2248: l_attribute2 := null;
2249: else
2250: l_attribute2 := p_ctr_property_template_rec.attribute2;
2251: end if;

Line 2253: if p_ctr_property_template_rec.attribute3 = FND_API.G_MISS_CHAR then

2249: else
2250: l_attribute2 := p_ctr_property_template_rec.attribute2;
2251: end if;
2252:
2253: if p_ctr_property_template_rec.attribute3 = FND_API.G_MISS_CHAR then
2254: l_attribute3 := null;
2255: else
2256: l_attribute3 := p_ctr_property_template_rec.attribute3;
2257: end if;

Line 2259: if p_ctr_property_template_rec.attribute4 = FND_API.G_MISS_CHAR then

2255: else
2256: l_attribute3 := p_ctr_property_template_rec.attribute3;
2257: end if;
2258:
2259: if p_ctr_property_template_rec.attribute4 = FND_API.G_MISS_CHAR then
2260: l_attribute4 := null;
2261: else
2262: l_attribute4 := p_ctr_property_template_rec.attribute4;
2263: end if;

Line 2265: if p_ctr_property_template_rec.attribute5 = FND_API.G_MISS_CHAR then

2261: else
2262: l_attribute4 := p_ctr_property_template_rec.attribute4;
2263: end if;
2264:
2265: if p_ctr_property_template_rec.attribute5 = FND_API.G_MISS_CHAR then
2266: l_attribute5 := null;
2267: else
2268: l_attribute5 := p_ctr_property_template_rec.attribute5;
2269: end if;

Line 2271: if p_ctr_property_template_rec.attribute6 = FND_API.G_MISS_CHAR then

2267: else
2268: l_attribute5 := p_ctr_property_template_rec.attribute5;
2269: end if;
2270:
2271: if p_ctr_property_template_rec.attribute6 = FND_API.G_MISS_CHAR then
2272: l_attribute6 := null;
2273: else
2274: l_attribute6 := p_ctr_property_template_rec.attribute6;
2275: end if;

Line 2277: if p_ctr_property_template_rec.attribute7 = FND_API.G_MISS_CHAR then

2273: else
2274: l_attribute6 := p_ctr_property_template_rec.attribute6;
2275: end if;
2276:
2277: if p_ctr_property_template_rec.attribute7 = FND_API.G_MISS_CHAR then
2278: l_attribute7 := null;
2279: else
2280: l_attribute7 := p_ctr_property_template_rec.attribute7;
2281: end if;

Line 2283: if p_ctr_property_template_rec.attribute8 = FND_API.G_MISS_CHAR then

2279: else
2280: l_attribute7 := p_ctr_property_template_rec.attribute7;
2281: end if;
2282:
2283: if p_ctr_property_template_rec.attribute8 = FND_API.G_MISS_CHAR then
2284: l_attribute8 := null;
2285: else
2286: l_attribute8 := p_ctr_property_template_rec.attribute8;
2287: end if;

Line 2289: if p_ctr_property_template_rec.attribute9 = FND_API.G_MISS_CHAR then

2285: else
2286: l_attribute8 := p_ctr_property_template_rec.attribute8;
2287: end if;
2288:
2289: if p_ctr_property_template_rec.attribute9 = FND_API.G_MISS_CHAR then
2290: l_attribute9 := null;
2291: else
2292: l_attribute9 := p_ctr_property_template_rec.attribute9;
2293: end if;

Line 2295: if p_ctr_property_template_rec.attribute10 = FND_API.G_MISS_CHAR then

2291: else
2292: l_attribute9 := p_ctr_property_template_rec.attribute9;
2293: end if;
2294:
2295: if p_ctr_property_template_rec.attribute10 = FND_API.G_MISS_CHAR then
2296: l_attribute10 := null;
2297: else
2298: l_attribute10 := p_ctr_property_template_rec.attribute10;
2299: end if;

Line 2301: if p_ctr_property_template_rec.attribute11 = FND_API.G_MISS_CHAR then

2297: else
2298: l_attribute10 := p_ctr_property_template_rec.attribute10;
2299: end if;
2300:
2301: if p_ctr_property_template_rec.attribute11 = FND_API.G_MISS_CHAR then
2302: l_attribute11 := null;
2303: else
2304: l_attribute11 := p_ctr_property_template_rec.attribute11;
2305: end if;

Line 2307: if p_ctr_property_template_rec.attribute12 = FND_API.G_MISS_CHAR then

2303: else
2304: l_attribute11 := p_ctr_property_template_rec.attribute11;
2305: end if;
2306:
2307: if p_ctr_property_template_rec.attribute12 = FND_API.G_MISS_CHAR then
2308: l_attribute12 := null;
2309: else
2310: l_attribute12 := p_ctr_property_template_rec.attribute12;
2311: end if;

Line 2313: if p_ctr_property_template_rec.attribute13 = FND_API.G_MISS_CHAR then

2309: else
2310: l_attribute12 := p_ctr_property_template_rec.attribute12;
2311: end if;
2312:
2313: if p_ctr_property_template_rec.attribute13 = FND_API.G_MISS_CHAR then
2314: l_attribute13 := null;
2315: else
2316: l_attribute13 := p_ctr_property_template_rec.attribute13;
2317: end if;

Line 2319: if p_ctr_property_template_rec.attribute14 = FND_API.G_MISS_CHAR then

2315: else
2316: l_attribute13 := p_ctr_property_template_rec.attribute13;
2317: end if;
2318:
2319: if p_ctr_property_template_rec.attribute14 = FND_API.G_MISS_CHAR then
2320: l_attribute14 := null;
2321: else
2322: l_attribute14 := p_ctr_property_template_rec.attribute14;
2323: end if;

Line 2325: if p_ctr_property_template_rec.attribute15 = FND_API.G_MISS_CHAR then

2321: else
2322: l_attribute14 := p_ctr_property_template_rec.attribute14;
2323: end if;
2324:
2325: if p_ctr_property_template_rec.attribute15 = FND_API.G_MISS_CHAR then
2326: l_attribute15 := null;
2327: else
2328: l_attribute15 := p_ctr_property_template_rec.attribute15;
2329: end if;

Line 2331: if p_ctr_property_template_rec.attribute_category = FND_API.G_MISS_CHAR then

2327: else
2328: l_attribute15 := p_ctr_property_template_rec.attribute15;
2329: end if;
2330:
2331: if p_ctr_property_template_rec.attribute_category = FND_API.G_MISS_CHAR then
2332: l_attribute_category := null;
2333: else
2334: l_attribute_category := p_ctr_property_template_rec.attribute_category;
2335: end if;

Line 2337: if p_ctr_property_template_rec.migrated_flag = FND_API.G_MISS_CHAR then

2333: else
2334: l_attribute_category := p_ctr_property_template_rec.attribute_category;
2335: end if;
2336:
2337: if p_ctr_property_template_rec.migrated_flag = FND_API.G_MISS_CHAR then
2338: l_migrated_flag := null;
2339: else
2340: l_migrated_flag := p_ctr_property_template_rec.migrated_flag;
2341: end if;

Line 2402: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN

2398: ,p_NAME => l_name
2399: ,p_DESCRIPTION => l_description
2400: );
2401:
2402: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN
2403: ROLLBACK TO create_ctr_property_tmpl_pvt;
2404: RETURN;
2405: END IF;
2406:

Line 2409: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN

2405: END IF;
2406:
2407: /* End of table handler call */
2408:
2409: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN
2410: COMMIT WORK;
2411: END IF;
2412:
2413: -- Standard call to get message count and IF count is get message info.

Line 2419: WHEN FND_API.G_EXC_ERROR THEN

2415: ( p_count => x_msg_count,
2416: p_data => x_msg_data
2417: );
2418: EXCEPTION
2419: WHEN FND_API.G_EXC_ERROR THEN
2420: x_return_status := FND_API.G_RET_STS_ERROR ;
2421: ROLLBACK TO create_ctr_property_tmpl_pvt;
2422: FND_MSG_PUB.Count_And_Get
2423: ( p_count => x_msg_count,

Line 2420: x_return_status := FND_API.G_RET_STS_ERROR ;

2416: p_data => x_msg_data
2417: );
2418: EXCEPTION
2419: WHEN FND_API.G_EXC_ERROR THEN
2420: x_return_status := FND_API.G_RET_STS_ERROR ;
2421: ROLLBACK TO create_ctr_property_tmpl_pvt;
2422: FND_MSG_PUB.Count_And_Get
2423: ( p_count => x_msg_count,
2424: p_data => x_msg_data

Line 2426: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN

2422: FND_MSG_PUB.Count_And_Get
2423: ( p_count => x_msg_count,
2424: p_data => x_msg_data
2425: );
2426: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
2427: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
2428: ROLLBACK TO create_ctr_property_tmpl_pvt;
2429: FND_MSG_PUB.Count_And_Get
2430: ( p_count => x_msg_count,

Line 2427: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

2423: ( p_count => x_msg_count,
2424: p_data => x_msg_data
2425: );
2426: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
2427: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
2428: ROLLBACK TO create_ctr_property_tmpl_pvt;
2429: FND_MSG_PUB.Count_And_Get
2430: ( p_count => x_msg_count,
2431: p_data => x_msg_data

Line 2434: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

2430: ( p_count => x_msg_count,
2431: p_data => x_msg_data
2432: );
2433: WHEN OTHERS THEN
2434: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
2435: ROLLBACK TO create_ctr_property_tmpl_pvt;
2436: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
2437: FND_MSG_PUB.Add_Exc_Msg
2438: ( G_PKG_NAME,

Line 2524: IF NOT FND_API.Compatible_API_Call (l_api_version,

2520: -- Standard Start of API savepoint
2521: SAVEPOINT create_ctr_relationship_pvt;
2522:
2523: -- Standard call to check for call compatibility.
2524: IF NOT FND_API.Compatible_API_Call (l_api_version,
2525: p_api_version,
2526: l_api_name ,
2527: G_PKG_NAME ) THEN
2528: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 2528: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

2524: IF NOT FND_API.Compatible_API_Call (l_api_version,
2525: p_api_version,
2526: l_api_name ,
2527: G_PKG_NAME ) THEN
2528: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2529: END IF;
2530:
2531: -- Initialize message list if p_init_msg_list is set to TRUE.
2532: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

Line 2532: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

2528: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2529: END IF;
2530:
2531: -- Initialize message list if p_init_msg_list is set to TRUE.
2532: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
2533: FND_MSG_PUB.initialize;
2534: END IF;
2535:
2536: -- Read the debug profiles values in to global variable 7197402

Line 2540: x_return_status := FND_API.G_RET_STS_SUCCESS;

2536: -- Read the debug profiles values in to global variable 7197402
2537: CSI_CTR_GEN_UTILITY_PVT.read_debug_profiles;
2538:
2539: -- Initialize API return status to success
2540: x_return_status := FND_API.G_RET_STS_SUCCESS;
2541:
2542: --
2543: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
2544: csi_ctr_gen_utility_pvt.put_line

Line 2547: nvl(p_commit,FND_API.G_FALSE) ||'-'||

2543: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
2544: csi_ctr_gen_utility_pvt.put_line
2545: ( 'create_ctr_relationship_pvt' ||'-'||
2546: p_api_version ||'-'||
2547: nvl(p_commit,FND_API.G_FALSE) ||'-'||
2548: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
2549: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
2550: END IF;
2551:

Line 2548: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||

2544: csi_ctr_gen_utility_pvt.put_line
2545: ( 'create_ctr_relationship_pvt' ||'-'||
2546: p_api_version ||'-'||
2547: nvl(p_commit,FND_API.G_FALSE) ||'-'||
2548: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
2549: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
2550: END IF;
2551:
2552: if p_counter_relationships_rec.relationship_id = FND_API.G_MISS_NUM then

Line 2549: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );

2545: ( 'create_ctr_relationship_pvt' ||'-'||
2546: p_api_version ||'-'||
2547: nvl(p_commit,FND_API.G_FALSE) ||'-'||
2548: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
2549: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
2550: END IF;
2551:
2552: if p_counter_relationships_rec.relationship_id = FND_API.G_MISS_NUM then
2553: l_relationship_id := null;

Line 2552: if p_counter_relationships_rec.relationship_id = FND_API.G_MISS_NUM then

2548: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
2549: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
2550: END IF;
2551:
2552: if p_counter_relationships_rec.relationship_id = FND_API.G_MISS_NUM then
2553: l_relationship_id := null;
2554: else
2555: l_relationship_id := p_counter_relationships_rec.relationship_id;
2556: end if;

Line 2558: if p_counter_relationships_rec.ctr_association_id = FND_API.G_MISS_NUM then

2554: else
2555: l_relationship_id := p_counter_relationships_rec.relationship_id;
2556: end if;
2557:
2558: if p_counter_relationships_rec.ctr_association_id = FND_API.G_MISS_NUM then
2559: l_ctr_association_id := null;
2560: else
2561: l_ctr_association_id := p_counter_relationships_rec.ctr_association_id;
2562: end if;

Line 2564: if p_counter_relationships_rec.relationship_type_code = FND_API.G_MISS_CHAR then

2560: else
2561: l_ctr_association_id := p_counter_relationships_rec.ctr_association_id;
2562: end if;
2563:
2564: if p_counter_relationships_rec.relationship_type_code = FND_API.G_MISS_CHAR then
2565: l_relationship_type_code := null;
2566: else
2567: l_relationship_type_code := p_counter_relationships_rec.relationship_type_code;
2568: end if;

Line 2570: if p_counter_relationships_rec.source_counter_id = FND_API.G_MISS_NUM then

2566: else
2567: l_relationship_type_code := p_counter_relationships_rec.relationship_type_code;
2568: end if;
2569:
2570: if p_counter_relationships_rec.source_counter_id = FND_API.G_MISS_NUM then
2571: l_source_counter_id := null;
2572: else
2573: l_source_counter_id := p_counter_relationships_rec.source_counter_id;
2574: end if;

Line 2576: if p_counter_relationships_rec.object_counter_id = FND_API.G_MISS_NUM then

2572: else
2573: l_source_counter_id := p_counter_relationships_rec.source_counter_id;
2574: end if;
2575:
2576: if p_counter_relationships_rec.object_counter_id = FND_API.G_MISS_NUM then
2577: l_object_counter_id := null;
2578: else
2579: l_object_counter_id := p_counter_relationships_rec.object_counter_id;
2580: end if;

Line 2582: if p_counter_relationships_rec.security_group_id = FND_API.G_MISS_NUM then

2578: else
2579: l_object_counter_id := p_counter_relationships_rec.object_counter_id;
2580: end if;
2581:
2582: if p_counter_relationships_rec.security_group_id = FND_API.G_MISS_NUM then
2583: l_security_group_id := null;
2584: else
2585: l_security_group_id := p_counter_relationships_rec.security_group_id;
2586: end if;

Line 2588: if nvl(p_counter_relationships_rec.active_start_date,FND_API.G_MISS_DATE) = FND_API.G_MISS_DATE then

2584: else
2585: l_security_group_id := p_counter_relationships_rec.security_group_id;
2586: end if;
2587:
2588: if nvl(p_counter_relationships_rec.active_start_date,FND_API.G_MISS_DATE) = FND_API.G_MISS_DATE then
2589: l_active_start_date := sysdate;
2590: else
2591: l_active_start_date := p_counter_relationships_rec.active_start_date;
2592: end if;

Line 2594: if p_counter_relationships_rec.active_end_date = FND_API.G_MISS_DATE then

2590: else
2591: l_active_start_date := p_counter_relationships_rec.active_start_date;
2592: end if;
2593:
2594: if p_counter_relationships_rec.active_end_date = FND_API.G_MISS_DATE then
2595: l_active_end_date := null;
2596: else
2597: l_active_end_date := p_counter_relationships_rec.active_end_date;
2598: end if;

Line 2600: if p_counter_relationships_rec.attribute1 = FND_API.G_MISS_CHAR then

2596: else
2597: l_active_end_date := p_counter_relationships_rec.active_end_date;
2598: end if;
2599:
2600: if p_counter_relationships_rec.attribute1 = FND_API.G_MISS_CHAR then
2601: l_attribute1 := null;
2602: else
2603: l_attribute1 := p_counter_relationships_rec.attribute1;
2604: end if;

Line 2606: if p_counter_relationships_rec.attribute2 = FND_API.G_MISS_CHAR then

2602: else
2603: l_attribute1 := p_counter_relationships_rec.attribute1;
2604: end if;
2605:
2606: if p_counter_relationships_rec.attribute2 = FND_API.G_MISS_CHAR then
2607: l_attribute2 := null;
2608: else
2609: l_attribute2 := p_counter_relationships_rec.attribute2;
2610: end if;

Line 2612: if p_counter_relationships_rec.attribute3 = FND_API.G_MISS_CHAR then

2608: else
2609: l_attribute2 := p_counter_relationships_rec.attribute2;
2610: end if;
2611:
2612: if p_counter_relationships_rec.attribute3 = FND_API.G_MISS_CHAR then
2613: l_attribute3 := null;
2614: else
2615: l_attribute3 := p_counter_relationships_rec.attribute3;
2616: end if;

Line 2618: if p_counter_relationships_rec.attribute4 = FND_API.G_MISS_CHAR then

2614: else
2615: l_attribute3 := p_counter_relationships_rec.attribute3;
2616: end if;
2617:
2618: if p_counter_relationships_rec.attribute4 = FND_API.G_MISS_CHAR then
2619: l_attribute4 := null;
2620: else
2621: l_attribute4 := p_counter_relationships_rec.attribute4;
2622: end if;

Line 2624: if p_counter_relationships_rec.attribute5 = FND_API.G_MISS_CHAR then

2620: else
2621: l_attribute4 := p_counter_relationships_rec.attribute4;
2622: end if;
2623:
2624: if p_counter_relationships_rec.attribute5 = FND_API.G_MISS_CHAR then
2625: l_attribute5 := null;
2626: else
2627: l_attribute5 := p_counter_relationships_rec.attribute5;
2628: end if;

Line 2630: if p_counter_relationships_rec.attribute6 = FND_API.G_MISS_CHAR then

2626: else
2627: l_attribute5 := p_counter_relationships_rec.attribute5;
2628: end if;
2629:
2630: if p_counter_relationships_rec.attribute6 = FND_API.G_MISS_CHAR then
2631: l_attribute6 := null;
2632: else
2633: l_attribute6 := p_counter_relationships_rec.attribute6;
2634: end if;

Line 2636: if p_counter_relationships_rec.attribute7 = FND_API.G_MISS_CHAR then

2632: else
2633: l_attribute6 := p_counter_relationships_rec.attribute6;
2634: end if;
2635:
2636: if p_counter_relationships_rec.attribute7 = FND_API.G_MISS_CHAR then
2637: l_attribute7 := null;
2638: else
2639: l_attribute7 := p_counter_relationships_rec.attribute7;
2640: end if;

Line 2642: if p_counter_relationships_rec.attribute8 = FND_API.G_MISS_CHAR then

2638: else
2639: l_attribute7 := p_counter_relationships_rec.attribute7;
2640: end if;
2641:
2642: if p_counter_relationships_rec.attribute8 = FND_API.G_MISS_CHAR then
2643: l_attribute8 := null;
2644: else
2645: l_attribute8 := p_counter_relationships_rec.attribute8;
2646: end if;

Line 2648: if p_counter_relationships_rec.attribute9 = FND_API.G_MISS_CHAR then

2644: else
2645: l_attribute8 := p_counter_relationships_rec.attribute8;
2646: end if;
2647:
2648: if p_counter_relationships_rec.attribute9 = FND_API.G_MISS_CHAR then
2649: l_attribute9 := null;
2650: else
2651: l_attribute9 := p_counter_relationships_rec.attribute9;
2652: end if;

Line 2654: if p_counter_relationships_rec.attribute10 = FND_API.G_MISS_CHAR then

2650: else
2651: l_attribute9 := p_counter_relationships_rec.attribute9;
2652: end if;
2653:
2654: if p_counter_relationships_rec.attribute10 = FND_API.G_MISS_CHAR then
2655: l_attribute10 := null;
2656: else
2657: l_attribute10 := p_counter_relationships_rec.attribute10;
2658: end if;

Line 2660: if p_counter_relationships_rec.attribute11 = FND_API.G_MISS_CHAR then

2656: else
2657: l_attribute10 := p_counter_relationships_rec.attribute10;
2658: end if;
2659:
2660: if p_counter_relationships_rec.attribute11 = FND_API.G_MISS_CHAR then
2661: l_attribute11 := null;
2662: else
2663: l_attribute11 := p_counter_relationships_rec.attribute11;
2664: end if;

Line 2666: if p_counter_relationships_rec.attribute12 = FND_API.G_MISS_CHAR then

2662: else
2663: l_attribute11 := p_counter_relationships_rec.attribute11;
2664: end if;
2665:
2666: if p_counter_relationships_rec.attribute12 = FND_API.G_MISS_CHAR then
2667: l_attribute12 := null;
2668: else
2669: l_attribute12 := p_counter_relationships_rec.attribute12;
2670: end if;

Line 2672: if p_counter_relationships_rec.attribute13 = FND_API.G_MISS_CHAR then

2668: else
2669: l_attribute12 := p_counter_relationships_rec.attribute12;
2670: end if;
2671:
2672: if p_counter_relationships_rec.attribute13 = FND_API.G_MISS_CHAR then
2673: l_attribute13 := null;
2674: else
2675: l_attribute13 := p_counter_relationships_rec.attribute13;
2676: end if;

Line 2678: if p_counter_relationships_rec.attribute14 = FND_API.G_MISS_CHAR then

2674: else
2675: l_attribute13 := p_counter_relationships_rec.attribute13;
2676: end if;
2677:
2678: if p_counter_relationships_rec.attribute14 = FND_API.G_MISS_CHAR then
2679: l_attribute14 := null;
2680: else
2681: l_attribute14 := p_counter_relationships_rec.attribute14;
2682: end if;

Line 2684: if p_counter_relationships_rec.attribute15 = FND_API.G_MISS_CHAR then

2680: else
2681: l_attribute14 := p_counter_relationships_rec.attribute14;
2682: end if;
2683:
2684: if p_counter_relationships_rec.attribute15 = FND_API.G_MISS_CHAR then
2685: l_attribute15 := null;
2686: else
2687: l_attribute15 := p_counter_relationships_rec.attribute15;
2688: end if;

Line 2690: if p_counter_relationships_rec.attribute_category = FND_API.G_MISS_CHAR then

2686: else
2687: l_attribute15 := p_counter_relationships_rec.attribute15;
2688: end if;
2689:
2690: if p_counter_relationships_rec.attribute_category = FND_API.G_MISS_CHAR then
2691: l_attribute_category := null;
2692: else
2693: l_attribute_category := p_counter_relationships_rec.attribute_category;
2694: end if;

Line 2696: if p_counter_relationships_rec.migrated_flag = FND_API.G_MISS_CHAR then

2692: else
2693: l_attribute_category := p_counter_relationships_rec.attribute_category;
2694: end if;
2695:
2696: if p_counter_relationships_rec.migrated_flag = FND_API.G_MISS_CHAR then
2697: l_migrated_flag := null;
2698: else
2699: l_migrated_flag := p_counter_relationships_rec.migrated_flag;
2700: end if;

Line 2702: if p_counter_relationships_rec.bind_variable_name = FND_API.G_MISS_CHAR then

2698: else
2699: l_migrated_flag := p_counter_relationships_rec.migrated_flag;
2700: end if;
2701:
2702: if p_counter_relationships_rec.bind_variable_name = FND_API.G_MISS_CHAR then
2703: l_bind_variable_name := null;
2704: else
2705: l_bind_variable_name := p_counter_relationships_rec.bind_variable_name;
2706: end if;

Line 2708: if p_counter_relationships_rec.factor = FND_API.G_MISS_NUM then

2704: else
2705: l_bind_variable_name := p_counter_relationships_rec.bind_variable_name;
2706: end if;
2707:
2708: if p_counter_relationships_rec.factor = FND_API.G_MISS_NUM then
2709: l_factor := null;
2710: else
2711: l_factor := p_counter_relationships_rec.factor;
2712: end if;

Line 2832: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN

2828: ,p_MIGRATED_FLAG => l_migrated_flag
2829: ,p_BIND_VARIABLE_NAME => l_bind_variable_name
2830: ,p_FACTOR => l_factor);
2831:
2832: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN
2833: ROLLBACK TO create_ctr_relationship_pvt;
2834: RETURN;
2835: END IF;
2836:

Line 2839: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN

2835: END IF;
2836:
2837: /* End of table handler call */
2838:
2839: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN
2840: COMMIT WORK;
2841: END IF;
2842:
2843: -- Standard call to get message count and IF count is get message info.

Line 2849: WHEN FND_API.G_EXC_ERROR THEN

2845: ( p_count => x_msg_count,
2846: p_data => x_msg_data
2847: );
2848: EXCEPTION
2849: WHEN FND_API.G_EXC_ERROR THEN
2850: x_return_status := FND_API.G_RET_STS_ERROR ;
2851: ROLLBACK TO create_ctr_relationship_pvt;
2852: FND_MSG_PUB.Count_And_Get
2853: ( p_count => x_msg_count,

Line 2850: x_return_status := FND_API.G_RET_STS_ERROR ;

2846: p_data => x_msg_data
2847: );
2848: EXCEPTION
2849: WHEN FND_API.G_EXC_ERROR THEN
2850: x_return_status := FND_API.G_RET_STS_ERROR ;
2851: ROLLBACK TO create_ctr_relationship_pvt;
2852: FND_MSG_PUB.Count_And_Get
2853: ( p_count => x_msg_count,
2854: p_data => x_msg_data

Line 2856: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN

2852: FND_MSG_PUB.Count_And_Get
2853: ( p_count => x_msg_count,
2854: p_data => x_msg_data
2855: );
2856: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
2857: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
2858: ROLLBACK TO create_ctr_relationship_pvt;
2859: FND_MSG_PUB.Count_And_Get
2860: ( p_count => x_msg_count,

Line 2857: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

2853: ( p_count => x_msg_count,
2854: p_data => x_msg_data
2855: );
2856: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
2857: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
2858: ROLLBACK TO create_ctr_relationship_pvt;
2859: FND_MSG_PUB.Count_And_Get
2860: ( p_count => x_msg_count,
2861: p_data => x_msg_data

Line 2864: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

2860: ( p_count => x_msg_count,
2861: p_data => x_msg_data
2862: );
2863: WHEN OTHERS THEN
2864: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
2865: ROLLBACK TO create_ctr_relationship_pvt;
2866: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
2867: FND_MSG_PUB.Add_Exc_Msg
2868: ( G_PKG_NAME,

Line 2923: IF NOT FND_API.Compatible_API_Call (l_api_version,

2919:
2920: -- csi_ctr_gen_utility_pvt.check_ib_active;
2921:
2922: -- Standard call to check for call compatibility.
2923: IF NOT FND_API.Compatible_API_Call (l_api_version,
2924: p_api_version,
2925: l_api_name ,
2926: G_PKG_NAME )
2927: THEN

Line 2928: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

2924: p_api_version,
2925: l_api_name ,
2926: G_PKG_NAME )
2927: THEN
2928: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2929: END IF;
2930: -- Initialize message list if p_init_msg_list is set to TRUE.
2931: IF FND_API.to_Boolean( p_init_msg_list ) THEN
2932: FND_MSG_PUB.initialize;

Line 2931: IF FND_API.to_Boolean( p_init_msg_list ) THEN

2927: THEN
2928: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2929: END IF;
2930: -- Initialize message list if p_init_msg_list is set to TRUE.
2931: IF FND_API.to_Boolean( p_init_msg_list ) THEN
2932: FND_MSG_PUB.initialize;
2933: END IF;
2934:
2935: -- Initialize API return status to success

Line 2936: x_return_status := FND_API.G_RET_STS_SUCCESS;

2932: FND_MSG_PUB.initialize;
2933: END IF;
2934:
2935: -- Initialize API return status to success
2936: x_return_status := FND_API.G_RET_STS_SUCCESS;
2937:
2938: -- Read the debug profiles values in to global variable 7197402
2939: CSI_CTR_GEN_UTILITY_PVT.read_debug_profiles;
2940:

Line 3013: IF l_ctr_derived_filters_rec.LOGICAL_OPERATOR = FND_API.G_MISS_CHAR then

3009:
3010: -- validate LOGICAL_OPERATOR
3011: -- l_log_op := upper(l_ctr_derived_filters_rec.LOGICAL_OPERATOR);
3012:
3013: IF l_ctr_derived_filters_rec.LOGICAL_OPERATOR = FND_API.G_MISS_CHAR then
3014: l_log_op := null;
3015: ELSE
3016: l_log_op := upper(l_ctr_derived_filters_rec.LOGICAL_OPERATOR);
3017: END IF;

Line 3042: IF l_ctr_derived_filters_rec.seq_no = FND_API.G_MISS_NUM then

3038: p_seg_values => l_desc_flex
3039: );
3040: */
3041: -- get the SEQ_NO
3042: IF l_ctr_derived_filters_rec.seq_no = FND_API.G_MISS_NUM then
3043: l_ctr_derived_filters_rec.seq_no := null;
3044: END IF;
3045:
3046: IF l_ctr_derived_filters_rec.SEQ_NO IS NULL THEN

Line 3118: p_commit => FND_API.G_FALSE,

3114: --addition of this filter.
3115: csi_ctr_gen_utility_pvt.Validate_GrpOp_ctr
3116: (
3117: p_api_version => 1.0,
3118: p_commit => FND_API.G_FALSE,
3119: p_validation_level => FND_API.G_VALID_LEVEL_NONE,
3120: x_return_status => l_return_status,
3121: x_msg_count => l_msg_count,
3122: x_msg_data => l_msg_data,

Line 3119: p_validation_level => FND_API.G_VALID_LEVEL_NONE,

3115: csi_ctr_gen_utility_pvt.Validate_GrpOp_ctr
3116: (
3117: p_api_version => 1.0,
3118: p_commit => FND_API.G_FALSE,
3119: p_validation_level => FND_API.G_VALID_LEVEL_NONE,
3120: x_return_status => l_return_status,
3121: x_msg_count => l_msg_count,
3122: x_msg_data => l_msg_data,
3123: p_counter_id => l_ctr_derived_filters_rec.COUNTER_ID,

Line 3127: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN

3123: p_counter_id => l_ctr_derived_filters_rec.COUNTER_ID,
3124: x_valid_flag => l_valid_flag
3125: );
3126:
3127: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
3128: RAISE FND_API.G_EXC_ERROR;
3129: END IF;
3130:
3131: UPDATE csi_counters_b

Line 3128: RAISE FND_API.G_EXC_ERROR;

3124: x_valid_flag => l_valid_flag
3125: );
3126:
3127: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
3128: RAISE FND_API.G_EXC_ERROR;
3129: END IF;
3130:
3131: UPDATE csi_counters_b
3132: SET valid_flag = decode(l_valid_flag, 'Y', 'Y', 'N')

Line 3140: IF FND_API.To_Boolean( p_commit ) THEN

3136:
3137: -- End of API body
3138:
3139: -- Standard check of p_commit.
3140: IF FND_API.To_Boolean( p_commit ) THEN
3141: COMMIT WORK;
3142: END IF;
3143:
3144: FND_MSG_PUB.Count_And_Get

Line 3150: WHEN FND_API.G_EXC_ERROR THEN

3146: p_data => x_msg_data
3147: );
3148:
3149: EXCEPTION
3150: WHEN FND_API.G_EXC_ERROR THEN
3151: x_return_status := FND_API.G_RET_STS_ERROR ;
3152: ROLLBACK TO create_derived_filters;
3153: FND_MSG_PUB.Count_And_Get
3154: (p_count => x_msg_count,

Line 3151: x_return_status := FND_API.G_RET_STS_ERROR ;

3147: );
3148:
3149: EXCEPTION
3150: WHEN FND_API.G_EXC_ERROR THEN
3151: x_return_status := FND_API.G_RET_STS_ERROR ;
3152: ROLLBACK TO create_derived_filters;
3153: FND_MSG_PUB.Count_And_Get
3154: (p_count => x_msg_count,
3155: p_data => x_msg_data

Line 3158: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN

3154: (p_count => x_msg_count,
3155: p_data => x_msg_data
3156: );
3157:
3158: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
3159: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
3160: ROLLBACK TO create_derived_filters;
3161: FND_MSG_PUB.Count_And_Get
3162: (p_count => x_msg_count,

Line 3159: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

3155: p_data => x_msg_data
3156: );
3157:
3158: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
3159: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
3160: ROLLBACK TO create_derived_filters;
3161: FND_MSG_PUB.Count_And_Get
3162: (p_count => x_msg_count,
3163: p_data => x_msg_data

Line 3166: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

3162: (p_count => x_msg_count,
3163: p_data => x_msg_data
3164: );
3165: WHEN OTHERS THEN
3166: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
3167: ROLLBACK TO create_derived_filters;
3168: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
3169: THEN
3170: FND_MSG_PUB.Add_Exc_Msg

Line 3255: IF NOT FND_API.Compatible_API_Call (l_api_version,

3251: -- Standard Start of API savepoint
3252: SAVEPOINT update_counter_group_pvt;
3253:
3254: -- Standard call to check for call compatibility.
3255: IF NOT FND_API.Compatible_API_Call (l_api_version,
3256: p_api_version,
3257: l_api_name ,
3258: G_PKG_NAME ) THEN
3259: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 3259: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

3255: IF NOT FND_API.Compatible_API_Call (l_api_version,
3256: p_api_version,
3257: l_api_name ,
3258: G_PKG_NAME ) THEN
3259: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3260: END IF;
3261:
3262: -- Initialize message list if p_init_msg_list is set to TRUE.
3263: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

Line 3263: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

3259: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3260: END IF;
3261:
3262: -- Initialize message list if p_init_msg_list is set to TRUE.
3263: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
3264: FND_MSG_PUB.initialize;
3265: END IF;
3266:
3267: -- Initialize API return status to success

Line 3268: x_return_status := FND_API.G_RET_STS_SUCCESS;

3264: FND_MSG_PUB.initialize;
3265: END IF;
3266:
3267: -- Initialize API return status to success
3268: x_return_status := FND_API.G_RET_STS_SUCCESS;
3269:
3270: -- Read the debug profiles values in to global variable 7197402
3271: CSI_CTR_GEN_UTILITY_PVT.read_debug_profiles;
3272:

Line 3278: nvl(p_commit,FND_API.G_FALSE) ||'-'||

3274: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
3275: csi_ctr_gen_utility_pvt.put_line
3276: ( 'update_counter_group_pvt' ||'-'||
3277: p_api_version ||'-'||
3278: nvl(p_commit,FND_API.G_FALSE) ||'-'||
3279: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
3280: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
3281: END IF;
3282:

Line 3279: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||

3275: csi_ctr_gen_utility_pvt.put_line
3276: ( 'update_counter_group_pvt' ||'-'||
3277: p_api_version ||'-'||
3278: nvl(p_commit,FND_API.G_FALSE) ||'-'||
3279: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
3280: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
3281: END IF;
3282:
3283: /* Start of API Body */

Line 3280: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );

3276: ( 'update_counter_group_pvt' ||'-'||
3277: p_api_version ||'-'||
3278: nvl(p_commit,FND_API.G_FALSE) ||'-'||
3279: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
3280: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
3281: END IF;
3282:
3283: /* Start of API Body */
3284: OPEN cur_group_rec(p_counter_groups_rec.counter_group_id);

Line 3289: RAISE FND_API.G_EXC_ERROR;

3285: FETCH cur_group_rec INTO l_old_counter_groups_rec;
3286: IF (l_old_counter_groups_rec.object_version_number <> nvl(p_counter_groups_rec.OBJECT_VERSION_NUMBER,0)) THEN
3287: FND_MESSAGE.Set_Name('CSI', 'CSI_API_OBJ_VER_MISMATCH');
3288: FND_MSG_PUB.ADD;
3289: RAISE FND_API.G_EXC_ERROR;
3290: END IF;
3291:
3292: CLOSE cur_group_rec;
3293:

Line 3302: ELSIF p_counter_groups_rec.name = FND_API.G_MISS_CHAR THEN

3298: l_counter_groups_rec := p_counter_groups_rec;
3299:
3300: IF p_counter_groups_rec.name IS NULL THEN
3301: l_counter_groups_rec.name:= l_old_counter_groups_rec.name;
3302: ELSIF p_counter_groups_rec.name = FND_API.G_MISS_CHAR THEN
3303: l_counter_groups_rec.name := NULL;
3304: END IF;
3305:
3306: IF p_counter_groups_rec.description IS NULL THEN

Line 3308: ELSIF p_counter_groups_rec.description = FND_API.G_MISS_CHAR THEN

3304: END IF;
3305:
3306: IF p_counter_groups_rec.description IS NULL THEN
3307: l_counter_groups_rec.description := l_old_counter_groups_rec.description;
3308: ELSIF p_counter_groups_rec.description = FND_API.G_MISS_CHAR THEN
3309: l_counter_groups_rec.description := NULL;
3310: END IF;
3311:
3312: IF p_counter_groups_rec.start_date_active IS NULL THEN

Line 3314: ELSIF p_counter_groups_rec.start_date_active = FND_API.G_MISS_DATE THEN

3310: END IF;
3311:
3312: IF p_counter_groups_rec.start_date_active IS NULL THEN
3313: l_counter_groups_rec.start_date_active := l_old_counter_groups_rec.start_date_active;
3314: ELSIF p_counter_groups_rec.start_date_active = FND_API.G_MISS_DATE THEN
3315: l_counter_groups_rec.start_date_active := NULL;
3316: END IF;
3317:
3318: IF p_counter_groups_rec.end_date_active IS NULL THEN

Line 3320: ELSIF p_counter_groups_rec.end_date_active = FND_API.G_MISS_DATE THEN

3316: END IF;
3317:
3318: IF p_counter_groups_rec.end_date_active IS NULL THEN
3319: l_counter_groups_rec.end_date_active := l_old_counter_groups_rec.end_date_active;
3320: ELSIF p_counter_groups_rec.end_date_active = FND_API.G_MISS_DATE THEN
3321: l_counter_groups_rec.end_date_active := NULL;
3322: END IF;
3323:
3324: if l_counter_groups_rec.end_date_active IS NOT NULL then

Line 3332: ELSIF p_counter_groups_rec.attribute1 = FND_API.G_MISS_CHAR THEN

3328: end if;
3329:
3330: IF p_counter_groups_rec.attribute1 IS NULL THEN
3331: l_counter_groups_rec.attribute1 := l_old_counter_groups_rec.attribute1;
3332: ELSIF p_counter_groups_rec.attribute1 = FND_API.G_MISS_CHAR THEN
3333: l_counter_groups_rec.attribute1 := NULL;
3334: END IF;
3335:
3336: IF p_counter_groups_rec.attribute2 IS NULL THEN

Line 3338: ELSIF p_counter_groups_rec.attribute2 = FND_API.G_MISS_CHAR THEN

3334: END IF;
3335:
3336: IF p_counter_groups_rec.attribute2 IS NULL THEN
3337: l_counter_groups_rec.attribute2 := l_old_counter_groups_rec.attribute2;
3338: ELSIF p_counter_groups_rec.attribute2 = FND_API.G_MISS_CHAR THEN
3339: l_counter_groups_rec.attribute2 := NULL;
3340: END IF;
3341:
3342: IF p_counter_groups_rec.attribute3 IS NULL THEN

Line 3344: ELSIF p_counter_groups_rec.attribute3 = FND_API.G_MISS_CHAR THEN

3340: END IF;
3341:
3342: IF p_counter_groups_rec.attribute3 IS NULL THEN
3343: l_counter_groups_rec.attribute3 := l_old_counter_groups_rec.attribute3;
3344: ELSIF p_counter_groups_rec.attribute3 = FND_API.G_MISS_CHAR THEN
3345: l_counter_groups_rec.attribute3 := NULL;
3346: END IF;
3347:
3348: IF p_counter_groups_rec.attribute4 IS NULL THEN

Line 3350: ELSIF p_counter_groups_rec.attribute4 = FND_API.G_MISS_CHAR THEN

3346: END IF;
3347:
3348: IF p_counter_groups_rec.attribute4 IS NULL THEN
3349: l_counter_groups_rec.attribute4 := l_old_counter_groups_rec.attribute4;
3350: ELSIF p_counter_groups_rec.attribute4 = FND_API.G_MISS_CHAR THEN
3351: l_counter_groups_rec.attribute4 := NULL;
3352: END IF;
3353:
3354: IF p_counter_groups_rec.attribute5 IS NULL THEN

Line 3356: ELSIF p_counter_groups_rec.attribute5 = FND_API.G_MISS_CHAR THEN

3352: END IF;
3353:
3354: IF p_counter_groups_rec.attribute5 IS NULL THEN
3355: l_counter_groups_rec.attribute5 := l_old_counter_groups_rec.attribute5;
3356: ELSIF p_counter_groups_rec.attribute5 = FND_API.G_MISS_CHAR THEN
3357: l_counter_groups_rec.attribute5 := NULL;
3358: END IF;
3359:
3360: IF p_counter_groups_rec.attribute6 IS NULL THEN

Line 3362: ELSIF p_counter_groups_rec.attribute6 = FND_API.G_MISS_CHAR THEN

3358: END IF;
3359:
3360: IF p_counter_groups_rec.attribute6 IS NULL THEN
3361: l_counter_groups_rec.attribute6 := l_old_counter_groups_rec.attribute6;
3362: ELSIF p_counter_groups_rec.attribute6 = FND_API.G_MISS_CHAR THEN
3363: l_counter_groups_rec.attribute6 := NULL;
3364: END IF;
3365:
3366: IF p_counter_groups_rec.attribute7 IS NULL THEN

Line 3368: ELSIF p_counter_groups_rec.attribute7 = FND_API.G_MISS_CHAR THEN

3364: END IF;
3365:
3366: IF p_counter_groups_rec.attribute7 IS NULL THEN
3367: l_counter_groups_rec.attribute7 := l_old_counter_groups_rec.attribute6;
3368: ELSIF p_counter_groups_rec.attribute7 = FND_API.G_MISS_CHAR THEN
3369: l_counter_groups_rec.attribute7 := NULL;
3370: END IF;
3371:
3372: IF p_counter_groups_rec.attribute8 IS NULL THEN

Line 3374: ELSIF p_counter_groups_rec.attribute8 = FND_API.G_MISS_CHAR THEN

3370: END IF;
3371:
3372: IF p_counter_groups_rec.attribute8 IS NULL THEN
3373: l_counter_groups_rec.attribute8 := l_old_counter_groups_rec.attribute8;
3374: ELSIF p_counter_groups_rec.attribute8 = FND_API.G_MISS_CHAR THEN
3375: l_counter_groups_rec.attribute8 := NULL;
3376: END IF;
3377:
3378: IF p_counter_groups_rec.attribute9 IS NULL THEN

Line 3380: ELSIF p_counter_groups_rec.attribute9 = FND_API.G_MISS_CHAR THEN

3376: END IF;
3377:
3378: IF p_counter_groups_rec.attribute9 IS NULL THEN
3379: l_counter_groups_rec.attribute9 := l_old_counter_groups_rec.attribute9;
3380: ELSIF p_counter_groups_rec.attribute9 = FND_API.G_MISS_CHAR THEN
3381: l_counter_groups_rec.attribute9 := NULL;
3382: END IF;
3383:
3384: IF p_counter_groups_rec.attribute10 IS NULL THEN

Line 3386: ELSIF p_counter_groups_rec.attribute10 = FND_API.G_MISS_CHAR THEN

3382: END IF;
3383:
3384: IF p_counter_groups_rec.attribute10 IS NULL THEN
3385: l_counter_groups_rec.attribute10 := l_old_counter_groups_rec.attribute10;
3386: ELSIF p_counter_groups_rec.attribute10 = FND_API.G_MISS_CHAR THEN
3387: l_counter_groups_rec.attribute10 := NULL;
3388: END IF;
3389:
3390: IF p_counter_groups_rec.attribute11 IS NULL THEN

Line 3392: ELSIF p_counter_groups_rec.attribute11 = FND_API.G_MISS_CHAR THEN

3388: END IF;
3389:
3390: IF p_counter_groups_rec.attribute11 IS NULL THEN
3391: l_counter_groups_rec.attribute11 := l_old_counter_groups_rec.attribute11;
3392: ELSIF p_counter_groups_rec.attribute11 = FND_API.G_MISS_CHAR THEN
3393: l_counter_groups_rec.attribute11 := NULL;
3394: END IF;
3395:
3396: IF p_counter_groups_rec.attribute12 IS NULL THEN

Line 3398: ELSIF p_counter_groups_rec.attribute12 = FND_API.G_MISS_CHAR THEN

3394: END IF;
3395:
3396: IF p_counter_groups_rec.attribute12 IS NULL THEN
3397: l_counter_groups_rec.attribute12 := l_old_counter_groups_rec.attribute12;
3398: ELSIF p_counter_groups_rec.attribute12 = FND_API.G_MISS_CHAR THEN
3399: l_counter_groups_rec.attribute12 := NULL;
3400: END IF;
3401:
3402: IF p_counter_groups_rec.attribute13 IS NULL THEN

Line 3404: ELSIF p_counter_groups_rec.attribute13 = FND_API.G_MISS_CHAR THEN

3400: END IF;
3401:
3402: IF p_counter_groups_rec.attribute13 IS NULL THEN
3403: l_counter_groups_rec.attribute13 := l_old_counter_groups_rec.attribute13;
3404: ELSIF p_counter_groups_rec.attribute13 = FND_API.G_MISS_CHAR THEN
3405: l_counter_groups_rec.attribute13 := NULL;
3406: END IF;
3407:
3408: IF p_counter_groups_rec.attribute14 IS NULL THEN

Line 3410: ELSIF p_counter_groups_rec.attribute14 = FND_API.G_MISS_CHAR THEN

3406: END IF;
3407:
3408: IF p_counter_groups_rec.attribute14 IS NULL THEN
3409: l_counter_groups_rec.attribute14 := l_old_counter_groups_rec.attribute14;
3410: ELSIF p_counter_groups_rec.attribute14 = FND_API.G_MISS_CHAR THEN
3411: l_counter_groups_rec.attribute14 := NULL;
3412: END IF;
3413:
3414: IF p_counter_groups_rec.attribute15 IS NULL THEN

Line 3416: ELSIF p_counter_groups_rec.attribute15 = FND_API.G_MISS_CHAR THEN

3412: END IF;
3413:
3414: IF p_counter_groups_rec.attribute15 IS NULL THEN
3415: l_counter_groups_rec.attribute15 := l_old_counter_groups_rec.attribute15;
3416: ELSIF p_counter_groups_rec.attribute15 = FND_API.G_MISS_CHAR THEN
3417: l_counter_groups_rec.attribute15 := NULL;
3418: END IF;
3419:
3420: IF p_counter_groups_rec.context IS NULL THEN

Line 3422: ELSIF p_counter_groups_rec.context = FND_API.G_MISS_CHAR THEN

3418: END IF;
3419:
3420: IF p_counter_groups_rec.context IS NULL THEN
3421: l_counter_groups_rec.context := l_old_counter_groups_rec.context;
3422: ELSIF p_counter_groups_rec.context = FND_API.G_MISS_CHAR THEN
3423: l_counter_groups_rec.context := NULL;
3424: END IF;
3425:
3426: IF p_counter_groups_rec.association_type IS NULL THEN

Line 3428: ELSIF p_counter_groups_rec.association_type = FND_API.G_MISS_CHAR THEN

3424: END IF;
3425:
3426: IF p_counter_groups_rec.association_type IS NULL THEN
3427: l_counter_groups_rec.association_type := l_old_counter_groups_rec.association_type;
3428: ELSIF p_counter_groups_rec.association_type = FND_API.G_MISS_CHAR THEN
3429: l_counter_groups_rec.association_type := NULL;
3430: END IF;
3431:
3432: IF p_counter_groups_rec.source_object_code IS NULL THEN

Line 3434: ELSIF p_counter_groups_rec.source_object_code = FND_API.G_MISS_CHAR THEN

3430: END IF;
3431:
3432: IF p_counter_groups_rec.source_object_code IS NULL THEN
3433: l_counter_groups_rec.source_object_code := l_old_counter_groups_rec.source_object_code;
3434: ELSIF p_counter_groups_rec.source_object_code = FND_API.G_MISS_CHAR THEN
3435: l_counter_groups_rec.source_object_code := NULL;
3436: END IF;
3437:
3438: IF p_counter_groups_rec.source_object_id IS NULL THEN

Line 3440: ELSIF p_counter_groups_rec.source_object_id = FND_API.G_MISS_NUM THEN

3436: END IF;
3437:
3438: IF p_counter_groups_rec.source_object_id IS NULL THEN
3439: l_counter_groups_rec.source_object_id := l_old_counter_groups_rec.source_object_id;
3440: ELSIF p_counter_groups_rec.source_object_id = FND_API.G_MISS_NUM THEN
3441: l_counter_groups_rec.source_object_id := NULL;
3442: END IF;
3443:
3444: IF p_counter_groups_rec.source_counter_group_id IS NULL THEN

Line 3446: ELSIF p_counter_groups_rec.source_counter_group_id = FND_API.G_MISS_NUM THEN

3442: END IF;
3443:
3444: IF p_counter_groups_rec.source_counter_group_id IS NULL THEN
3445: l_counter_groups_rec.source_counter_group_id := l_old_counter_groups_rec.source_counter_group_id;
3446: ELSIF p_counter_groups_rec.source_counter_group_id = FND_API.G_MISS_NUM THEN
3447: l_counter_groups_rec.source_counter_group_id := NULL;
3448: END IF;
3449:
3450: IF p_counter_groups_rec.security_group_id IS NULL THEN

Line 3452: ELSIF p_counter_groups_rec.security_group_id = FND_API.G_MISS_NUM THEN

3448: END IF;
3449:
3450: IF p_counter_groups_rec.security_group_id IS NULL THEN
3451: l_counter_groups_rec.security_group_id := l_old_counter_groups_rec.security_group_id;
3452: ELSIF p_counter_groups_rec.security_group_id = FND_API.G_MISS_NUM THEN
3453: l_counter_groups_rec.security_group_id := NULL;
3454: END IF;
3455:
3456: -- Counter group name is not updateable

Line 3503: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN

3499: ,p_SOURCE_COUNTER_GROUP_ID => p_counter_groups_rec.source_counter_group_id
3500: ,p_SECURITY_GROUP_ID => p_counter_groups_rec.security_group_id
3501: );
3502:
3503: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN
3504: ROLLBACK TO update_counter_group_pvt;
3505: RETURN;
3506: END IF;
3507:

Line 3511: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN

3507:
3508:
3509: /* End of API Body */
3510:
3511: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN
3512: COMMIT WORK;
3513: END IF;
3514:
3515: -- Standard call to get message count and IF count is get message info.

Line 3521: WHEN FND_API.G_EXC_ERROR THEN

3517: ( p_count => x_msg_count,
3518: p_data => x_msg_data
3519: );
3520: EXCEPTION
3521: WHEN FND_API.G_EXC_ERROR THEN
3522: x_return_status := FND_API.G_RET_STS_ERROR ;
3523: ROLLBACK TO update_counter_group_pvt;
3524: FND_MSG_PUB.Count_And_Get
3525: ( p_count => x_msg_count,

Line 3522: x_return_status := FND_API.G_RET_STS_ERROR ;

3518: p_data => x_msg_data
3519: );
3520: EXCEPTION
3521: WHEN FND_API.G_EXC_ERROR THEN
3522: x_return_status := FND_API.G_RET_STS_ERROR ;
3523: ROLLBACK TO update_counter_group_pvt;
3524: FND_MSG_PUB.Count_And_Get
3525: ( p_count => x_msg_count,
3526: p_data => x_msg_data

Line 3528: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN

3524: FND_MSG_PUB.Count_And_Get
3525: ( p_count => x_msg_count,
3526: p_data => x_msg_data
3527: );
3528: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
3529: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
3530: ROLLBACK TO update_counter_group_pvt;
3531: FND_MSG_PUB.Count_And_Get
3532: ( p_count => x_msg_count,

Line 3529: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

3525: ( p_count => x_msg_count,
3526: p_data => x_msg_data
3527: );
3528: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
3529: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
3530: ROLLBACK TO update_counter_group_pvt;
3531: FND_MSG_PUB.Count_And_Get
3532: ( p_count => x_msg_count,
3533: p_data => x_msg_data

Line 3536: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

3532: ( p_count => x_msg_count,
3533: p_data => x_msg_data
3534: );
3535: WHEN OTHERS THEN
3536: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
3537: ROLLBACK TO update_counter_group_pvt;
3538: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
3539: FND_MSG_PUB.Add_Exc_Msg
3540: ( G_PKG_NAME,

Line 3628: IF NOT FND_API.Compatible_API_Call (l_api_version,

3624: -- Standard Start of API savepoint
3625: SAVEPOINT update_item_association_pvt;
3626:
3627: -- Standard call to check for call compatibility.
3628: IF NOT FND_API.Compatible_API_Call (l_api_version,
3629: p_api_version,
3630: l_api_name ,
3631: G_PKG_NAME ) THEN
3632: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 3632: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

3628: IF NOT FND_API.Compatible_API_Call (l_api_version,
3629: p_api_version,
3630: l_api_name ,
3631: G_PKG_NAME ) THEN
3632: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3633: END IF;
3634:
3635: -- Initialize message list if p_init_msg_list is set to TRUE.
3636: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

Line 3636: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

3632: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3633: END IF;
3634:
3635: -- Initialize message list if p_init_msg_list is set to TRUE.
3636: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
3637: FND_MSG_PUB.initialize;
3638: END IF;
3639:
3640: -- Initialize API return status to success

Line 3641: x_return_status := FND_API.G_RET_STS_SUCCESS;

3637: FND_MSG_PUB.initialize;
3638: END IF;
3639:
3640: -- Initialize API return status to success
3641: x_return_status := FND_API.G_RET_STS_SUCCESS;
3642:
3643: -- Read the debug profiles values in to global variable 7197402
3644: CSI_CTR_GEN_UTILITY_PVT.read_debug_profiles;
3645:

Line 3650: nvl(p_commit,FND_API.G_FALSE) ||'-'||

3646: --
3647: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
3648: csi_ctr_gen_utility_pvt.put_line( 'update_item_association_pvt' ||'-'||
3649: p_api_version ||'-'||
3650: nvl(p_commit,FND_API.G_FALSE) ||'-'||
3651: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
3652: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
3653: END IF;
3654:

Line 3651: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||

3647: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
3648: csi_ctr_gen_utility_pvt.put_line( 'update_item_association_pvt' ||'-'||
3649: p_api_version ||'-'||
3650: nvl(p_commit,FND_API.G_FALSE) ||'-'||
3651: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
3652: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
3653: END IF;
3654:
3655: /* Start of API Body */

Line 3652: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );

3648: csi_ctr_gen_utility_pvt.put_line( 'update_item_association_pvt' ||'-'||
3649: p_api_version ||'-'||
3650: nvl(p_commit,FND_API.G_FALSE) ||'-'||
3651: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
3652: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
3653: END IF;
3654:
3655: /* Start of API Body */
3656: OPEN cur_item_assoc_rec(p_ctr_item_associations_rec.ctr_association_id);

Line 3661: RAISE FND_API.G_EXC_ERROR;

3657: FETCH cur_item_assoc_rec INTO l_old_item_associations_rec;
3658: IF (l_old_item_associations_rec.object_version_number <> nvl(p_ctr_item_associations_rec.OBJECT_VERSION_NUMBER,0)) THEN
3659: FND_MESSAGE.Set_Name('CSI', 'CSI_API_OBJ_VER_MISMATCH');
3660: FND_MSG_PUB.ADD;
3661: RAISE FND_API.G_EXC_ERROR;
3662: END IF;
3663:
3664: CLOSE cur_item_assoc_rec;
3665:

Line 3674: ELSIF p_ctr_item_associations_rec.group_id = FND_API.G_MISS_NUM THEN

3670: l_item_associations_rec := p_ctr_item_associations_rec;
3671:
3672: IF p_ctr_item_associations_rec.group_id IS NULL THEN
3673: l_item_associations_rec.group_id := l_old_item_associations_rec.group_id;
3674: ELSIF p_ctr_item_associations_rec.group_id = FND_API.G_MISS_NUM THEN
3675: l_item_associations_rec.group_id := NULL;
3676: END IF;
3677:
3678: IF p_ctr_item_associations_rec.inventory_item_id IS NULL THEN

Line 3680: ELSIF p_ctr_item_associations_rec.inventory_item_id = FND_API.G_MISS_NUM THEN

3676: END IF;
3677:
3678: IF p_ctr_item_associations_rec.inventory_item_id IS NULL THEN
3679: l_item_associations_rec.inventory_item_id := l_old_item_associations_rec.inventory_item_id;
3680: ELSIF p_ctr_item_associations_rec.inventory_item_id = FND_API.G_MISS_NUM THEN
3681: l_item_associations_rec.inventory_item_id := NULL;
3682: END IF;
3683:
3684: IF p_ctr_item_associations_rec.start_date_active IS NULL THEN

Line 3686: ELSIF p_ctr_item_associations_rec.start_date_active = FND_API.G_MISS_DATE THEN

3682: END IF;
3683:
3684: IF p_ctr_item_associations_rec.start_date_active IS NULL THEN
3685: l_item_associations_rec.start_date_active := l_old_item_associations_rec.start_date_active;
3686: ELSIF p_ctr_item_associations_rec.start_date_active = FND_API.G_MISS_DATE THEN
3687: l_item_associations_rec.start_date_active := NULL;
3688: END IF;
3689:
3690: IF p_ctr_item_associations_rec.end_date_active IS NULL THEN

Line 3692: ELSIF p_ctr_item_associations_rec.end_date_active = FND_API.G_MISS_DATE THEN

3688: END IF;
3689:
3690: IF p_ctr_item_associations_rec.end_date_active IS NULL THEN
3691: l_item_associations_rec.end_date_active := l_old_item_associations_rec.end_date_active;
3692: ELSIF p_ctr_item_associations_rec.end_date_active = FND_API.G_MISS_DATE THEN
3693: l_item_associations_rec.end_date_active := NULL;
3694: END IF;
3695:
3696: if l_item_associations_rec.end_date_active IS NOT NULL then

Line 3704: ELSIF p_ctr_item_associations_rec.attribute1 = FND_API.G_MISS_CHAR THEN

3700: end if;
3701:
3702: IF p_ctr_item_associations_rec.attribute1 IS NULL THEN
3703: l_item_associations_rec.attribute1 := l_old_item_associations_rec.attribute1;
3704: ELSIF p_ctr_item_associations_rec.attribute1 = FND_API.G_MISS_CHAR THEN
3705: l_item_associations_rec.attribute1 := NULL;
3706: END IF;
3707:
3708: IF p_ctr_item_associations_rec.attribute2 IS NULL THEN

Line 3710: ELSIF p_ctr_item_associations_rec.attribute2 = FND_API.G_MISS_CHAR THEN

3706: END IF;
3707:
3708: IF p_ctr_item_associations_rec.attribute2 IS NULL THEN
3709: l_item_associations_rec.attribute2 := l_old_item_associations_rec.attribute2;
3710: ELSIF p_ctr_item_associations_rec.attribute2 = FND_API.G_MISS_CHAR THEN
3711: l_item_associations_rec.attribute2 := NULL;
3712: END IF;
3713:
3714: IF p_ctr_item_associations_rec.attribute3 IS NULL THEN

Line 3716: ELSIF p_ctr_item_associations_rec.attribute3 = FND_API.G_MISS_CHAR THEN

3712: END IF;
3713:
3714: IF p_ctr_item_associations_rec.attribute3 IS NULL THEN
3715: l_item_associations_rec.attribute3 := l_old_item_associations_rec.attribute3;
3716: ELSIF p_ctr_item_associations_rec.attribute3 = FND_API.G_MISS_CHAR THEN
3717: l_item_associations_rec.attribute3 := NULL;
3718: END IF;
3719:
3720: IF p_ctr_item_associations_rec.attribute4 IS NULL THEN

Line 3722: ELSIF p_ctr_item_associations_rec.attribute4 = FND_API.G_MISS_CHAR THEN

3718: END IF;
3719:
3720: IF p_ctr_item_associations_rec.attribute4 IS NULL THEN
3721: l_item_associations_rec.attribute4 := l_old_item_associations_rec.attribute4;
3722: ELSIF p_ctr_item_associations_rec.attribute4 = FND_API.G_MISS_CHAR THEN
3723: l_item_associations_rec.attribute4 := NULL;
3724: END IF;
3725:
3726: IF p_ctr_item_associations_rec.attribute5 IS NULL THEN

Line 3728: ELSIF p_ctr_item_associations_rec.attribute5 = FND_API.G_MISS_CHAR THEN

3724: END IF;
3725:
3726: IF p_ctr_item_associations_rec.attribute5 IS NULL THEN
3727: l_item_associations_rec.attribute5 := l_old_item_associations_rec.attribute5;
3728: ELSIF p_ctr_item_associations_rec.attribute5 = FND_API.G_MISS_CHAR THEN
3729: l_item_associations_rec.attribute5 := NULL;
3730: END IF;
3731:
3732: IF p_ctr_item_associations_rec.attribute6 IS NULL THEN

Line 3734: ELSIF p_ctr_item_associations_rec.attribute6 = FND_API.G_MISS_CHAR THEN

3730: END IF;
3731:
3732: IF p_ctr_item_associations_rec.attribute6 IS NULL THEN
3733: l_item_associations_rec.attribute6 := l_old_item_associations_rec.attribute6;
3734: ELSIF p_ctr_item_associations_rec.attribute6 = FND_API.G_MISS_CHAR THEN
3735: l_item_associations_rec.attribute6 := NULL;
3736: END IF;
3737:
3738: IF p_ctr_item_associations_rec.attribute7 IS NULL THEN

Line 3740: ELSIF p_ctr_item_associations_rec.attribute7 = FND_API.G_MISS_CHAR THEN

3736: END IF;
3737:
3738: IF p_ctr_item_associations_rec.attribute7 IS NULL THEN
3739: l_item_associations_rec.attribute7 := l_old_item_associations_rec.attribute7;
3740: ELSIF p_ctr_item_associations_rec.attribute7 = FND_API.G_MISS_CHAR THEN
3741: l_item_associations_rec.attribute7 := NULL;
3742: END IF;
3743:
3744: IF p_ctr_item_associations_rec.attribute8 IS NULL THEN

Line 3746: ELSIF p_ctr_item_associations_rec.attribute8 = FND_API.G_MISS_CHAR THEN

3742: END IF;
3743:
3744: IF p_ctr_item_associations_rec.attribute8 IS NULL THEN
3745: l_item_associations_rec.attribute8 := l_old_item_associations_rec.attribute8;
3746: ELSIF p_ctr_item_associations_rec.attribute8 = FND_API.G_MISS_CHAR THEN
3747: l_item_associations_rec.attribute8 := NULL;
3748: END IF;
3749:
3750: IF p_ctr_item_associations_rec.attribute9 IS NULL THEN

Line 3752: ELSIF p_ctr_item_associations_rec.attribute9 = FND_API.G_MISS_CHAR THEN

3748: END IF;
3749:
3750: IF p_ctr_item_associations_rec.attribute9 IS NULL THEN
3751: l_item_associations_rec.attribute9 := l_old_item_associations_rec.attribute9;
3752: ELSIF p_ctr_item_associations_rec.attribute9 = FND_API.G_MISS_CHAR THEN
3753: l_item_associations_rec.attribute9 := NULL;
3754: END IF;
3755:
3756: IF p_ctr_item_associations_rec.attribute10 IS NULL THEN

Line 3758: ELSIF p_ctr_item_associations_rec.attribute10 = FND_API.G_MISS_CHAR THEN

3754: END IF;
3755:
3756: IF p_ctr_item_associations_rec.attribute10 IS NULL THEN
3757: l_item_associations_rec.attribute10 := l_old_item_associations_rec.attribute10;
3758: ELSIF p_ctr_item_associations_rec.attribute10 = FND_API.G_MISS_CHAR THEN
3759: l_item_associations_rec.attribute10 := NULL;
3760: END IF;
3761:
3762: IF p_ctr_item_associations_rec.attribute11 IS NULL THEN

Line 3764: ELSIF p_ctr_item_associations_rec.attribute11 = FND_API.G_MISS_CHAR THEN

3760: END IF;
3761:
3762: IF p_ctr_item_associations_rec.attribute11 IS NULL THEN
3763: l_item_associations_rec.attribute11 := l_old_item_associations_rec.attribute11;
3764: ELSIF p_ctr_item_associations_rec.attribute11 = FND_API.G_MISS_CHAR THEN
3765: l_item_associations_rec.attribute11 := NULL;
3766: END IF;
3767:
3768: IF p_ctr_item_associations_rec.attribute12 IS NULL THEN

Line 3770: ELSIF p_ctr_item_associations_rec.attribute12 = FND_API.G_MISS_CHAR THEN

3766: END IF;
3767:
3768: IF p_ctr_item_associations_rec.attribute12 IS NULL THEN
3769: l_item_associations_rec.attribute12 := l_old_item_associations_rec.attribute12;
3770: ELSIF p_ctr_item_associations_rec.attribute12 = FND_API.G_MISS_CHAR THEN
3771: l_item_associations_rec.attribute12 := NULL;
3772: END IF;
3773:
3774: IF p_ctr_item_associations_rec.attribute13 IS NULL THEN

Line 3776: ELSIF p_ctr_item_associations_rec.attribute13 = FND_API.G_MISS_CHAR THEN

3772: END IF;
3773:
3774: IF p_ctr_item_associations_rec.attribute13 IS NULL THEN
3775: l_item_associations_rec.attribute13 := l_old_item_associations_rec.attribute13;
3776: ELSIF p_ctr_item_associations_rec.attribute13 = FND_API.G_MISS_CHAR THEN
3777: l_item_associations_rec.attribute13 := NULL;
3778: END IF;
3779:
3780: IF p_ctr_item_associations_rec.attribute14 IS NULL THEN

Line 3782: ELSIF p_ctr_item_associations_rec.attribute14 = FND_API.G_MISS_CHAR THEN

3778: END IF;
3779:
3780: IF p_ctr_item_associations_rec.attribute14 IS NULL THEN
3781: l_item_associations_rec.attribute14 := l_old_item_associations_rec.attribute14;
3782: ELSIF p_ctr_item_associations_rec.attribute14 = FND_API.G_MISS_CHAR THEN
3783: l_item_associations_rec.attribute14 := NULL;
3784: END IF;
3785:
3786: IF p_ctr_item_associations_rec.attribute15 IS NULL THEN

Line 3788: ELSIF p_ctr_item_associations_rec.attribute15 = FND_API.G_MISS_CHAR THEN

3784: END IF;
3785:
3786: IF p_ctr_item_associations_rec.attribute15 IS NULL THEN
3787: l_item_associations_rec.attribute15 := l_old_item_associations_rec.attribute15;
3788: ELSIF p_ctr_item_associations_rec.attribute15 = FND_API.G_MISS_CHAR THEN
3789: l_item_associations_rec.attribute15 := NULL;
3790: END IF;
3791:
3792: IF p_ctr_item_associations_rec.attribute_category IS NULL THEN

Line 3794: ELSIF p_ctr_item_associations_rec.attribute_category = FND_API.G_MISS_CHAR THEN

3790: END IF;
3791:
3792: IF p_ctr_item_associations_rec.attribute_category IS NULL THEN
3793: l_item_associations_rec.attribute_category := l_old_item_associations_rec.attribute_category;
3794: ELSIF p_ctr_item_associations_rec.attribute_category = FND_API.G_MISS_CHAR THEN
3795: l_item_associations_rec.attribute_category := NULL;
3796: END IF;
3797:
3798: IF p_ctr_item_associations_rec.associated_to_group IS NULL THEN

Line 3800: ELSIF p_ctr_item_associations_rec.associated_to_group = FND_API.G_MISS_CHAR THEN

3796: END IF;
3797:
3798: IF p_ctr_item_associations_rec.associated_to_group IS NULL THEN
3799: l_item_associations_rec.associated_to_group := l_old_item_associations_rec.associated_to_group;
3800: ELSIF p_ctr_item_associations_rec.associated_to_group = FND_API.G_MISS_CHAR THEN
3801: l_item_associations_rec.associated_to_group := NULL;
3802: END IF;
3803:
3804: IF p_ctr_item_associations_rec.usage_rate IS NULL THEN

Line 3806: ELSIF p_ctr_item_associations_rec.usage_rate = FND_API.G_MISS_NUM THEN

3802: END IF;
3803:
3804: IF p_ctr_item_associations_rec.usage_rate IS NULL THEN
3805: l_item_associations_rec.usage_rate := l_old_item_associations_rec.usage_rate;
3806: ELSIF p_ctr_item_associations_rec.usage_rate = FND_API.G_MISS_NUM THEN
3807: l_item_associations_rec.usage_rate := NULL;
3808: END IF;
3809:
3810: IF p_ctr_item_associations_rec.counter_id IS NULL THEN

Line 3812: ELSIF p_ctr_item_associations_rec.counter_id = FND_API.G_MISS_NUM THEN

3808: END IF;
3809:
3810: IF p_ctr_item_associations_rec.counter_id IS NULL THEN
3811: l_item_associations_rec.counter_id := l_old_item_associations_rec.counter_id;
3812: ELSIF p_ctr_item_associations_rec.counter_id = FND_API.G_MISS_NUM THEN
3813: l_item_associations_rec.counter_id := NULL;
3814: END IF;
3815:
3816: IF p_ctr_item_associations_rec.security_group_id IS NULL THEN

Line 3818: ELSIF p_ctr_item_associations_rec.security_group_id = FND_API.G_MISS_NUM THEN

3814: END IF;
3815:
3816: IF p_ctr_item_associations_rec.security_group_id IS NULL THEN
3817: l_item_associations_rec.security_group_id := l_old_item_associations_rec.security_group_id;
3818: ELSIF p_ctr_item_associations_rec.security_group_id = FND_API.G_MISS_NUM THEN
3819: l_item_associations_rec.security_group_id := NULL;
3820:
3821: END IF;
3822:

Line 3825: ELSIF p_ctr_item_associations_rec.migrated_flag = FND_API.G_MISS_CHAR THEN

3821: END IF;
3822:
3823: IF p_ctr_item_associations_rec.migrated_flag IS NULL THEN
3824: l_item_associations_rec.migrated_flag := l_old_item_associations_rec.migrated_flag;
3825: ELSIF p_ctr_item_associations_rec.migrated_flag = FND_API.G_MISS_CHAR THEN
3826: l_item_associations_rec.migrated_flag := NULL;
3827: END IF;
3828:
3829: IF p_ctr_item_associations_rec.use_past_reading IS NULL THEN

Line 3831: ELSIF p_ctr_item_associations_rec.use_past_reading = FND_API.G_MISS_NUM THEN

3827: END IF;
3828:
3829: IF p_ctr_item_associations_rec.use_past_reading IS NULL THEN
3830: l_item_associations_rec.use_past_reading := l_old_item_associations_rec.use_past_reading;
3831: ELSIF p_ctr_item_associations_rec.use_past_reading = FND_API.G_MISS_NUM THEN
3832: l_item_associations_rec.use_past_reading := NULL;
3833: END IF;
3834:
3835: IF p_ctr_item_associations_rec.maint_organization_id IS NULL THEN

Line 3837: ELSIF p_ctr_item_associations_rec.maint_organization_id = FND_API.G_MISS_NUM THEN

3833: END IF;
3834:
3835: IF p_ctr_item_associations_rec.maint_organization_id IS NULL THEN
3836: l_item_associations_rec.maint_organization_id := l_old_item_associations_rec.maint_organization_id;
3837: ELSIF p_ctr_item_associations_rec.maint_organization_id = FND_API.G_MISS_NUM THEN
3838: l_item_associations_rec.maint_organization_id := NULL;
3839: END IF;
3840:
3841: IF p_ctr_item_associations_rec.primary_failure_flag IS NULL THEN

Line 3843: ELSIF p_ctr_item_associations_rec.primary_failure_flag = FND_API.G_MISS_CHAR THEN

3839: END IF;
3840:
3841: IF p_ctr_item_associations_rec.primary_failure_flag IS NULL THEN
3842: l_item_associations_rec.primary_failure_flag := l_old_item_associations_rec.primary_failure_flag;
3843: ELSIF p_ctr_item_associations_rec.primary_failure_flag = FND_API.G_MISS_CHAR THEN
3844: l_item_associations_rec.primary_failure_flag := NULL;
3845: END IF;
3846:
3847: IF l_item_associations_rec.group_id IS NOT NULL THEN

Line 3972: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN

3968: ,p_MAINT_ORGANIZATION_ID => NULL
3969: ,p_PRIMARY_FAILURE_FLAG => p_ctr_item_associations_rec.primary_failure_flag
3970: );
3971:
3972: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN
3973: ROLLBACK TO update_item_association_pvt;
3974: RETURN;
3975: END IF;
3976:

Line 3979: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN

3975: END IF;
3976:
3977: /* End of API Body */
3978:
3979: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN
3980: COMMIT WORK;
3981: END IF;
3982:
3983: -- Standard call to get message count and IF count is get message info.

Line 3989: WHEN FND_API.G_EXC_ERROR THEN

3985: ( p_count => x_msg_count,
3986: p_data => x_msg_data
3987: );
3988: EXCEPTION
3989: WHEN FND_API.G_EXC_ERROR THEN
3990: x_return_status := FND_API.G_RET_STS_ERROR ;
3991: ROLLBACK TO update_item_association_pvt;
3992: FND_MSG_PUB.Count_And_Get
3993: ( p_count => x_msg_count,

Line 3990: x_return_status := FND_API.G_RET_STS_ERROR ;

3986: p_data => x_msg_data
3987: );
3988: EXCEPTION
3989: WHEN FND_API.G_EXC_ERROR THEN
3990: x_return_status := FND_API.G_RET_STS_ERROR ;
3991: ROLLBACK TO update_item_association_pvt;
3992: FND_MSG_PUB.Count_And_Get
3993: ( p_count => x_msg_count,
3994: p_data => x_msg_data

Line 3996: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN

3992: FND_MSG_PUB.Count_And_Get
3993: ( p_count => x_msg_count,
3994: p_data => x_msg_data
3995: );
3996: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
3997: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
3998: ROLLBACK TO update_item_association_pvt;
3999: FND_MSG_PUB.Count_And_Get
4000: ( p_count => x_msg_count,

Line 3997: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

3993: ( p_count => x_msg_count,
3994: p_data => x_msg_data
3995: );
3996: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
3997: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
3998: ROLLBACK TO update_item_association_pvt;
3999: FND_MSG_PUB.Count_And_Get
4000: ( p_count => x_msg_count,
4001: p_data => x_msg_data

Line 4004: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

4000: ( p_count => x_msg_count,
4001: p_data => x_msg_data
4002: );
4003: WHEN OTHERS THEN
4004: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
4005: ROLLBACK TO update_item_association_pvt;
4006: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
4007: FND_MSG_PUB.Add_Exc_Msg
4008: ( G_PKG_NAME,

Line 4153: IF NOT FND_API.Compatible_API_Call (l_api_version,

4149: -- Standard Start of API savepoint
4150: SAVEPOINT update_counter_template_pvt;
4151:
4152: -- Standard call to check for call compatibility.
4153: IF NOT FND_API.Compatible_API_Call (l_api_version,
4154: p_api_version,
4155: l_api_name ,
4156: G_PKG_NAME ) THEN
4157: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 4157: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

4153: IF NOT FND_API.Compatible_API_Call (l_api_version,
4154: p_api_version,
4155: l_api_name ,
4156: G_PKG_NAME ) THEN
4157: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
4158: END IF;
4159:
4160: -- Initialize message list if p_init_msg_list is set to TRUE.
4161: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

Line 4161: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

4157: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
4158: END IF;
4159:
4160: -- Initialize message list if p_init_msg_list is set to TRUE.
4161: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
4162: FND_MSG_PUB.initialize;
4163: END IF;
4164:
4165: -- Initialize API return status to success

Line 4166: x_return_status := FND_API.G_RET_STS_SUCCESS;

4162: FND_MSG_PUB.initialize;
4163: END IF;
4164:
4165: -- Initialize API return status to success
4166: x_return_status := FND_API.G_RET_STS_SUCCESS;
4167:
4168: -- Read the debug profiles values in to global variable 7197402
4169: CSI_CTR_GEN_UTILITY_PVT.read_debug_profiles;
4170:

Line 4175: nvl(p_commit,FND_API.G_FALSE) ||'-'||

4171: --
4172: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
4173: csi_ctr_gen_utility_pvt.put_line( 'update_counter_template_pvt' ||'-'||
4174: p_api_version ||'-'||
4175: nvl(p_commit,FND_API.G_FALSE) ||'-'||
4176: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
4177: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
4178: END IF;
4179:

Line 4176: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||

4172: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
4173: csi_ctr_gen_utility_pvt.put_line( 'update_counter_template_pvt' ||'-'||
4174: p_api_version ||'-'||
4175: nvl(p_commit,FND_API.G_FALSE) ||'-'||
4176: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
4177: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
4178: END IF;
4179:
4180: /* Start of API body */

Line 4177: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );

4173: csi_ctr_gen_utility_pvt.put_line( 'update_counter_template_pvt' ||'-'||
4174: p_api_version ||'-'||
4175: nvl(p_commit,FND_API.G_FALSE) ||'-'||
4176: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
4177: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
4178: END IF;
4179:
4180: /* Start of API body */
4181: OPEN cur_ctr_template_rec(p_counter_template_rec.counter_id);

Line 4186: RAISE FND_API.G_EXC_ERROR;

4182: FETCH cur_ctr_template_rec INTO l_old_counter_template_rec;
4183: IF (l_old_counter_template_rec.object_version_number <> nvl(p_counter_template_rec.OBJECT_VERSION_NUMBER,0)) THEN
4184: FND_MESSAGE.Set_Name('CSI', 'CSI_API_OBJ_VER_MISMATCH');
4185: FND_MSG_PUB.ADD;
4186: RAISE FND_API.G_EXC_ERROR;
4187: END IF;
4188:
4189: CLOSE cur_ctr_template_rec;
4190:

Line 4198: IF (NVL(p_counter_template_rec.group_id, FND_API.G_MISS_NUM) <> FND_API.G_MISS_NUM) THEN

4194:
4195: -- Bug 8686933
4196: -- Assigning group id to defaulted group id column
4197: --
4198: IF (NVL(p_counter_template_rec.group_id, FND_API.G_MISS_NUM) <> FND_API.G_MISS_NUM) THEN
4199: p_counter_template_rec.defaulted_group_id := p_counter_template_rec.group_id;
4200: END IF;
4201:
4202: l_counter_template_rec := p_counter_template_rec;

Line 4206: ELSIF p_counter_template_rec.group_id = FND_API.G_MISS_NUM THEN

4202: l_counter_template_rec := p_counter_template_rec;
4203:
4204: IF p_counter_template_rec.group_id = NULL THEN
4205: l_counter_template_rec.group_id := l_old_counter_template_rec.group_id;
4206: ELSIF p_counter_template_rec.group_id = FND_API.G_MISS_NUM THEN
4207: l_counter_template_rec.group_id := NULL;
4208: END IF;
4209:
4210: IF p_counter_template_rec.counter_type IS NULL THEN

Line 4212: ELSIF p_counter_template_rec.counter_type = FND_API.G_MISS_CHAR THEN

4208: END IF;
4209:
4210: IF p_counter_template_rec.counter_type IS NULL THEN
4211: l_counter_template_rec.counter_type := l_old_counter_template_rec.counter_type;
4212: ELSIF p_counter_template_rec.counter_type = FND_API.G_MISS_CHAR THEN
4213: l_counter_template_rec.counter_type := NULL;
4214: END IF;
4215:
4216: IF p_counter_template_rec.initial_reading IS NULL THEN

Line 4218: ELSIF p_counter_template_rec.initial_reading = FND_API.G_MISS_NUM THEN

4214: END IF;
4215:
4216: IF p_counter_template_rec.initial_reading IS NULL THEN
4217: l_counter_template_rec.initial_reading := l_old_counter_template_rec.initial_reading;
4218: ELSIF p_counter_template_rec.initial_reading = FND_API.G_MISS_NUM THEN
4219: l_counter_template_rec.initial_reading := NULL;
4220: END IF;
4221:
4222: IF p_counter_template_rec.step_value IS NULL THEN

Line 4224: ELSIF p_counter_template_rec.step_value = FND_API.G_MISS_NUM THEN

4220: END IF;
4221:
4222: IF p_counter_template_rec.step_value IS NULL THEN
4223: l_counter_template_rec.step_value := l_old_counter_template_rec.step_value;
4224: ELSIF p_counter_template_rec.step_value = FND_API.G_MISS_NUM THEN
4225: l_counter_template_rec.step_value := NULL;
4226: END IF;
4227:
4228: IF p_counter_template_rec.initial_reading_date IS NULL THEN

Line 4230: ELSIF p_counter_template_rec.initial_reading_date = FND_API.G_MISS_DATE THEN

4226: END IF;
4227:
4228: IF p_counter_template_rec.initial_reading_date IS NULL THEN
4229: l_counter_template_rec.initial_reading_date := l_old_counter_template_rec.initial_reading_date;
4230: ELSIF p_counter_template_rec.initial_reading_date = FND_API.G_MISS_DATE THEN
4231: l_counter_template_rec.initial_reading_date := NULL;
4232: END IF;
4233:
4234: IF p_counter_template_rec.tolerance_plus IS NULL THEN

Line 4236: ELSIF p_counter_template_rec.tolerance_plus = FND_API.G_MISS_NUM THEN

4232: END IF;
4233:
4234: IF p_counter_template_rec.tolerance_plus IS NULL THEN
4235: l_counter_template_rec.tolerance_plus := l_old_counter_template_rec.tolerance_plus;
4236: ELSIF p_counter_template_rec.tolerance_plus = FND_API.G_MISS_NUM THEN
4237: l_counter_template_rec.tolerance_plus := NULL;
4238: END IF;
4239:
4240: IF p_counter_template_rec.tolerance_minus IS NULL THEN

Line 4242: ELSIF p_counter_template_rec.tolerance_minus = FND_API.G_MISS_NUM THEN

4238: END IF;
4239:
4240: IF p_counter_template_rec.tolerance_minus IS NULL THEN
4241: l_counter_template_rec.tolerance_minus := l_old_counter_template_rec.tolerance_minus;
4242: ELSIF p_counter_template_rec.tolerance_minus = FND_API.G_MISS_NUM THEN
4243: l_counter_template_rec.tolerance_minus := NULL;
4244: END IF;
4245:
4246: IF p_counter_template_rec.uom_code IS NULL THEN

Line 4248: ELSIF p_counter_template_rec.uom_code = FND_API.G_MISS_CHAR THEN

4244: END IF;
4245:
4246: IF p_counter_template_rec.uom_code IS NULL THEN
4247: l_counter_template_rec.uom_code := l_old_counter_template_rec.uom_code;
4248: ELSIF p_counter_template_rec.uom_code = FND_API.G_MISS_CHAR THEN
4249: l_counter_template_rec.uom_code := NULL;
4250: END IF;
4251:
4252: IF p_counter_template_rec.derive_counter_id IS NULL THEN

Line 4254: ELSIF p_counter_template_rec.derive_counter_id = FND_API.G_MISS_NUM THEN

4250: END IF;
4251:
4252: IF p_counter_template_rec.derive_counter_id IS NULL THEN
4253: l_counter_template_rec.derive_counter_id := l_old_counter_template_rec.derive_counter_id;
4254: ELSIF p_counter_template_rec.derive_counter_id = FND_API.G_MISS_NUM THEN
4255: l_counter_template_rec.derive_counter_id := NULL;
4256: END IF;
4257:
4258: IF p_counter_template_rec.derive_function IS NULL THEN

Line 4260: ELSIF p_counter_template_rec.derive_function = FND_API.G_MISS_CHAR THEN

4256: END IF;
4257:
4258: IF p_counter_template_rec.derive_function IS NULL THEN
4259: l_counter_template_rec.derive_function := l_old_counter_template_rec.derive_function;
4260: ELSIF p_counter_template_rec.derive_function = FND_API.G_MISS_CHAR THEN
4261: l_counter_template_rec.derive_function := NULL;
4262: END IF;
4263:
4264: IF p_counter_template_rec.valid_flag IS NULL THEN

Line 4266: ELSIF p_counter_template_rec.valid_flag = FND_API.G_MISS_CHAR THEN

4262: END IF;
4263:
4264: IF p_counter_template_rec.valid_flag IS NULL THEN
4265: l_counter_template_rec.valid_flag := l_old_counter_template_rec.valid_flag;
4266: ELSIF p_counter_template_rec.valid_flag = FND_API.G_MISS_CHAR THEN
4267: l_counter_template_rec.valid_flag := NULL;
4268: END IF;
4269:
4270: IF p_counter_template_rec.formula_incomplete_flag IS NULL THEN

Line 4272: ELSIF p_counter_template_rec.formula_incomplete_flag = FND_API.G_MISS_CHAR THEN

4268: END IF;
4269:
4270: IF p_counter_template_rec.formula_incomplete_flag IS NULL THEN
4271: l_counter_template_rec.formula_incomplete_flag := l_old_counter_template_rec.formula_incomplete_flag;
4272: ELSIF p_counter_template_rec.formula_incomplete_flag = FND_API.G_MISS_CHAR THEN
4273: l_counter_template_rec.formula_incomplete_flag := NULL;
4274: END IF;
4275:
4276: IF p_counter_template_rec.formula_text IS NULL THEN

Line 4278: ELSIF p_counter_template_rec.formula_text = FND_API.G_MISS_CHAR THEN

4274: END IF;
4275:
4276: IF p_counter_template_rec.formula_text IS NULL THEN
4277: l_counter_template_rec.formula_text := l_old_counter_template_rec.formula_text;
4278: ELSIF p_counter_template_rec.formula_text = FND_API.G_MISS_CHAR THEN
4279: l_counter_template_rec.formula_text := NULL;
4280: END IF;
4281:
4282: IF p_counter_template_rec.rollover_last_reading IS NULL THEN

Line 4284: ELSIF p_counter_template_rec.rollover_last_reading = FND_API.G_MISS_NUM THEN

4280: END IF;
4281:
4282: IF p_counter_template_rec.rollover_last_reading IS NULL THEN
4283: l_counter_template_rec.rollover_last_reading := l_old_counter_template_rec.rollover_last_reading;
4284: ELSIF p_counter_template_rec.rollover_last_reading = FND_API.G_MISS_NUM THEN
4285: l_counter_template_rec.rollover_last_reading := NULL;
4286: END IF;
4287:
4288: IF p_counter_template_rec.rollover_first_reading IS NULL THEN

Line 4290: ELSIF p_counter_template_rec.rollover_first_reading = FND_API.G_MISS_NUM THEN

4286: END IF;
4287:
4288: IF p_counter_template_rec.rollover_first_reading IS NULL THEN
4289: l_counter_template_rec.rollover_first_reading := l_old_counter_template_rec.rollover_first_reading;
4290: ELSIF p_counter_template_rec.rollover_first_reading = FND_API.G_MISS_NUM THEN
4291: l_counter_template_rec.rollover_first_reading := NULL;
4292: END IF;
4293:
4294: IF p_counter_template_rec.usage_item_id IS NULL THEN

Line 4296: ELSIF p_counter_template_rec.usage_item_id = FND_API.G_MISS_NUM THEN

4292: END IF;
4293:
4294: IF p_counter_template_rec.usage_item_id IS NULL THEN
4295: l_counter_template_rec.usage_item_id := l_old_counter_template_rec.usage_item_id;
4296: ELSIF p_counter_template_rec.usage_item_id = FND_API.G_MISS_NUM THEN
4297: l_counter_template_rec.usage_item_id := NULL;
4298: END IF;
4299:
4300: IF p_counter_template_rec.ctr_val_max_seq_no IS NULL THEN

Line 4302: ELSIF p_counter_template_rec.ctr_val_max_seq_no = FND_API.G_MISS_NUM THEN

4298: END IF;
4299:
4300: IF p_counter_template_rec.ctr_val_max_seq_no IS NULL THEN
4301: l_counter_template_rec.ctr_val_max_seq_no := l_old_counter_template_rec.ctr_val_max_seq_no;
4302: ELSIF p_counter_template_rec.ctr_val_max_seq_no = FND_API.G_MISS_NUM THEN
4303: l_counter_template_rec.ctr_val_max_seq_no := NULL;
4304: END IF;
4305:
4306: IF p_counter_template_rec.start_date_active IS NULL THEN

Line 4308: ELSIF p_counter_template_rec.start_date_active = FND_API.G_MISS_DATE THEN

4304: END IF;
4305:
4306: IF p_counter_template_rec.start_date_active IS NULL THEN
4307: l_counter_template_rec.start_date_active := l_old_counter_template_rec.start_date_active;
4308: ELSIF p_counter_template_rec.start_date_active = FND_API.G_MISS_DATE THEN
4309: l_counter_template_rec.start_date_active := NULL;
4310: END IF;
4311:
4312: IF p_counter_template_rec.end_date_active IS NULL THEN

Line 4314: ELSIF p_counter_template_rec.end_date_active = FND_API.G_MISS_DATE THEN

4310: END IF;
4311:
4312: IF p_counter_template_rec.end_date_active IS NULL THEN
4313: l_counter_template_rec.end_date_active := l_old_counter_template_rec.end_date_active;
4314: ELSIF p_counter_template_rec.end_date_active = FND_API.G_MISS_DATE THEN
4315: l_counter_template_rec.end_date_active := NULL;
4316: END IF;
4317:
4318: if l_counter_template_rec.end_date_active IS NOT NULL then

Line 4327: ELSIF p_counter_template_rec.attribute1 = FND_API.G_MISS_CHAR THEN

4323:
4324:
4325: IF p_counter_template_rec.attribute1 IS NULL THEN
4326: l_counter_template_rec.attribute1 := l_old_counter_template_rec.attribute1;
4327: ELSIF p_counter_template_rec.attribute1 = FND_API.G_MISS_CHAR THEN
4328: l_counter_template_rec.attribute1 := NULL;
4329: END IF;
4330:
4331: IF p_counter_template_rec.attribute2 IS NULL THEN

Line 4333: ELSIF p_counter_template_rec.attribute2 = FND_API.G_MISS_CHAR THEN

4329: END IF;
4330:
4331: IF p_counter_template_rec.attribute2 IS NULL THEN
4332: l_counter_template_rec.attribute2 := l_old_counter_template_rec.attribute2;
4333: ELSIF p_counter_template_rec.attribute2 = FND_API.G_MISS_CHAR THEN
4334: l_counter_template_rec.attribute2 := NULL;
4335: END IF;
4336:
4337: IF p_counter_template_rec.attribute3 IS NULL THEN

Line 4339: ELSIF p_counter_template_rec.attribute3 = FND_API.G_MISS_CHAR THEN

4335: END IF;
4336:
4337: IF p_counter_template_rec.attribute3 IS NULL THEN
4338: l_counter_template_rec.attribute3 := l_old_counter_template_rec.attribute3;
4339: ELSIF p_counter_template_rec.attribute3 = FND_API.G_MISS_CHAR THEN
4340: l_counter_template_rec.attribute3 := NULL;
4341: END IF;
4342:
4343: IF p_counter_template_rec.attribute4 IS NULL THEN

Line 4345: ELSIF p_counter_template_rec.attribute4 = FND_API.G_MISS_CHAR THEN

4341: END IF;
4342:
4343: IF p_counter_template_rec.attribute4 IS NULL THEN
4344: l_counter_template_rec.attribute4 := l_old_counter_template_rec.attribute4;
4345: ELSIF p_counter_template_rec.attribute4 = FND_API.G_MISS_CHAR THEN
4346: l_counter_template_rec.attribute4 := NULL;
4347: END IF;
4348:
4349: IF p_counter_template_rec.attribute5 IS NULL THEN

Line 4351: ELSIF p_counter_template_rec.attribute5 = FND_API.G_MISS_CHAR THEN

4347: END IF;
4348:
4349: IF p_counter_template_rec.attribute5 IS NULL THEN
4350: l_counter_template_rec.attribute5 := l_old_counter_template_rec.attribute5;
4351: ELSIF p_counter_template_rec.attribute5 = FND_API.G_MISS_CHAR THEN
4352: l_counter_template_rec.attribute5 := NULL;
4353: END IF;
4354:
4355: IF p_counter_template_rec.attribute6 IS NULL THEN

Line 4357: ELSIF p_counter_template_rec.attribute6 = FND_API.G_MISS_CHAR THEN

4353: END IF;
4354:
4355: IF p_counter_template_rec.attribute6 IS NULL THEN
4356: l_counter_template_rec.attribute6 := l_old_counter_template_rec.attribute6;
4357: ELSIF p_counter_template_rec.attribute6 = FND_API.G_MISS_CHAR THEN
4358: l_counter_template_rec.attribute6 := NULL;
4359: END IF;
4360:
4361: IF p_counter_template_rec.attribute7 IS NULL THEN

Line 4363: ELSIF p_counter_template_rec.attribute7 = FND_API.G_MISS_CHAR THEN

4359: END IF;
4360:
4361: IF p_counter_template_rec.attribute7 IS NULL THEN
4362: l_counter_template_rec.attribute7 := l_old_counter_template_rec.attribute7;
4363: ELSIF p_counter_template_rec.attribute7 = FND_API.G_MISS_CHAR THEN
4364: l_counter_template_rec.attribute7 := NULL;
4365: END IF;
4366:
4367: IF p_counter_template_rec.attribute8 IS NULL THEN

Line 4369: ELSIF p_counter_template_rec.attribute8 = FND_API.G_MISS_CHAR THEN

4365: END IF;
4366:
4367: IF p_counter_template_rec.attribute8 IS NULL THEN
4368: l_counter_template_rec.attribute8 := l_old_counter_template_rec.attribute8;
4369: ELSIF p_counter_template_rec.attribute8 = FND_API.G_MISS_CHAR THEN
4370: l_counter_template_rec.attribute8 := NULL;
4371: END IF;
4372:
4373: IF p_counter_template_rec.attribute9 IS NULL THEN

Line 4375: ELSIF p_counter_template_rec.attribute9 = FND_API.G_MISS_CHAR THEN

4371: END IF;
4372:
4373: IF p_counter_template_rec.attribute9 IS NULL THEN
4374: l_counter_template_rec.attribute9 := l_old_counter_template_rec.attribute9;
4375: ELSIF p_counter_template_rec.attribute9 = FND_API.G_MISS_CHAR THEN
4376: l_counter_template_rec.attribute9 := NULL;
4377: END IF;
4378:
4379: IF p_counter_template_rec.attribute10 IS NULL THEN

Line 4381: ELSIF p_counter_template_rec.attribute10 = FND_API.G_MISS_CHAR THEN

4377: END IF;
4378:
4379: IF p_counter_template_rec.attribute10 IS NULL THEN
4380: l_counter_template_rec.attribute10 := l_old_counter_template_rec.attribute10;
4381: ELSIF p_counter_template_rec.attribute10 = FND_API.G_MISS_CHAR THEN
4382: l_counter_template_rec.attribute10 := NULL;
4383: END IF;
4384:
4385: IF p_counter_template_rec.attribute11 IS NULL THEN

Line 4387: ELSIF p_counter_template_rec.attribute11 = FND_API.G_MISS_CHAR THEN

4383: END IF;
4384:
4385: IF p_counter_template_rec.attribute11 IS NULL THEN
4386: l_counter_template_rec.attribute11 := l_old_counter_template_rec.attribute11;
4387: ELSIF p_counter_template_rec.attribute11 = FND_API.G_MISS_CHAR THEN
4388: l_counter_template_rec.attribute11 := NULL;
4389: END IF;
4390:
4391: IF p_counter_template_rec.attribute12 IS NULL THEN

Line 4393: ELSIF p_counter_template_rec.attribute12 = FND_API.G_MISS_CHAR THEN

4389: END IF;
4390:
4391: IF p_counter_template_rec.attribute12 IS NULL THEN
4392: l_counter_template_rec.attribute12 := l_old_counter_template_rec.attribute12;
4393: ELSIF p_counter_template_rec.attribute12 = FND_API.G_MISS_CHAR THEN
4394: l_counter_template_rec.attribute12 := NULL;
4395: END IF;
4396:
4397: IF p_counter_template_rec.attribute13 IS NULL THEN

Line 4399: ELSIF p_counter_template_rec.attribute13 = FND_API.G_MISS_CHAR THEN

4395: END IF;
4396:
4397: IF p_counter_template_rec.attribute13 IS NULL THEN
4398: l_counter_template_rec.attribute13 := l_old_counter_template_rec.attribute13;
4399: ELSIF p_counter_template_rec.attribute13 = FND_API.G_MISS_CHAR THEN
4400: l_counter_template_rec.attribute13 := NULL;
4401: END IF;
4402:
4403: IF p_counter_template_rec.attribute14 IS NULL THEN

Line 4405: ELSIF p_counter_template_rec.attribute14 = FND_API.G_MISS_CHAR THEN

4401: END IF;
4402:
4403: IF p_counter_template_rec.attribute14 IS NULL THEN
4404: l_counter_template_rec.attribute14 := l_old_counter_template_rec.attribute14;
4405: ELSIF p_counter_template_rec.attribute14 = FND_API.G_MISS_CHAR THEN
4406: l_counter_template_rec.attribute14 := NULL;
4407: END IF;
4408:
4409: IF p_counter_template_rec.attribute15 IS NULL THEN

Line 4411: ELSIF p_counter_template_rec.attribute15 = FND_API.G_MISS_CHAR THEN

4407: END IF;
4408:
4409: IF p_counter_template_rec.attribute15 IS NULL THEN
4410: l_counter_template_rec.attribute15 := l_old_counter_template_rec.attribute15;
4411: ELSIF p_counter_template_rec.attribute15 = FND_API.G_MISS_CHAR THEN
4412: l_counter_template_rec.attribute15 := NULL;
4413: END IF;
4414:
4415: IF p_counter_template_rec.attribute16 IS NULL THEN

Line 4417: ELSIF p_counter_template_rec.attribute16 = FND_API.G_MISS_CHAR THEN

4413: END IF;
4414:
4415: IF p_counter_template_rec.attribute16 IS NULL THEN
4416: l_counter_template_rec.attribute16 := l_old_counter_template_rec.attribute16;
4417: ELSIF p_counter_template_rec.attribute16 = FND_API.G_MISS_CHAR THEN
4418: l_counter_template_rec.attribute16 := NULL;
4419: END IF;
4420:
4421: IF p_counter_template_rec.attribute17 IS NULL THEN

Line 4423: ELSIF p_counter_template_rec.attribute17 = FND_API.G_MISS_CHAR THEN

4419: END IF;
4420:
4421: IF p_counter_template_rec.attribute17 IS NULL THEN
4422: l_counter_template_rec.attribute17 := l_old_counter_template_rec.attribute17;
4423: ELSIF p_counter_template_rec.attribute17 = FND_API.G_MISS_CHAR THEN
4424: l_counter_template_rec.attribute17 := NULL;
4425: END IF;
4426:
4427: IF p_counter_template_rec.attribute18 IS NULL THEN

Line 4429: ELSIF p_counter_template_rec.attribute18 = FND_API.G_MISS_CHAR THEN

4425: END IF;
4426:
4427: IF p_counter_template_rec.attribute18 IS NULL THEN
4428: l_counter_template_rec.attribute18 := l_old_counter_template_rec.attribute18;
4429: ELSIF p_counter_template_rec.attribute18 = FND_API.G_MISS_CHAR THEN
4430: l_counter_template_rec.attribute18 := NULL;
4431: END IF;
4432:
4433: IF p_counter_template_rec.attribute19 IS NULL THEN

Line 4435: ELSIF p_counter_template_rec.attribute19 = FND_API.G_MISS_CHAR THEN

4431: END IF;
4432:
4433: IF p_counter_template_rec.attribute19 IS NULL THEN
4434: l_counter_template_rec.attribute19 := l_old_counter_template_rec.attribute19;
4435: ELSIF p_counter_template_rec.attribute19 = FND_API.G_MISS_CHAR THEN
4436: l_counter_template_rec.attribute19 := NULL;
4437: END IF;
4438:
4439: IF p_counter_template_rec.attribute20 IS NULL THEN

Line 4441: ELSIF p_counter_template_rec.attribute20 = FND_API.G_MISS_CHAR THEN

4437: END IF;
4438:
4439: IF p_counter_template_rec.attribute20 IS NULL THEN
4440: l_counter_template_rec.attribute20 := l_old_counter_template_rec.attribute20;
4441: ELSIF p_counter_template_rec.attribute20 = FND_API.G_MISS_CHAR THEN
4442: l_counter_template_rec.attribute20 := NULL;
4443: END IF;
4444:
4445: IF p_counter_template_rec.attribute21 IS NULL THEN

Line 4447: ELSIF p_counter_template_rec.attribute21 = FND_API.G_MISS_CHAR THEN

4443: END IF;
4444:
4445: IF p_counter_template_rec.attribute21 IS NULL THEN
4446: l_counter_template_rec.attribute21 := l_old_counter_template_rec.attribute21;
4447: ELSIF p_counter_template_rec.attribute21 = FND_API.G_MISS_CHAR THEN
4448: l_counter_template_rec.attribute21 := NULL;
4449: END IF;
4450:
4451: IF p_counter_template_rec.attribute22 IS NULL THEN

Line 4453: ELSIF p_counter_template_rec.attribute22 = FND_API.G_MISS_CHAR THEN

4449: END IF;
4450:
4451: IF p_counter_template_rec.attribute22 IS NULL THEN
4452: l_counter_template_rec.attribute22 := l_old_counter_template_rec.attribute22;
4453: ELSIF p_counter_template_rec.attribute22 = FND_API.G_MISS_CHAR THEN
4454: l_counter_template_rec.attribute22 := NULL;
4455: END IF;
4456:
4457: IF p_counter_template_rec.attribute23 IS NULL THEN

Line 4459: ELSIF p_counter_template_rec.attribute23 = FND_API.G_MISS_CHAR THEN

4455: END IF;
4456:
4457: IF p_counter_template_rec.attribute23 IS NULL THEN
4458: l_counter_template_rec.attribute23 := l_old_counter_template_rec.attribute23;
4459: ELSIF p_counter_template_rec.attribute23 = FND_API.G_MISS_CHAR THEN
4460: l_counter_template_rec.attribute23 := NULL;
4461: END IF;
4462:
4463: IF p_counter_template_rec.attribute24 IS NULL THEN

Line 4465: ELSIF p_counter_template_rec.attribute24 = FND_API.G_MISS_CHAR THEN

4461: END IF;
4462:
4463: IF p_counter_template_rec.attribute24 IS NULL THEN
4464: l_counter_template_rec.attribute24 := l_old_counter_template_rec.attribute24;
4465: ELSIF p_counter_template_rec.attribute24 = FND_API.G_MISS_CHAR THEN
4466: l_counter_template_rec.attribute24 := NULL;
4467: END IF;
4468:
4469: IF p_counter_template_rec.attribute25 IS NULL THEN

Line 4471: ELSIF p_counter_template_rec.attribute25 = FND_API.G_MISS_CHAR THEN

4467: END IF;
4468:
4469: IF p_counter_template_rec.attribute25 IS NULL THEN
4470: l_counter_template_rec.attribute25 := l_old_counter_template_rec.attribute25;
4471: ELSIF p_counter_template_rec.attribute25 = FND_API.G_MISS_CHAR THEN
4472: l_counter_template_rec.attribute25 := NULL;
4473: END IF;
4474:
4475: IF p_counter_template_rec.attribute26 IS NULL THEN

Line 4477: ELSIF p_counter_template_rec.attribute26 = FND_API.G_MISS_CHAR THEN

4473: END IF;
4474:
4475: IF p_counter_template_rec.attribute26 IS NULL THEN
4476: l_counter_template_rec.attribute26 := l_old_counter_template_rec.attribute26;
4477: ELSIF p_counter_template_rec.attribute26 = FND_API.G_MISS_CHAR THEN
4478: l_counter_template_rec.attribute26 := NULL;
4479: END IF;
4480:
4481: IF p_counter_template_rec.attribute27 IS NULL THEN

Line 4483: ELSIF p_counter_template_rec.attribute27 = FND_API.G_MISS_CHAR THEN

4479: END IF;
4480:
4481: IF p_counter_template_rec.attribute27 IS NULL THEN
4482: l_counter_template_rec.attribute27 := l_old_counter_template_rec.attribute27;
4483: ELSIF p_counter_template_rec.attribute27 = FND_API.G_MISS_CHAR THEN
4484: l_counter_template_rec.attribute27 := NULL;
4485: END IF;
4486:
4487: IF p_counter_template_rec.attribute28 IS NULL THEN

Line 4489: ELSIF p_counter_template_rec.attribute28 = FND_API.G_MISS_CHAR THEN

4485: END IF;
4486:
4487: IF p_counter_template_rec.attribute28 IS NULL THEN
4488: l_counter_template_rec.attribute28 := l_old_counter_template_rec.attribute28;
4489: ELSIF p_counter_template_rec.attribute28 = FND_API.G_MISS_CHAR THEN
4490: l_counter_template_rec.attribute28 := NULL;
4491: END IF;
4492:
4493: IF p_counter_template_rec.attribute29 IS NULL THEN

Line 4495: ELSIF p_counter_template_rec.attribute29 = FND_API.G_MISS_CHAR THEN

4491: END IF;
4492:
4493: IF p_counter_template_rec.attribute29 IS NULL THEN
4494: l_counter_template_rec.attribute29 := l_old_counter_template_rec.attribute29;
4495: ELSIF p_counter_template_rec.attribute29 = FND_API.G_MISS_CHAR THEN
4496: l_counter_template_rec.attribute29 := NULL;
4497: END IF;
4498:
4499: IF p_counter_template_rec.attribute30 IS NULL THEN

Line 4501: ELSIF p_counter_template_rec.attribute30 = FND_API.G_MISS_CHAR THEN

4497: END IF;
4498:
4499: IF p_counter_template_rec.attribute30 IS NULL THEN
4500: l_counter_template_rec.attribute30 := l_old_counter_template_rec.attribute30;
4501: ELSIF p_counter_template_rec.attribute30 = FND_API.G_MISS_CHAR THEN
4502: l_counter_template_rec.attribute30 := NULL;
4503: END IF;
4504:
4505: IF p_counter_template_rec.attribute_category IS NULL THEN

Line 4507: ELSIF p_counter_template_rec.attribute_category = FND_API.G_MISS_CHAR THEN

4503: END IF;
4504:
4505: IF p_counter_template_rec.attribute_category IS NULL THEN
4506: l_counter_template_rec.attribute_category := l_old_counter_template_rec.attribute_category;
4507: ELSIF p_counter_template_rec.attribute_category = FND_API.G_MISS_CHAR THEN
4508: l_counter_template_rec.attribute_category := NULL;
4509: END IF;
4510:
4511: IF p_counter_template_rec.customer_view IS NULL THEN

Line 4513: ELSIF p_counter_template_rec.customer_view = FND_API.G_MISS_CHAR THEN

4509: END IF;
4510:
4511: IF p_counter_template_rec.customer_view IS NULL THEN
4512: l_counter_template_rec.customer_view := l_old_counter_template_rec.customer_view;
4513: ELSIF p_counter_template_rec.customer_view = FND_API.G_MISS_CHAR THEN
4514: l_counter_template_rec.customer_view := NULL;
4515: END IF;
4516:
4517: IF p_counter_template_rec.direction IS NULL THEN

Line 4519: ELSIF p_counter_template_rec.direction = FND_API.G_MISS_CHAR THEN

4515: END IF;
4516:
4517: IF p_counter_template_rec.direction IS NULL THEN
4518: l_counter_template_rec.direction := l_old_counter_template_rec.direction;
4519: ELSIF p_counter_template_rec.direction = FND_API.G_MISS_CHAR THEN
4520: l_counter_template_rec.direction := NULL;
4521: END IF;
4522:
4523: IF p_counter_template_rec.filter_type IS NULL THEN

Line 4525: ELSIF p_counter_template_rec.filter_type = FND_API.G_MISS_CHAR THEN

4521: END IF;
4522:
4523: IF p_counter_template_rec.filter_type IS NULL THEN
4524: l_counter_template_rec.filter_type := l_old_counter_template_rec.filter_type;
4525: ELSIF p_counter_template_rec.filter_type = FND_API.G_MISS_CHAR THEN
4526: l_counter_template_rec.filter_type := NULL;
4527: END IF;
4528:
4529: IF p_counter_template_rec.filter_reading_count IS NULL THEN

Line 4531: ELSIF p_counter_template_rec.filter_reading_count = FND_API.G_MISS_NUM THEN

4527: END IF;
4528:
4529: IF p_counter_template_rec.filter_reading_count IS NULL THEN
4530: l_counter_template_rec.filter_reading_count := l_old_counter_template_rec.filter_reading_count;
4531: ELSIF p_counter_template_rec.filter_reading_count = FND_API.G_MISS_NUM THEN
4532: l_counter_template_rec.filter_reading_count := NULL;
4533: END IF;
4534:
4535: IF p_counter_template_rec.filter_time_uom IS NULL THEN

Line 4537: ELSIF p_counter_template_rec.filter_time_uom = FND_API.G_MISS_CHAR THEN

4533: END IF;
4534:
4535: IF p_counter_template_rec.filter_time_uom IS NULL THEN
4536: l_counter_template_rec.filter_time_uom := l_old_counter_template_rec.filter_time_uom;
4537: ELSIF p_counter_template_rec.filter_time_uom = FND_API.G_MISS_CHAR THEN
4538: l_counter_template_rec.filter_time_uom := NULL;
4539: END IF;
4540:
4541: IF p_counter_template_rec.estimation_id IS NULL THEN

Line 4543: ELSIF p_counter_template_rec.estimation_id = FND_API.G_MISS_NUM THEN

4539: END IF;
4540:
4541: IF p_counter_template_rec.estimation_id IS NULL THEN
4542: l_counter_template_rec.estimation_id := l_old_counter_template_rec.estimation_id;
4543: ELSIF p_counter_template_rec.estimation_id = FND_API.G_MISS_NUM THEN
4544: l_counter_template_rec.estimation_id := NULL;
4545: END IF;
4546:
4547: IF p_counter_template_rec.association_type IS NULL THEN

Line 4549: ELSIF p_counter_template_rec.association_type = FND_API.G_MISS_CHAR THEN

4545: END IF;
4546:
4547: IF p_counter_template_rec.association_type IS NULL THEN
4548: l_counter_template_rec.association_type := l_old_counter_template_rec.association_type;
4549: ELSIF p_counter_template_rec.association_type = FND_API.G_MISS_CHAR THEN
4550: l_counter_template_rec.association_type := NULL;
4551: END IF;
4552:
4553: IF p_counter_template_rec.reading_type IS NULL THEN

Line 4555: ELSIF p_counter_template_rec.reading_type = FND_API.G_MISS_NUM THEN

4551: END IF;
4552:
4553: IF p_counter_template_rec.reading_type IS NULL THEN
4554: l_counter_template_rec.reading_type := l_old_counter_template_rec.reading_type;
4555: ELSIF p_counter_template_rec.reading_type = FND_API.G_MISS_NUM THEN
4556: l_counter_template_rec.reading_type := NULL;
4557: END IF;
4558:
4559: IF p_counter_template_rec.automatic_rollover IS NULL THEN

Line 4561: ELSIF p_counter_template_rec.automatic_rollover = FND_API.G_MISS_CHAR THEN

4557: END IF;
4558:
4559: IF p_counter_template_rec.automatic_rollover IS NULL THEN
4560: l_counter_template_rec.automatic_rollover := l_old_counter_template_rec.automatic_rollover;
4561: ELSIF p_counter_template_rec.automatic_rollover = FND_API.G_MISS_CHAR THEN
4562: l_counter_template_rec.automatic_rollover := NULL;
4563: END IF;
4564:
4565: IF p_counter_template_rec.default_usage_rate IS NULL THEN

Line 4567: ELSIF p_counter_template_rec.default_usage_rate = FND_API.G_MISS_NUM THEN

4563: END IF;
4564:
4565: IF p_counter_template_rec.default_usage_rate IS NULL THEN
4566: l_counter_template_rec.default_usage_rate := l_old_counter_template_rec.default_usage_rate;
4567: ELSIF p_counter_template_rec.default_usage_rate = FND_API.G_MISS_NUM THEN
4568: l_counter_template_rec.default_usage_rate := NULL;
4569: END IF;
4570:
4571: IF p_counter_template_rec.use_past_reading IS NULL THEN

Line 4573: ELSIF p_counter_template_rec.use_past_reading = FND_API.G_MISS_NUM THEN

4569: END IF;
4570:
4571: IF p_counter_template_rec.use_past_reading IS NULL THEN
4572: l_counter_template_rec.use_past_reading := l_old_counter_template_rec.use_past_reading;
4573: ELSIF p_counter_template_rec.use_past_reading = FND_API.G_MISS_NUM THEN
4574: l_counter_template_rec.use_past_reading := NULL;
4575: END IF;
4576:
4577: IF p_counter_template_rec.used_in_scheduling IS NULL THEN

Line 4579: ELSIF p_counter_template_rec.used_in_scheduling = FND_API.G_MISS_CHAR THEN

4575: END IF;
4576:
4577: IF p_counter_template_rec.used_in_scheduling IS NULL THEN
4578: l_counter_template_rec.used_in_scheduling := l_old_counter_template_rec.used_in_scheduling;
4579: ELSIF p_counter_template_rec.used_in_scheduling = FND_API.G_MISS_CHAR THEN
4580: l_counter_template_rec.used_in_scheduling := NULL;
4581: END IF;
4582:
4583: IF p_counter_template_rec.time_based_manual_entry IS NULL THEN

Line 4585: ELSIF p_counter_template_rec.time_based_manual_entry = FND_API.G_MISS_CHAR THEN

4581: END IF;
4582:
4583: IF p_counter_template_rec.time_based_manual_entry IS NULL THEN
4584: l_counter_template_rec.time_based_manual_entry := l_old_counter_template_rec.time_based_manual_entry;
4585: ELSIF p_counter_template_rec.time_based_manual_entry = FND_API.G_MISS_CHAR THEN
4586: l_counter_template_rec.time_based_manual_entry := NULL;
4587: END IF;
4588:
4589: IF l_old_counter_template_rec.used_in_scheduling = 'Y' AND l_counter_template_rec.used_in_scheduling = 'N' THEN

Line 4598: IF NOT (l_return_status = FND_API.G_RET_STS_SUCCESS ) THEN

4594: X_msg_count => l_msg_count,
4595: X_msg_data => l_msg_data
4596: );
4597:
4598: IF NOT (l_return_status = FND_API.G_RET_STS_SUCCESS ) THEN
4599: csi_ctr_gen_utility_pvt.put_line('used in scheduling cannot be updated');
4600: csi_ctr_gen_utility_pvt.ExitWithErrMsg('CSI_API_USEDINSCHED_NOT_UPDT');
4601: END IF;
4602: END IF;

Line 4607: ELSIF p_counter_template_rec.defaulted_group_id = FND_API.G_MISS_NUM THEN

4603:
4604: csi_ctr_gen_utility_pvt.put_line('p_counter_template_rec.defaulted_group_id - ' || p_counter_template_rec.defaulted_group_id);
4605: IF p_counter_template_rec.defaulted_group_id IS NULL THEN
4606: l_counter_template_rec.defaulted_group_id := l_old_counter_template_rec.defaulted_group_id;
4607: ELSIF p_counter_template_rec.defaulted_group_id = FND_API.G_MISS_NUM THEN
4608: l_counter_template_rec.defaulted_group_id := NULL;
4609: END IF;
4610:
4611: IF p_counter_template_rec.comments IS NULL THEN

Line 4613: ELSIF p_counter_template_rec.comments = FND_API.G_MISS_CHAR THEN

4609: END IF;
4610:
4611: IF p_counter_template_rec.comments IS NULL THEN
4612: l_counter_template_rec.comments := l_old_counter_template_rec.comments;
4613: ELSIF p_counter_template_rec.comments = FND_API.G_MISS_CHAR THEN
4614: l_counter_template_rec.comments := NULL;
4615: END IF;
4616:
4617: IF p_counter_template_rec.eam_required_flag IS NULL THEN

Line 4619: ELSIF p_counter_template_rec.eam_required_flag = FND_API.G_MISS_CHAR THEN

4615: END IF;
4616:
4617: IF p_counter_template_rec.eam_required_flag IS NULL THEN
4618: l_counter_template_rec.eam_required_flag := l_old_counter_template_rec.eam_required_flag;
4619: ELSIF p_counter_template_rec.eam_required_flag = FND_API.G_MISS_CHAR THEN
4620: l_counter_template_rec.eam_required_flag := NULL;
4621: END IF;
4622:
4623: -- Counter group is not updateable

Line 4791: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN

4787: ,p_eam_required_flag => p_counter_template_rec.eam_required_flag
4788: );
4789:
4790:
4791: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN
4792: ROLLBACK TO update_counter_template_pvt;
4793: RETURN;
4794: END IF;
4795:

Line 4798: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN

4794: END IF;
4795:
4796: /* End of API Body */
4797:
4798: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN
4799: COMMIT WORK;
4800: END IF;
4801:
4802: -- Standard call to get message count and IF count is get message info.

Line 4808: WHEN FND_API.G_EXC_ERROR THEN

4804: ( p_count => x_msg_count,
4805: p_data => x_msg_data
4806: );
4807: EXCEPTION
4808: WHEN FND_API.G_EXC_ERROR THEN
4809: x_return_status := FND_API.G_RET_STS_ERROR ;
4810: ROLLBACK TO update_counter_template_pvt;
4811: FND_MSG_PUB.Count_And_Get
4812: ( p_count => x_msg_count,

Line 4809: x_return_status := FND_API.G_RET_STS_ERROR ;

4805: p_data => x_msg_data
4806: );
4807: EXCEPTION
4808: WHEN FND_API.G_EXC_ERROR THEN
4809: x_return_status := FND_API.G_RET_STS_ERROR ;
4810: ROLLBACK TO update_counter_template_pvt;
4811: FND_MSG_PUB.Count_And_Get
4812: ( p_count => x_msg_count,
4813: p_data => x_msg_data

Line 4815: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN

4811: FND_MSG_PUB.Count_And_Get
4812: ( p_count => x_msg_count,
4813: p_data => x_msg_data
4814: );
4815: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
4816: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
4817: ROLLBACK TO update_counter_template_pvt;
4818: FND_MSG_PUB.Count_And_Get
4819: ( p_count => x_msg_count,

Line 4816: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

4812: ( p_count => x_msg_count,
4813: p_data => x_msg_data
4814: );
4815: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
4816: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
4817: ROLLBACK TO update_counter_template_pvt;
4818: FND_MSG_PUB.Count_And_Get
4819: ( p_count => x_msg_count,
4820: p_data => x_msg_data

Line 4823: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

4819: ( p_count => x_msg_count,
4820: p_data => x_msg_data
4821: );
4822: WHEN OTHERS THEN
4823: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
4824: ROLLBACK TO update_counter_template_pvt;
4825: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
4826: FND_MSG_PUB.Add_Exc_Msg
4827: ( G_PKG_NAME,

Line 4911: IF NOT FND_API.Compatible_API_Call (l_api_version,

4907: -- Standard Start of API savepoint
4908: SAVEPOINT update_ctr_property_tmpl_pvt;
4909:
4910: -- Standard call to check for call compatibility.
4911: IF NOT FND_API.Compatible_API_Call (l_api_version,
4912: p_api_version,
4913: l_api_name ,
4914: G_PKG_NAME ) THEN
4915: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 4915: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

4911: IF NOT FND_API.Compatible_API_Call (l_api_version,
4912: p_api_version,
4913: l_api_name ,
4914: G_PKG_NAME ) THEN
4915: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
4916: END IF;
4917:
4918: -- Initialize message list if p_init_msg_list is set to TRUE.
4919: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

Line 4919: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

4915: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
4916: END IF;
4917:
4918: -- Initialize message list if p_init_msg_list is set to TRUE.
4919: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
4920: FND_MSG_PUB.initialize;
4921: END IF;
4922:
4923: -- Initialize API return status to success

Line 4924: x_return_status := FND_API.G_RET_STS_SUCCESS;

4920: FND_MSG_PUB.initialize;
4921: END IF;
4922:
4923: -- Initialize API return status to success
4924: x_return_status := FND_API.G_RET_STS_SUCCESS;
4925:
4926: -- Read the debug profiles values in to global variable 7197402
4927: CSI_CTR_GEN_UTILITY_PVT.read_debug_profiles;
4928:

Line 4933: nvl(p_commit,FND_API.G_FALSE) ||'-'||

4929: --
4930: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
4931: csi_ctr_gen_utility_pvt.put_line( 'update_ctr_property_tmpl_pvt' ||'-'||
4932: p_api_version ||'-'||
4933: nvl(p_commit,FND_API.G_FALSE) ||'-'||
4934: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
4935: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
4936: END IF;
4937:

Line 4934: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||

4930: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
4931: csi_ctr_gen_utility_pvt.put_line( 'update_ctr_property_tmpl_pvt' ||'-'||
4932: p_api_version ||'-'||
4933: nvl(p_commit,FND_API.G_FALSE) ||'-'||
4934: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
4935: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
4936: END IF;
4937:
4938: /* Start of API Body */

Line 4935: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );

4931: csi_ctr_gen_utility_pvt.put_line( 'update_ctr_property_tmpl_pvt' ||'-'||
4932: p_api_version ||'-'||
4933: nvl(p_commit,FND_API.G_FALSE) ||'-'||
4934: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
4935: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
4936: END IF;
4937:
4938: /* Start of API Body */
4939: OPEN cur_ctr_prop_rec(p_ctr_property_template_rec.counter_property_id);

Line 4944: RAISE FND_API.G_EXC_ERROR;

4940: FETCH cur_ctr_prop_rec INTO l_old_ctr_property_tmpl_rec;
4941: IF (l_old_ctr_property_tmpl_rec.object_version_number <> nvl(p_ctr_property_template_rec.OBJECT_VERSION_NUMBER,0)) THEN
4942: FND_MESSAGE.Set_Name('CSI', 'CSI_API_OBJ_VER_MISMATCH');
4943: FND_MSG_PUB.ADD;
4944: RAISE FND_API.G_EXC_ERROR;
4945: END IF;
4946:
4947: CLOSE cur_ctr_prop_rec;
4948:

Line 4957: ELSIF p_ctr_property_template_rec.name = FND_API.G_MISS_CHAR THEN

4953: l_ctr_property_tmpl_rec := p_ctr_property_template_rec;
4954:
4955: IF p_ctr_property_template_rec.name IS NULL THEN
4956: l_ctr_property_tmpl_rec.name := l_old_ctr_property_tmpl_rec.name;
4957: ELSIF p_ctr_property_template_rec.name = FND_API.G_MISS_CHAR THEN
4958: l_ctr_property_tmpl_rec.name := NULL;
4959: END IF;
4960:
4961: IF p_ctr_property_template_rec.description IS NULL THEN

Line 4963: ELSIF p_ctr_property_template_rec.description = FND_API.G_MISS_CHAR THEN

4959: END IF;
4960:
4961: IF p_ctr_property_template_rec.description IS NULL THEN
4962: l_ctr_property_tmpl_rec.description := l_old_ctr_property_tmpl_rec.description;
4963: ELSIF p_ctr_property_template_rec.description = FND_API.G_MISS_CHAR THEN
4964: l_ctr_property_tmpl_rec.description := NULL;
4965: END IF;
4966:
4967: IF p_ctr_property_template_rec.counter_id IS NULL THEN

Line 4969: ELSIF p_ctr_property_template_rec.counter_id = FND_API.G_MISS_NUM THEN

4965: END IF;
4966:
4967: IF p_ctr_property_template_rec.counter_id IS NULL THEN
4968: l_ctr_property_tmpl_rec.counter_id := l_old_ctr_property_tmpl_rec.counter_id;
4969: ELSIF p_ctr_property_template_rec.counter_id = FND_API.G_MISS_NUM THEN
4970: l_ctr_property_tmpl_rec.counter_id := NULL;
4971: END IF;
4972:
4973: IF p_ctr_property_template_rec.start_date_active IS NULL THEN

Line 4975: ELSIF p_ctr_property_template_rec.start_date_active = FND_API.G_MISS_DATE THEN

4971: END IF;
4972:
4973: IF p_ctr_property_template_rec.start_date_active IS NULL THEN
4974: l_ctr_property_tmpl_rec.start_date_active := l_old_ctr_property_tmpl_rec.start_date_active;
4975: ELSIF p_ctr_property_template_rec.start_date_active = FND_API.G_MISS_DATE THEN
4976: l_ctr_property_tmpl_rec.start_date_active := NULL;
4977: END IF;
4978:
4979: IF p_ctr_property_template_rec.end_date_active IS NULL THEN

Line 4981: ELSIF p_ctr_property_template_rec.end_date_active = FND_API.G_MISS_DATE THEN

4977: END IF;
4978:
4979: IF p_ctr_property_template_rec.end_date_active IS NULL THEN
4980: l_ctr_property_tmpl_rec.end_date_active := l_old_ctr_property_tmpl_rec.end_date_active;
4981: ELSIF p_ctr_property_template_rec.end_date_active = FND_API.G_MISS_DATE THEN
4982: l_ctr_property_tmpl_rec.end_date_active := NULL;
4983: END IF;
4984:
4985: IF p_ctr_property_template_rec.attribute1 IS NULL THEN

Line 4987: ELSIF p_ctr_property_template_rec.attribute1 = FND_API.G_MISS_CHAR THEN

4983: END IF;
4984:
4985: IF p_ctr_property_template_rec.attribute1 IS NULL THEN
4986: l_ctr_property_tmpl_rec.attribute1 := l_old_ctr_property_tmpl_rec.attribute1;
4987: ELSIF p_ctr_property_template_rec.attribute1 = FND_API.G_MISS_CHAR THEN
4988: l_ctr_property_tmpl_rec.attribute1 := NULL;
4989: END IF;
4990:
4991: IF p_ctr_property_template_rec.attribute2 IS NULL THEN

Line 4993: ELSIF p_ctr_property_template_rec.attribute2 = FND_API.G_MISS_CHAR THEN

4989: END IF;
4990:
4991: IF p_ctr_property_template_rec.attribute2 IS NULL THEN
4992: l_ctr_property_tmpl_rec.attribute2 := l_old_ctr_property_tmpl_rec.attribute2;
4993: ELSIF p_ctr_property_template_rec.attribute2 = FND_API.G_MISS_CHAR THEN
4994: l_ctr_property_tmpl_rec.attribute2 := NULL;
4995: END IF;
4996:
4997: IF p_ctr_property_template_rec.attribute3 IS NULL THEN

Line 4999: ELSIF p_ctr_property_template_rec.attribute3 = FND_API.G_MISS_CHAR THEN

4995: END IF;
4996:
4997: IF p_ctr_property_template_rec.attribute3 IS NULL THEN
4998: l_ctr_property_tmpl_rec.attribute3 := l_old_ctr_property_tmpl_rec.attribute3;
4999: ELSIF p_ctr_property_template_rec.attribute3 = FND_API.G_MISS_CHAR THEN
5000: l_ctr_property_tmpl_rec.attribute3 := NULL;
5001: END IF;
5002:
5003: IF p_ctr_property_template_rec.attribute4 IS NULL THEN

Line 5005: ELSIF p_ctr_property_template_rec.attribute4 = FND_API.G_MISS_CHAR THEN

5001: END IF;
5002:
5003: IF p_ctr_property_template_rec.attribute4 IS NULL THEN
5004: l_ctr_property_tmpl_rec.attribute4 := l_old_ctr_property_tmpl_rec.attribute4;
5005: ELSIF p_ctr_property_template_rec.attribute4 = FND_API.G_MISS_CHAR THEN
5006: l_ctr_property_tmpl_rec.attribute4 := NULL;
5007: END IF;
5008:
5009: IF p_ctr_property_template_rec.attribute5 IS NULL THEN

Line 5011: ELSIF p_ctr_property_template_rec.attribute5 = FND_API.G_MISS_CHAR THEN

5007: END IF;
5008:
5009: IF p_ctr_property_template_rec.attribute5 IS NULL THEN
5010: l_ctr_property_tmpl_rec.attribute5 := l_old_ctr_property_tmpl_rec.attribute5;
5011: ELSIF p_ctr_property_template_rec.attribute5 = FND_API.G_MISS_CHAR THEN
5012: l_ctr_property_tmpl_rec.attribute5 := NULL;
5013: END IF;
5014:
5015: IF p_ctr_property_template_rec.attribute6 IS NULL THEN

Line 5017: ELSIF p_ctr_property_template_rec.attribute6 = FND_API.G_MISS_CHAR THEN

5013: END IF;
5014:
5015: IF p_ctr_property_template_rec.attribute6 IS NULL THEN
5016: l_ctr_property_tmpl_rec.attribute6 := l_old_ctr_property_tmpl_rec.attribute6;
5017: ELSIF p_ctr_property_template_rec.attribute6 = FND_API.G_MISS_CHAR THEN
5018: l_ctr_property_tmpl_rec.attribute6 := NULL;
5019: END IF;
5020:
5021: IF p_ctr_property_template_rec.attribute7 IS NULL THEN

Line 5023: ELSIF p_ctr_property_template_rec.attribute7 = FND_API.G_MISS_CHAR THEN

5019: END IF;
5020:
5021: IF p_ctr_property_template_rec.attribute7 IS NULL THEN
5022: l_ctr_property_tmpl_rec.attribute7 := l_old_ctr_property_tmpl_rec.attribute7;
5023: ELSIF p_ctr_property_template_rec.attribute7 = FND_API.G_MISS_CHAR THEN
5024: l_ctr_property_tmpl_rec.attribute7 := NULL;
5025: END IF;
5026:
5027: IF p_ctr_property_template_rec.attribute8 IS NULL THEN

Line 5029: ELSIF p_ctr_property_template_rec.attribute8 = FND_API.G_MISS_CHAR THEN

5025: END IF;
5026:
5027: IF p_ctr_property_template_rec.attribute8 IS NULL THEN
5028: l_ctr_property_tmpl_rec.attribute8 := l_old_ctr_property_tmpl_rec.attribute8;
5029: ELSIF p_ctr_property_template_rec.attribute8 = FND_API.G_MISS_CHAR THEN
5030: l_ctr_property_tmpl_rec.attribute8 := NULL;
5031: END IF;
5032:
5033: IF p_ctr_property_template_rec.attribute9 IS NULL THEN

Line 5035: ELSIF p_ctr_property_template_rec.attribute9 = FND_API.G_MISS_CHAR THEN

5031: END IF;
5032:
5033: IF p_ctr_property_template_rec.attribute9 IS NULL THEN
5034: l_ctr_property_tmpl_rec.attribute9 := l_old_ctr_property_tmpl_rec.attribute9;
5035: ELSIF p_ctr_property_template_rec.attribute9 = FND_API.G_MISS_CHAR THEN
5036: l_ctr_property_tmpl_rec.attribute9 := NULL;
5037: END IF;
5038:
5039: IF p_ctr_property_template_rec.attribute10 IS NULL THEN

Line 5041: ELSIF p_ctr_property_template_rec.attribute10 = FND_API.G_MISS_CHAR THEN

5037: END IF;
5038:
5039: IF p_ctr_property_template_rec.attribute10 IS NULL THEN
5040: l_ctr_property_tmpl_rec.attribute10 := l_old_ctr_property_tmpl_rec.attribute10;
5041: ELSIF p_ctr_property_template_rec.attribute10 = FND_API.G_MISS_CHAR THEN
5042: l_ctr_property_tmpl_rec.attribute10 := NULL;
5043: END IF;
5044:
5045: IF p_ctr_property_template_rec.attribute11 IS NULL THEN

Line 5047: ELSIF p_ctr_property_template_rec.attribute11 = FND_API.G_MISS_CHAR THEN

5043: END IF;
5044:
5045: IF p_ctr_property_template_rec.attribute11 IS NULL THEN
5046: l_ctr_property_tmpl_rec.attribute11 := l_old_ctr_property_tmpl_rec.attribute11;
5047: ELSIF p_ctr_property_template_rec.attribute11 = FND_API.G_MISS_CHAR THEN
5048: l_ctr_property_tmpl_rec.attribute11 := NULL;
5049: END IF;
5050:
5051: IF p_ctr_property_template_rec.attribute12 IS NULL THEN

Line 5053: ELSIF p_ctr_property_template_rec.attribute12 = FND_API.G_MISS_CHAR THEN

5049: END IF;
5050:
5051: IF p_ctr_property_template_rec.attribute12 IS NULL THEN
5052: l_ctr_property_tmpl_rec.attribute12 := l_old_ctr_property_tmpl_rec.attribute12;
5053: ELSIF p_ctr_property_template_rec.attribute12 = FND_API.G_MISS_CHAR THEN
5054: l_ctr_property_tmpl_rec.attribute12 := NULL;
5055: END IF;
5056:
5057: IF p_ctr_property_template_rec.attribute13 IS NULL THEN

Line 5059: ELSIF p_ctr_property_template_rec.attribute13 = FND_API.G_MISS_CHAR THEN

5055: END IF;
5056:
5057: IF p_ctr_property_template_rec.attribute13 IS NULL THEN
5058: l_ctr_property_tmpl_rec.attribute13 := l_old_ctr_property_tmpl_rec.attribute13;
5059: ELSIF p_ctr_property_template_rec.attribute13 = FND_API.G_MISS_CHAR THEN
5060: l_ctr_property_tmpl_rec.attribute13 := NULL;
5061: END IF;
5062:
5063: IF p_ctr_property_template_rec.attribute14 IS NULL THEN

Line 5065: ELSIF p_ctr_property_template_rec.attribute14 = FND_API.G_MISS_CHAR THEN

5061: END IF;
5062:
5063: IF p_ctr_property_template_rec.attribute14 IS NULL THEN
5064: l_ctr_property_tmpl_rec.attribute14 := l_old_ctr_property_tmpl_rec.attribute14;
5065: ELSIF p_ctr_property_template_rec.attribute14 = FND_API.G_MISS_CHAR THEN
5066: l_ctr_property_tmpl_rec.attribute14 := NULL;
5067: END IF;
5068:
5069: IF p_ctr_property_template_rec.attribute15 IS NULL THEN

Line 5071: ELSIF p_ctr_property_template_rec.attribute15 = FND_API.G_MISS_CHAR THEN

5067: END IF;
5068:
5069: IF p_ctr_property_template_rec.attribute15 IS NULL THEN
5070: l_ctr_property_tmpl_rec.attribute15 := l_old_ctr_property_tmpl_rec.attribute15;
5071: ELSIF p_ctr_property_template_rec.attribute15 = FND_API.G_MISS_CHAR THEN
5072: l_ctr_property_tmpl_rec.attribute15 := NULL;
5073: END IF;
5074:
5075: IF p_ctr_property_template_rec.attribute_category IS NULL THEN

Line 5077: ELSIF p_ctr_property_template_rec.attribute_category = FND_API.G_MISS_CHAR THEN

5073: END IF;
5074:
5075: IF p_ctr_property_template_rec.attribute_category IS NULL THEN
5076: l_ctr_property_tmpl_rec.attribute_category := l_old_ctr_property_tmpl_rec.attribute_category;
5077: ELSIF p_ctr_property_template_rec.attribute_category = FND_API.G_MISS_CHAR THEN
5078: l_ctr_property_tmpl_rec.attribute_category := NULL;
5079: END IF;
5080:
5081: IF p_ctr_property_template_rec.property_data_type IS NULL THEN

Line 5083: ELSIF p_ctr_property_template_rec.property_data_type = FND_API.G_MISS_CHAR THEN

5079: END IF;
5080:
5081: IF p_ctr_property_template_rec.property_data_type IS NULL THEN
5082: l_ctr_property_tmpl_rec.property_data_type := l_old_ctr_property_tmpl_rec.property_data_type;
5083: ELSIF p_ctr_property_template_rec.property_data_type = FND_API.G_MISS_CHAR THEN
5084: l_ctr_property_tmpl_rec.property_data_type := NULL;
5085: END IF;
5086:
5087: IF p_ctr_property_template_rec.is_nullable IS NULL THEN

Line 5089: ELSIF p_ctr_property_template_rec.is_nullable = FND_API.G_MISS_CHAR THEN

5085: END IF;
5086:
5087: IF p_ctr_property_template_rec.is_nullable IS NULL THEN
5088: l_ctr_property_tmpl_rec.is_nullable := l_old_ctr_property_tmpl_rec.is_nullable;
5089: ELSIF p_ctr_property_template_rec.is_nullable = FND_API.G_MISS_CHAR THEN
5090: l_ctr_property_tmpl_rec.is_nullable := NULL;
5091: END IF;
5092:
5093: IF p_ctr_property_template_rec.default_value IS NULL THEN

Line 5095: ELSIF p_ctr_property_template_rec.default_value = FND_API.G_MISS_CHAR THEN

5091: END IF;
5092:
5093: IF p_ctr_property_template_rec.default_value IS NULL THEN
5094: l_ctr_property_tmpl_rec.default_value := l_old_ctr_property_tmpl_rec.default_value;
5095: ELSIF p_ctr_property_template_rec.default_value = FND_API.G_MISS_CHAR THEN
5096: l_ctr_property_tmpl_rec.default_value := NULL;
5097: END IF;
5098:
5099: IF p_ctr_property_template_rec.minimum_value IS NULL THEN

Line 5101: ELSIF p_ctr_property_template_rec.minimum_value = FND_API.G_MISS_CHAR THEN

5097: END IF;
5098:
5099: IF p_ctr_property_template_rec.minimum_value IS NULL THEN
5100: l_ctr_property_tmpl_rec.minimum_value := l_old_ctr_property_tmpl_rec.minimum_value;
5101: ELSIF p_ctr_property_template_rec.minimum_value = FND_API.G_MISS_CHAR THEN
5102: l_ctr_property_tmpl_rec.minimum_value := NULL;
5103: END IF;
5104:
5105: IF p_ctr_property_template_rec.maximum_value IS NULL THEN

Line 5107: ELSIF p_ctr_property_template_rec.maximum_value = FND_API.G_MISS_CHAR THEN

5103: END IF;
5104:
5105: IF p_ctr_property_template_rec.maximum_value IS NULL THEN
5106: l_ctr_property_tmpl_rec.maximum_value := l_old_ctr_property_tmpl_rec.maximum_value;
5107: ELSIF p_ctr_property_template_rec.maximum_value = FND_API.G_MISS_CHAR THEN
5108: l_ctr_property_tmpl_rec.maximum_value:= NULL;
5109: END IF;
5110:
5111: IF p_ctr_property_template_rec.uom_code IS NULL THEN

Line 5113: ELSIF p_ctr_property_template_rec.uom_code = FND_API.G_MISS_CHAR THEN

5109: END IF;
5110:
5111: IF p_ctr_property_template_rec.uom_code IS NULL THEN
5112: l_ctr_property_tmpl_rec.uom_code := l_old_ctr_property_tmpl_rec.uom_code;
5113: ELSIF p_ctr_property_template_rec.uom_code = FND_API.G_MISS_CHAR THEN
5114: l_ctr_property_tmpl_rec.uom_code:= NULL;
5115: END IF;
5116:
5117: IF p_ctr_property_template_rec.property_lov_type IS NULL THEN

Line 5119: ELSIF p_ctr_property_template_rec.property_lov_type = FND_API.G_MISS_CHAR THEN

5115: END IF;
5116:
5117: IF p_ctr_property_template_rec.property_lov_type IS NULL THEN
5118: l_ctr_property_tmpl_rec.property_lov_type := l_old_ctr_property_tmpl_rec.property_lov_type;
5119: ELSIF p_ctr_property_template_rec.property_lov_type = FND_API.G_MISS_CHAR THEN
5120: l_ctr_property_tmpl_rec.property_lov_type:= NULL;
5121: END IF;
5122:
5123: IF p_ctr_property_template_rec.migrated_flag IS NULL THEN

Line 5125: ELSIF p_ctr_property_template_rec.migrated_flag = FND_API.G_MISS_CHAR THEN

5121: END IF;
5122:
5123: IF p_ctr_property_template_rec.migrated_flag IS NULL THEN
5124: l_ctr_property_tmpl_rec.migrated_flag := l_old_ctr_property_tmpl_rec.migrated_flag;
5125: ELSIF p_ctr_property_template_rec.migrated_flag = FND_API.G_MISS_CHAR THEN
5126: l_ctr_property_tmpl_rec.migrated_flag:= NULL;
5127: END IF;
5128:
5129: IF p_ctr_property_template_rec.security_group_id IS NULL THEN

Line 5131: ELSIF p_ctr_property_template_rec.security_group_id = FND_API.G_MISS_NUM THEN

5127: END IF;
5128:
5129: IF p_ctr_property_template_rec.security_group_id IS NULL THEN
5130: l_ctr_property_tmpl_rec.security_group_id := l_old_ctr_property_tmpl_rec.security_group_id;
5131: ELSIF p_ctr_property_template_rec.security_group_id = FND_API.G_MISS_NUM THEN
5132: l_ctr_property_tmpl_rec.security_group_id := NULL;
5133: END IF;
5134:
5135: -- Counter property name is not updateable

Line 5199: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN

5195: ,p_NAME => p_ctr_property_template_rec.name
5196: ,p_DESCRIPTION => p_ctr_property_template_rec.description
5197: );
5198:
5199: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN
5200: ROLLBACK TO update_ctr_property_tmpl_pvt;
5201: RETURN;
5202: END IF;
5203:

Line 5207: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN

5203:
5204:
5205: /* End of API Body */
5206:
5207: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN
5208: COMMIT WORK;
5209: END IF;
5210:
5211: -- Standard call to get message count and IF count is get message info.

Line 5217: WHEN FND_API.G_EXC_ERROR THEN

5213: ( p_count => x_msg_count,
5214: p_data => x_msg_data
5215: );
5216: EXCEPTION
5217: WHEN FND_API.G_EXC_ERROR THEN
5218: x_return_status := FND_API.G_RET_STS_ERROR ;
5219: ROLLBACK TO update_ctr_property_tmpl_pvt;
5220: FND_MSG_PUB.Count_And_Get
5221: ( p_count => x_msg_count,

Line 5218: x_return_status := FND_API.G_RET_STS_ERROR ;

5214: p_data => x_msg_data
5215: );
5216: EXCEPTION
5217: WHEN FND_API.G_EXC_ERROR THEN
5218: x_return_status := FND_API.G_RET_STS_ERROR ;
5219: ROLLBACK TO update_ctr_property_tmpl_pvt;
5220: FND_MSG_PUB.Count_And_Get
5221: ( p_count => x_msg_count,
5222: p_data => x_msg_data

Line 5224: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN

5220: FND_MSG_PUB.Count_And_Get
5221: ( p_count => x_msg_count,
5222: p_data => x_msg_data
5223: );
5224: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
5225: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
5226: ROLLBACK TO update_ctr_property_tmpl_pvt;
5227: FND_MSG_PUB.Count_And_Get
5228: ( p_count => x_msg_count,

Line 5225: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

5221: ( p_count => x_msg_count,
5222: p_data => x_msg_data
5223: );
5224: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
5225: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
5226: ROLLBACK TO update_ctr_property_tmpl_pvt;
5227: FND_MSG_PUB.Count_And_Get
5228: ( p_count => x_msg_count,
5229: p_data => x_msg_data

Line 5232: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

5228: ( p_count => x_msg_count,
5229: p_data => x_msg_data
5230: );
5231: WHEN OTHERS THEN
5232: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
5233: ROLLBACK TO update_ctr_property_tmpl_pvt;
5234: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
5235: FND_MSG_PUB.Add_Exc_Msg
5236: ( G_PKG_NAME,

Line 5330: IF NOT FND_API.Compatible_API_Call (l_api_version,

5326: -- Standard Start of API savepoint
5327: SAVEPOINT update_ctr_relationship_pvt;
5328:
5329: -- Standard call to check for call compatibility.
5330: IF NOT FND_API.Compatible_API_Call (l_api_version,
5331: p_api_version,
5332: l_api_name ,
5333: G_PKG_NAME ) THEN
5334: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 5334: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

5330: IF NOT FND_API.Compatible_API_Call (l_api_version,
5331: p_api_version,
5332: l_api_name ,
5333: G_PKG_NAME ) THEN
5334: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
5335: END IF;
5336:
5337: -- Initialize message list if p_init_msg_list is set to TRUE.
5338: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

Line 5338: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

5334: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
5335: END IF;
5336:
5337: -- Initialize message list if p_init_msg_list is set to TRUE.
5338: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
5339: FND_MSG_PUB.initialize;
5340: END IF;
5341:
5342: -- Initialize API return status to success

Line 5343: x_return_status := FND_API.G_RET_STS_SUCCESS;

5339: FND_MSG_PUB.initialize;
5340: END IF;
5341:
5342: -- Initialize API return status to success
5343: x_return_status := FND_API.G_RET_STS_SUCCESS;
5344:
5345: -- Read the debug profiles values in to global variable 7197402
5346: CSI_CTR_GEN_UTILITY_PVT.read_debug_profiles;
5347:

Line 5352: nvl(p_commit,FND_API.G_FALSE) ||'-'||

5348: --
5349: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
5350: csi_ctr_gen_utility_pvt.put_line( 'update_ctr_relationship_pvt' ||'-'||
5351: p_api_version ||'-'||
5352: nvl(p_commit,FND_API.G_FALSE) ||'-'||
5353: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
5354: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
5355: END IF;
5356:

Line 5353: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||

5349: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
5350: csi_ctr_gen_utility_pvt.put_line( 'update_ctr_relationship_pvt' ||'-'||
5351: p_api_version ||'-'||
5352: nvl(p_commit,FND_API.G_FALSE) ||'-'||
5353: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
5354: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
5355: END IF;
5356:
5357: /* Start of API Body */

Line 5354: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );

5350: csi_ctr_gen_utility_pvt.put_line( 'update_ctr_relationship_pvt' ||'-'||
5351: p_api_version ||'-'||
5352: nvl(p_commit,FND_API.G_FALSE) ||'-'||
5353: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
5354: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
5355: END IF;
5356:
5357: /* Start of API Body */
5358: OPEN cur_rel_rec(p_counter_relationships_rec.relationship_id);

Line 5363: ELSIF p_counter_relationships_rec.object_version_number = FND_API.G_MISS_NUM THEN

5359: FETCH cur_rel_rec INTO l_old_ctr_relationships_rec;
5360:
5361: IF p_counter_relationships_rec.object_version_number IS NULL THEN
5362: l_ctr_relationships_rec.object_version_number := l_old_ctr_relationships_rec.object_version_number;
5363: ELSIF p_counter_relationships_rec.object_version_number = FND_API.G_MISS_NUM THEN
5364: l_ctr_relationships_rec.object_version_number := NULL;
5365: END IF;
5366:
5367: IF (l_old_ctr_relationships_rec.object_version_number <> nvl(p_counter_relationships_rec.OBJECT_VERSION_NUMBER,0)) THEN

Line 5370: RAISE FND_API.G_EXC_ERROR;

5366:
5367: IF (l_old_ctr_relationships_rec.object_version_number <> nvl(p_counter_relationships_rec.OBJECT_VERSION_NUMBER,0)) THEN
5368: FND_MESSAGE.Set_Name('CSI', 'CSI_API_OBJ_VER_MISMATCH');
5369: FND_MSG_PUB.ADD;
5370: RAISE FND_API.G_EXC_ERROR;
5371: END IF;
5372:
5373: CLOSE cur_rel_rec;
5374:

Line 5383: ELSIF p_counter_relationships_rec.ctr_association_id = FND_API.G_MISS_NUM THEN

5379: l_ctr_relationships_rec := p_counter_relationships_rec;
5380:
5381: IF p_counter_relationships_rec.ctr_association_id IS NULL THEN
5382: l_ctr_relationships_rec.ctr_association_id := l_old_ctr_relationships_rec.ctr_association_id;
5383: ELSIF p_counter_relationships_rec.ctr_association_id = FND_API.G_MISS_NUM THEN
5384: l_ctr_relationships_rec.ctr_association_id := NULL;
5385: END IF;
5386:
5387: IF p_counter_relationships_rec.relationship_type_code IS NULL THEN

Line 5389: ELSIF p_counter_relationships_rec.relationship_type_code = FND_API.G_MISS_CHAR THEN

5385: END IF;
5386:
5387: IF p_counter_relationships_rec.relationship_type_code IS NULL THEN
5388: l_ctr_relationships_rec.relationship_type_code := l_old_ctr_relationships_rec.relationship_type_code;
5389: ELSIF p_counter_relationships_rec.relationship_type_code = FND_API.G_MISS_CHAR THEN
5390: l_ctr_relationships_rec.relationship_type_code := NULL;
5391: END IF;
5392:
5393: IF p_counter_relationships_rec.source_counter_id IS NULL THEN

Line 5395: ELSIF p_counter_relationships_rec.source_counter_id = FND_API.G_MISS_NUM THEN

5391: END IF;
5392:
5393: IF p_counter_relationships_rec.source_counter_id IS NULL THEN
5394: l_ctr_relationships_rec.source_counter_id := l_old_ctr_relationships_rec.source_counter_id;
5395: ELSIF p_counter_relationships_rec.source_counter_id = FND_API.G_MISS_NUM THEN
5396: l_ctr_relationships_rec.source_counter_id := NULL;
5397: END IF;
5398:
5399: IF p_counter_relationships_rec.object_counter_id IS NULL THEN

Line 5401: ELSIF p_counter_relationships_rec.object_counter_id = FND_API.G_MISS_NUM THEN

5397: END IF;
5398:
5399: IF p_counter_relationships_rec.object_counter_id IS NULL THEN
5400: l_ctr_relationships_rec.object_counter_id := l_old_ctr_relationships_rec.object_counter_id;
5401: ELSIF p_counter_relationships_rec.object_counter_id = FND_API.G_MISS_NUM THEN
5402: l_ctr_relationships_rec.object_counter_id := NULL;
5403: END IF;
5404:
5405: IF p_counter_relationships_rec.active_start_date IS NULL THEN

Line 5407: ELSIF p_counter_relationships_rec.active_start_date = FND_API.G_MISS_DATE THEN

5403: END IF;
5404:
5405: IF p_counter_relationships_rec.active_start_date IS NULL THEN
5406: l_ctr_relationships_rec.active_start_date := l_old_ctr_relationships_rec.active_start_date;
5407: ELSIF p_counter_relationships_rec.active_start_date = FND_API.G_MISS_DATE THEN
5408: l_ctr_relationships_rec.active_start_date := NULL;
5409: END IF;
5410:
5411: IF p_counter_relationships_rec.active_end_date IS NULL THEN

Line 5413: ELSIF p_counter_relationships_rec.active_end_date = FND_API.G_MISS_DATE THEN

5409: END IF;
5410:
5411: IF p_counter_relationships_rec.active_end_date IS NULL THEN
5412: l_ctr_relationships_rec.active_end_date := l_old_ctr_relationships_rec.active_end_date;
5413: ELSIF p_counter_relationships_rec.active_end_date = FND_API.G_MISS_DATE THEN
5414: l_ctr_relationships_rec.active_end_date := NULL;
5415: END IF;
5416:
5417: IF p_counter_relationships_rec.attribute1 IS NULL THEN

Line 5419: ELSIF p_counter_relationships_rec.attribute1 = FND_API.G_MISS_CHAR THEN

5415: END IF;
5416:
5417: IF p_counter_relationships_rec.attribute1 IS NULL THEN
5418: l_ctr_relationships_rec.attribute1 := l_old_ctr_relationships_rec.attribute1;
5419: ELSIF p_counter_relationships_rec.attribute1 = FND_API.G_MISS_CHAR THEN
5420: l_ctr_relationships_rec.attribute1 := NULL;
5421: END IF;
5422:
5423: IF p_counter_relationships_rec.attribute2 IS NULL THEN

Line 5425: ELSIF p_counter_relationships_rec.attribute2 = FND_API.G_MISS_CHAR THEN

5421: END IF;
5422:
5423: IF p_counter_relationships_rec.attribute2 IS NULL THEN
5424: l_ctr_relationships_rec.attribute2 := l_old_ctr_relationships_rec.attribute2;
5425: ELSIF p_counter_relationships_rec.attribute2 = FND_API.G_MISS_CHAR THEN
5426: l_ctr_relationships_rec.attribute2 := NULL;
5427: END IF;
5428:
5429: IF p_counter_relationships_rec.attribute3 IS NULL THEN

Line 5431: ELSIF p_counter_relationships_rec.attribute3 = FND_API.G_MISS_CHAR THEN

5427: END IF;
5428:
5429: IF p_counter_relationships_rec.attribute3 IS NULL THEN
5430: l_ctr_relationships_rec.attribute3 := l_old_ctr_relationships_rec.attribute3;
5431: ELSIF p_counter_relationships_rec.attribute3 = FND_API.G_MISS_CHAR THEN
5432: l_ctr_relationships_rec.attribute3 := NULL;
5433: END IF;
5434:
5435: IF p_counter_relationships_rec.attribute4 IS NULL THEN

Line 5437: ELSIF p_counter_relationships_rec.attribute4 = FND_API.G_MISS_CHAR THEN

5433: END IF;
5434:
5435: IF p_counter_relationships_rec.attribute4 IS NULL THEN
5436: l_ctr_relationships_rec.attribute4 := l_old_ctr_relationships_rec.attribute4;
5437: ELSIF p_counter_relationships_rec.attribute4 = FND_API.G_MISS_CHAR THEN
5438: l_ctr_relationships_rec.attribute4 := NULL;
5439: END IF;
5440:
5441: IF p_counter_relationships_rec.attribute5 IS NULL THEN

Line 5443: ELSIF p_counter_relationships_rec.attribute5 = FND_API.G_MISS_CHAR THEN

5439: END IF;
5440:
5441: IF p_counter_relationships_rec.attribute5 IS NULL THEN
5442: l_ctr_relationships_rec.attribute5 := l_old_ctr_relationships_rec.attribute5;
5443: ELSIF p_counter_relationships_rec.attribute5 = FND_API.G_MISS_CHAR THEN
5444: l_ctr_relationships_rec.attribute5 := NULL;
5445: END IF;
5446:
5447: IF p_counter_relationships_rec.attribute6 IS NULL THEN

Line 5449: ELSIF p_counter_relationships_rec.attribute6 = FND_API.G_MISS_CHAR THEN

5445: END IF;
5446:
5447: IF p_counter_relationships_rec.attribute6 IS NULL THEN
5448: l_ctr_relationships_rec.attribute6 := l_old_ctr_relationships_rec.attribute6;
5449: ELSIF p_counter_relationships_rec.attribute6 = FND_API.G_MISS_CHAR THEN
5450: l_ctr_relationships_rec.attribute6 := NULL;
5451: END IF;
5452:
5453: IF p_counter_relationships_rec.attribute7 IS NULL THEN

Line 5455: ELSIF p_counter_relationships_rec.attribute7 = FND_API.G_MISS_CHAR THEN

5451: END IF;
5452:
5453: IF p_counter_relationships_rec.attribute7 IS NULL THEN
5454: l_ctr_relationships_rec.attribute7 := l_old_ctr_relationships_rec.attribute7;
5455: ELSIF p_counter_relationships_rec.attribute7 = FND_API.G_MISS_CHAR THEN
5456: l_ctr_relationships_rec.attribute7 := NULL;
5457: END IF;
5458:
5459: IF p_counter_relationships_rec.attribute8 IS NULL THEN

Line 5461: ELSIF p_counter_relationships_rec.attribute8 = FND_API.G_MISS_CHAR THEN

5457: END IF;
5458:
5459: IF p_counter_relationships_rec.attribute8 IS NULL THEN
5460: l_ctr_relationships_rec.attribute8 := l_old_ctr_relationships_rec.attribute8;
5461: ELSIF p_counter_relationships_rec.attribute8 = FND_API.G_MISS_CHAR THEN
5462: l_ctr_relationships_rec.attribute8 := NULL;
5463: END IF;
5464:
5465: IF p_counter_relationships_rec.attribute9 IS NULL THEN

Line 5467: ELSIF p_counter_relationships_rec.attribute9 = FND_API.G_MISS_CHAR THEN

5463: END IF;
5464:
5465: IF p_counter_relationships_rec.attribute9 IS NULL THEN
5466: l_ctr_relationships_rec.attribute9 := l_old_ctr_relationships_rec.attribute9;
5467: ELSIF p_counter_relationships_rec.attribute9 = FND_API.G_MISS_CHAR THEN
5468: l_ctr_relationships_rec.attribute9 := NULL;
5469: END IF;
5470:
5471: IF p_counter_relationships_rec.attribute10 IS NULL THEN

Line 5473: ELSIF p_counter_relationships_rec.attribute10 = FND_API.G_MISS_CHAR THEN

5469: END IF;
5470:
5471: IF p_counter_relationships_rec.attribute10 IS NULL THEN
5472: l_ctr_relationships_rec.attribute10 := l_old_ctr_relationships_rec.attribute10;
5473: ELSIF p_counter_relationships_rec.attribute10 = FND_API.G_MISS_CHAR THEN
5474: l_ctr_relationships_rec.attribute10 := NULL;
5475: END IF;
5476:
5477: IF p_counter_relationships_rec.attribute11 IS NULL THEN

Line 5479: ELSIF p_counter_relationships_rec.attribute11 = FND_API.G_MISS_CHAR THEN

5475: END IF;
5476:
5477: IF p_counter_relationships_rec.attribute11 IS NULL THEN
5478: l_ctr_relationships_rec.attribute11 := l_old_ctr_relationships_rec.attribute11;
5479: ELSIF p_counter_relationships_rec.attribute11 = FND_API.G_MISS_CHAR THEN
5480: l_ctr_relationships_rec.attribute11 := NULL;
5481: END IF;
5482:
5483: IF p_counter_relationships_rec.attribute12 IS NULL THEN

Line 5485: ELSIF p_counter_relationships_rec.attribute12 = FND_API.G_MISS_CHAR THEN

5481: END IF;
5482:
5483: IF p_counter_relationships_rec.attribute12 IS NULL THEN
5484: l_ctr_relationships_rec.attribute12 := l_old_ctr_relationships_rec.attribute12;
5485: ELSIF p_counter_relationships_rec.attribute12 = FND_API.G_MISS_CHAR THEN
5486: l_ctr_relationships_rec.attribute12 := NULL;
5487: END IF;
5488:
5489: IF p_counter_relationships_rec.attribute13 IS NULL THEN

Line 5491: ELSIF p_counter_relationships_rec.attribute13 = FND_API.G_MISS_CHAR THEN

5487: END IF;
5488:
5489: IF p_counter_relationships_rec.attribute13 IS NULL THEN
5490: l_ctr_relationships_rec.attribute13 := l_old_ctr_relationships_rec.attribute13;
5491: ELSIF p_counter_relationships_rec.attribute13 = FND_API.G_MISS_CHAR THEN
5492: l_ctr_relationships_rec.attribute13 := NULL;
5493: END IF;
5494:
5495: IF p_counter_relationships_rec.attribute14 IS NULL THEN

Line 5497: ELSIF p_counter_relationships_rec.attribute14 = FND_API.G_MISS_CHAR THEN

5493: END IF;
5494:
5495: IF p_counter_relationships_rec.attribute14 IS NULL THEN
5496: l_ctr_relationships_rec.attribute14 := l_old_ctr_relationships_rec.attribute14;
5497: ELSIF p_counter_relationships_rec.attribute14 = FND_API.G_MISS_CHAR THEN
5498: l_ctr_relationships_rec.attribute14 := NULL;
5499: END IF;
5500:
5501: IF p_counter_relationships_rec.attribute15 IS NULL THEN

Line 5503: ELSIF p_counter_relationships_rec.attribute15 = FND_API.G_MISS_CHAR THEN

5499: END IF;
5500:
5501: IF p_counter_relationships_rec.attribute15 IS NULL THEN
5502: l_ctr_relationships_rec.attribute15 := l_old_ctr_relationships_rec.attribute15;
5503: ELSIF p_counter_relationships_rec.attribute15 = FND_API.G_MISS_CHAR THEN
5504: l_ctr_relationships_rec.attribute15 := NULL;
5505: END IF;
5506:
5507: IF p_counter_relationships_rec.attribute_category IS NULL THEN

Line 5509: ELSIF p_counter_relationships_rec.attribute_category = FND_API.G_MISS_CHAR THEN

5505: END IF;
5506:
5507: IF p_counter_relationships_rec.attribute_category IS NULL THEN
5508: l_ctr_relationships_rec.attribute_category := l_old_ctr_relationships_rec.attribute_category;
5509: ELSIF p_counter_relationships_rec.attribute_category = FND_API.G_MISS_CHAR THEN
5510: l_ctr_relationships_rec.attribute_category := NULL;
5511: END IF;
5512:
5513: IF p_counter_relationships_rec.bind_variable_name IS NULL THEN

Line 5515: ELSIF p_counter_relationships_rec.bind_variable_name = FND_API.G_MISS_CHAR THEN

5511: END IF;
5512:
5513: IF p_counter_relationships_rec.bind_variable_name IS NULL THEN
5514: l_ctr_relationships_rec.bind_variable_name := l_old_ctr_relationships_rec.bind_variable_name;
5515: ELSIF p_counter_relationships_rec.bind_variable_name = FND_API.G_MISS_CHAR THEN
5516: l_ctr_relationships_rec.bind_variable_name := NULL;
5517: END IF;
5518:
5519: IF p_counter_relationships_rec.migrated_flag IS NULL THEN

Line 5521: ELSIF p_counter_relationships_rec.migrated_flag = FND_API.G_MISS_CHAR THEN

5517: END IF;
5518:
5519: IF p_counter_relationships_rec.migrated_flag IS NULL THEN
5520: l_ctr_relationships_rec.migrated_flag := l_old_ctr_relationships_rec.migrated_flag;
5521: ELSIF p_counter_relationships_rec.migrated_flag = FND_API.G_MISS_CHAR THEN
5522: l_ctr_relationships_rec.migrated_flag := NULL;
5523: END IF;
5524:
5525: IF p_counter_relationships_rec.factor IS NULL THEN

Line 5527: ELSIF p_counter_relationships_rec.factor = FND_API.G_MISS_NUM THEN

5523: END IF;
5524:
5525: IF p_counter_relationships_rec.factor IS NULL THEN
5526: l_ctr_relationships_rec.factor := l_old_ctr_relationships_rec.factor;
5527: ELSIF p_counter_relationships_rec.factor = FND_API.G_MISS_NUM THEN
5528: l_ctr_relationships_rec.factor := NULL;
5529: END IF;
5530:
5531: IF p_counter_relationships_rec.security_group_id IS NULL THEN

Line 5533: ELSIF p_counter_relationships_rec.security_group_id = FND_API.G_MISS_NUM THEN

5529: END IF;
5530:
5531: IF p_counter_relationships_rec.security_group_id IS NULL THEN
5532: l_ctr_relationships_rec.security_group_id := l_old_ctr_relationships_rec.security_group_id;
5533: ELSIF p_counter_relationships_rec.security_group_id = FND_API.G_MISS_NUM THEN
5534: l_ctr_relationships_rec.security_group_id := NULL;
5535: END IF;
5536:
5537:

Line 5651: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN

5647: ,p_MIGRATED_FLAG => p_counter_relationships_rec.migrated_flag
5648: ,p_BIND_VARIABLE_NAME => p_counter_relationships_rec.bind_variable_name
5649: ,p_FACTOR => p_counter_relationships_rec.factor);
5650:
5651: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN
5652: ROLLBACK TO update_ctr_relationship_pvt;
5653: RETURN;
5654: END IF;
5655:

Line 5659: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN

5655:
5656:
5657: /* End of API Body */
5658:
5659: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN
5660: COMMIT WORK;
5661: END IF;
5662:
5663: -- Standard call to get message count and IF count is get message info.

Line 5669: WHEN FND_API.G_EXC_ERROR THEN

5665: ( p_count => x_msg_count,
5666: p_data => x_msg_data
5667: );
5668: EXCEPTION
5669: WHEN FND_API.G_EXC_ERROR THEN
5670: x_return_status := FND_API.G_RET_STS_ERROR ;
5671: ROLLBACK TO update_ctr_relationship_pvt;
5672: FND_MSG_PUB.Count_And_Get
5673: ( p_count => x_msg_count,

Line 5670: x_return_status := FND_API.G_RET_STS_ERROR ;

5666: p_data => x_msg_data
5667: );
5668: EXCEPTION
5669: WHEN FND_API.G_EXC_ERROR THEN
5670: x_return_status := FND_API.G_RET_STS_ERROR ;
5671: ROLLBACK TO update_ctr_relationship_pvt;
5672: FND_MSG_PUB.Count_And_Get
5673: ( p_count => x_msg_count,
5674: p_data => x_msg_data

Line 5676: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN

5672: FND_MSG_PUB.Count_And_Get
5673: ( p_count => x_msg_count,
5674: p_data => x_msg_data
5675: );
5676: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
5677: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
5678: ROLLBACK TO update_ctr_relationship_pvt;
5679: FND_MSG_PUB.Count_And_Get
5680: ( p_count => x_msg_count,

Line 5677: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

5673: ( p_count => x_msg_count,
5674: p_data => x_msg_data
5675: );
5676: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
5677: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
5678: ROLLBACK TO update_ctr_relationship_pvt;
5679: FND_MSG_PUB.Count_And_Get
5680: ( p_count => x_msg_count,
5681: p_data => x_msg_data

Line 5684: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

5680: ( p_count => x_msg_count,
5681: p_data => x_msg_data
5682: );
5683: WHEN OTHERS THEN
5684: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
5685: ROLLBACK TO update_ctr_relationship_pvt;
5686: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
5687: FND_MSG_PUB.Add_Exc_Msg
5688: ( G_PKG_NAME,

Line 5749: IF NOT FND_API.Compatible_API_Call (l_api_version,

5745:
5746: -- csi_ctr_gen_utility_pvt.check_ib_active;
5747:
5748: -- Standard call to check for call compatibility.
5749: IF NOT FND_API.Compatible_API_Call (l_api_version,
5750: p_api_version,
5751: l_api_name ,
5752: G_PKG_NAME )
5753: THEN

Line 5754: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

5750: p_api_version,
5751: l_api_name ,
5752: G_PKG_NAME )
5753: THEN
5754: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
5755: END IF;
5756:
5757: -- Initialize message list if p_init_msg_list is set to TRUE.
5758: IF FND_API.to_Boolean( p_init_msg_list ) THEN

Line 5758: IF FND_API.to_Boolean( p_init_msg_list ) THEN

5754: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
5755: END IF;
5756:
5757: -- Initialize message list if p_init_msg_list is set to TRUE.
5758: IF FND_API.to_Boolean( p_init_msg_list ) THEN
5759: FND_MSG_PUB.initialize;
5760: END IF;
5761:
5762: -- Initialize API return status to success

Line 5763: x_return_status := FND_API.G_RET_STS_SUCCESS;

5759: FND_MSG_PUB.initialize;
5760: END IF;
5761:
5762: -- Initialize API return status to success
5763: x_return_status := FND_API.G_RET_STS_SUCCESS;
5764:
5765: -- Read the debug profiles values in to global variable 7197402
5766: CSI_CTR_GEN_UTILITY_PVT.read_debug_profiles;
5767:

Line 5792: (p_ctr_derived_filters_tbl(tab_row).counter_derived_filter_id = FND_API.G_MISS_NUM))

5788: LOOP
5789: IF p_ctr_derived_filters_tbl.EXISTS(tab_row) THEN
5790: IF ((p_ctr_derived_filters_tbl(tab_row).counter_derived_filter_id IS NULL)
5791: OR
5792: (p_ctr_derived_filters_tbl(tab_row).counter_derived_filter_id = FND_API.G_MISS_NUM))
5793: THEN
5794: create_derived_filters
5795: (p_api_version => p_api_version
5796: ,p_commit => fnd_api.g_false

Line 5796: ,p_commit => fnd_api.g_false

5792: (p_ctr_derived_filters_tbl(tab_row).counter_derived_filter_id = FND_API.G_MISS_NUM))
5793: THEN
5794: create_derived_filters
5795: (p_api_version => p_api_version
5796: ,p_commit => fnd_api.g_false
5797: ,p_init_msg_list => p_init_msg_list
5798: ,p_validation_level => p_validation_level
5799: ,p_ctr_derived_filters_tbl => p_ctr_derived_filters_tbl
5800: ,x_return_status => x_return_status

Line 5805: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN

5801: ,x_msg_count => x_msg_count
5802: ,x_msg_data => x_msg_data
5803: );
5804:
5805: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN
5806: l_msg_index := 1;
5807: l_msg_count := x_msg_count;
5808: WHILE l_msg_count > 0 LOOP
5809: x_msg_data := FND_MSG_PUB.GET

Line 5811: FND_API.G_FALSE);

5807: l_msg_count := x_msg_count;
5808: WHILE l_msg_count > 0 LOOP
5809: x_msg_data := FND_MSG_PUB.GET
5810: (l_msg_index,
5811: FND_API.G_FALSE);
5812: csi_ctr_gen_utility_pvt.put_line('Error from CSI_COUNTER_TEMPLATE_PVT.CREATE_DERIVED_FILTERS');
5813: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
5814: l_msg_index := l_msg_index + 1;
5815: l_msg_count := l_msg_count - 1;

Line 5817: RAISE FND_API.G_EXC_ERROR;

5813: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
5814: l_msg_index := l_msg_index + 1;
5815: l_msg_count := l_msg_count - 1;
5816: END LOOP;
5817: RAISE FND_API.G_EXC_ERROR;
5818: END IF;
5819:
5820: ELSE
5821: SELECT counter_id,

Line 5865: IF NVL(l_old_ctr_derived_filters_rec.counter_id, -1) = FND_API.G_MISS_NUM THEN

5861: IF SQL%NOTFOUND THEN
5862: csi_ctr_gen_utility_pvt.ExitWithErrMsg('CSI_API_CTR_DERIVED_FILTER_INVALID');
5863: END IF;
5864:
5865: IF NVL(l_old_ctr_derived_filters_rec.counter_id, -1) = FND_API.G_MISS_NUM THEN
5866: l_counter_id := NULL;
5867: ELSE
5868: l_counter_id := l_old_ctr_derived_filters_rec.counter_id;
5869: END IF;

Line 5889: IF NVL(p_ctr_derived_filters_tbl(tab_row).counter_property_id, -1) <> FND_API.G_MISS_NUM AND

5885: END IF;
5886: END IF;
5887:
5888: -- validate all counter properties
5889: IF NVL(p_ctr_derived_filters_tbl(tab_row).counter_property_id, -1) <> FND_API.G_MISS_NUM AND
5890: NVL(p_ctr_derived_filters_tbl(tab_row).counter_property_id, -1) <> l_old_ctr_derived_filters_rec.counter_property_id THEN
5891: BEGIN
5892: SELECT 'x'
5893: INTO l_dummy

Line 5902: IF p_ctr_derived_filters_tbl(tab_row).LEFT_PARENT NOT IN (FND_API.G_MISS_CHAR,'(', '((', '(((', '((((', '(((((') THEN

5898: END;
5899: END IF;
5900:
5901: -- validate LEFT_PARENT
5902: IF p_ctr_derived_filters_tbl(tab_row).LEFT_PARENT NOT IN (FND_API.G_MISS_CHAR,'(', '((', '(((', '((((', '(((((') THEN
5903: csi_ctr_gen_utility_pvt.ExitWithErrMsg('CSI_API_INV_DER_LEFT_PARENT',
5904: 'PARM',l_ctr_derived_filters_rec.LEFT_PARENT);
5905: END IF;
5906:

Line 5908: IF p_ctr_derived_filters_tbl(tab_row).RIGHT_PARENT NOT IN (FND_API.G_MISS_CHAR,')', '))', ')))', '))))', ')))))') THEN

5904: 'PARM',l_ctr_derived_filters_rec.LEFT_PARENT);
5905: END IF;
5906:
5907: -- validate RIGHT_PARENT
5908: IF p_ctr_derived_filters_tbl(tab_row).RIGHT_PARENT NOT IN (FND_API.G_MISS_CHAR,')', '))', ')))', '))))', ')))))') THEN
5909: csi_ctr_gen_utility_pvt.ExitWithErrMsg('CSI_API_INV_DER_RIGHT_PARENT',
5910: 'PARM',l_ctr_derived_filters_rec.RIGHT_PARENT);
5911: END IF;
5912:

Line 5914: IF p_ctr_derived_filters_tbl(tab_row).RELATIONAL_OPERATOR NOT IN (FND_API.G_MISS_CHAR,'=', '<', '<=', '>', '>=', '!=', '<>') THEN

5910: 'PARM',l_ctr_derived_filters_rec.RIGHT_PARENT);
5911: END IF;
5912:
5913: -- validate RELATIONAL_OPERATOR
5914: IF p_ctr_derived_filters_tbl(tab_row).RELATIONAL_OPERATOR NOT IN (FND_API.G_MISS_CHAR,'=', '<', '<=', '>', '>=', '!=', '<>') THEN
5915: csi_ctr_gen_utility_pvt.ExitWithErrMsg('CSI_API_INV_DER_REL_OPERATOR',
5916: 'PARM',l_ctr_derived_filters_rec.RELATIONAL_OPERATOR);
5917: END IF;
5918:

Line 5921: IF p_ctr_derived_filters_tbl(tab_row).LOGICAL_OPERATOR = FND_API.G_MISS_CHAR then

5917: END IF;
5918:
5919: -- validate LOGICAL_OPERATOR
5920: -- l_log_op := upper(l_ctr_derived_filters_rec.LOGICAL_OPERATOR);
5921: IF p_ctr_derived_filters_tbl(tab_row).LOGICAL_OPERATOR = FND_API.G_MISS_CHAR then
5922: l_log_op := null;
5923: ELSE
5924: l_log_op := upper(p_ctr_derived_filters_tbl(tab_row).LOGICAL_OPERATOR);
5925: END IF;

Line 5928: IF l_log_op NOT IN (FND_API.G_MISS_CHAR, 'AND', 'OR') THEN

5924: l_log_op := upper(p_ctr_derived_filters_tbl(tab_row).LOGICAL_OPERATOR);
5925: END IF;
5926:
5927: IF l_log_op IS NOT NULL THEN
5928: IF l_log_op NOT IN (FND_API.G_MISS_CHAR, 'AND', 'OR') THEN
5929: csi_ctr_gen_utility_pvt.ExitWithErrMsg('CSI_API_INV_DER_LOG_OPERATOR', 'PARM',l_ctr_derived_filters_rec.LOGICAL_OPERATOR);
5930: END IF;
5931: END IF;
5932:

Line 5937: IF p_ctr_derived_filters_tbl(tab_row).seq_no = FND_API.G_MISS_NUM then

5933: -- initialize descritive flexfield
5934: -- csi_ctr_gen_utility_pvt.Initialize_Desc_Flex_For_Upd(p_ctr_derived_filters_rec,l_old_ctr_derived_filters_rec);
5935:
5936: -- validate SEQ_NO
5937: IF p_ctr_derived_filters_tbl(tab_row).seq_no = FND_API.G_MISS_NUM then
5938: p_ctr_derived_filters_tbl(tab_row).seq_no := null;
5939: END IF;
5940:
5941: IF p_ctr_derived_filters_tbl(tab_row).SEQ_NO IS NULL THEN

Line 5944: IF p_ctr_derived_filters_tbl(tab_row).SEQ_NO <> FND_API.G_MISS_NUM THEN

5940:
5941: IF p_ctr_derived_filters_tbl(tab_row).SEQ_NO IS NULL THEN
5942: csi_ctr_gen_utility_pvt.ExitWithErrMsg('CSI_API_CTR_DER_FILTER_NULL_SEQ');
5943: ELSE
5944: IF p_ctr_derived_filters_tbl(tab_row).SEQ_NO <> FND_API.G_MISS_NUM THEN
5945: BEGIN
5946: SELECT 'x'
5947: INTO l_dummy
5948: FROM CSI_COUNTER_DERIVED_FILTERS

Line 6010: p_commit => FND_API.G_FALSE,

6006:
6007: csi_ctr_gen_utility_pvt.Validate_GrpOp_ctr
6008: (
6009: p_api_version => 1.0,
6010: p_commit => FND_API.G_FALSE,
6011: p_validation_level => FND_API.G_VALID_LEVEL_NONE,
6012: x_return_status => l_return_status,
6013: x_msg_count => l_msg_count,
6014: x_msg_data => l_msg_data,

Line 6011: p_validation_level => FND_API.G_VALID_LEVEL_NONE,

6007: csi_ctr_gen_utility_pvt.Validate_GrpOp_ctr
6008: (
6009: p_api_version => 1.0,
6010: p_commit => FND_API.G_FALSE,
6011: p_validation_level => FND_API.G_VALID_LEVEL_NONE,
6012: x_return_status => l_return_status,
6013: x_msg_count => l_msg_count,
6014: x_msg_data => l_msg_data,
6015: p_counter_id => p_ctr_derived_filters_tbl(tab_row).COUNTER_ID,

Line 6019: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN

6015: p_counter_id => p_ctr_derived_filters_tbl(tab_row).COUNTER_ID,
6016: x_valid_flag => l_valid_flag
6017: );
6018:
6019: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
6020: RAISE FND_API.G_EXC_ERROR;
6021: END IF;
6022:
6023: -- l_ctr_derived_filters_rec.OBJECT_VERSION_NUMBER := l_ctr_derived_filters_rec.OBJECT_VERSION_NUMBER+1;

Line 6020: RAISE FND_API.G_EXC_ERROR;

6016: x_valid_flag => l_valid_flag
6017: );
6018:
6019: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
6020: RAISE FND_API.G_EXC_ERROR;
6021: END IF;
6022:
6023: -- l_ctr_derived_filters_rec.OBJECT_VERSION_NUMBER := l_ctr_derived_filters_rec.OBJECT_VERSION_NUMBER+1;
6024: csi_ctr_gen_utility_pvt.put_line('before updating csi_counters_vl');

Line 6049: IF FND_API.To_Boolean( p_commit ) THEN

6045: END IF;
6046: -- End of API body
6047:
6048: -- Standard check of p_commit.
6049: IF FND_API.To_Boolean( p_commit ) THEN
6050: COMMIT WORK;
6051: END IF;
6052:
6053: FND_MSG_PUB.Count_And_Get

Line 6059: WHEN FND_API.G_EXC_ERROR THEN

6055: p_data => x_msg_data
6056: );
6057:
6058: EXCEPTION
6059: WHEN FND_API.G_EXC_ERROR THEN
6060: x_return_status := FND_API.G_RET_STS_ERROR ;
6061: ROLLBACK TO update_derived_filters;
6062: FND_MSG_PUB.Count_And_Get
6063: (p_count => x_msg_count,

Line 6060: x_return_status := FND_API.G_RET_STS_ERROR ;

6056: );
6057:
6058: EXCEPTION
6059: WHEN FND_API.G_EXC_ERROR THEN
6060: x_return_status := FND_API.G_RET_STS_ERROR ;
6061: ROLLBACK TO update_derived_filters;
6062: FND_MSG_PUB.Count_And_Get
6063: (p_count => x_msg_count,
6064: p_data => x_msg_data

Line 6067: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN

6063: (p_count => x_msg_count,
6064: p_data => x_msg_data
6065: );
6066:
6067: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
6068: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
6069: ROLLBACK TO update_derived_filters;
6070: FND_MSG_PUB.Count_And_Get
6071: (p_count => x_msg_count,

Line 6068: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

6064: p_data => x_msg_data
6065: );
6066:
6067: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
6068: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
6069: ROLLBACK TO update_derived_filters;
6070: FND_MSG_PUB.Count_And_Get
6071: (p_count => x_msg_count,
6072: p_data => x_msg_data

Line 6075: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

6071: (p_count => x_msg_count,
6072: p_data => x_msg_data
6073: );
6074: WHEN OTHERS THEN
6075: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
6076: ROLLBACK TO update_derived_filters;
6077: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
6078: THEN
6079: FND_MSG_PUB.Add_Exc_Msg

Line 6151: IF NOT FND_API.Compatible_API_Call (l_api_version,

6147: -- Standard Start of API savepoint
6148: SAVEPOINT create_estimation_method_pvt;
6149:
6150: -- Standard call to check for call compatibility.
6151: IF NOT FND_API.Compatible_API_Call (l_api_version,
6152: p_api_version,
6153: l_api_name ,
6154: G_PKG_NAME ) THEN
6155: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 6155: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

6151: IF NOT FND_API.Compatible_API_Call (l_api_version,
6152: p_api_version,
6153: l_api_name ,
6154: G_PKG_NAME ) THEN
6155: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
6156: END IF;
6157:
6158: -- Initialize message list if p_init_msg_list is set to TRUE.
6159: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

Line 6159: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

6155: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
6156: END IF;
6157:
6158: -- Initialize message list if p_init_msg_list is set to TRUE.
6159: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
6160: FND_MSG_PUB.initialize;
6161: END IF;
6162:
6163: -- Initialize API return status to success

Line 6164: x_return_status := FND_API.G_RET_STS_SUCCESS;

6160: FND_MSG_PUB.initialize;
6161: END IF;
6162:
6163: -- Initialize API return status to success
6164: x_return_status := FND_API.G_RET_STS_SUCCESS;
6165:
6166: -- Read the debug profiles values in to global variable 7197402
6167: CSI_CTR_GEN_UTILITY_PVT.read_debug_profiles;
6168:

Line 6173: nvl(p_commit,FND_API.G_FALSE) ||'-'||

6169: --
6170: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
6171: csi_ctr_gen_utility_pvt.put_line( 'create_estimation_method_pvt' ||'-'||
6172: p_api_version ||'-'||
6173: nvl(p_commit,FND_API.G_FALSE) ||'-'||
6174: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
6175: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
6176: END IF;
6177:

Line 6174: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||

6170: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
6171: csi_ctr_gen_utility_pvt.put_line( 'create_estimation_method_pvt' ||'-'||
6172: p_api_version ||'-'||
6173: nvl(p_commit,FND_API.G_FALSE) ||'-'||
6174: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
6175: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
6176: END IF;
6177:
6178:

Line 6175: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );

6171: csi_ctr_gen_utility_pvt.put_line( 'create_estimation_method_pvt' ||'-'||
6172: p_api_version ||'-'||
6173: nvl(p_commit,FND_API.G_FALSE) ||'-'||
6174: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
6175: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
6176: END IF;
6177:
6178:
6179: if p_ctr_estimation_rec.estimation_id = FND_API.G_MISS_NUM then

Line 6179: if p_ctr_estimation_rec.estimation_id = FND_API.G_MISS_NUM then

6175: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
6176: END IF;
6177:
6178:
6179: if p_ctr_estimation_rec.estimation_id = FND_API.G_MISS_NUM then
6180: l_estimation_id := null;
6181: else
6182: l_estimation_id := p_ctr_estimation_rec.estimation_id;
6183: end if;

Line 6185: if p_ctr_estimation_rec.name = FND_API.G_MISS_CHAR then

6181: else
6182: l_estimation_id := p_ctr_estimation_rec.estimation_id;
6183: end if;
6184:
6185: if p_ctr_estimation_rec.name = FND_API.G_MISS_CHAR then
6186: l_name := null;
6187: else
6188: l_name := p_ctr_estimation_rec.name;
6189: end if;

Line 6191: if p_ctr_estimation_rec.description= FND_API.G_MISS_CHAR then

6187: else
6188: l_name := p_ctr_estimation_rec.name;
6189: end if;
6190:
6191: if p_ctr_estimation_rec.description= FND_API.G_MISS_CHAR then
6192: l_description := null;
6193: else
6194: l_description := p_ctr_estimation_rec.description;
6195: end if;

Line 6197: if p_ctr_estimation_rec.estimation_type= FND_API.G_MISS_CHAR then

6193: else
6194: l_description := p_ctr_estimation_rec.description;
6195: end if;
6196:
6197: if p_ctr_estimation_rec.estimation_type= FND_API.G_MISS_CHAR then
6198: l_estimation_type := null;
6199: else
6200: l_estimation_type := p_ctr_estimation_rec.estimation_type;
6201: end if;

Line 6203: if p_ctr_estimation_rec.estimation_avg_type = FND_API.G_MISS_CHAR then

6199: else
6200: l_estimation_type := p_ctr_estimation_rec.estimation_type;
6201: end if;
6202:
6203: if p_ctr_estimation_rec.estimation_avg_type = FND_API.G_MISS_CHAR then
6204: l_estimation_avg_type := null;
6205: else
6206: l_estimation_avg_type := p_ctr_estimation_rec.estimation_avg_type;
6207: end if;

Line 6209: if p_ctr_estimation_rec.fixed_value = FND_API.G_MISS_NUM then

6205: else
6206: l_estimation_avg_type := p_ctr_estimation_rec.estimation_avg_type;
6207: end if;
6208:
6209: if p_ctr_estimation_rec.fixed_value = FND_API.G_MISS_NUM then
6210: l_fixed_value := null;
6211: else
6212: l_fixed_value := p_ctr_estimation_rec.fixed_value;
6213: end if;

Line 6215: if p_ctr_estimation_rec.usage_markup = FND_API.G_MISS_NUM then

6211: else
6212: l_fixed_value := p_ctr_estimation_rec.fixed_value;
6213: end if;
6214:
6215: if p_ctr_estimation_rec.usage_markup = FND_API.G_MISS_NUM then
6216: l_usage_markup := null;
6217: else
6218: l_usage_markup := p_ctr_estimation_rec.usage_markup;
6219: end if;

Line 6221: if p_ctr_estimation_rec.default_value = FND_API.G_MISS_NUM then

6217: else
6218: l_usage_markup := p_ctr_estimation_rec.usage_markup;
6219: end if;
6220:
6221: if p_ctr_estimation_rec.default_value = FND_API.G_MISS_NUM then
6222: l_default_value := null;
6223: else
6224: l_default_value := p_ctr_estimation_rec.default_value;
6225: end if;

Line 6227: if nvl(p_ctr_estimation_rec.start_date_active,FND_API.G_MISS_DATE) = FND_API.G_MISS_DATE then

6223: else
6224: l_default_value := p_ctr_estimation_rec.default_value;
6225: end if;
6226:
6227: if nvl(p_ctr_estimation_rec.start_date_active,FND_API.G_MISS_DATE) = FND_API.G_MISS_DATE then
6228: l_start_date_active := sysdate;
6229: else
6230: l_start_date_active := p_ctr_estimation_rec.start_date_active;
6231: end if;

Line 6233: if p_ctr_estimation_rec.end_date_active = FND_API.G_MISS_DATE then

6229: else
6230: l_start_date_active := p_ctr_estimation_rec.start_date_active;
6231: end if;
6232:
6233: if p_ctr_estimation_rec.end_date_active = FND_API.G_MISS_DATE then
6234: l_end_date_active := null;
6235: else
6236: l_end_date_active := p_ctr_estimation_rec.end_date_active;
6237: end if;

Line 6239: if p_ctr_estimation_rec.attribute1 = FND_API.G_MISS_CHAR then

6235: else
6236: l_end_date_active := p_ctr_estimation_rec.end_date_active;
6237: end if;
6238:
6239: if p_ctr_estimation_rec.attribute1 = FND_API.G_MISS_CHAR then
6240: l_attribute1 := null;
6241: else
6242: l_attribute1 := p_ctr_estimation_rec.attribute1;
6243: end if;

Line 6245: if p_ctr_estimation_rec.attribute2 = FND_API.G_MISS_CHAR then

6241: else
6242: l_attribute1 := p_ctr_estimation_rec.attribute1;
6243: end if;
6244:
6245: if p_ctr_estimation_rec.attribute2 = FND_API.G_MISS_CHAR then
6246: l_attribute2 := null;
6247: else
6248: l_attribute2 := p_ctr_estimation_rec.attribute2;
6249: end if;

Line 6251: if p_ctr_estimation_rec.attribute3 = FND_API.G_MISS_CHAR then

6247: else
6248: l_attribute2 := p_ctr_estimation_rec.attribute2;
6249: end if;
6250:
6251: if p_ctr_estimation_rec.attribute3 = FND_API.G_MISS_CHAR then
6252: l_attribute3 := null;
6253: else
6254: l_attribute3 := p_ctr_estimation_rec.attribute3;
6255: end if;

Line 6257: if p_ctr_estimation_rec.attribute4 = FND_API.G_MISS_CHAR then

6253: else
6254: l_attribute3 := p_ctr_estimation_rec.attribute3;
6255: end if;
6256:
6257: if p_ctr_estimation_rec.attribute4 = FND_API.G_MISS_CHAR then
6258: l_attribute4 := null;
6259: else
6260: l_attribute4 := p_ctr_estimation_rec.attribute4;
6261: end if;

Line 6263: if p_ctr_estimation_rec.attribute5 = FND_API.G_MISS_CHAR then

6259: else
6260: l_attribute4 := p_ctr_estimation_rec.attribute4;
6261: end if;
6262:
6263: if p_ctr_estimation_rec.attribute5 = FND_API.G_MISS_CHAR then
6264: l_attribute5 := null;
6265: else
6266: l_attribute5 := p_ctr_estimation_rec.attribute5;
6267: end if;

Line 6269: if p_ctr_estimation_rec.attribute6 = FND_API.G_MISS_CHAR then

6265: else
6266: l_attribute5 := p_ctr_estimation_rec.attribute5;
6267: end if;
6268:
6269: if p_ctr_estimation_rec.attribute6 = FND_API.G_MISS_CHAR then
6270: l_attribute6 := null;
6271: else
6272: l_attribute6 := p_ctr_estimation_rec.attribute6;
6273: end if;

Line 6275: if p_ctr_estimation_rec.attribute7 = FND_API.G_MISS_CHAR then

6271: else
6272: l_attribute6 := p_ctr_estimation_rec.attribute6;
6273: end if;
6274:
6275: if p_ctr_estimation_rec.attribute7 = FND_API.G_MISS_CHAR then
6276: l_attribute7 := null;
6277: else
6278: l_attribute7 := p_ctr_estimation_rec.attribute7;
6279: end if;

Line 6281: if p_ctr_estimation_rec.attribute8 = FND_API.G_MISS_CHAR then

6277: else
6278: l_attribute7 := p_ctr_estimation_rec.attribute7;
6279: end if;
6280:
6281: if p_ctr_estimation_rec.attribute8 = FND_API.G_MISS_CHAR then
6282: l_attribute8 := null;
6283: else
6284: l_attribute8 := p_ctr_estimation_rec.attribute8;
6285: end if;

Line 6287: if p_ctr_estimation_rec.attribute9 = FND_API.G_MISS_CHAR then

6283: else
6284: l_attribute8 := p_ctr_estimation_rec.attribute8;
6285: end if;
6286:
6287: if p_ctr_estimation_rec.attribute9 = FND_API.G_MISS_CHAR then
6288: l_attribute9 := null;
6289: else
6290: l_attribute9 := p_ctr_estimation_rec.attribute9;
6291: end if;

Line 6293: if p_ctr_estimation_rec.attribute10 = FND_API.G_MISS_CHAR then

6289: else
6290: l_attribute9 := p_ctr_estimation_rec.attribute9;
6291: end if;
6292:
6293: if p_ctr_estimation_rec.attribute10 = FND_API.G_MISS_CHAR then
6294: l_attribute10 := null;
6295: else
6296: l_attribute10 := p_ctr_estimation_rec.attribute10;
6297: end if;

Line 6299: if p_ctr_estimation_rec.attribute11 = FND_API.G_MISS_CHAR then

6295: else
6296: l_attribute10 := p_ctr_estimation_rec.attribute10;
6297: end if;
6298:
6299: if p_ctr_estimation_rec.attribute11 = FND_API.G_MISS_CHAR then
6300: l_attribute11 := null;
6301: else
6302: l_attribute11 := p_ctr_estimation_rec.attribute11;
6303: end if;

Line 6305: if p_ctr_estimation_rec.attribute12 = FND_API.G_MISS_CHAR then

6301: else
6302: l_attribute11 := p_ctr_estimation_rec.attribute11;
6303: end if;
6304:
6305: if p_ctr_estimation_rec.attribute12 = FND_API.G_MISS_CHAR then
6306: l_attribute12 := null;
6307: else
6308: l_attribute12 := p_ctr_estimation_rec.attribute12;
6309: end if;

Line 6311: if p_ctr_estimation_rec.attribute13 = FND_API.G_MISS_CHAR then

6307: else
6308: l_attribute12 := p_ctr_estimation_rec.attribute12;
6309: end if;
6310:
6311: if p_ctr_estimation_rec.attribute13 = FND_API.G_MISS_CHAR then
6312: l_attribute13 := null;
6313: else
6314: l_attribute13 := p_ctr_estimation_rec.attribute13;
6315: end if;

Line 6317: if p_ctr_estimation_rec.attribute14 = FND_API.G_MISS_CHAR then

6313: else
6314: l_attribute13 := p_ctr_estimation_rec.attribute13;
6315: end if;
6316:
6317: if p_ctr_estimation_rec.attribute14 = FND_API.G_MISS_CHAR then
6318: l_attribute14 := null;
6319: else
6320: l_attribute14 := p_ctr_estimation_rec.attribute14;
6321: end if;

Line 6323: if p_ctr_estimation_rec.attribute15 = FND_API.G_MISS_CHAR then

6319: else
6320: l_attribute14 := p_ctr_estimation_rec.attribute14;
6321: end if;
6322:
6323: if p_ctr_estimation_rec.attribute15 = FND_API.G_MISS_CHAR then
6324: l_attribute15 := null;
6325: else
6326: l_attribute15 := p_ctr_estimation_rec.attribute15;
6327: end if;

Line 6329: if p_ctr_estimation_rec.attribute_category = FND_API.G_MISS_CHAR then

6325: else
6326: l_attribute15 := p_ctr_estimation_rec.attribute15;
6327: end if;
6328:
6329: if p_ctr_estimation_rec.attribute_category = FND_API.G_MISS_CHAR then
6330: l_attribute_category := null;
6331: else
6332: l_attribute_category := p_ctr_estimation_rec.attribute_category;
6333: end if;

Line 6335: if p_ctr_estimation_rec.migrated_flag = FND_API.G_MISS_CHAR then

6331: else
6332: l_attribute_category := p_ctr_estimation_rec.attribute_category;
6333: end if;
6334:
6335: if p_ctr_estimation_rec.migrated_flag = FND_API.G_MISS_CHAR then
6336: l_migrated_flag := null;
6337: else
6338: l_migrated_flag := p_ctr_estimation_rec.migrated_flag;
6339: end if;

Line 6408: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN

6404: ,p_NAME => l_name
6405: ,p_DESCRIPTION => l_description
6406: );
6407:
6408: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN
6409: ROLLBACK TO create_estimation_method_pvt;
6410: RETURN;
6411: END IF;
6412:

Line 6415: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN

6411: END IF;
6412:
6413: /* End of table handler call */
6414:
6415: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN
6416: COMMIT WORK;
6417: END IF;
6418:
6419: -- Standard call to get message count and IF count is get message info.

Line 6425: WHEN FND_API.G_EXC_ERROR THEN

6421: ( p_count => x_msg_count,
6422: p_data => x_msg_data
6423: );
6424: EXCEPTION
6425: WHEN FND_API.G_EXC_ERROR THEN
6426: x_return_status := FND_API.G_RET_STS_ERROR ;
6427: ROLLBACK TO create_estimation_method_pvt;
6428: FND_MSG_PUB.Count_And_Get
6429: ( p_count => x_msg_count,

Line 6426: x_return_status := FND_API.G_RET_STS_ERROR ;

6422: p_data => x_msg_data
6423: );
6424: EXCEPTION
6425: WHEN FND_API.G_EXC_ERROR THEN
6426: x_return_status := FND_API.G_RET_STS_ERROR ;
6427: ROLLBACK TO create_estimation_method_pvt;
6428: FND_MSG_PUB.Count_And_Get
6429: ( p_count => x_msg_count,
6430: p_data => x_msg_data

Line 6432: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN

6428: FND_MSG_PUB.Count_And_Get
6429: ( p_count => x_msg_count,
6430: p_data => x_msg_data
6431: );
6432: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
6433: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
6434: ROLLBACK TO create_estimation_method_pvt;
6435: FND_MSG_PUB.Count_And_Get
6436: ( p_count => x_msg_count,

Line 6433: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

6429: ( p_count => x_msg_count,
6430: p_data => x_msg_data
6431: );
6432: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
6433: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
6434: ROLLBACK TO create_estimation_method_pvt;
6435: FND_MSG_PUB.Count_And_Get
6436: ( p_count => x_msg_count,
6437: p_data => x_msg_data

Line 6440: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

6436: ( p_count => x_msg_count,
6437: p_data => x_msg_data
6438: );
6439: WHEN OTHERS THEN
6440: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
6441: ROLLBACK TO create_estimation_method_pvt;
6442: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
6443: FND_MSG_PUB.Add_Exc_Msg
6444: ( G_PKG_NAME,

Line 6517: IF NOT FND_API.Compatible_API_Call (l_api_version,

6513: -- Standard Start of API savepoint
6514: SAVEPOINT update_estimation_method_pvt;
6515:
6516: -- Standard call to check for call compatibility.
6517: IF NOT FND_API.Compatible_API_Call (l_api_version,
6518: p_api_version,
6519: l_api_name ,
6520: G_PKG_NAME ) THEN
6521: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 6521: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

6517: IF NOT FND_API.Compatible_API_Call (l_api_version,
6518: p_api_version,
6519: l_api_name ,
6520: G_PKG_NAME ) THEN
6521: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
6522: END IF;
6523:
6524: -- Initialize message list if p_init_msg_list is set to TRUE.
6525: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

Line 6525: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

6521: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
6522: END IF;
6523:
6524: -- Initialize message list if p_init_msg_list is set to TRUE.
6525: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
6526: FND_MSG_PUB.initialize;
6527: END IF;
6528:
6529: -- Initialize API return status to success

Line 6530: x_return_status := FND_API.G_RET_STS_SUCCESS;

6526: FND_MSG_PUB.initialize;
6527: END IF;
6528:
6529: -- Initialize API return status to success
6530: x_return_status := FND_API.G_RET_STS_SUCCESS;
6531:
6532: -- Read the debug profiles values in to global variable 7197402
6533: CSI_CTR_GEN_UTILITY_PVT.read_debug_profiles;
6534:

Line 6539: nvl(p_commit,FND_API.G_FALSE) ||'-'||

6535: --
6536: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
6537: csi_ctr_gen_utility_pvt.put_line( 'update_estimation_method_pvt' ||'-'||
6538: p_api_version ||'-'||
6539: nvl(p_commit,FND_API.G_FALSE) ||'-'||
6540: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
6541: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
6542: END IF;
6543:

Line 6540: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||

6536: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
6537: csi_ctr_gen_utility_pvt.put_line( 'update_estimation_method_pvt' ||'-'||
6538: p_api_version ||'-'||
6539: nvl(p_commit,FND_API.G_FALSE) ||'-'||
6540: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
6541: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
6542: END IF;
6543:
6544: /* Start of API Body */

Line 6541: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );

6537: csi_ctr_gen_utility_pvt.put_line( 'update_estimation_method_pvt' ||'-'||
6538: p_api_version ||'-'||
6539: nvl(p_commit,FND_API.G_FALSE) ||'-'||
6540: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
6541: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
6542: END IF;
6543:
6544: /* Start of API Body */
6545: OPEN cur_estimation_rec(p_ctr_estimation_rec.estimation_id);

Line 6550: RAISE FND_API.G_EXC_ERROR;

6546: FETCH cur_estimation_rec INTO l_old_ctr_estimation_rec;
6547: IF (l_old_ctr_estimation_rec.object_version_number <> nvl(p_ctr_estimation_rec.OBJECT_VERSION_NUMBER,0)) THEN
6548: FND_MESSAGE.Set_Name('CSI', 'CSI_API_OBJ_VER_MISMATCH');
6549: FND_MSG_PUB.ADD;
6550: RAISE FND_API.G_EXC_ERROR;
6551: END IF;
6552:
6553: CLOSE cur_estimation_rec;
6554:

Line 6564: ELSIF p_ctr_estimation_rec.name = FND_API.G_MISS_CHAR THEN

6560:
6561:
6562: IF p_ctr_estimation_rec.name IS NULL THEN
6563: l_ctr_estimation_rec.name := l_old_ctr_estimation_rec.name;
6564: ELSIF p_ctr_estimation_rec.name = FND_API.G_MISS_CHAR THEN
6565: l_ctr_estimation_rec.name := NULL;
6566: END IF;
6567:
6568: IF p_ctr_estimation_rec.description IS NULL THEN

Line 6570: ELSIF p_ctr_estimation_rec.description = FND_API.G_MISS_CHAR THEN

6566: END IF;
6567:
6568: IF p_ctr_estimation_rec.description IS NULL THEN
6569: l_ctr_estimation_rec.description := l_old_ctr_estimation_rec.description;
6570: ELSIF p_ctr_estimation_rec.description = FND_API.G_MISS_CHAR THEN
6571: l_ctr_estimation_rec.description := NULL;
6572: END IF;
6573:
6574: IF p_ctr_estimation_rec.estimation_type IS NULL THEN

Line 6576: ELSIF p_ctr_estimation_rec.estimation_type = FND_API.G_MISS_CHAR THEN

6572: END IF;
6573:
6574: IF p_ctr_estimation_rec.estimation_type IS NULL THEN
6575: l_ctr_estimation_rec.estimation_type := l_old_ctr_estimation_rec.estimation_type;
6576: ELSIF p_ctr_estimation_rec.estimation_type = FND_API.G_MISS_CHAR THEN
6577: l_ctr_estimation_rec.estimation_type := NULL;
6578: END IF;
6579:
6580: IF p_ctr_estimation_rec.fixed_value IS NULL THEN

Line 6582: ELSIF p_ctr_estimation_rec.fixed_value = FND_API.G_MISS_NUM THEN

6578: END IF;
6579:
6580: IF p_ctr_estimation_rec.fixed_value IS NULL THEN
6581: l_ctr_estimation_rec.fixed_value := l_old_ctr_estimation_rec.fixed_value;
6582: ELSIF p_ctr_estimation_rec.fixed_value = FND_API.G_MISS_NUM THEN
6583: l_ctr_estimation_rec.fixed_value := NULL;
6584: END IF;
6585:
6586: IF p_ctr_estimation_rec.usage_markup IS NULL THEN

Line 6588: ELSIF p_ctr_estimation_rec.usage_markup = FND_API.G_MISS_NUM THEN

6584: END IF;
6585:
6586: IF p_ctr_estimation_rec.usage_markup IS NULL THEN
6587: l_ctr_estimation_rec.usage_markup := l_old_ctr_estimation_rec.usage_markup;
6588: ELSIF p_ctr_estimation_rec.usage_markup = FND_API.G_MISS_NUM THEN
6589: l_ctr_estimation_rec.usage_markup := NULL;
6590: END IF;
6591:
6592: IF p_ctr_estimation_rec.default_value IS NULL THEN

Line 6594: ELSIF p_ctr_estimation_rec.default_value = FND_API.G_MISS_NUM THEN

6590: END IF;
6591:
6592: IF p_ctr_estimation_rec.default_value IS NULL THEN
6593: l_ctr_estimation_rec.default_value := l_old_ctr_estimation_rec.default_value;
6594: ELSIF p_ctr_estimation_rec.default_value = FND_API.G_MISS_NUM THEN
6595: l_ctr_estimation_rec.default_value := NULL;
6596: END IF;
6597:
6598: IF p_ctr_estimation_rec.estimation_avg_type IS NULL THEN

Line 6600: ELSIF p_ctr_estimation_rec.estimation_avg_type = FND_API.G_MISS_CHAR THEN

6596: END IF;
6597:
6598: IF p_ctr_estimation_rec.estimation_avg_type IS NULL THEN
6599: l_ctr_estimation_rec.estimation_avg_type := l_old_ctr_estimation_rec.estimation_avg_type;
6600: ELSIF p_ctr_estimation_rec.estimation_avg_type = FND_API.G_MISS_CHAR THEN
6601: l_ctr_estimation_rec.estimation_avg_type := NULL;
6602: END IF;
6603:
6604: IF p_ctr_estimation_rec.start_date_active IS NULL THEN

Line 6606: ELSIF p_ctr_estimation_rec.start_date_active = FND_API.G_MISS_DATE THEN

6602: END IF;
6603:
6604: IF p_ctr_estimation_rec.start_date_active IS NULL THEN
6605: l_ctr_estimation_rec.start_date_active := l_old_ctr_estimation_rec.start_date_active;
6606: ELSIF p_ctr_estimation_rec.start_date_active = FND_API.G_MISS_DATE THEN
6607: l_ctr_estimation_rec.start_date_active := NULL;
6608: END IF;
6609:
6610: IF p_ctr_estimation_rec.end_date_active IS NULL THEN

Line 6612: ELSIF p_ctr_estimation_rec.end_date_active = FND_API.G_MISS_DATE THEN

6608: END IF;
6609:
6610: IF p_ctr_estimation_rec.end_date_active IS NULL THEN
6611: l_ctr_estimation_rec.end_date_active := l_old_ctr_estimation_rec.end_date_active;
6612: ELSIF p_ctr_estimation_rec.end_date_active = FND_API.G_MISS_DATE THEN
6613: l_ctr_estimation_rec.end_date_active := NULL;
6614: END IF;
6615:
6616: IF p_ctr_estimation_rec.attribute_category IS NULL THEN

Line 6618: ELSIF p_ctr_estimation_rec.attribute_category = FND_API.G_MISS_CHAR THEN

6614: END IF;
6615:
6616: IF p_ctr_estimation_rec.attribute_category IS NULL THEN
6617: l_ctr_estimation_rec.attribute_category := l_old_ctr_estimation_rec.attribute_category;
6618: ELSIF p_ctr_estimation_rec.attribute_category = FND_API.G_MISS_CHAR THEN
6619: l_ctr_estimation_rec.attribute_category := NULL;
6620: END IF;
6621: --
6622: IF p_ctr_estimation_rec.attribute1 IS NULL THEN

Line 6624: ELSIF p_ctr_estimation_rec.attribute1 = FND_API.G_MISS_CHAR THEN

6620: END IF;
6621: --
6622: IF p_ctr_estimation_rec.attribute1 IS NULL THEN
6623: l_ctr_estimation_rec.attribute1 := l_old_ctr_estimation_rec.attribute1;
6624: ELSIF p_ctr_estimation_rec.attribute1 = FND_API.G_MISS_CHAR THEN
6625: l_ctr_estimation_rec.attribute1 := NULL;
6626: END IF;
6627:
6628: IF p_ctr_estimation_rec.attribute2 IS NULL THEN

Line 6630: ELSIF p_ctr_estimation_rec.attribute2 = FND_API.G_MISS_CHAR THEN

6626: END IF;
6627:
6628: IF p_ctr_estimation_rec.attribute2 IS NULL THEN
6629: l_ctr_estimation_rec.attribute2 := l_old_ctr_estimation_rec.attribute2;
6630: ELSIF p_ctr_estimation_rec.attribute2 = FND_API.G_MISS_CHAR THEN
6631: l_ctr_estimation_rec.attribute2 := NULL;
6632: END IF;
6633:
6634: IF p_ctr_estimation_rec.attribute3 IS NULL THEN

Line 6636: ELSIF p_ctr_estimation_rec.attribute3 = FND_API.G_MISS_CHAR THEN

6632: END IF;
6633:
6634: IF p_ctr_estimation_rec.attribute3 IS NULL THEN
6635: l_ctr_estimation_rec.attribute3 := l_old_ctr_estimation_rec.attribute3;
6636: ELSIF p_ctr_estimation_rec.attribute3 = FND_API.G_MISS_CHAR THEN
6637: l_ctr_estimation_rec.attribute3 := NULL;
6638: END IF;
6639:
6640: IF p_ctr_estimation_rec.attribute4 IS NULL THEN

Line 6642: ELSIF p_ctr_estimation_rec.attribute4 = FND_API.G_MISS_CHAR THEN

6638: END IF;
6639:
6640: IF p_ctr_estimation_rec.attribute4 IS NULL THEN
6641: l_ctr_estimation_rec.attribute4 := l_old_ctr_estimation_rec.attribute4;
6642: ELSIF p_ctr_estimation_rec.attribute4 = FND_API.G_MISS_CHAR THEN
6643: l_ctr_estimation_rec.attribute4 := NULL;
6644: END IF;
6645:
6646: IF p_ctr_estimation_rec.attribute5 IS NULL THEN

Line 6648: ELSIF p_ctr_estimation_rec.attribute5 = FND_API.G_MISS_CHAR THEN

6644: END IF;
6645:
6646: IF p_ctr_estimation_rec.attribute5 IS NULL THEN
6647: l_ctr_estimation_rec.attribute5 := l_old_ctr_estimation_rec.attribute5;
6648: ELSIF p_ctr_estimation_rec.attribute5 = FND_API.G_MISS_CHAR THEN
6649: l_ctr_estimation_rec.attribute5 := NULL;
6650: END IF;
6651:
6652: IF p_ctr_estimation_rec.attribute6 IS NULL THEN

Line 6654: ELSIF p_ctr_estimation_rec.attribute6 = FND_API.G_MISS_CHAR THEN

6650: END IF;
6651:
6652: IF p_ctr_estimation_rec.attribute6 IS NULL THEN
6653: l_ctr_estimation_rec.attribute6 := l_old_ctr_estimation_rec.attribute6;
6654: ELSIF p_ctr_estimation_rec.attribute6 = FND_API.G_MISS_CHAR THEN
6655: l_ctr_estimation_rec.attribute6 := NULL;
6656: END IF;
6657:
6658: IF p_ctr_estimation_rec.attribute7 IS NULL THEN

Line 6660: ELSIF p_ctr_estimation_rec.attribute7 = FND_API.G_MISS_CHAR THEN

6656: END IF;
6657:
6658: IF p_ctr_estimation_rec.attribute7 IS NULL THEN
6659: l_ctr_estimation_rec.attribute7 := l_old_ctr_estimation_rec.attribute7;
6660: ELSIF p_ctr_estimation_rec.attribute7 = FND_API.G_MISS_CHAR THEN
6661: l_ctr_estimation_rec.attribute7 := NULL;
6662: END IF;
6663:
6664: IF p_ctr_estimation_rec.attribute8 IS NULL THEN

Line 6666: ELSIF p_ctr_estimation_rec.attribute8 = FND_API.G_MISS_CHAR THEN

6662: END IF;
6663:
6664: IF p_ctr_estimation_rec.attribute8 IS NULL THEN
6665: l_ctr_estimation_rec.attribute8 := l_old_ctr_estimation_rec.attribute8;
6666: ELSIF p_ctr_estimation_rec.attribute8 = FND_API.G_MISS_CHAR THEN
6667: l_ctr_estimation_rec.attribute8 := NULL;
6668: END IF;
6669:
6670: IF p_ctr_estimation_rec.attribute9 IS NULL THEN

Line 6672: ELSIF p_ctr_estimation_rec.attribute9 = FND_API.G_MISS_CHAR THEN

6668: END IF;
6669:
6670: IF p_ctr_estimation_rec.attribute9 IS NULL THEN
6671: l_ctr_estimation_rec.attribute9 := l_old_ctr_estimation_rec.attribute9;
6672: ELSIF p_ctr_estimation_rec.attribute9 = FND_API.G_MISS_CHAR THEN
6673: l_ctr_estimation_rec.attribute9 := NULL;
6674: END IF;
6675:
6676: IF p_ctr_estimation_rec.attribute10 IS NULL THEN

Line 6678: ELSIF p_ctr_estimation_rec.attribute10 = FND_API.G_MISS_CHAR THEN

6674: END IF;
6675:
6676: IF p_ctr_estimation_rec.attribute10 IS NULL THEN
6677: l_ctr_estimation_rec.attribute10 := l_old_ctr_estimation_rec.attribute10;
6678: ELSIF p_ctr_estimation_rec.attribute10 = FND_API.G_MISS_CHAR THEN
6679: l_ctr_estimation_rec.attribute10 := NULL;
6680: END IF;
6681:
6682: IF p_ctr_estimation_rec.attribute11 IS NULL THEN

Line 6684: ELSIF p_ctr_estimation_rec.attribute11 = FND_API.G_MISS_CHAR THEN

6680: END IF;
6681:
6682: IF p_ctr_estimation_rec.attribute11 IS NULL THEN
6683: l_ctr_estimation_rec.attribute11 := l_old_ctr_estimation_rec.attribute11;
6684: ELSIF p_ctr_estimation_rec.attribute11 = FND_API.G_MISS_CHAR THEN
6685: l_ctr_estimation_rec.attribute11 := NULL;
6686: END IF;
6687:
6688: IF p_ctr_estimation_rec.attribute12 IS NULL THEN

Line 6690: ELSIF p_ctr_estimation_rec.attribute12= FND_API.G_MISS_CHAR THEN

6686: END IF;
6687:
6688: IF p_ctr_estimation_rec.attribute12 IS NULL THEN
6689: l_ctr_estimation_rec.attribute12 := l_old_ctr_estimation_rec.attribute12;
6690: ELSIF p_ctr_estimation_rec.attribute12= FND_API.G_MISS_CHAR THEN
6691: l_ctr_estimation_rec.attribute12 := NULL;
6692: END IF;
6693:
6694: IF p_ctr_estimation_rec.attribute13 IS NULL THEN

Line 6696: ELSIF p_ctr_estimation_rec.attribute13 = FND_API.G_MISS_CHAR THEN

6692: END IF;
6693:
6694: IF p_ctr_estimation_rec.attribute13 IS NULL THEN
6695: l_ctr_estimation_rec.attribute13 := l_old_ctr_estimation_rec.attribute13;
6696: ELSIF p_ctr_estimation_rec.attribute13 = FND_API.G_MISS_CHAR THEN
6697: l_ctr_estimation_rec.attribute13 := NULL;
6698: END IF;
6699:
6700: IF p_ctr_estimation_rec.attribute14 IS NULL THEN

Line 6702: ELSIF p_ctr_estimation_rec.attribute14 = FND_API.G_MISS_CHAR THEN

6698: END IF;
6699:
6700: IF p_ctr_estimation_rec.attribute14 IS NULL THEN
6701: l_ctr_estimation_rec.attribute14 := l_old_ctr_estimation_rec.attribute14;
6702: ELSIF p_ctr_estimation_rec.attribute14 = FND_API.G_MISS_CHAR THEN
6703: l_ctr_estimation_rec.attribute14 := NULL;
6704: END IF;
6705:
6706: IF p_ctr_estimation_rec.attribute15 IS NULL THEN

Line 6708: ELSIF p_ctr_estimation_rec.attribute15 = FND_API.G_MISS_CHAR THEN

6704: END IF;
6705:
6706: IF p_ctr_estimation_rec.attribute15 IS NULL THEN
6707: l_ctr_estimation_rec.attribute15 := l_old_ctr_estimation_rec.attribute15;
6708: ELSIF p_ctr_estimation_rec.attribute15 = FND_API.G_MISS_CHAR THEN
6709: l_ctr_estimation_rec.attribute15 := NULL;
6710: END IF;
6711:
6712: IF p_ctr_estimation_rec.migrated_flag IS NULL THEN

Line 6714: ELSIF p_ctr_estimation_rec.migrated_flag = FND_API.G_MISS_CHAR THEN

6710: END IF;
6711:
6712: IF p_ctr_estimation_rec.migrated_flag IS NULL THEN
6713: l_ctr_estimation_rec.migrated_flag := l_old_ctr_estimation_rec.migrated_flag;
6714: ELSIF p_ctr_estimation_rec.migrated_flag = FND_API.G_MISS_CHAR THEN
6715: l_ctr_estimation_rec.migrated_flag := NULL;
6716: END IF;
6717:
6718: -- validate_start_date(l_ctr_estimation_rec.start_date_active);

Line 6768: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN

6764: ,p_NAME => p_ctr_estimation_rec.name
6765: ,p_DESCRIPTION => p_ctr_estimation_rec.description
6766: );
6767:
6768: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN
6769: ROLLBACK TO update_estimation_method_pvt;
6770: RETURN;
6771: END IF;
6772:

Line 6775: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN

6771: END IF;
6772:
6773: /* End of API Body */
6774:
6775: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN
6776: COMMIT WORK;
6777: END IF;
6778:
6779: -- Standard call to get message count and IF count is get message info.

Line 6785: WHEN FND_API.G_EXC_ERROR THEN

6781: ( p_count => x_msg_count,
6782: p_data => x_msg_data
6783: );
6784: EXCEPTION
6785: WHEN FND_API.G_EXC_ERROR THEN
6786: x_return_status := FND_API.G_RET_STS_ERROR ;
6787: ROLLBACK TO update_estimation_method_pvt;
6788: FND_MSG_PUB.Count_And_Get
6789: ( p_count => x_msg_count,

Line 6786: x_return_status := FND_API.G_RET_STS_ERROR ;

6782: p_data => x_msg_data
6783: );
6784: EXCEPTION
6785: WHEN FND_API.G_EXC_ERROR THEN
6786: x_return_status := FND_API.G_RET_STS_ERROR ;
6787: ROLLBACK TO update_estimation_method_pvt;
6788: FND_MSG_PUB.Count_And_Get
6789: ( p_count => x_msg_count,
6790: p_data => x_msg_data

Line 6792: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN

6788: FND_MSG_PUB.Count_And_Get
6789: ( p_count => x_msg_count,
6790: p_data => x_msg_data
6791: );
6792: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
6793: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
6794: ROLLBACK TO update_estimation_method_pvt;
6795: FND_MSG_PUB.Count_And_Get
6796: ( p_count => x_msg_count,

Line 6793: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

6789: ( p_count => x_msg_count,
6790: p_data => x_msg_data
6791: );
6792: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
6793: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
6794: ROLLBACK TO update_estimation_method_pvt;
6795: FND_MSG_PUB.Count_And_Get
6796: ( p_count => x_msg_count,
6797: p_data => x_msg_data

Line 6800: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

6796: ( p_count => x_msg_count,
6797: p_data => x_msg_data
6798: );
6799: WHEN OTHERS THEN
6800: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
6801: ROLLBACK TO update_estimation_method_pvt;
6802: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
6803: FND_MSG_PUB.Add_Exc_Msg
6804: ( G_PKG_NAME,

Line 7128: IF NOT FND_API.Compatible_API_Call (l_api_version,

7124: -- Standard Start of API savepoint
7125: SAVEPOINT instantiate_ctr_pvt;
7126:
7127: -- Standard call to check for call compatibility.
7128: IF NOT FND_API.Compatible_API_Call (l_api_version,
7129: p_api_version,
7130: l_api_name ,
7131: G_PKG_NAME ) THEN
7132: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 7132: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

7128: IF NOT FND_API.Compatible_API_Call (l_api_version,
7129: p_api_version,
7130: l_api_name ,
7131: G_PKG_NAME ) THEN
7132: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
7133: END IF;
7134:
7135: -- Initialize message list if p_init_msg_list is set to TRUE.
7136: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

Line 7136: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

7132: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
7133: END IF;
7134:
7135: -- Initialize message list if p_init_msg_list is set to TRUE.
7136: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
7137: FND_MSG_PUB.initialize;
7138: END IF;
7139:
7140: -- Initialize API return status to success

Line 7141: x_return_status := FND_API.G_RET_STS_SUCCESS;

7137: FND_MSG_PUB.initialize;
7138: END IF;
7139:
7140: -- Initialize API return status to success
7141: x_return_status := FND_API.G_RET_STS_SUCCESS;
7142:
7143: -- Read the debug profiles values in to global variable 7197402
7144: CSI_CTR_GEN_UTILITY_PVT.read_debug_profiles;
7145:

Line 7151: nvl(p_commit,FND_API.G_FALSE) ||'-'||

7147: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
7148: csi_ctr_gen_utility_pvt.put_line(
7149: 'instantiate_ctr_pvt'||'-'||
7150: p_api_version ||'-'||
7151: nvl(p_commit,FND_API.G_FALSE) ||'-'||
7152: nvl(p_init_msg_list,FND_API.G_FALSE)||'-'||
7153: nvl(l_validation_level,FND_API.G_VALID_LEVEL_FULL) );
7154: END IF;
7155:

Line 7152: nvl(p_init_msg_list,FND_API.G_FALSE)||'-'||

7148: csi_ctr_gen_utility_pvt.put_line(
7149: 'instantiate_ctr_pvt'||'-'||
7150: p_api_version ||'-'||
7151: nvl(p_commit,FND_API.G_FALSE) ||'-'||
7152: nvl(p_init_msg_list,FND_API.G_FALSE)||'-'||
7153: nvl(l_validation_level,FND_API.G_VALID_LEVEL_FULL) );
7154: END IF;
7155:
7156: l_source_object_cd := p_source_object_code_instance;

Line 7153: nvl(l_validation_level,FND_API.G_VALID_LEVEL_FULL) );

7149: 'instantiate_ctr_pvt'||'-'||
7150: p_api_version ||'-'||
7151: nvl(p_commit,FND_API.G_FALSE) ||'-'||
7152: nvl(p_init_msg_list,FND_API.G_FALSE)||'-'||
7153: nvl(l_validation_level,FND_API.G_VALID_LEVEL_FULL) );
7154: END IF;
7155:
7156: l_source_object_cd := p_source_object_code_instance;
7157: l_source_object_id_instance := p_source_object_id_instance;

Line 7282: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN

7278: x_msg_count => x_msg_count,
7279: x_msg_data => x_msg_data,
7280: x_ctr_id => l_new_ctr_id
7281: );
7282: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN
7283: l_msg_index := 1;
7284: l_msg_count := x_msg_count;
7285:
7286: WHILE l_msg_count > 0 LOOP

Line 7289: FND_API.G_FALSE );

7285:
7286: WHILE l_msg_count > 0 LOOP
7287: x_msg_data := FND_MSG_PUB.GET
7288: (l_msg_index,
7289: FND_API.G_FALSE );
7290: csi_ctr_gen_utility_pvt.put_line( ' Error from CSI_COUNTER_PVT.CREATE_COUNTER');
7291: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
7292: l_msg_index := l_msg_index + 1;
7293: l_msg_count := l_msg_count - 1;

Line 7295: RAISE FND_API.G_EXC_ERROR;

7291: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
7292: l_msg_index := l_msg_index + 1;
7293: l_msg_count := l_msg_count - 1;
7294: END LOOP;
7295: RAISE FND_API.G_EXC_ERROR;
7296: END IF;
7297:
7298: -- x_ctr_id_instance := l_counter_instance_rec.group_id;
7299: -- Create Counter Associations

Line 7322: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN

7318: ,x_msg_data => x_msg_data
7319: ,x_instance_association_id => l_instance_association_id
7320: );
7321:
7322: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN
7323: l_msg_index := 1;
7324: l_msg_count := x_msg_count;
7325:
7326: WHILE l_msg_count > 0 LOOP

Line 7329: FND_API.G_FALSE );

7325:
7326: WHILE l_msg_count > 0 LOOP
7327: x_msg_data := FND_MSG_PUB.GET
7328: (l_msg_index,
7329: FND_API.G_FALSE );
7330: csi_ctr_gen_utility_pvt.put_line( ' Error from CSI_COUNTER_PVT.CREATE_CTR_ASSOCIATIONS');
7331: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
7332: l_msg_index := l_msg_index + 1;
7333: l_msg_count := l_msg_count - 1;

Line 7335: RAISE FND_API.G_EXC_ERROR;

7331: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
7332: l_msg_index := l_msg_index + 1;
7333: l_msg_count := l_msg_count - 1;
7334: END LOOP;
7335: RAISE FND_API.G_EXC_ERROR;
7336: END IF;
7337:
7338: -- Insert initial reading by calling counter reading api.
7339: IF ctr_cur_rec.counter_type = 'REGULAR' AND

Line 7341: ctr_cur_rec.initial_reading <> FND_API.G_MISS_NUM) AND

7337:
7338: -- Insert initial reading by calling counter reading api.
7339: IF ctr_cur_rec.counter_type = 'REGULAR' AND
7340: (ctr_cur_rec.initial_reading is not null AND
7341: ctr_cur_rec.initial_reading <> FND_API.G_MISS_NUM) AND
7342: nvl(l_counter_relationships_rec.RELATIONSHIP_TYPE_CODE,'X') <>
7343: l_rel_type THEN
7344:
7345: csi_ctr_gen_utility_pvt.put_line('Inside the call reading api...');

Line 7414: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN

7410: x_msg_count => x_msg_count,
7411: x_msg_data => x_msg_data
7412: );
7413:
7414: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN
7415: l_msg_index := 1;
7416: l_msg_count := x_msg_count;
7417:
7418: WHILE l_msg_count > 0 LOOP

Line 7421: FND_API.G_FALSE );

7417:
7418: WHILE l_msg_count > 0 LOOP
7419: x_msg_data := FND_MSG_PUB.GET
7420: (l_msg_index,
7421: FND_API.G_FALSE );
7422: csi_ctr_gen_utility_pvt.put_line( ' Error from Instantiate-Capture Readings');
7423: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
7424: l_msg_index := l_msg_index + 1;
7425: l_msg_count := l_msg_count - 1;

Line 7427: RAISE FND_API.G_EXC_ERROR;

7423: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
7424: l_msg_index := l_msg_index + 1;
7425: l_msg_count := l_msg_count - 1;
7426: END LOOP;
7427: RAISE FND_API.G_EXC_ERROR;
7428: END IF;
7429: END IF;
7430:
7431: -- INstantiate all the properties for that counter.

Line 7485: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN

7481: ,x_msg_data => x_msg_data
7482: ,x_ctr_property_id => l_new_ctr_prop_id
7483: );
7484:
7485: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN
7486: l_msg_index := 1;
7487: l_msg_count := x_msg_count;
7488:
7489: WHILE l_msg_count > 0 LOOP

Line 7492: FND_API.G_FALSE );

7488:
7489: WHILE l_msg_count > 0 LOOP
7490: x_msg_data := FND_MSG_PUB.GET
7491: (l_msg_index,
7492: FND_API.G_FALSE );
7493: csi_ctr_gen_utility_pvt.put_line( ' Error from CSI_Counter_PVT.Create_Ctr_Property');
7494: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
7495: l_msg_index := l_msg_index + 1;
7496: l_msg_count := l_msg_count - 1;

Line 7498: RAISE FND_API.G_EXC_ERROR;

7494: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
7495: l_msg_index := l_msg_index + 1;
7496: l_msg_count := l_msg_count - 1;
7497: END LOOP;
7498: RAISE FND_API.G_EXC_ERROR;
7499: END IF;
7500:
7501: END LOOP;
7502:

Line 7568: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN

7564: ,x_msg_count => x_msg_count
7565: ,x_msg_data => x_msg_data
7566: );
7567:
7568: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN
7569: l_msg_index := 1;
7570: l_msg_count := x_msg_count;
7571:
7572: WHILE l_msg_count > 0 LOOP

Line 7575: FND_API.G_FALSE );

7571:
7572: WHILE l_msg_count > 0 LOOP
7573: x_msg_data := FND_MSG_PUB.GET
7574: (l_msg_index,
7575: FND_API.G_FALSE );
7576: csi_ctr_gen_utility_pvt.put_line( ' Error from CSI_COUNTER_TEMPLATE_PVT.CREATE_DERIVED_FILTERS');
7577: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
7578: l_msg_index := l_msg_index + 1;
7579: l_msg_count := l_msg_count - 1;

Line 7581: RAISE FND_API.G_EXC_ERROR;

7577: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
7578: l_msg_index := l_msg_index + 1;
7579: l_msg_count := l_msg_count - 1;
7580: END LOOP;
7581: RAISE FND_API.G_EXC_ERROR;
7582: END IF;
7583:
7584: END LOOP;
7585:

Line 7709: ,p_commit => fnd_api.g_false

7705:
7706: csi_counter_template_pvt.create_counter_relationship
7707: (
7708: p_api_version => p_api_version
7709: ,p_commit => fnd_api.g_false
7710: ,p_init_msg_list => p_init_msg_list
7711: ,p_validation_level => l_validation_level
7712: ,p_counter_relationships_rec => l_counter_relationships_rec
7713: ,x_return_status => x_return_status

Line 7724: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN

7720:
7721: x_ctr_id_template := p_counter_id_template;
7722: -- x_ctr_id_instance := l_new_ctr_id;
7723:
7724: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN
7725: COMMIT WORK;
7726: END IF;
7727:
7728: -- Standard call to get message count and IF count is get message info.

Line 7734: WHEN FND_API.G_EXC_ERROR THEN

7730: ( p_count => x_msg_count,
7731: p_data => x_msg_data
7732: );
7733: EXCEPTION
7734: WHEN FND_API.G_EXC_ERROR THEN
7735: x_return_status := FND_API.G_RET_STS_ERROR ;
7736: ROLLBACK TO instantiate_ctr_pvt;
7737: FND_MSG_PUB.Count_And_Get
7738: ( p_count => x_msg_count,

Line 7735: x_return_status := FND_API.G_RET_STS_ERROR ;

7731: p_data => x_msg_data
7732: );
7733: EXCEPTION
7734: WHEN FND_API.G_EXC_ERROR THEN
7735: x_return_status := FND_API.G_RET_STS_ERROR ;
7736: ROLLBACK TO instantiate_ctr_pvt;
7737: FND_MSG_PUB.Count_And_Get
7738: ( p_count => x_msg_count,
7739: p_data => x_msg_data

Line 7741: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN

7737: FND_MSG_PUB.Count_And_Get
7738: ( p_count => x_msg_count,
7739: p_data => x_msg_data
7740: );
7741: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
7742: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
7743: ROLLBACK TO instantiate_ctr_pvt;
7744: FND_MSG_PUB.Count_And_Get
7745: ( p_count => x_msg_count,

Line 7742: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

7738: ( p_count => x_msg_count,
7739: p_data => x_msg_data
7740: );
7741: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
7742: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
7743: ROLLBACK TO instantiate_ctr_pvt;
7744: FND_MSG_PUB.Count_And_Get
7745: ( p_count => x_msg_count,
7746: p_data => x_msg_data

Line 7749: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

7745: ( p_count => x_msg_count,
7746: p_data => x_msg_data
7747: );
7748: WHEN OTHERS THEN
7749: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
7750: ROLLBACK TO instantiate_ctr_pvt;
7751: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
7752: FND_MSG_PUB.Add_Exc_Msg
7753: ( G_PKG_NAME,

Line 8062: IF NOT FND_API.Compatible_API_Call (l_api_version,

8058: -- Standard Start of API savepoint
8059: SAVEPOINT instantiate_grp_counters;
8060:
8061: -- Standard call to check for call compatibility.
8062: IF NOT FND_API.Compatible_API_Call (l_api_version,
8063: p_api_version,
8064: l_api_name ,
8065: G_PKG_NAME ) THEN
8066: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 8066: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

8062: IF NOT FND_API.Compatible_API_Call (l_api_version,
8063: p_api_version,
8064: l_api_name ,
8065: G_PKG_NAME ) THEN
8066: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
8067: END IF;
8068:
8069: -- Initialize message list if p_init_msg_list is set to TRUE.
8070: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

Line 8070: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

8066: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
8067: END IF;
8068:
8069: -- Initialize message list if p_init_msg_list is set to TRUE.
8070: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
8071: FND_MSG_PUB.initialize;
8072: END IF;
8073:
8074: -- Initialize API return status to success

Line 8075: x_return_status := FND_API.G_RET_STS_SUCCESS;

8071: FND_MSG_PUB.initialize;
8072: END IF;
8073:
8074: -- Initialize API return status to success
8075: x_return_status := FND_API.G_RET_STS_SUCCESS;
8076:
8077: -- Read the debug profiles values in to global variable 7197402
8078: CSI_CTR_GEN_UTILITY_PVT.read_debug_profiles;
8079:

Line 8085: nvl(p_commit,FND_API.G_FALSE) ||'-'||

8081: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
8082: csi_ctr_gen_utility_pvt.put_line(
8083: 'instantiate_grp_counters'||'-'||
8084: p_api_version ||'-'||
8085: nvl(p_commit,FND_API.G_FALSE) ||'-'||
8086: nvl(p_init_msg_list,FND_API.G_FALSE)||'-'||
8087: nvl(l_validation_level,FND_API.G_VALID_LEVEL_FULL) );
8088: END IF;
8089:

Line 8086: nvl(p_init_msg_list,FND_API.G_FALSE)||'-'||

8082: csi_ctr_gen_utility_pvt.put_line(
8083: 'instantiate_grp_counters'||'-'||
8084: p_api_version ||'-'||
8085: nvl(p_commit,FND_API.G_FALSE) ||'-'||
8086: nvl(p_init_msg_list,FND_API.G_FALSE)||'-'||
8087: nvl(l_validation_level,FND_API.G_VALID_LEVEL_FULL) );
8088: END IF;
8089:
8090: l_source_object_cd := p_source_object_code_instance;

Line 8087: nvl(l_validation_level,FND_API.G_VALID_LEVEL_FULL) );

8083: 'instantiate_grp_counters'||'-'||
8084: p_api_version ||'-'||
8085: nvl(p_commit,FND_API.G_FALSE) ||'-'||
8086: nvl(p_init_msg_list,FND_API.G_FALSE)||'-'||
8087: nvl(l_validation_level,FND_API.G_VALID_LEVEL_FULL) );
8088: END IF;
8089:
8090: l_source_object_cd := p_source_object_code_instance;
8091: l_source_object_id_instance := p_source_object_id_instance;

Line 8162: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN

8158: ,x_msg_count => x_msg_count
8159: ,x_msg_data => x_msg_data
8160: );
8161:
8162: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN
8163: l_msg_index := 1;
8164: l_msg_count := x_msg_count;
8165:
8166: WHILE l_msg_count > 0 LOOP

Line 8169: FND_API.G_FALSE );

8165:
8166: WHILE l_msg_count > 0 LOOP
8167: x_msg_data := FND_MSG_PUB.GET
8168: (l_msg_index,
8169: FND_API.G_FALSE );
8170: csi_ctr_gen_utility_pvt.put_line('Error from CSI_COUNTER_TEMPLATE_PVT.CREATE_COUNTER_GROUP');
8171: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
8172: l_msg_index := l_msg_index + 1;
8173: l_msg_count := l_msg_count - 1;

Line 8175: RAISE FND_API.G_EXC_ERROR;

8171: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
8172: l_msg_index := l_msg_index + 1;
8173: l_msg_count := l_msg_count - 1;
8174: END LOOP;
8175: RAISE FND_API.G_EXC_ERROR;
8176: END IF;
8177:
8178: l_ctr_grp_id_instance := l_ctr_grp_rec.counter_group_id;
8179: x_ctr_grp_id_instance := l_ctr_grp_rec.counter_group_id;

Line 8300: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN

8296: x_msg_count => x_msg_count,
8297: x_msg_data => x_msg_data,
8298: x_ctr_id => l_new_ctr_id
8299: );
8300: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN
8301: l_msg_index := 1;
8302: l_msg_count := x_msg_count;
8303:
8304: WHILE l_msg_count > 0 LOOP

Line 8307: FND_API.G_FALSE );

8303:
8304: WHILE l_msg_count > 0 LOOP
8305: x_msg_data := FND_MSG_PUB.GET
8306: (l_msg_index,
8307: FND_API.G_FALSE );
8308: csi_ctr_gen_utility_pvt.put_line( ' Error from CSI_COUNTER_PVT.CREATE_COUNTER');
8309: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
8310: l_msg_index := l_msg_index + 1;
8311: l_msg_count := l_msg_count - 1;

Line 8313: RAISE FND_API.G_EXC_ERROR;

8309: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
8310: l_msg_index := l_msg_index + 1;
8311: l_msg_count := l_msg_count - 1;
8312: END LOOP;
8313: RAISE FND_API.G_EXC_ERROR;
8314: END IF;
8315:
8316: -- x_ctr_id_instance := l_counter_instance_rec.group_id;
8317: -- Create Counter Associations

Line 8338: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN

8334: ,x_msg_data => x_msg_data
8335: ,x_instance_association_id => l_instance_association_id
8336: );
8337:
8338: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN
8339: l_msg_index := 1;
8340: l_msg_count := x_msg_count;
8341:
8342: WHILE l_msg_count > 0 LOOP

Line 8345: FND_API.G_FALSE );

8341:
8342: WHILE l_msg_count > 0 LOOP
8343: x_msg_data := FND_MSG_PUB.GET
8344: (l_msg_index,
8345: FND_API.G_FALSE );
8346: csi_ctr_gen_utility_pvt.put_line( ' Error from CSI_COUNTER_PVT.CREATE_CTR_ASSOCIATIONS');
8347: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
8348: l_msg_index := l_msg_index + 1;
8349: l_msg_count := l_msg_count - 1;

Line 8351: RAISE FND_API.G_EXC_ERROR;

8347: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
8348: l_msg_index := l_msg_index + 1;
8349: l_msg_count := l_msg_count - 1;
8350: END LOOP;
8351: RAISE FND_API.G_EXC_ERROR;
8352: END IF;
8353: -- INstantiate all the properties for that counter.
8354:
8355: FOR ctr_prop_cur_rec IN ctr_prop_cur(ctr_cur_rec.counter_id) LOOP

Line 8408: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN

8404: ,x_msg_data => x_msg_data
8405: ,x_ctr_property_id => l_new_ctr_prop_id
8406: );
8407:
8408: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN
8409: l_msg_index := 1;
8410: l_msg_count := x_msg_count;
8411:
8412: WHILE l_msg_count > 0 LOOP

Line 8415: FND_API.G_FALSE );

8411:
8412: WHILE l_msg_count > 0 LOOP
8413: x_msg_data := FND_MSG_PUB.GET
8414: (l_msg_index,
8415: FND_API.G_FALSE );
8416: csi_ctr_gen_utility_pvt.put_line( ' Error from CSI_Counter_PVT.Create_Ctr_Property');
8417: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
8418: l_msg_index := l_msg_index + 1;
8419: l_msg_count := l_msg_count - 1;

Line 8421: RAISE FND_API.G_EXC_ERROR;

8417: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
8418: l_msg_index := l_msg_index + 1;
8419: l_msg_count := l_msg_count - 1;
8420: END LOOP;
8421: RAISE FND_API.G_EXC_ERROR;
8422: END IF;
8423:
8424: END LOOP;
8425:

Line 8458: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN

8454: ,x_msg_count => x_msg_count
8455: ,x_msg_data => x_msg_data
8456: );
8457:
8458: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN
8459: l_msg_index := 1;
8460: l_msg_count := x_msg_count;
8461:
8462: WHILE l_msg_count > 0 LOOP

Line 8465: FND_API.G_FALSE );

8461:
8462: WHILE l_msg_count > 0 LOOP
8463: x_msg_data := FND_MSG_PUB.GET
8464: (l_msg_index,
8465: FND_API.G_FALSE );
8466: csi_ctr_gen_utility_pvt.put_line( ' Error from CSI_COUNTER_TEMPLATE_PVT.CREATE_DERIVED_FILTERS');
8467: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
8468: l_msg_index := l_msg_index + 1;
8469: l_msg_count := l_msg_count - 1;

Line 8471: RAISE FND_API.G_EXC_ERROR;

8467: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
8468: l_msg_index := l_msg_index + 1;
8469: l_msg_count := l_msg_count - 1;
8470: END LOOP;
8471: RAISE FND_API.G_EXC_ERROR;
8472: END IF;
8473:
8474: END LOOP;
8475:

Line 8612: ,p_commit => fnd_api.g_false

8608:
8609: csi_counter_template_pvt.create_counter_relationship
8610: (
8611: p_api_version => p_api_version
8612: ,p_commit => fnd_api.g_false
8613: ,p_init_msg_list => p_init_msg_list
8614: ,p_validation_level => l_validation_level
8615: ,p_counter_relationships_rec => l_counter_relationships_rec
8616: ,x_return_status => x_return_status

Line 8627: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN

8623:
8624: -- x_ctr_id_template := p_counter_id_template;
8625: -- x_ctr_id_instance := l_new_ctr_id;
8626:
8627: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN
8628: COMMIT WORK;
8629: END IF;
8630:
8631: -- Standard call to get message count and IF count is get message info.

Line 8637: WHEN FND_API.G_EXC_ERROR THEN

8633: ( p_count => x_msg_count,
8634: p_data => x_msg_data
8635: );
8636: EXCEPTION
8637: WHEN FND_API.G_EXC_ERROR THEN
8638: x_return_status := FND_API.G_RET_STS_ERROR ;
8639: ROLLBACK TO instantiate_grp_counters;
8640: FND_MSG_PUB.Count_And_Get
8641: ( p_count => x_msg_count,

Line 8638: x_return_status := FND_API.G_RET_STS_ERROR ;

8634: p_data => x_msg_data
8635: );
8636: EXCEPTION
8637: WHEN FND_API.G_EXC_ERROR THEN
8638: x_return_status := FND_API.G_RET_STS_ERROR ;
8639: ROLLBACK TO instantiate_grp_counters;
8640: FND_MSG_PUB.Count_And_Get
8641: ( p_count => x_msg_count,
8642: p_data => x_msg_data

Line 8644: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN

8640: FND_MSG_PUB.Count_And_Get
8641: ( p_count => x_msg_count,
8642: p_data => x_msg_data
8643: );
8644: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
8645: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
8646: ROLLBACK TO instantiate_grp_counters;
8647: FND_MSG_PUB.Count_And_Get
8648: ( p_count => x_msg_count,

Line 8645: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

8641: ( p_count => x_msg_count,
8642: p_data => x_msg_data
8643: );
8644: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
8645: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
8646: ROLLBACK TO instantiate_grp_counters;
8647: FND_MSG_PUB.Count_And_Get
8648: ( p_count => x_msg_count,
8649: p_data => x_msg_data

Line 8652: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

8648: ( p_count => x_msg_count,
8649: p_data => x_msg_data
8650: );
8651: WHEN OTHERS THEN
8652: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
8653: ROLLBACK TO instantiate_grp_counters;
8654: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
8655: FND_MSG_PUB.Add_Exc_Msg
8656: ( G_PKG_NAME,

Line 8716: IF NOT FND_API.Compatible_API_Call (l_api_version,

8712: -- Standard Start of API savepoint
8713: SAVEPOINT delete_item_association_pvt;
8714:
8715: -- Standard call to check for call compatibility.
8716: IF NOT FND_API.Compatible_API_Call (l_api_version,
8717: p_api_version,
8718: l_api_name ,
8719: G_PKG_NAME ) THEN
8720: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 8720: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

8716: IF NOT FND_API.Compatible_API_Call (l_api_version,
8717: p_api_version,
8718: l_api_name ,
8719: G_PKG_NAME ) THEN
8720: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
8721: END IF;
8722:
8723: -- Initialize message list if p_init_msg_list is set to TRUE.
8724: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

Line 8724: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

8720: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
8721: END IF;
8722:
8723: -- Initialize message list if p_init_msg_list is set to TRUE.
8724: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
8725: FND_MSG_PUB.initialize;
8726: END IF;
8727:
8728: -- Initialize API return status to success

Line 8729: x_return_status := FND_API.G_RET_STS_SUCCESS;

8725: FND_MSG_PUB.initialize;
8726: END IF;
8727:
8728: -- Initialize API return status to success
8729: x_return_status := FND_API.G_RET_STS_SUCCESS;
8730:
8731: -- Read the debug profiles values in to global variable 7197402
8732: CSI_CTR_GEN_UTILITY_PVT.read_debug_profiles;
8733:

Line 8739: nvl(p_commit,FND_API.G_FALSE) ||'-'||

8735: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
8736: csi_ctr_gen_utility_pvt.put_line
8737: ( 'delete_item_association_pvt' ||'-'||
8738: p_api_version ||'-'||
8739: nvl(p_commit,FND_API.G_FALSE) ||'-'||
8740: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
8741: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
8742: END IF;
8743:

Line 8740: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||

8736: csi_ctr_gen_utility_pvt.put_line
8737: ( 'delete_item_association_pvt' ||'-'||
8738: p_api_version ||'-'||
8739: nvl(p_commit,FND_API.G_FALSE) ||'-'||
8740: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
8741: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
8742: END IF;
8743:
8744: if p_ctr_associations_id = FND_API.G_MISS_NUM then

Line 8741: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );

8737: ( 'delete_item_association_pvt' ||'-'||
8738: p_api_version ||'-'||
8739: nvl(p_commit,FND_API.G_FALSE) ||'-'||
8740: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
8741: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
8742: END IF;
8743:
8744: if p_ctr_associations_id = FND_API.G_MISS_NUM then
8745: l_ctr_associations_id := null;

Line 8744: if p_ctr_associations_id = FND_API.G_MISS_NUM then

8740: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
8741: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
8742: END IF;
8743:
8744: if p_ctr_associations_id = FND_API.G_MISS_NUM then
8745: l_ctr_associations_id := null;
8746: else
8747: l_ctr_associations_id := p_ctr_associations_id;
8748: end if;

Line 8786: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN

8782: /* Call the table Handler */
8783: CSI_CTR_ITEM_ASSOCIATIONS_PKG.Delete_Row
8784: (p_CTR_ASSOCIATION_ID => get_item_rec.ctr_association_id);
8785:
8786: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN
8787: ROLLBACK TO delete_item_association_pvt;
8788: RETURN;
8789: END IF;
8790: END LOOP;

Line 8797: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN

8793: /* Call the table Handler */
8794: CSI_CTR_ITEM_ASSOCIATIONS_PKG.Delete_Row
8795: (p_CTR_ASSOCIATION_ID => l_ctr_associations_id);
8796:
8797: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN
8798: ROLLBACK TO delete_item_association_pvt;
8799: RETURN;
8800: END IF;
8801: ELSE

Line 8824: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN

8820: /* Call the table Handler */
8821: CSI_CTR_ITEM_ASSOCIATIONS_PKG.Delete_Row
8822: (p_CTR_ASSOCIATION_ID => l_ctr_associations_id);
8823:
8824: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN
8825: ROLLBACK TO delete_item_association_pvt;
8826: RETURN;
8827: END IF;
8828: END IF;

Line 8835: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN

8831: WHEN OTHERS THEN
8832: CSI_CTR_GEN_UTILITY_PVT.ExitWithErrMsg('CSI_API_CTR_ITEM_DEL_NOTALLOW');
8833: END;
8834:
8835: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN
8836: COMMIT WORK;
8837: END IF;
8838:
8839: -- Standard call to get message count and IF count is get message info.

Line 8845: WHEN FND_API.G_EXC_ERROR THEN

8841: ( p_count => x_msg_count,
8842: p_data => x_msg_data
8843: );
8844: EXCEPTION
8845: WHEN FND_API.G_EXC_ERROR THEN
8846: x_return_status := FND_API.G_RET_STS_ERROR ;
8847: ROLLBACK TO delete_item_association_pvt;
8848: FND_MSG_PUB.Count_And_Get
8849: ( p_count => x_msg_count,

Line 8846: x_return_status := FND_API.G_RET_STS_ERROR ;

8842: p_data => x_msg_data
8843: );
8844: EXCEPTION
8845: WHEN FND_API.G_EXC_ERROR THEN
8846: x_return_status := FND_API.G_RET_STS_ERROR ;
8847: ROLLBACK TO delete_item_association_pvt;
8848: FND_MSG_PUB.Count_And_Get
8849: ( p_count => x_msg_count,
8850: p_data => x_msg_data

Line 8852: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN

8848: FND_MSG_PUB.Count_And_Get
8849: ( p_count => x_msg_count,
8850: p_data => x_msg_data
8851: );
8852: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
8853: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
8854: ROLLBACK TO delete_item_association_pvt;
8855: FND_MSG_PUB.Count_And_Get
8856: ( p_count => x_msg_count,

Line 8853: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

8849: ( p_count => x_msg_count,
8850: p_data => x_msg_data
8851: );
8852: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
8853: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
8854: ROLLBACK TO delete_item_association_pvt;
8855: FND_MSG_PUB.Count_And_Get
8856: ( p_count => x_msg_count,
8857: p_data => x_msg_data

Line 8860: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

8856: ( p_count => x_msg_count,
8857: p_data => x_msg_data
8858: );
8859: WHEN OTHERS THEN
8860: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
8861: ROLLBACK TO create_item_association_pvt;
8862: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
8863: FND_MSG_PUB.Add_Exc_Msg
8864: ( G_PKG_NAME,