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 COUNTER_ID <> Nvl(p_counter_id, FND_API.G_MISS_NUM);

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

Line 555: IF NOT FND_API.Compatible_API_Call (l_api_version,

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

Line 559: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

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

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

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

Line 568: x_return_status := FND_API.G_RET_STS_SUCCESS;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Line 735: -- RAISE FND_API.G_EXC_ERROR;

731: else
732: l_created_from_ctr_grp_tmpl_id := p_counter_groups_rec.created_from_ctr_grp_tmpl_id;
733: end if;
734: -- IF NOT(CS_COUNTERS_EXT_PVT.Is_StartEndDate_Valid(l_st_dt,l_end_dt)) THEN
735: -- RAISE FND_API.G_EXC_ERROR;
736: -- END IF;
737:
738: /* Call the table Handler */
739: CSI_GROUPING_PKG.Insert_Row(

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

776: );
777:
778: p_counter_groups_rec.counter_group_id := l_counter_group_id;
779:
780: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN
781: ROLLBACK TO create_counter_group_pvt;
782: RETURN;
783: END IF;
784:

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

783: END IF;
784:
785: /* End of table handler call */
786:
787: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN
788: COMMIT WORK;
789: END IF;
790:
791: -- Standard call to get message count and IF count is get message info.

Line 797: WHEN FND_API.G_EXC_ERROR THEN

793: ( p_count => x_msg_count,
794: p_data => x_msg_data
795: );
796: EXCEPTION
797: WHEN FND_API.G_EXC_ERROR THEN
798: x_return_status := FND_API.G_RET_STS_ERROR ;
799: ROLLBACK TO create_counter_group_pvt;
800: FND_MSG_PUB.Count_And_Get
801: ( p_count => x_msg_count,

Line 798: x_return_status := FND_API.G_RET_STS_ERROR ;

794: p_data => x_msg_data
795: );
796: EXCEPTION
797: WHEN FND_API.G_EXC_ERROR THEN
798: x_return_status := FND_API.G_RET_STS_ERROR ;
799: ROLLBACK TO create_counter_group_pvt;
800: FND_MSG_PUB.Count_And_Get
801: ( p_count => x_msg_count,
802: p_data => x_msg_data

Line 804: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN

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

Line 805: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

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

Line 812: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

808: ( p_count => x_msg_count,
809: p_data => x_msg_data
810: );
811: WHEN OTHERS THEN
812: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
813: ROLLBACK TO create_counter_group_pvt;
814: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
815: FND_MSG_PUB.Add_Exc_Msg
816: ( G_PKG_NAME,

Line 906: IF NOT FND_API.Compatible_API_Call (l_api_version,

902: -- Standard Start of API savepoint
903: SAVEPOINT create_item_association_pvt;
904:
905: -- Standard call to check for call compatibility.
906: IF NOT FND_API.Compatible_API_Call (l_api_version,
907: p_api_version,
908: l_api_name ,
909: G_PKG_NAME ) THEN
910: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 910: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

906: IF NOT FND_API.Compatible_API_Call (l_api_version,
907: p_api_version,
908: l_api_name ,
909: G_PKG_NAME ) THEN
910: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
911: END IF;
912:
913: -- Initialize message list if p_init_msg_list is set to TRUE.
914: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

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

910: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
911: END IF;
912:
913: -- Initialize message list if p_init_msg_list is set to TRUE.
914: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
915: FND_MSG_PUB.initialize;
916: END IF;
917:
918: -- Read the debug profiles values in to global variable 7197402

Line 922: x_return_status := FND_API.G_RET_STS_SUCCESS;

918: -- Read the debug profiles values in to global variable 7197402
919: CSI_CTR_GEN_UTILITY_PVT.read_debug_profiles;
920:
921: -- Initialize API return status to success
922: x_return_status := FND_API.G_RET_STS_SUCCESS;
923:
924: --
925: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
926: csi_ctr_gen_utility_pvt.put_line

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

925: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
926: csi_ctr_gen_utility_pvt.put_line
927: ( 'create_item_association_pvt' ||'-'||
928: p_api_version ||'-'||
929: nvl(p_commit,FND_API.G_FALSE) ||'-'||
930: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
931: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
932: END IF;
933:

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

926: csi_ctr_gen_utility_pvt.put_line
927: ( 'create_item_association_pvt' ||'-'||
928: p_api_version ||'-'||
929: nvl(p_commit,FND_API.G_FALSE) ||'-'||
930: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
931: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
932: END IF;
933:
934: if p_ctr_item_associations_rec.group_id = FND_API.G_MISS_NUM then

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

927: ( 'create_item_association_pvt' ||'-'||
928: p_api_version ||'-'||
929: nvl(p_commit,FND_API.G_FALSE) ||'-'||
930: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
931: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
932: END IF;
933:
934: if p_ctr_item_associations_rec.group_id = FND_API.G_MISS_NUM then
935: l_group_id := null;

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

930: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
931: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
932: END IF;
933:
934: if p_ctr_item_associations_rec.group_id = FND_API.G_MISS_NUM then
935: l_group_id := null;
936: else
937: l_group_id := p_ctr_item_associations_rec.group_id;
938: end if;

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

936: else
937: l_group_id := p_ctr_item_associations_rec.group_id;
938: end if;
939:
940: if p_ctr_item_associations_rec.inventory_item_id = FND_API.G_MISS_NUM then
941: l_inventory_item_id := null;
942: else
943: l_inventory_item_id := p_ctr_item_associations_rec.inventory_item_id;
944: end if;

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

942: else
943: l_inventory_item_id := p_ctr_item_associations_rec.inventory_item_id;
944: end if;
945:
946: if p_ctr_item_associations_rec.associated_to_group= FND_API.G_MISS_CHAR then
947: l_associated_to_group := 'N';
948: else
949: l_associated_to_group := p_ctr_item_associations_rec.associated_to_group;
950: end if;

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

948: else
949: l_associated_to_group := p_ctr_item_associations_rec.associated_to_group;
950: end if;
951:
952: if p_ctr_item_associations_rec.counter_id = FND_API.G_MISS_NUM then
953: l_counter_id := null;
954: else
955: l_counter_id := p_ctr_item_associations_rec.counter_id;
956: end if;

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

954: else
955: l_counter_id := p_ctr_item_associations_rec.counter_id;
956: end if;
957:
958: if p_ctr_item_associations_rec.security_group_id = FND_API.G_MISS_NUM then
959: l_security_group_id := null;
960: else
961: l_security_group_id := p_ctr_item_associations_rec.security_group_id;
962: end if;

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

960: else
961: l_security_group_id := p_ctr_item_associations_rec.security_group_id;
962: end if;
963:
964: if p_ctr_item_associations_rec.use_past_reading = FND_API.G_MISS_NUM then
965: l_use_past_reading := null;
966: else
967: l_use_past_reading := p_ctr_item_associations_rec.use_past_reading;
968: end if;

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

966: else
967: l_use_past_reading := p_ctr_item_associations_rec.use_past_reading;
968: end if;
969:
970: if p_ctr_item_associations_rec.usage_rate = FND_API.G_MISS_NUM then
971: l_usage_rate := null;
972: else
973: l_usage_rate := p_ctr_item_associations_rec.usage_rate;
974: end if;

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

972: else
973: l_usage_rate := p_ctr_item_associations_rec.usage_rate;
974: end if;
975:
976: if nvl(p_ctr_item_associations_rec.start_date_active, FND_API.G_MISS_DATE) = FND_API.G_MISS_DATE then
977: l_start_date_active := sysdate;
978: else
979: l_start_date_active := p_ctr_item_associations_rec.start_date_active;
980: end if;

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

1008: END IF;
1009: CLOSE c2_counter;
1010: END IF;
1011:
1012: if p_ctr_item_associations_rec.end_date_active = FND_API.G_MISS_DATE then
1013: l_end_date_active := null;
1014: else
1015: l_end_date_active := p_ctr_item_associations_rec.end_date_active;
1016: end if;

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

1020: CSI_CTR_GEN_UTILITY_PVT.ExitWithErrMsg('CSI_ALL_END_DATE');
1021: end if;
1022: end if;
1023:
1024: if p_ctr_item_associations_rec.attribute1 = FND_API.G_MISS_CHAR then
1025: l_attribute1 := null;
1026: else
1027: l_attribute1 := p_ctr_item_associations_rec.attribute1;
1028: end if;

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

1026: else
1027: l_attribute1 := p_ctr_item_associations_rec.attribute1;
1028: end if;
1029:
1030: if p_ctr_item_associations_rec.attribute2 = FND_API.G_MISS_CHAR then
1031: l_attribute2 := null;
1032: else
1033: l_attribute2 := p_ctr_item_associations_rec.attribute2;
1034: end if;

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

1032: else
1033: l_attribute2 := p_ctr_item_associations_rec.attribute2;
1034: end if;
1035:
1036: if p_ctr_item_associations_rec.attribute3 = FND_API.G_MISS_CHAR then
1037: l_attribute3 := null;
1038: else
1039: l_attribute3 := p_ctr_item_associations_rec.attribute3;
1040: end if;

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

1038: else
1039: l_attribute3 := p_ctr_item_associations_rec.attribute3;
1040: end if;
1041:
1042: if p_ctr_item_associations_rec.attribute4 = FND_API.G_MISS_CHAR then
1043: l_attribute4 := null;
1044: else
1045: l_attribute4 := p_ctr_item_associations_rec.attribute4;
1046: end if;

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

1044: else
1045: l_attribute4 := p_ctr_item_associations_rec.attribute4;
1046: end if;
1047:
1048: if p_ctr_item_associations_rec.attribute5 = FND_API.G_MISS_CHAR then
1049: l_attribute5 := null;
1050: else
1051: l_attribute5 := p_ctr_item_associations_rec.attribute5;
1052: end if;

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

1050: else
1051: l_attribute5 := p_ctr_item_associations_rec.attribute5;
1052: end if;
1053:
1054: if p_ctr_item_associations_rec.attribute6 = FND_API.G_MISS_CHAR then
1055: l_attribute6 := null;
1056: else
1057: l_attribute6 := p_ctr_item_associations_rec.attribute6;
1058: end if;

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

1056: else
1057: l_attribute6 := p_ctr_item_associations_rec.attribute6;
1058: end if;
1059:
1060: if p_ctr_item_associations_rec.attribute7 = FND_API.G_MISS_CHAR then
1061: l_attribute7 := null;
1062: else
1063: l_attribute7 := p_ctr_item_associations_rec.attribute7;
1064: end if;

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

1062: else
1063: l_attribute7 := p_ctr_item_associations_rec.attribute7;
1064: end if;
1065:
1066: if p_ctr_item_associations_rec.attribute8 = FND_API.G_MISS_CHAR then
1067: l_attribute8 := null;
1068: else
1069: l_attribute8 := p_ctr_item_associations_rec.attribute8;
1070: end if;

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

1068: else
1069: l_attribute8 := p_ctr_item_associations_rec.attribute8;
1070: end if;
1071:
1072: if p_ctr_item_associations_rec.attribute9 = FND_API.G_MISS_CHAR then
1073: l_attribute9 := null;
1074: else
1075: l_attribute9 := p_ctr_item_associations_rec.attribute9;
1076: end if;

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

1074: else
1075: l_attribute9 := p_ctr_item_associations_rec.attribute9;
1076: end if;
1077:
1078: if p_ctr_item_associations_rec.attribute10 = FND_API.G_MISS_CHAR then
1079: l_attribute10 := null;
1080: else
1081: l_attribute10 := p_ctr_item_associations_rec.attribute10;
1082: end if;

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

1080: else
1081: l_attribute10 := p_ctr_item_associations_rec.attribute10;
1082: end if;
1083:
1084: if p_ctr_item_associations_rec.attribute11 = FND_API.G_MISS_CHAR then
1085: l_attribute11 := null;
1086: else
1087: l_attribute11 := p_ctr_item_associations_rec.attribute11;
1088: end if;

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

1086: else
1087: l_attribute11 := p_ctr_item_associations_rec.attribute11;
1088: end if;
1089:
1090: if p_ctr_item_associations_rec.attribute12 = FND_API.G_MISS_CHAR then
1091: l_attribute12 := null;
1092: else
1093: l_attribute12 := p_ctr_item_associations_rec.attribute12;
1094: end if;

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

1092: else
1093: l_attribute12 := p_ctr_item_associations_rec.attribute12;
1094: end if;
1095:
1096: if p_ctr_item_associations_rec.attribute13 = FND_API.G_MISS_CHAR then
1097: l_attribute13 := null;
1098: else
1099: l_attribute13 := p_ctr_item_associations_rec.attribute13;
1100: end if;

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

1098: else
1099: l_attribute13 := p_ctr_item_associations_rec.attribute13;
1100: end if;
1101:
1102: if p_ctr_item_associations_rec.attribute14 = FND_API.G_MISS_CHAR then
1103: l_attribute14 := null;
1104: else
1105: l_attribute14 := p_ctr_item_associations_rec.attribute14;
1106: end if;

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

1104: else
1105: l_attribute14 := p_ctr_item_associations_rec.attribute14;
1106: end if;
1107:
1108: if p_ctr_item_associations_rec.attribute15 = FND_API.G_MISS_CHAR then
1109: l_attribute15 := null;
1110: else
1111: l_attribute15 := p_ctr_item_associations_rec.attribute15;
1112: end if;

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

1110: else
1111: l_attribute15 := p_ctr_item_associations_rec.attribute15;
1112: end if;
1113:
1114: if p_ctr_item_associations_rec.attribute_category = FND_API.G_MISS_CHAR then
1115: l_attribute_category := null;
1116: else
1117: l_attribute_category := p_ctr_item_associations_rec.attribute_category;
1118: end if;

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

1116: else
1117: l_attribute_category := p_ctr_item_associations_rec.attribute_category;
1118: end if;
1119:
1120: if p_ctr_item_associations_rec.migrated_flag = FND_API.G_MISS_CHAR then
1121: l_migrated_flag := null;
1122: else
1123: l_migrated_flag := p_ctr_item_associations_rec.migrated_flag;
1124: end if;

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

1122: else
1123: l_migrated_flag := p_ctr_item_associations_rec.migrated_flag;
1124: end if;
1125:
1126: if p_ctr_item_associations_rec.maint_organization_id = FND_API.G_MISS_NUM then
1127: l_maint_organization_id := null;
1128: else
1129: l_maint_organization_id := p_ctr_item_associations_rec.maint_organization_id;
1130: end if;

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

1128: else
1129: l_maint_organization_id := p_ctr_item_associations_rec.maint_organization_id;
1130: end if;
1131:
1132: if p_ctr_item_associations_rec.primary_failure_flag = FND_API.G_MISS_CHAR then
1133: l_primary_failure_flag := null;
1134: else
1135: l_primary_failure_flag := p_ctr_item_associations_rec.primary_failure_flag;
1136: end if;

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

1275: ,p_PRIMARY_FAILURE_FLAG => l_primary_failure_flag
1276: );
1277:
1278:
1279: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN
1280: ROLLBACK TO create_item_association_pvt;
1281: RETURN;
1282: END IF;
1283:

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

1282: END IF;
1283:
1284: /* End of table handler call */
1285:
1286: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN
1287: COMMIT WORK;
1288: END IF;
1289:
1290: -- Standard call to get message count and IF count is get message info.

Line 1296: WHEN FND_API.G_EXC_ERROR THEN

1292: ( p_count => x_msg_count,
1293: p_data => x_msg_data
1294: );
1295: EXCEPTION
1296: WHEN FND_API.G_EXC_ERROR THEN
1297: x_return_status := FND_API.G_RET_STS_ERROR ;
1298: ROLLBACK TO create_item_association_pvt;
1299: FND_MSG_PUB.Count_And_Get
1300: ( p_count => x_msg_count,

Line 1297: x_return_status := FND_API.G_RET_STS_ERROR ;

1293: p_data => x_msg_data
1294: );
1295: EXCEPTION
1296: WHEN FND_API.G_EXC_ERROR THEN
1297: x_return_status := FND_API.G_RET_STS_ERROR ;
1298: ROLLBACK TO create_item_association_pvt;
1299: FND_MSG_PUB.Count_And_Get
1300: ( p_count => x_msg_count,
1301: p_data => x_msg_data

Line 1303: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN

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

Line 1304: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

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

Line 1311: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

1307: ( p_count => x_msg_count,
1308: p_data => x_msg_data
1309: );
1310: WHEN OTHERS THEN
1311: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
1312: ROLLBACK TO create_item_association_pvt;
1313: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
1314: FND_MSG_PUB.Add_Exc_Msg
1315: ( G_PKG_NAME,

Line 1433: IF NOT FND_API.Compatible_API_Call (l_api_version,

1429: -- Standard Start of API savepoint
1430: SAVEPOINT create_counter_template_pvt;
1431:
1432: -- Standard call to check for call compatibility.
1433: IF NOT FND_API.Compatible_API_Call (l_api_version,
1434: p_api_version,
1435: l_api_name ,
1436: G_PKG_NAME ) THEN
1437: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 1437: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

1433: IF NOT FND_API.Compatible_API_Call (l_api_version,
1434: p_api_version,
1435: l_api_name ,
1436: G_PKG_NAME ) THEN
1437: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
1438: END IF;
1439:
1440: -- Initialize message list if p_init_msg_list is set to TRUE.
1441: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

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

1437: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
1438: END IF;
1439:
1440: -- Initialize message list if p_init_msg_list is set to TRUE.
1441: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
1442: FND_MSG_PUB.initialize;
1443: END IF;
1444:
1445: -- Read the debug profiles values in to global variable 7197402

Line 1449: x_return_status := FND_API.G_RET_STS_SUCCESS;

1445: -- Read the debug profiles values in to global variable 7197402
1446: CSI_CTR_GEN_UTILITY_PVT.read_debug_profiles;
1447:
1448: -- Initialize API return status to success
1449: x_return_status := FND_API.G_RET_STS_SUCCESS;
1450:
1451: --
1452: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
1453: csi_ctr_gen_utility_pvt.put_line

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

1452: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
1453: csi_ctr_gen_utility_pvt.put_line
1454: ( 'create_counter_template_pvt' ||'-'||
1455: p_api_version ||'-'||
1456: nvl(p_commit,FND_API.G_FALSE) ||'-'||
1457: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
1458: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
1459: END IF;
1460:

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

1453: csi_ctr_gen_utility_pvt.put_line
1454: ( 'create_counter_template_pvt' ||'-'||
1455: p_api_version ||'-'||
1456: nvl(p_commit,FND_API.G_FALSE) ||'-'||
1457: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
1458: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
1459: END IF;
1460:
1461: if p_counter_template_rec.group_id = FND_API.G_MISS_NUM then

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

1454: ( 'create_counter_template_pvt' ||'-'||
1455: p_api_version ||'-'||
1456: nvl(p_commit,FND_API.G_FALSE) ||'-'||
1457: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
1458: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
1459: END IF;
1460:
1461: if p_counter_template_rec.group_id = FND_API.G_MISS_NUM then
1462: l_group_id := null;

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

1457: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
1458: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
1459: END IF;
1460:
1461: if p_counter_template_rec.group_id = FND_API.G_MISS_NUM then
1462: l_group_id := null;
1463: else
1464: l_group_id := p_counter_template_rec.group_id;
1465: end if;

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

1463: else
1464: l_group_id := p_counter_template_rec.group_id;
1465: end if;
1466:
1467: if p_counter_template_rec.counter_id = FND_API.G_MISS_NUM then
1468: l_counter_id := null;
1469: else
1470: l_counter_id := p_counter_template_rec.counter_id;
1471: end if;

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

1469: else
1470: l_counter_id := p_counter_template_rec.counter_id;
1471: end if;
1472:
1473: if p_counter_template_rec.name = FND_API.G_MISS_CHAR then
1474: l_name := null;
1475: else
1476: l_name := p_counter_template_rec.name;
1477: end if;

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

1475: else
1476: l_name := p_counter_template_rec.name;
1477: end if;
1478:
1479: if p_counter_template_rec.description = FND_API.G_MISS_CHAR then
1480: l_description := null;
1481: else
1482: l_description := p_counter_template_rec.description;
1483: end if;

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

1481: else
1482: l_description := p_counter_template_rec.description;
1483: end if;
1484:
1485: if p_counter_template_rec.counter_type = FND_API.G_MISS_CHAR then
1486: l_counter_type := null;
1487: else
1488: l_counter_type := p_counter_template_rec.counter_type;
1489: end if;

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

1487: else
1488: l_counter_type := p_counter_template_rec.counter_type;
1489: end if;
1490:
1491: if p_counter_template_rec.uom_code = FND_API.G_MISS_CHAR then
1492: l_uom_code := null;
1493: else
1494: l_uom_code := p_counter_template_rec.uom_code;
1495: end if;

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

1493: else
1494: l_uom_code := p_counter_template_rec.uom_code;
1495: end if;
1496:
1497: if p_counter_template_rec.usage_item_id = FND_API.G_MISS_NUM then
1498: l_usage_item_id := null;
1499: else
1500: l_usage_item_id := p_counter_template_rec.usage_item_id;
1501: end if;

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

1499: else
1500: l_usage_item_id := p_counter_template_rec.usage_item_id;
1501: end if;
1502:
1503: if p_counter_template_rec.reading_type = FND_API.G_MISS_NUM then
1504: l_reading_type := null;
1505: else
1506: l_reading_type := p_counter_template_rec.reading_type;
1507: end if;

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

1505: else
1506: l_reading_type := p_counter_template_rec.reading_type;
1507: end if;
1508:
1509: if p_counter_template_rec.step_value = FND_API.G_MISS_NUM then
1510: l_step_value := null;
1511: else
1512: l_step_value := p_counter_template_rec.step_value;
1513: end if;

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

1511: else
1512: l_step_value := p_counter_template_rec.step_value;
1513: end if;
1514:
1515: if p_counter_template_rec.direction = FND_API.G_MISS_CHAR then
1516: l_direction := null;
1517: else
1518: l_direction := p_counter_template_rec.direction;
1519: end if;

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

1517: else
1518: l_direction := p_counter_template_rec.direction;
1519: end if;
1520:
1521: if p_counter_template_rec.estimation_id = FND_API.G_MISS_NUM then
1522: l_estimation_id := null;
1523: else
1524: l_estimation_id := p_counter_template_rec.estimation_id;
1525: end if;

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

1523: else
1524: l_estimation_id := p_counter_template_rec.estimation_id;
1525: end if;
1526:
1527: if p_counter_template_rec.derive_function = FND_API.G_MISS_CHAR then
1528: l_derive_function := null;
1529: else
1530: l_derive_function := p_counter_template_rec.derive_function;
1531: end if;

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

1529: else
1530: l_derive_function := p_counter_template_rec.derive_function;
1531: end if;
1532:
1533: if p_counter_template_rec.formula_text = FND_API.G_MISS_CHAR then
1534: l_formula_text := null;
1535: else
1536: l_formula_text := p_counter_template_rec.formula_text;
1537: end if;

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

1535: else
1536: l_formula_text := p_counter_template_rec.formula_text;
1537: end if;
1538:
1539: if p_counter_template_rec.derive_counter_id = FND_API.G_MISS_NUM then
1540: l_derive_counter_id := null;
1541: else
1542: l_derive_counter_id := p_counter_template_rec.derive_counter_id;
1543: end if;

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

1541: else
1542: l_derive_counter_id := p_counter_template_rec.derive_counter_id;
1543: end if;
1544:
1545: if p_counter_template_rec.filter_type = FND_API.G_MISS_CHAR then
1546: l_filter_type := null;
1547: else
1548: l_filter_type := p_counter_template_rec.filter_type;
1549: end if;

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

1547: else
1548: l_filter_type := p_counter_template_rec.filter_type;
1549: end if;
1550:
1551: if p_counter_template_rec.filter_reading_count = FND_API.G_MISS_NUM then
1552: l_filter_reading_count := null;
1553: else
1554: l_filter_reading_count := p_counter_template_rec.filter_reading_count;
1555: end if;

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

1553: else
1554: l_filter_reading_count := p_counter_template_rec.filter_reading_count;
1555: end if;
1556:
1557: if p_counter_template_rec.filter_time_uom = FND_API.G_MISS_CHAR then
1558: l_filter_time_uom := null;
1559: else
1560: l_filter_time_uom := p_counter_template_rec.filter_time_uom;
1561: end if;

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

1559: else
1560: l_filter_time_uom := p_counter_template_rec.filter_time_uom;
1561: end if;
1562:
1563: if p_counter_template_rec.automatic_rollover = FND_API.G_MISS_CHAR then
1564: l_automatic_rollover := null;
1565: else
1566: l_automatic_rollover := p_counter_template_rec.automatic_rollover;
1567: end if;

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

1565: else
1566: l_automatic_rollover := p_counter_template_rec.automatic_rollover;
1567: end if;
1568:
1569: if p_counter_template_rec.rollover_last_reading = FND_API.G_MISS_NUM then
1570: l_rollover_last_reading := null;
1571: else
1572: l_rollover_last_reading := p_counter_template_rec.rollover_last_reading;
1573: end if;

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

1571: else
1572: l_rollover_last_reading := p_counter_template_rec.rollover_last_reading;
1573: end if;
1574:
1575: if p_counter_template_rec.rollover_first_reading = FND_API.G_MISS_NUM then
1576: l_rollover_first_reading := null;
1577: else
1578: l_rollover_first_reading := p_counter_template_rec.rollover_first_reading;
1579: end if;

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

1577: else
1578: l_rollover_first_reading := p_counter_template_rec.rollover_first_reading;
1579: end if;
1580:
1581: if p_counter_template_rec.tolerance_plus = FND_API.G_MISS_NUM then
1582: l_tolerance_plus := null;
1583: else
1584: l_tolerance_plus := p_counter_template_rec.tolerance_plus;
1585: end if;

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

1583: else
1584: l_tolerance_plus := p_counter_template_rec.tolerance_plus;
1585: end if;
1586:
1587: if p_counter_template_rec.security_group_id = FND_API.G_MISS_NUM then
1588: l_security_group_id := null;
1589: else
1590: l_security_group_id := p_counter_template_rec.security_group_id;
1591: end if;

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

1589: else
1590: l_security_group_id := p_counter_template_rec.security_group_id;
1591: end if;
1592:
1593: if p_counter_template_rec.tolerance_minus = FND_API.G_MISS_NUM then
1594: l_tolerance_minus := null;
1595: else
1596: l_tolerance_minus := p_counter_template_rec.tolerance_minus;
1597: end if;

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

1595: else
1596: l_tolerance_minus := p_counter_template_rec.tolerance_minus;
1597: end if;
1598:
1599: if p_counter_template_rec.used_in_scheduling = FND_API.G_MISS_CHAR then
1600: l_used_in_scheduling := null;
1601: else
1602: l_used_in_scheduling := p_counter_template_rec.used_in_scheduling;
1603: end if;

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

1601: else
1602: l_used_in_scheduling := p_counter_template_rec.used_in_scheduling;
1603: end if;
1604:
1605: if p_counter_template_rec.initial_reading = FND_API.G_MISS_NUM then
1606: l_initial_reading := null;
1607: else
1608: l_initial_reading := p_counter_template_rec.initial_reading;
1609: end if;

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

1607: else
1608: l_initial_reading := p_counter_template_rec.initial_reading;
1609: end if;
1610:
1611: if p_counter_template_rec.default_usage_rate = FND_API.G_MISS_NUM then
1612: l_default_usage_rate := null;
1613: else
1614: l_default_usage_rate := p_counter_template_rec.default_usage_rate;
1615: end if;

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

1613: else
1614: l_default_usage_rate := p_counter_template_rec.default_usage_rate;
1615: end if;
1616:
1617: if p_counter_template_rec.use_past_reading = FND_API.G_MISS_NUM then
1618: l_use_past_reading := null;
1619: else
1620: l_use_past_reading := p_counter_template_rec.use_past_reading;
1621: end if;

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

1619: else
1620: l_use_past_reading := p_counter_template_rec.use_past_reading;
1621: end if;
1622:
1623: if nvl(p_counter_template_rec.start_date_active,FND_API.G_MISS_DATE) = FND_API.G_MISS_DATE then
1624: l_start_date_active := sysdate;
1625: else
1626: l_start_date_active := p_counter_template_rec.start_date_active;
1627: end if;

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

1641: CLOSE c1_group;
1642:
1643: END IF;
1644:
1645: if p_counter_template_rec.end_date_active = FND_API.G_MISS_DATE then
1646: l_end_date_active := null;
1647: else
1648: l_end_date_active := p_counter_template_rec.end_date_active;
1649: end if;

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

1653: CSI_CTR_GEN_UTILITY_PVT.ExitWithErrMsg('CSI_ALL_END_DATE');
1654: end if;
1655: end if;
1656:
1657: if p_counter_template_rec.attribute1 = FND_API.G_MISS_CHAR then
1658: l_attribute1 := null;
1659: else
1660: l_attribute1 := p_counter_template_rec.attribute1;
1661: end if;

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

1659: else
1660: l_attribute1 := p_counter_template_rec.attribute1;
1661: end if;
1662:
1663: if p_counter_template_rec.attribute2 = FND_API.G_MISS_CHAR then
1664: l_attribute2 := null;
1665: else
1666: l_attribute2 := p_counter_template_rec.attribute2;
1667: end if;

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

1665: else
1666: l_attribute2 := p_counter_template_rec.attribute2;
1667: end if;
1668:
1669: if p_counter_template_rec.attribute3 = FND_API.G_MISS_CHAR then
1670: l_attribute3 := null;
1671: else
1672: l_attribute3 := p_counter_template_rec.attribute3;
1673: end if;

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

1671: else
1672: l_attribute3 := p_counter_template_rec.attribute3;
1673: end if;
1674:
1675: if p_counter_template_rec.attribute4 = FND_API.G_MISS_CHAR then
1676: l_attribute4 := null;
1677: else
1678: l_attribute4 := p_counter_template_rec.attribute4;
1679: end if;

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

1677: else
1678: l_attribute4 := p_counter_template_rec.attribute4;
1679: end if;
1680:
1681: if p_counter_template_rec.attribute5 = FND_API.G_MISS_CHAR then
1682: l_attribute5 := null;
1683: else
1684: l_attribute5 := p_counter_template_rec.attribute5;
1685: end if;

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

1683: else
1684: l_attribute5 := p_counter_template_rec.attribute5;
1685: end if;
1686:
1687: if p_counter_template_rec.attribute6 = FND_API.G_MISS_CHAR then
1688: l_attribute6 := null;
1689: else
1690: l_attribute6 := p_counter_template_rec.attribute6;
1691: end if;

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

1689: else
1690: l_attribute6 := p_counter_template_rec.attribute6;
1691: end if;
1692:
1693: if p_counter_template_rec.attribute7 = FND_API.G_MISS_CHAR then
1694: l_attribute7 := null;
1695: else
1696: l_attribute7 := p_counter_template_rec.attribute7;
1697: end if;

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

1695: else
1696: l_attribute7 := p_counter_template_rec.attribute7;
1697: end if;
1698:
1699: if p_counter_template_rec.attribute8 = FND_API.G_MISS_CHAR then
1700: l_attribute8 := null;
1701: else
1702: l_attribute8 := p_counter_template_rec.attribute8;
1703: end if;

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

1701: else
1702: l_attribute8 := p_counter_template_rec.attribute8;
1703: end if;
1704:
1705: if p_counter_template_rec.attribute9 = FND_API.G_MISS_CHAR then
1706: l_attribute9 := null;
1707: else
1708: l_attribute9 := p_counter_template_rec.attribute9;
1709: end if;

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

1707: else
1708: l_attribute9 := p_counter_template_rec.attribute9;
1709: end if;
1710:
1711: if p_counter_template_rec.attribute10 = FND_API.G_MISS_CHAR then
1712: l_attribute10 := null;
1713: else
1714: l_attribute10 := p_counter_template_rec.attribute10;
1715: end if;

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

1713: else
1714: l_attribute10 := p_counter_template_rec.attribute10;
1715: end if;
1716:
1717: if p_counter_template_rec.attribute11 = FND_API.G_MISS_CHAR then
1718: l_attribute11 := null;
1719: else
1720: l_attribute11 := p_counter_template_rec.attribute11;
1721: end if;

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

1719: else
1720: l_attribute11 := p_counter_template_rec.attribute11;
1721: end if;
1722:
1723: if p_counter_template_rec.attribute12 = FND_API.G_MISS_CHAR then
1724: l_attribute12 := null;
1725: else
1726: l_attribute12 := p_counter_template_rec.attribute12;
1727: end if;

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

1725: else
1726: l_attribute12 := p_counter_template_rec.attribute12;
1727: end if;
1728:
1729: if p_counter_template_rec.attribute13 = FND_API.G_MISS_CHAR then
1730: l_attribute13 := null;
1731: else
1732: l_attribute13 := p_counter_template_rec.attribute13;
1733: end if;

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

1731: else
1732: l_attribute13 := p_counter_template_rec.attribute13;
1733: end if;
1734:
1735: if p_counter_template_rec.attribute14 = FND_API.G_MISS_CHAR then
1736: l_attribute14 := null;
1737: else
1738: l_attribute14 := p_counter_template_rec.attribute14;
1739: end if;

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

1737: else
1738: l_attribute14 := p_counter_template_rec.attribute14;
1739: end if;
1740:
1741: if p_counter_template_rec.attribute15 = FND_API.G_MISS_CHAR then
1742: l_attribute15 := null;
1743: else
1744: l_attribute15 := p_counter_template_rec.attribute15;
1745: end if;

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

1743: else
1744: l_attribute15 := p_counter_template_rec.attribute15;
1745: end if;
1746:
1747: if p_counter_template_rec.attribute16 = FND_API.G_MISS_CHAR then
1748: l_attribute16 := null;
1749: else
1750: l_attribute16 := p_counter_template_rec.attribute16;
1751: end if;

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

1749: else
1750: l_attribute16 := p_counter_template_rec.attribute16;
1751: end if;
1752:
1753: if p_counter_template_rec.attribute17 = FND_API.G_MISS_CHAR then
1754: l_attribute17 := null;
1755: else
1756: l_attribute17 := p_counter_template_rec.attribute17;
1757: end if;

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

1755: else
1756: l_attribute17 := p_counter_template_rec.attribute17;
1757: end if;
1758:
1759: if p_counter_template_rec.attribute18 = FND_API.G_MISS_CHAR then
1760: l_attribute18 := null;
1761: else
1762: l_attribute18 := p_counter_template_rec.attribute18;
1763: end if;

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

1761: else
1762: l_attribute18 := p_counter_template_rec.attribute18;
1763: end if;
1764:
1765: if p_counter_template_rec.attribute19 = FND_API.G_MISS_CHAR then
1766: l_attribute19 := null;
1767: else
1768: l_attribute19 := p_counter_template_rec.attribute19;
1769: end if;

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

1767: else
1768: l_attribute19 := p_counter_template_rec.attribute19;
1769: end if;
1770:
1771: if p_counter_template_rec.attribute20 = FND_API.G_MISS_CHAR then
1772: l_attribute20 := null;
1773: else
1774: l_attribute20 := p_counter_template_rec.attribute20;
1775: end if;

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

1773: else
1774: l_attribute20 := p_counter_template_rec.attribute20;
1775: end if;
1776:
1777: if p_counter_template_rec.attribute21 = FND_API.G_MISS_CHAR then
1778: l_attribute21 := null;
1779: else
1780: l_attribute21 := p_counter_template_rec.attribute21;
1781: end if;

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

1779: else
1780: l_attribute21 := p_counter_template_rec.attribute21;
1781: end if;
1782:
1783: if p_counter_template_rec.attribute22 = FND_API.G_MISS_CHAR then
1784: l_attribute22 := null;
1785: else
1786: l_attribute22 := p_counter_template_rec.attribute22;
1787: end if;

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

1785: else
1786: l_attribute22 := p_counter_template_rec.attribute22;
1787: end if;
1788:
1789: if p_counter_template_rec.attribute23 = FND_API.G_MISS_CHAR then
1790: l_attribute23 := null;
1791: else
1792: l_attribute23 := p_counter_template_rec.attribute23;
1793: end if;

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

1791: else
1792: l_attribute23 := p_counter_template_rec.attribute23;
1793: end if;
1794:
1795: if p_counter_template_rec.attribute24 = FND_API.G_MISS_CHAR then
1796: l_attribute24 := null;
1797: else
1798: l_attribute24 := p_counter_template_rec.attribute24;
1799: end if;

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

1797: else
1798: l_attribute24 := p_counter_template_rec.attribute24;
1799: end if;
1800:
1801: if p_counter_template_rec.attribute25 = FND_API.G_MISS_CHAR then
1802: l_attribute25 := null;
1803: else
1804: l_attribute25 := p_counter_template_rec.attribute25;
1805: end if;

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

1803: else
1804: l_attribute25 := p_counter_template_rec.attribute25;
1805: end if;
1806:
1807: if p_counter_template_rec.attribute26 = FND_API.G_MISS_CHAR then
1808: l_attribute26 := null;
1809: else
1810: l_attribute26 := p_counter_template_rec.attribute26;
1811: end if;

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

1809: else
1810: l_attribute26 := p_counter_template_rec.attribute26;
1811: end if;
1812:
1813: if p_counter_template_rec.attribute27 = FND_API.G_MISS_CHAR then
1814: l_attribute27 := null;
1815: else
1816: l_attribute27 := p_counter_template_rec.attribute27;
1817: end if;

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

1815: else
1816: l_attribute27 := p_counter_template_rec.attribute27;
1817: end if;
1818:
1819: if p_counter_template_rec.attribute28 = FND_API.G_MISS_CHAR then
1820: l_attribute28 := null;
1821: else
1822: l_attribute28 := p_counter_template_rec.attribute28;
1823: end if;

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

1821: else
1822: l_attribute28 := p_counter_template_rec.attribute28;
1823: end if;
1824:
1825: if p_counter_template_rec.attribute29 = FND_API.G_MISS_CHAR then
1826: l_attribute29 := null;
1827: else
1828: l_attribute29 := p_counter_template_rec.attribute29;
1829: end if;

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

1827: else
1828: l_attribute29 := p_counter_template_rec.attribute29;
1829: end if;
1830:
1831: if p_counter_template_rec.attribute30 = FND_API.G_MISS_CHAR then
1832: l_attribute30 := null;
1833: else
1834: l_attribute30 := p_counter_template_rec.attribute30;
1835: end if;

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

1833: else
1834: l_attribute30 := p_counter_template_rec.attribute30;
1835: end if;
1836:
1837: if p_counter_template_rec.attribute_category = FND_API.G_MISS_CHAR then
1838: l_attribute_category := null;
1839: else
1840: l_attribute_category := p_counter_template_rec.attribute_category;
1841: end if;

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

1839: else
1840: l_attribute_category := p_counter_template_rec.attribute_category;
1841: end if;
1842:
1843: if p_counter_template_rec.association_type = FND_API.G_MISS_CHAR then
1844: l_association_type := null;
1845: else
1846: l_association_type := p_counter_template_rec.association_type;
1847: end if;

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

1849: if l_association_type is null then
1850: l_association_type := 'TRACKABLE';
1851: end if;
1852:
1853: if p_counter_template_rec.group_id = FND_API.G_MISS_NUM then
1854: l_group_id := null;
1855: else
1856: l_group_id := p_counter_template_rec.group_id;
1857: end if;

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

1855: else
1856: l_group_id := p_counter_template_rec.group_id;
1857: end if;
1858:
1859: if p_counter_template_rec.time_based_manual_entry = FND_API.G_MISS_CHAR then
1860: l_time_based_manual_entry := 'N';
1861: else
1862: l_time_based_manual_entry := p_counter_template_rec.time_based_manual_entry;
1863: end if;

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

1861: else
1862: l_time_based_manual_entry := p_counter_template_rec.time_based_manual_entry;
1863: end if;
1864:
1865: if p_counter_template_rec.eam_required_flag = FND_API.G_MISS_CHAR then
1866: l_eam_required_flag := null;
1867: else
1868: l_eam_required_flag := p_counter_template_rec.eam_required_flag;
1869: end if;

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

1867: else
1868: l_eam_required_flag := p_counter_template_rec.eam_required_flag;
1869: end if;
1870:
1871: if nvl(p_counter_template_rec.initial_reading_date, FND_API.G_MISS_DATE) = FND_API.G_MISS_DATE then
1872: l_initial_reading_date := sysdate;
1873: else
1874: l_initial_reading_date := p_counter_template_rec.initial_reading_date;
1875: end if;

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

1889: ,x_msg_count => x_msg_count
1890: ,x_msg_data => x_msg_data
1891: );
1892:
1893: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN
1894: l_msg_index := 1;
1895: l_msg_count := x_msg_count;
1896:
1897: WHILE l_msg_count > 0 LOOP

Line 1900: FND_API.G_FALSE );

1896:
1897: WHILE l_msg_count > 0 LOOP
1898: x_msg_data := FND_MSG_PUB.GET
1899: (l_msg_index,
1900: FND_API.G_FALSE );
1901: csi_ctr_gen_utility_pvt.put_line('Error from CSI_COUNTER_PVT.CREATE_COUNTER_GROUP');
1902: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
1903: l_msg_index := l_msg_index + 1;
1904: l_msg_count := l_msg_count - 1;

Line 1906: RAISE FND_API.G_EXC_ERROR;

1902: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
1903: l_msg_index := l_msg_index + 1;
1904: l_msg_count := l_msg_count - 1;
1905: END LOOP;
1906: RAISE FND_API.G_EXC_ERROR;
1907: END IF;
1908:
1909: l_defaulted_group_id := l_counter_groups_rec.counter_group_id;
1910: else

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

2006: );
2007:
2008: p_counter_template_rec.counter_id := l_counter_id;
2009:
2010: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN
2011: ROLLBACK TO create_counter_template_pvt;
2012: RETURN;
2013: END IF;
2014:

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

2013: END IF;
2014:
2015: /* End of table handler call */
2016:
2017: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN
2018: COMMIT WORK;
2019: END IF;
2020:
2021: -- Standard call to get message count and IF count is get message info.

Line 2027: WHEN FND_API.G_EXC_ERROR THEN

2023: ( p_count => x_msg_count,
2024: p_data => x_msg_data
2025: );
2026: EXCEPTION
2027: WHEN FND_API.G_EXC_ERROR THEN
2028: x_return_status := FND_API.G_RET_STS_ERROR ;
2029: ROLLBACK TO create_counter_template_pvt;
2030: FND_MSG_PUB.Count_And_Get
2031: ( p_count => x_msg_count,

Line 2028: x_return_status := FND_API.G_RET_STS_ERROR ;

2024: p_data => x_msg_data
2025: );
2026: EXCEPTION
2027: WHEN FND_API.G_EXC_ERROR THEN
2028: x_return_status := FND_API.G_RET_STS_ERROR ;
2029: ROLLBACK TO create_counter_template_pvt;
2030: FND_MSG_PUB.Count_And_Get
2031: ( p_count => x_msg_count,
2032: p_data => x_msg_data

Line 2034: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN

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

Line 2035: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

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

Line 2042: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

2038: ( p_count => x_msg_count,
2039: p_data => x_msg_data
2040: );
2041: WHEN OTHERS THEN
2042: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
2043: ROLLBACK TO create_counter_template_pvt;
2044: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
2045: FND_MSG_PUB.Add_Exc_Msg
2046: ( G_PKG_NAME,

Line 2122: IF NOT FND_API.Compatible_API_Call (l_api_version,

2118: -- Standard Start of API savepoint
2119: SAVEPOINT create_ctr_property_tmpl_pvt;
2120:
2121: -- Standard call to check for call compatibility.
2122: IF NOT FND_API.Compatible_API_Call (l_api_version,
2123: p_api_version,
2124: l_api_name ,
2125: G_PKG_NAME ) THEN
2126: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 2126: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

2122: IF NOT FND_API.Compatible_API_Call (l_api_version,
2123: p_api_version,
2124: l_api_name ,
2125: G_PKG_NAME ) THEN
2126: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2127: END IF;
2128:
2129: -- Initialize message list if p_init_msg_list is set to TRUE.
2130: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

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

2126: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2127: END IF;
2128:
2129: -- Initialize message list if p_init_msg_list is set to TRUE.
2130: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
2131: FND_MSG_PUB.initialize;
2132: END IF;
2133:
2134: -- Read the debug profiles values in to global variable 7197402

Line 2138: x_return_status := FND_API.G_RET_STS_SUCCESS;

2134: -- Read the debug profiles values in to global variable 7197402
2135: CSI_CTR_GEN_UTILITY_PVT.read_debug_profiles;
2136:
2137: -- Initialize API return status to success
2138: x_return_status := FND_API.G_RET_STS_SUCCESS;
2139:
2140: --
2141: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
2142: csi_ctr_gen_utility_pvt.put_line( 'create_ctr_property_tmpl_pvt' ||'-'||

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

2140: --
2141: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
2142: csi_ctr_gen_utility_pvt.put_line( 'create_ctr_property_tmpl_pvt' ||'-'||
2143: p_api_version ||'-'||
2144: nvl(p_commit,FND_API.G_FALSE) ||'-'||
2145: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
2146: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
2147: END IF;
2148:

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

2141: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
2142: csi_ctr_gen_utility_pvt.put_line( 'create_ctr_property_tmpl_pvt' ||'-'||
2143: p_api_version ||'-'||
2144: nvl(p_commit,FND_API.G_FALSE) ||'-'||
2145: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
2146: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
2147: END IF;
2148:
2149: if p_ctr_property_template_rec.name = FND_API.G_MISS_CHAR then

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

2142: csi_ctr_gen_utility_pvt.put_line( 'create_ctr_property_tmpl_pvt' ||'-'||
2143: p_api_version ||'-'||
2144: nvl(p_commit,FND_API.G_FALSE) ||'-'||
2145: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
2146: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
2147: END IF;
2148:
2149: if p_ctr_property_template_rec.name = FND_API.G_MISS_CHAR then
2150: l_name := null;

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

2145: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
2146: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
2147: END IF;
2148:
2149: if p_ctr_property_template_rec.name = FND_API.G_MISS_CHAR then
2150: l_name := null;
2151: else
2152: l_name := p_ctr_property_template_rec.name;
2153: end if;

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

2151: else
2152: l_name := p_ctr_property_template_rec.name;
2153: end if;
2154:
2155: if p_ctr_property_template_rec.description = FND_API.G_MISS_CHAR then
2156: l_description := null;
2157: else
2158: l_description := p_ctr_property_template_rec.description;
2159: end if;

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

2157: else
2158: l_description := p_ctr_property_template_rec.description;
2159: end if;
2160:
2161: if p_ctr_property_template_rec.counter_property_id = FND_API.G_MISS_NUM then
2162: l_counter_property_id := null;
2163: else
2164: l_counter_property_id := p_ctr_property_template_rec.counter_property_id;
2165: end if;

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

2163: else
2164: l_counter_property_id := p_ctr_property_template_rec.counter_property_id;
2165: end if;
2166:
2167: if p_ctr_property_template_rec.property_data_type = FND_API.G_MISS_CHAR then
2168: l_property_data_type := null;
2169: else
2170: l_property_data_type := p_ctr_property_template_rec.property_data_type;
2171: end if;

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

2169: else
2170: l_property_data_type := p_ctr_property_template_rec.property_data_type;
2171: end if;
2172:
2173: if p_ctr_property_template_rec.IS_NULLABLE= FND_API.G_MISS_CHAR then
2174: l_IS_NULLABLE := null;
2175: else
2176: l_IS_NULLABLE := p_ctr_property_template_rec.IS_NULLABLE;
2177: end if;

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

2175: else
2176: l_IS_NULLABLE := p_ctr_property_template_rec.IS_NULLABLE;
2177: end if;
2178:
2179: if p_ctr_property_template_rec.DEFAULT_VALUE= FND_API.G_MISS_CHAR then
2180: l_DEFAULT_VALUE := null;
2181: else
2182: l_DEFAULT_VALUE := p_ctr_property_template_rec.DEFAULT_VALUE;
2183: end if;

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

2181: else
2182: l_DEFAULT_VALUE := p_ctr_property_template_rec.DEFAULT_VALUE;
2183: end if;
2184:
2185: if p_ctr_property_template_rec.MINIMUM_VALUE= FND_API.G_MISS_CHAR then
2186: l_MINIMUM_VALUE := null;
2187: else
2188: l_MINIMUM_VALUE := p_ctr_property_template_rec.MINIMUM_VALUE;
2189: end if;

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

2187: else
2188: l_MINIMUM_VALUE := p_ctr_property_template_rec.MINIMUM_VALUE;
2189: end if;
2190:
2191: if p_ctr_property_template_rec.MAXIMUM_VALUE = FND_API.G_MISS_CHAR then
2192: l_MAXIMUM_VALUE := null;
2193: else
2194: l_MAXIMUM_VALUE := p_ctr_property_template_rec.MAXIMUM_VALUE;
2195: end if;

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

2193: else
2194: l_MAXIMUM_VALUE := p_ctr_property_template_rec.MAXIMUM_VALUE;
2195: end if;
2196:
2197: if p_ctr_property_template_rec.UOM_CODE = FND_API.G_MISS_CHAR then
2198: l_UOM_CODE := null;
2199: else
2200: l_UOM_CODE := p_ctr_property_template_rec.UOM_CODE;
2201: end if;

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

2199: else
2200: l_UOM_CODE := p_ctr_property_template_rec.UOM_CODE;
2201: end if;
2202:
2203: if p_ctr_property_template_rec.property_lov_type = FND_API.G_MISS_CHAR then
2204: l_property_lov_type := null;
2205: else
2206: l_property_lov_type := p_ctr_property_template_rec.property_lov_type;
2207: end if;

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

2205: else
2206: l_property_lov_type := p_ctr_property_template_rec.property_lov_type;
2207: end if;
2208:
2209: if p_ctr_property_template_rec.counter_id = FND_API.G_MISS_NUM then
2210: l_counter_id := null;
2211: else
2212: l_counter_id := p_ctr_property_template_rec.counter_id;
2213: end if;

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

2211: else
2212: l_counter_id := p_ctr_property_template_rec.counter_id;
2213: end if;
2214:
2215: if p_ctr_property_template_rec.security_group_id = FND_API.G_MISS_NUM then
2216: l_security_group_id := null;
2217: else
2218: l_security_group_id := p_ctr_property_template_rec.security_group_id;
2219: end if;

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

2217: else
2218: l_security_group_id := p_ctr_property_template_rec.security_group_id;
2219: end if;
2220:
2221: if nvl(p_ctr_property_template_rec.start_date_active,FND_API.G_MISS_DATE) = FND_API.G_MISS_DATE then
2222: l_start_date_active := sysdate;
2223: else
2224: l_start_date_active := p_ctr_property_template_rec.start_date_active;
2225: end if;

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

2223: else
2224: l_start_date_active := p_ctr_property_template_rec.start_date_active;
2225: end if;
2226:
2227: if p_ctr_property_template_rec.end_date_active = FND_API.G_MISS_DATE then
2228: l_end_date_active := null;
2229: else
2230: l_end_date_active := p_ctr_property_template_rec.end_date_active;
2231: end if;

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

2229: else
2230: l_end_date_active := p_ctr_property_template_rec.end_date_active;
2231: end if;
2232:
2233: if p_ctr_property_template_rec.attribute1 = FND_API.G_MISS_CHAR then
2234: l_attribute1 := null;
2235: else
2236: l_attribute1 := p_ctr_property_template_rec.attribute1;
2237: end if;

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

2235: else
2236: l_attribute1 := p_ctr_property_template_rec.attribute1;
2237: end if;
2238:
2239: if p_ctr_property_template_rec.attribute2 = FND_API.G_MISS_CHAR then
2240: l_attribute2 := null;
2241: else
2242: l_attribute2 := p_ctr_property_template_rec.attribute2;
2243: end if;

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

2241: else
2242: l_attribute2 := p_ctr_property_template_rec.attribute2;
2243: end if;
2244:
2245: if p_ctr_property_template_rec.attribute3 = FND_API.G_MISS_CHAR then
2246: l_attribute3 := null;
2247: else
2248: l_attribute3 := p_ctr_property_template_rec.attribute3;
2249: end if;

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

2247: else
2248: l_attribute3 := p_ctr_property_template_rec.attribute3;
2249: end if;
2250:
2251: if p_ctr_property_template_rec.attribute4 = FND_API.G_MISS_CHAR then
2252: l_attribute4 := null;
2253: else
2254: l_attribute4 := p_ctr_property_template_rec.attribute4;
2255: end if;

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

2253: else
2254: l_attribute4 := p_ctr_property_template_rec.attribute4;
2255: end if;
2256:
2257: if p_ctr_property_template_rec.attribute5 = FND_API.G_MISS_CHAR then
2258: l_attribute5 := null;
2259: else
2260: l_attribute5 := p_ctr_property_template_rec.attribute5;
2261: end if;

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

2259: else
2260: l_attribute5 := p_ctr_property_template_rec.attribute5;
2261: end if;
2262:
2263: if p_ctr_property_template_rec.attribute6 = FND_API.G_MISS_CHAR then
2264: l_attribute6 := null;
2265: else
2266: l_attribute6 := p_ctr_property_template_rec.attribute6;
2267: end if;

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

2265: else
2266: l_attribute6 := p_ctr_property_template_rec.attribute6;
2267: end if;
2268:
2269: if p_ctr_property_template_rec.attribute7 = FND_API.G_MISS_CHAR then
2270: l_attribute7 := null;
2271: else
2272: l_attribute7 := p_ctr_property_template_rec.attribute7;
2273: end if;

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

2271: else
2272: l_attribute7 := p_ctr_property_template_rec.attribute7;
2273: end if;
2274:
2275: if p_ctr_property_template_rec.attribute8 = FND_API.G_MISS_CHAR then
2276: l_attribute8 := null;
2277: else
2278: l_attribute8 := p_ctr_property_template_rec.attribute8;
2279: end if;

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

2277: else
2278: l_attribute8 := p_ctr_property_template_rec.attribute8;
2279: end if;
2280:
2281: if p_ctr_property_template_rec.attribute9 = FND_API.G_MISS_CHAR then
2282: l_attribute9 := null;
2283: else
2284: l_attribute9 := p_ctr_property_template_rec.attribute9;
2285: end if;

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

2283: else
2284: l_attribute9 := p_ctr_property_template_rec.attribute9;
2285: end if;
2286:
2287: if p_ctr_property_template_rec.attribute10 = FND_API.G_MISS_CHAR then
2288: l_attribute10 := null;
2289: else
2290: l_attribute10 := p_ctr_property_template_rec.attribute10;
2291: end if;

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

2289: else
2290: l_attribute10 := p_ctr_property_template_rec.attribute10;
2291: end if;
2292:
2293: if p_ctr_property_template_rec.attribute11 = FND_API.G_MISS_CHAR then
2294: l_attribute11 := null;
2295: else
2296: l_attribute11 := p_ctr_property_template_rec.attribute11;
2297: end if;

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

2295: else
2296: l_attribute11 := p_ctr_property_template_rec.attribute11;
2297: end if;
2298:
2299: if p_ctr_property_template_rec.attribute12 = FND_API.G_MISS_CHAR then
2300: l_attribute12 := null;
2301: else
2302: l_attribute12 := p_ctr_property_template_rec.attribute12;
2303: end if;

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

2301: else
2302: l_attribute12 := p_ctr_property_template_rec.attribute12;
2303: end if;
2304:
2305: if p_ctr_property_template_rec.attribute13 = FND_API.G_MISS_CHAR then
2306: l_attribute13 := null;
2307: else
2308: l_attribute13 := p_ctr_property_template_rec.attribute13;
2309: end if;

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

2307: else
2308: l_attribute13 := p_ctr_property_template_rec.attribute13;
2309: end if;
2310:
2311: if p_ctr_property_template_rec.attribute14 = FND_API.G_MISS_CHAR then
2312: l_attribute14 := null;
2313: else
2314: l_attribute14 := p_ctr_property_template_rec.attribute14;
2315: end if;

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

2313: else
2314: l_attribute14 := p_ctr_property_template_rec.attribute14;
2315: end if;
2316:
2317: if p_ctr_property_template_rec.attribute15 = FND_API.G_MISS_CHAR then
2318: l_attribute15 := null;
2319: else
2320: l_attribute15 := p_ctr_property_template_rec.attribute15;
2321: end if;

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

2319: else
2320: l_attribute15 := p_ctr_property_template_rec.attribute15;
2321: end if;
2322:
2323: if p_ctr_property_template_rec.attribute_category = FND_API.G_MISS_CHAR then
2324: l_attribute_category := null;
2325: else
2326: l_attribute_category := p_ctr_property_template_rec.attribute_category;
2327: end if;

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

2325: else
2326: l_attribute_category := p_ctr_property_template_rec.attribute_category;
2327: end if;
2328:
2329: if p_ctr_property_template_rec.migrated_flag = FND_API.G_MISS_CHAR then
2330: l_migrated_flag := null;
2331: else
2332: l_migrated_flag := p_ctr_property_template_rec.migrated_flag;
2333: end if;

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

2390: ,p_NAME => l_name
2391: ,p_DESCRIPTION => l_description
2392: );
2393:
2394: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN
2395: ROLLBACK TO create_ctr_property_tmpl_pvt;
2396: RETURN;
2397: END IF;
2398:

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

2397: END IF;
2398:
2399: /* End of table handler call */
2400:
2401: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN
2402: COMMIT WORK;
2403: END IF;
2404:
2405: -- Standard call to get message count and IF count is get message info.

Line 2411: WHEN FND_API.G_EXC_ERROR THEN

2407: ( p_count => x_msg_count,
2408: p_data => x_msg_data
2409: );
2410: EXCEPTION
2411: WHEN FND_API.G_EXC_ERROR THEN
2412: x_return_status := FND_API.G_RET_STS_ERROR ;
2413: ROLLBACK TO create_ctr_property_tmpl_pvt;
2414: FND_MSG_PUB.Count_And_Get
2415: ( p_count => x_msg_count,

Line 2412: x_return_status := FND_API.G_RET_STS_ERROR ;

2408: p_data => x_msg_data
2409: );
2410: EXCEPTION
2411: WHEN FND_API.G_EXC_ERROR THEN
2412: x_return_status := FND_API.G_RET_STS_ERROR ;
2413: ROLLBACK TO create_ctr_property_tmpl_pvt;
2414: FND_MSG_PUB.Count_And_Get
2415: ( p_count => x_msg_count,
2416: p_data => x_msg_data

Line 2418: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN

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

Line 2419: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

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

Line 2426: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

2422: ( p_count => x_msg_count,
2423: p_data => x_msg_data
2424: );
2425: WHEN OTHERS THEN
2426: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
2427: ROLLBACK TO create_ctr_property_tmpl_pvt;
2428: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
2429: FND_MSG_PUB.Add_Exc_Msg
2430: ( G_PKG_NAME,

Line 2516: IF NOT FND_API.Compatible_API_Call (l_api_version,

2512: -- Standard Start of API savepoint
2513: SAVEPOINT create_ctr_relationship_pvt;
2514:
2515: -- Standard call to check for call compatibility.
2516: IF NOT FND_API.Compatible_API_Call (l_api_version,
2517: p_api_version,
2518: l_api_name ,
2519: G_PKG_NAME ) THEN
2520: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 2520: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

2516: IF NOT FND_API.Compatible_API_Call (l_api_version,
2517: p_api_version,
2518: l_api_name ,
2519: G_PKG_NAME ) THEN
2520: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2521: END IF;
2522:
2523: -- Initialize message list if p_init_msg_list is set to TRUE.
2524: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

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

2520: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2521: END IF;
2522:
2523: -- Initialize message list if p_init_msg_list is set to TRUE.
2524: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
2525: FND_MSG_PUB.initialize;
2526: END IF;
2527:
2528: -- Read the debug profiles values in to global variable 7197402

Line 2532: x_return_status := FND_API.G_RET_STS_SUCCESS;

2528: -- Read the debug profiles values in to global variable 7197402
2529: CSI_CTR_GEN_UTILITY_PVT.read_debug_profiles;
2530:
2531: -- Initialize API return status to success
2532: x_return_status := FND_API.G_RET_STS_SUCCESS;
2533:
2534: --
2535: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
2536: csi_ctr_gen_utility_pvt.put_line

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

2535: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
2536: csi_ctr_gen_utility_pvt.put_line
2537: ( 'create_ctr_relationship_pvt' ||'-'||
2538: p_api_version ||'-'||
2539: nvl(p_commit,FND_API.G_FALSE) ||'-'||
2540: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
2541: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
2542: END IF;
2543:

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

2536: csi_ctr_gen_utility_pvt.put_line
2537: ( 'create_ctr_relationship_pvt' ||'-'||
2538: p_api_version ||'-'||
2539: nvl(p_commit,FND_API.G_FALSE) ||'-'||
2540: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
2541: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
2542: END IF;
2543:
2544: if p_counter_relationships_rec.relationship_id = FND_API.G_MISS_NUM then

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

2537: ( 'create_ctr_relationship_pvt' ||'-'||
2538: p_api_version ||'-'||
2539: nvl(p_commit,FND_API.G_FALSE) ||'-'||
2540: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
2541: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
2542: END IF;
2543:
2544: if p_counter_relationships_rec.relationship_id = FND_API.G_MISS_NUM then
2545: l_relationship_id := null;

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

2540: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
2541: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
2542: END IF;
2543:
2544: if p_counter_relationships_rec.relationship_id = FND_API.G_MISS_NUM then
2545: l_relationship_id := null;
2546: else
2547: l_relationship_id := p_counter_relationships_rec.relationship_id;
2548: end if;

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

2546: else
2547: l_relationship_id := p_counter_relationships_rec.relationship_id;
2548: end if;
2549:
2550: if p_counter_relationships_rec.ctr_association_id = FND_API.G_MISS_NUM then
2551: l_ctr_association_id := null;
2552: else
2553: l_ctr_association_id := p_counter_relationships_rec.ctr_association_id;
2554: end if;

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

2552: else
2553: l_ctr_association_id := p_counter_relationships_rec.ctr_association_id;
2554: end if;
2555:
2556: if p_counter_relationships_rec.relationship_type_code = FND_API.G_MISS_CHAR then
2557: l_relationship_type_code := null;
2558: else
2559: l_relationship_type_code := p_counter_relationships_rec.relationship_type_code;
2560: end if;

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

2558: else
2559: l_relationship_type_code := p_counter_relationships_rec.relationship_type_code;
2560: end if;
2561:
2562: if p_counter_relationships_rec.source_counter_id = FND_API.G_MISS_NUM then
2563: l_source_counter_id := null;
2564: else
2565: l_source_counter_id := p_counter_relationships_rec.source_counter_id;
2566: end if;

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

2564: else
2565: l_source_counter_id := p_counter_relationships_rec.source_counter_id;
2566: end if;
2567:
2568: if p_counter_relationships_rec.object_counter_id = FND_API.G_MISS_NUM then
2569: l_object_counter_id := null;
2570: else
2571: l_object_counter_id := p_counter_relationships_rec.object_counter_id;
2572: end if;

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

2570: else
2571: l_object_counter_id := p_counter_relationships_rec.object_counter_id;
2572: end if;
2573:
2574: if p_counter_relationships_rec.security_group_id = FND_API.G_MISS_NUM then
2575: l_security_group_id := null;
2576: else
2577: l_security_group_id := p_counter_relationships_rec.security_group_id;
2578: end if;

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

2576: else
2577: l_security_group_id := p_counter_relationships_rec.security_group_id;
2578: end if;
2579:
2580: if nvl(p_counter_relationships_rec.active_start_date,FND_API.G_MISS_DATE) = FND_API.G_MISS_DATE then
2581: l_active_start_date := sysdate;
2582: else
2583: l_active_start_date := p_counter_relationships_rec.active_start_date;
2584: end if;

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

2582: else
2583: l_active_start_date := p_counter_relationships_rec.active_start_date;
2584: end if;
2585:
2586: if p_counter_relationships_rec.active_end_date = FND_API.G_MISS_DATE then
2587: l_active_end_date := null;
2588: else
2589: l_active_end_date := p_counter_relationships_rec.active_end_date;
2590: end if;

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

2588: else
2589: l_active_end_date := p_counter_relationships_rec.active_end_date;
2590: end if;
2591:
2592: if p_counter_relationships_rec.attribute1 = FND_API.G_MISS_CHAR then
2593: l_attribute1 := null;
2594: else
2595: l_attribute1 := p_counter_relationships_rec.attribute1;
2596: end if;

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

2594: else
2595: l_attribute1 := p_counter_relationships_rec.attribute1;
2596: end if;
2597:
2598: if p_counter_relationships_rec.attribute2 = FND_API.G_MISS_CHAR then
2599: l_attribute2 := null;
2600: else
2601: l_attribute2 := p_counter_relationships_rec.attribute2;
2602: end if;

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

2600: else
2601: l_attribute2 := p_counter_relationships_rec.attribute2;
2602: end if;
2603:
2604: if p_counter_relationships_rec.attribute3 = FND_API.G_MISS_CHAR then
2605: l_attribute3 := null;
2606: else
2607: l_attribute3 := p_counter_relationships_rec.attribute3;
2608: end if;

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

2606: else
2607: l_attribute3 := p_counter_relationships_rec.attribute3;
2608: end if;
2609:
2610: if p_counter_relationships_rec.attribute4 = FND_API.G_MISS_CHAR then
2611: l_attribute4 := null;
2612: else
2613: l_attribute4 := p_counter_relationships_rec.attribute4;
2614: end if;

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

2612: else
2613: l_attribute4 := p_counter_relationships_rec.attribute4;
2614: end if;
2615:
2616: if p_counter_relationships_rec.attribute5 = FND_API.G_MISS_CHAR then
2617: l_attribute5 := null;
2618: else
2619: l_attribute5 := p_counter_relationships_rec.attribute5;
2620: end if;

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

2618: else
2619: l_attribute5 := p_counter_relationships_rec.attribute5;
2620: end if;
2621:
2622: if p_counter_relationships_rec.attribute6 = FND_API.G_MISS_CHAR then
2623: l_attribute6 := null;
2624: else
2625: l_attribute6 := p_counter_relationships_rec.attribute6;
2626: end if;

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

2624: else
2625: l_attribute6 := p_counter_relationships_rec.attribute6;
2626: end if;
2627:
2628: if p_counter_relationships_rec.attribute7 = FND_API.G_MISS_CHAR then
2629: l_attribute7 := null;
2630: else
2631: l_attribute7 := p_counter_relationships_rec.attribute7;
2632: end if;

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

2630: else
2631: l_attribute7 := p_counter_relationships_rec.attribute7;
2632: end if;
2633:
2634: if p_counter_relationships_rec.attribute8 = FND_API.G_MISS_CHAR then
2635: l_attribute8 := null;
2636: else
2637: l_attribute8 := p_counter_relationships_rec.attribute8;
2638: end if;

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

2636: else
2637: l_attribute8 := p_counter_relationships_rec.attribute8;
2638: end if;
2639:
2640: if p_counter_relationships_rec.attribute9 = FND_API.G_MISS_CHAR then
2641: l_attribute9 := null;
2642: else
2643: l_attribute9 := p_counter_relationships_rec.attribute9;
2644: end if;

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

2642: else
2643: l_attribute9 := p_counter_relationships_rec.attribute9;
2644: end if;
2645:
2646: if p_counter_relationships_rec.attribute10 = FND_API.G_MISS_CHAR then
2647: l_attribute10 := null;
2648: else
2649: l_attribute10 := p_counter_relationships_rec.attribute10;
2650: end if;

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

2648: else
2649: l_attribute10 := p_counter_relationships_rec.attribute10;
2650: end if;
2651:
2652: if p_counter_relationships_rec.attribute11 = FND_API.G_MISS_CHAR then
2653: l_attribute11 := null;
2654: else
2655: l_attribute11 := p_counter_relationships_rec.attribute11;
2656: end if;

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

2654: else
2655: l_attribute11 := p_counter_relationships_rec.attribute11;
2656: end if;
2657:
2658: if p_counter_relationships_rec.attribute12 = FND_API.G_MISS_CHAR then
2659: l_attribute12 := null;
2660: else
2661: l_attribute12 := p_counter_relationships_rec.attribute12;
2662: end if;

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

2660: else
2661: l_attribute12 := p_counter_relationships_rec.attribute12;
2662: end if;
2663:
2664: if p_counter_relationships_rec.attribute13 = FND_API.G_MISS_CHAR then
2665: l_attribute13 := null;
2666: else
2667: l_attribute13 := p_counter_relationships_rec.attribute13;
2668: end if;

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

2666: else
2667: l_attribute13 := p_counter_relationships_rec.attribute13;
2668: end if;
2669:
2670: if p_counter_relationships_rec.attribute14 = FND_API.G_MISS_CHAR then
2671: l_attribute14 := null;
2672: else
2673: l_attribute14 := p_counter_relationships_rec.attribute14;
2674: end if;

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

2672: else
2673: l_attribute14 := p_counter_relationships_rec.attribute14;
2674: end if;
2675:
2676: if p_counter_relationships_rec.attribute15 = FND_API.G_MISS_CHAR then
2677: l_attribute15 := null;
2678: else
2679: l_attribute15 := p_counter_relationships_rec.attribute15;
2680: end if;

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

2678: else
2679: l_attribute15 := p_counter_relationships_rec.attribute15;
2680: end if;
2681:
2682: if p_counter_relationships_rec.attribute_category = FND_API.G_MISS_CHAR then
2683: l_attribute_category := null;
2684: else
2685: l_attribute_category := p_counter_relationships_rec.attribute_category;
2686: end if;

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

2684: else
2685: l_attribute_category := p_counter_relationships_rec.attribute_category;
2686: end if;
2687:
2688: if p_counter_relationships_rec.migrated_flag = FND_API.G_MISS_CHAR then
2689: l_migrated_flag := null;
2690: else
2691: l_migrated_flag := p_counter_relationships_rec.migrated_flag;
2692: end if;

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

2690: else
2691: l_migrated_flag := p_counter_relationships_rec.migrated_flag;
2692: end if;
2693:
2694: if p_counter_relationships_rec.bind_variable_name = FND_API.G_MISS_CHAR then
2695: l_bind_variable_name := null;
2696: else
2697: l_bind_variable_name := p_counter_relationships_rec.bind_variable_name;
2698: end if;

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

2696: else
2697: l_bind_variable_name := p_counter_relationships_rec.bind_variable_name;
2698: end if;
2699:
2700: if p_counter_relationships_rec.factor = FND_API.G_MISS_NUM then
2701: l_factor := null;
2702: else
2703: l_factor := p_counter_relationships_rec.factor;
2704: end if;

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

2815: ,p_MIGRATED_FLAG => l_migrated_flag
2816: ,p_BIND_VARIABLE_NAME => l_bind_variable_name
2817: ,p_FACTOR => l_factor);
2818:
2819: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN
2820: ROLLBACK TO create_ctr_relationship_pvt;
2821: RETURN;
2822: END IF;
2823:

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

2822: END IF;
2823:
2824: /* End of table handler call */
2825:
2826: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN
2827: COMMIT WORK;
2828: END IF;
2829:
2830: -- Standard call to get message count and IF count is get message info.

Line 2836: WHEN FND_API.G_EXC_ERROR THEN

2832: ( p_count => x_msg_count,
2833: p_data => x_msg_data
2834: );
2835: EXCEPTION
2836: WHEN FND_API.G_EXC_ERROR THEN
2837: x_return_status := FND_API.G_RET_STS_ERROR ;
2838: ROLLBACK TO create_ctr_relationship_pvt;
2839: FND_MSG_PUB.Count_And_Get
2840: ( p_count => x_msg_count,

Line 2837: x_return_status := FND_API.G_RET_STS_ERROR ;

2833: p_data => x_msg_data
2834: );
2835: EXCEPTION
2836: WHEN FND_API.G_EXC_ERROR THEN
2837: x_return_status := FND_API.G_RET_STS_ERROR ;
2838: ROLLBACK TO create_ctr_relationship_pvt;
2839: FND_MSG_PUB.Count_And_Get
2840: ( p_count => x_msg_count,
2841: p_data => x_msg_data

Line 2843: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN

2839: FND_MSG_PUB.Count_And_Get
2840: ( p_count => x_msg_count,
2841: p_data => x_msg_data
2842: );
2843: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
2844: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
2845: ROLLBACK TO create_ctr_relationship_pvt;
2846: FND_MSG_PUB.Count_And_Get
2847: ( p_count => x_msg_count,

Line 2844: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

2840: ( p_count => x_msg_count,
2841: p_data => x_msg_data
2842: );
2843: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
2844: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
2845: ROLLBACK TO create_ctr_relationship_pvt;
2846: FND_MSG_PUB.Count_And_Get
2847: ( p_count => x_msg_count,
2848: p_data => x_msg_data

Line 2851: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

2847: ( p_count => x_msg_count,
2848: p_data => x_msg_data
2849: );
2850: WHEN OTHERS THEN
2851: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
2852: ROLLBACK TO create_ctr_relationship_pvt;
2853: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
2854: FND_MSG_PUB.Add_Exc_Msg
2855: ( G_PKG_NAME,

Line 2910: IF NOT FND_API.Compatible_API_Call (l_api_version,

2906:
2907: -- csi_ctr_gen_utility_pvt.check_ib_active;
2908:
2909: -- Standard call to check for call compatibility.
2910: IF NOT FND_API.Compatible_API_Call (l_api_version,
2911: p_api_version,
2912: l_api_name ,
2913: G_PKG_NAME )
2914: THEN

Line 2915: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

2911: p_api_version,
2912: l_api_name ,
2913: G_PKG_NAME )
2914: THEN
2915: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2916: END IF;
2917: -- Initialize message list if p_init_msg_list is set to TRUE.
2918: IF FND_API.to_Boolean( p_init_msg_list ) THEN
2919: FND_MSG_PUB.initialize;

Line 2918: IF FND_API.to_Boolean( p_init_msg_list ) THEN

2914: THEN
2915: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2916: END IF;
2917: -- Initialize message list if p_init_msg_list is set to TRUE.
2918: IF FND_API.to_Boolean( p_init_msg_list ) THEN
2919: FND_MSG_PUB.initialize;
2920: END IF;
2921:
2922: -- Initialize API return status to success

Line 2923: x_return_status := FND_API.G_RET_STS_SUCCESS;

2919: FND_MSG_PUB.initialize;
2920: END IF;
2921:
2922: -- Initialize API return status to success
2923: x_return_status := FND_API.G_RET_STS_SUCCESS;
2924:
2925: -- Read the debug profiles values in to global variable 7197402
2926: CSI_CTR_GEN_UTILITY_PVT.read_debug_profiles;
2927:

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

2996:
2997: -- validate LOGICAL_OPERATOR
2998: -- l_log_op := upper(l_ctr_derived_filters_rec.LOGICAL_OPERATOR);
2999:
3000: IF l_ctr_derived_filters_rec.LOGICAL_OPERATOR = FND_API.G_MISS_CHAR then
3001: l_log_op := null;
3002: ELSE
3003: l_log_op := upper(l_ctr_derived_filters_rec.LOGICAL_OPERATOR);
3004: END IF;

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

3025: p_seg_values => l_desc_flex
3026: );
3027: */
3028: -- get the SEQ_NO
3029: IF l_ctr_derived_filters_rec.seq_no = FND_API.G_MISS_NUM then
3030: l_ctr_derived_filters_rec.seq_no := null;
3031: END IF;
3032:
3033: IF l_ctr_derived_filters_rec.SEQ_NO IS NULL THEN

Line 3105: p_commit => FND_API.G_FALSE,

3101: --addition of this filter.
3102: csi_ctr_gen_utility_pvt.Validate_GrpOp_ctr
3103: (
3104: p_api_version => 1.0,
3105: p_commit => FND_API.G_FALSE,
3106: p_validation_level => FND_API.G_VALID_LEVEL_NONE,
3107: x_return_status => l_return_status,
3108: x_msg_count => l_msg_count,
3109: x_msg_data => l_msg_data,

Line 3106: p_validation_level => FND_API.G_VALID_LEVEL_NONE,

3102: csi_ctr_gen_utility_pvt.Validate_GrpOp_ctr
3103: (
3104: p_api_version => 1.0,
3105: p_commit => FND_API.G_FALSE,
3106: p_validation_level => FND_API.G_VALID_LEVEL_NONE,
3107: x_return_status => l_return_status,
3108: x_msg_count => l_msg_count,
3109: x_msg_data => l_msg_data,
3110: p_counter_id => l_ctr_derived_filters_rec.COUNTER_ID,

Line 3114: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN

3110: p_counter_id => l_ctr_derived_filters_rec.COUNTER_ID,
3111: x_valid_flag => l_valid_flag
3112: );
3113:
3114: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
3115: RAISE FND_API.G_EXC_ERROR;
3116: END IF;
3117:
3118: UPDATE csi_counters_b

Line 3115: RAISE FND_API.G_EXC_ERROR;

3111: x_valid_flag => l_valid_flag
3112: );
3113:
3114: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
3115: RAISE FND_API.G_EXC_ERROR;
3116: END IF;
3117:
3118: UPDATE csi_counters_b
3119: SET valid_flag = decode(l_valid_flag, 'Y', 'Y', 'N')

Line 3127: IF FND_API.To_Boolean( p_commit ) THEN

3123:
3124: -- End of API body
3125:
3126: -- Standard check of p_commit.
3127: IF FND_API.To_Boolean( p_commit ) THEN
3128: COMMIT WORK;
3129: END IF;
3130:
3131: FND_MSG_PUB.Count_And_Get

Line 3137: WHEN FND_API.G_EXC_ERROR THEN

3133: p_data => x_msg_data
3134: );
3135:
3136: EXCEPTION
3137: WHEN FND_API.G_EXC_ERROR THEN
3138: x_return_status := FND_API.G_RET_STS_ERROR ;
3139: ROLLBACK TO create_derived_filters;
3140: FND_MSG_PUB.Count_And_Get
3141: (p_count => x_msg_count,

Line 3138: x_return_status := FND_API.G_RET_STS_ERROR ;

3134: );
3135:
3136: EXCEPTION
3137: WHEN FND_API.G_EXC_ERROR THEN
3138: x_return_status := FND_API.G_RET_STS_ERROR ;
3139: ROLLBACK TO create_derived_filters;
3140: FND_MSG_PUB.Count_And_Get
3141: (p_count => x_msg_count,
3142: p_data => x_msg_data

Line 3145: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN

3141: (p_count => x_msg_count,
3142: p_data => x_msg_data
3143: );
3144:
3145: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
3146: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
3147: ROLLBACK TO create_derived_filters;
3148: FND_MSG_PUB.Count_And_Get
3149: (p_count => x_msg_count,

Line 3146: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

3142: p_data => x_msg_data
3143: );
3144:
3145: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
3146: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
3147: ROLLBACK TO create_derived_filters;
3148: FND_MSG_PUB.Count_And_Get
3149: (p_count => x_msg_count,
3150: p_data => x_msg_data

Line 3153: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

3149: (p_count => x_msg_count,
3150: p_data => x_msg_data
3151: );
3152: WHEN OTHERS THEN
3153: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
3154: ROLLBACK TO create_derived_filters;
3155: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
3156: THEN
3157: FND_MSG_PUB.Add_Exc_Msg

Line 3242: IF NOT FND_API.Compatible_API_Call (l_api_version,

3238: -- Standard Start of API savepoint
3239: SAVEPOINT update_counter_group_pvt;
3240:
3241: -- Standard call to check for call compatibility.
3242: IF NOT FND_API.Compatible_API_Call (l_api_version,
3243: p_api_version,
3244: l_api_name ,
3245: G_PKG_NAME ) THEN
3246: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 3246: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

3242: IF NOT FND_API.Compatible_API_Call (l_api_version,
3243: p_api_version,
3244: l_api_name ,
3245: G_PKG_NAME ) THEN
3246: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3247: END IF;
3248:
3249: -- Initialize message list if p_init_msg_list is set to TRUE.
3250: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

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

3246: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3247: END IF;
3248:
3249: -- Initialize message list if p_init_msg_list is set to TRUE.
3250: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
3251: FND_MSG_PUB.initialize;
3252: END IF;
3253:
3254: -- Initialize API return status to success

Line 3255: x_return_status := FND_API.G_RET_STS_SUCCESS;

3251: FND_MSG_PUB.initialize;
3252: END IF;
3253:
3254: -- Initialize API return status to success
3255: x_return_status := FND_API.G_RET_STS_SUCCESS;
3256:
3257: -- Read the debug profiles values in to global variable 7197402
3258: CSI_CTR_GEN_UTILITY_PVT.read_debug_profiles;
3259:

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

3261: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
3262: csi_ctr_gen_utility_pvt.put_line
3263: ( 'update_counter_group_pvt' ||'-'||
3264: p_api_version ||'-'||
3265: nvl(p_commit,FND_API.G_FALSE) ||'-'||
3266: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
3267: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
3268: END IF;
3269:

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

3262: csi_ctr_gen_utility_pvt.put_line
3263: ( 'update_counter_group_pvt' ||'-'||
3264: p_api_version ||'-'||
3265: nvl(p_commit,FND_API.G_FALSE) ||'-'||
3266: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
3267: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
3268: END IF;
3269:
3270: /* Start of API Body */

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

3263: ( 'update_counter_group_pvt' ||'-'||
3264: p_api_version ||'-'||
3265: nvl(p_commit,FND_API.G_FALSE) ||'-'||
3266: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
3267: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
3268: END IF;
3269:
3270: /* Start of API Body */
3271: OPEN cur_group_rec(p_counter_groups_rec.counter_group_id);

Line 3276: RAISE FND_API.G_EXC_ERROR;

3272: FETCH cur_group_rec INTO l_old_counter_groups_rec;
3273: IF (l_old_counter_groups_rec.object_version_number <> nvl(p_counter_groups_rec.OBJECT_VERSION_NUMBER,0)) THEN
3274: FND_MESSAGE.Set_Name('CSI', 'CSI_API_OBJ_VER_MISMATCH');
3275: FND_MSG_PUB.ADD;
3276: RAISE FND_API.G_EXC_ERROR;
3277: END IF;
3278:
3279: CLOSE cur_group_rec;
3280:

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

3285: l_counter_groups_rec := p_counter_groups_rec;
3286:
3287: IF p_counter_groups_rec.name IS NULL THEN
3288: l_counter_groups_rec.name:= l_old_counter_groups_rec.name;
3289: ELSIF p_counter_groups_rec.name = FND_API.G_MISS_CHAR THEN
3290: l_counter_groups_rec.name := NULL;
3291: END IF;
3292:
3293: IF p_counter_groups_rec.description IS NULL THEN

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

3291: END IF;
3292:
3293: IF p_counter_groups_rec.description IS NULL THEN
3294: l_counter_groups_rec.description := l_old_counter_groups_rec.description;
3295: ELSIF p_counter_groups_rec.description = FND_API.G_MISS_CHAR THEN
3296: l_counter_groups_rec.description := NULL;
3297: END IF;
3298:
3299: IF p_counter_groups_rec.start_date_active IS NULL THEN

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

3297: END IF;
3298:
3299: IF p_counter_groups_rec.start_date_active IS NULL THEN
3300: l_counter_groups_rec.start_date_active := l_old_counter_groups_rec.start_date_active;
3301: ELSIF p_counter_groups_rec.start_date_active = FND_API.G_MISS_DATE THEN
3302: l_counter_groups_rec.start_date_active := NULL;
3303: END IF;
3304:
3305: IF p_counter_groups_rec.end_date_active IS NULL THEN

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

3303: END IF;
3304:
3305: IF p_counter_groups_rec.end_date_active IS NULL THEN
3306: l_counter_groups_rec.end_date_active := l_old_counter_groups_rec.end_date_active;
3307: ELSIF p_counter_groups_rec.end_date_active = FND_API.G_MISS_DATE THEN
3308: l_counter_groups_rec.end_date_active := NULL;
3309: END IF;
3310:
3311: if l_counter_groups_rec.end_date_active IS NOT NULL then

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

3315: end if;
3316:
3317: IF p_counter_groups_rec.attribute1 IS NULL THEN
3318: l_counter_groups_rec.attribute1 := l_old_counter_groups_rec.attribute1;
3319: ELSIF p_counter_groups_rec.attribute1 = FND_API.G_MISS_CHAR THEN
3320: l_counter_groups_rec.attribute1 := NULL;
3321: END IF;
3322:
3323: IF p_counter_groups_rec.attribute2 IS NULL THEN

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

3321: END IF;
3322:
3323: IF p_counter_groups_rec.attribute2 IS NULL THEN
3324: l_counter_groups_rec.attribute2 := l_old_counter_groups_rec.attribute2;
3325: ELSIF p_counter_groups_rec.attribute2 = FND_API.G_MISS_CHAR THEN
3326: l_counter_groups_rec.attribute2 := NULL;
3327: END IF;
3328:
3329: IF p_counter_groups_rec.attribute3 IS NULL THEN

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

3327: END IF;
3328:
3329: IF p_counter_groups_rec.attribute3 IS NULL THEN
3330: l_counter_groups_rec.attribute3 := l_old_counter_groups_rec.attribute3;
3331: ELSIF p_counter_groups_rec.attribute3 = FND_API.G_MISS_CHAR THEN
3332: l_counter_groups_rec.attribute3 := NULL;
3333: END IF;
3334:
3335: IF p_counter_groups_rec.attribute4 IS NULL THEN

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

3333: END IF;
3334:
3335: IF p_counter_groups_rec.attribute4 IS NULL THEN
3336: l_counter_groups_rec.attribute4 := l_old_counter_groups_rec.attribute4;
3337: ELSIF p_counter_groups_rec.attribute4 = FND_API.G_MISS_CHAR THEN
3338: l_counter_groups_rec.attribute4 := NULL;
3339: END IF;
3340:
3341: IF p_counter_groups_rec.attribute5 IS NULL THEN

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

3339: END IF;
3340:
3341: IF p_counter_groups_rec.attribute5 IS NULL THEN
3342: l_counter_groups_rec.attribute5 := l_old_counter_groups_rec.attribute5;
3343: ELSIF p_counter_groups_rec.attribute5 = FND_API.G_MISS_CHAR THEN
3344: l_counter_groups_rec.attribute5 := NULL;
3345: END IF;
3346:
3347: IF p_counter_groups_rec.attribute6 IS NULL THEN

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

3345: END IF;
3346:
3347: IF p_counter_groups_rec.attribute6 IS NULL THEN
3348: l_counter_groups_rec.attribute6 := l_old_counter_groups_rec.attribute6;
3349: ELSIF p_counter_groups_rec.attribute6 = FND_API.G_MISS_CHAR THEN
3350: l_counter_groups_rec.attribute6 := NULL;
3351: END IF;
3352:
3353: IF p_counter_groups_rec.attribute7 IS NULL THEN

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

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

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

3357: END IF;
3358:
3359: IF p_counter_groups_rec.attribute8 IS NULL THEN
3360: l_counter_groups_rec.attribute8 := l_old_counter_groups_rec.attribute8;
3361: ELSIF p_counter_groups_rec.attribute8 = FND_API.G_MISS_CHAR THEN
3362: l_counter_groups_rec.attribute8 := NULL;
3363: END IF;
3364:
3365: IF p_counter_groups_rec.attribute9 IS NULL THEN

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

3363: END IF;
3364:
3365: IF p_counter_groups_rec.attribute9 IS NULL THEN
3366: l_counter_groups_rec.attribute9 := l_old_counter_groups_rec.attribute9;
3367: ELSIF p_counter_groups_rec.attribute9 = FND_API.G_MISS_CHAR THEN
3368: l_counter_groups_rec.attribute9 := NULL;
3369: END IF;
3370:
3371: IF p_counter_groups_rec.attribute10 IS NULL THEN

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

3369: END IF;
3370:
3371: IF p_counter_groups_rec.attribute10 IS NULL THEN
3372: l_counter_groups_rec.attribute10 := l_old_counter_groups_rec.attribute10;
3373: ELSIF p_counter_groups_rec.attribute10 = FND_API.G_MISS_CHAR THEN
3374: l_counter_groups_rec.attribute10 := NULL;
3375: END IF;
3376:
3377: IF p_counter_groups_rec.attribute11 IS NULL THEN

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

3375: END IF;
3376:
3377: IF p_counter_groups_rec.attribute11 IS NULL THEN
3378: l_counter_groups_rec.attribute11 := l_old_counter_groups_rec.attribute11;
3379: ELSIF p_counter_groups_rec.attribute11 = FND_API.G_MISS_CHAR THEN
3380: l_counter_groups_rec.attribute11 := NULL;
3381: END IF;
3382:
3383: IF p_counter_groups_rec.attribute12 IS NULL THEN

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

3381: END IF;
3382:
3383: IF p_counter_groups_rec.attribute12 IS NULL THEN
3384: l_counter_groups_rec.attribute12 := l_old_counter_groups_rec.attribute12;
3385: ELSIF p_counter_groups_rec.attribute12 = FND_API.G_MISS_CHAR THEN
3386: l_counter_groups_rec.attribute12 := NULL;
3387: END IF;
3388:
3389: IF p_counter_groups_rec.attribute13 IS NULL THEN

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

3387: END IF;
3388:
3389: IF p_counter_groups_rec.attribute13 IS NULL THEN
3390: l_counter_groups_rec.attribute13 := l_old_counter_groups_rec.attribute13;
3391: ELSIF p_counter_groups_rec.attribute13 = FND_API.G_MISS_CHAR THEN
3392: l_counter_groups_rec.attribute13 := NULL;
3393: END IF;
3394:
3395: IF p_counter_groups_rec.attribute14 IS NULL THEN

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

3393: END IF;
3394:
3395: IF p_counter_groups_rec.attribute14 IS NULL THEN
3396: l_counter_groups_rec.attribute14 := l_old_counter_groups_rec.attribute14;
3397: ELSIF p_counter_groups_rec.attribute14 = FND_API.G_MISS_CHAR THEN
3398: l_counter_groups_rec.attribute14 := NULL;
3399: END IF;
3400:
3401: IF p_counter_groups_rec.attribute15 IS NULL THEN

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

3399: END IF;
3400:
3401: IF p_counter_groups_rec.attribute15 IS NULL THEN
3402: l_counter_groups_rec.attribute15 := l_old_counter_groups_rec.attribute15;
3403: ELSIF p_counter_groups_rec.attribute15 = FND_API.G_MISS_CHAR THEN
3404: l_counter_groups_rec.attribute15 := NULL;
3405: END IF;
3406:
3407: IF p_counter_groups_rec.context IS NULL THEN

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

3405: END IF;
3406:
3407: IF p_counter_groups_rec.context IS NULL THEN
3408: l_counter_groups_rec.context := l_old_counter_groups_rec.context;
3409: ELSIF p_counter_groups_rec.context = FND_API.G_MISS_CHAR THEN
3410: l_counter_groups_rec.context := NULL;
3411: END IF;
3412:
3413: IF p_counter_groups_rec.association_type IS NULL THEN

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

3411: END IF;
3412:
3413: IF p_counter_groups_rec.association_type IS NULL THEN
3414: l_counter_groups_rec.association_type := l_old_counter_groups_rec.association_type;
3415: ELSIF p_counter_groups_rec.association_type = FND_API.G_MISS_CHAR THEN
3416: l_counter_groups_rec.association_type := NULL;
3417: END IF;
3418:
3419: IF p_counter_groups_rec.source_object_code IS NULL THEN

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

3417: END IF;
3418:
3419: IF p_counter_groups_rec.source_object_code IS NULL THEN
3420: l_counter_groups_rec.source_object_code := l_old_counter_groups_rec.source_object_code;
3421: ELSIF p_counter_groups_rec.source_object_code = FND_API.G_MISS_CHAR THEN
3422: l_counter_groups_rec.source_object_code := NULL;
3423: END IF;
3424:
3425: IF p_counter_groups_rec.source_object_id IS NULL THEN

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

3423: END IF;
3424:
3425: IF p_counter_groups_rec.source_object_id IS NULL THEN
3426: l_counter_groups_rec.source_object_id := l_old_counter_groups_rec.source_object_id;
3427: ELSIF p_counter_groups_rec.source_object_id = FND_API.G_MISS_NUM THEN
3428: l_counter_groups_rec.source_object_id := NULL;
3429: END IF;
3430:
3431: IF p_counter_groups_rec.source_counter_group_id IS NULL THEN

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

3429: END IF;
3430:
3431: IF p_counter_groups_rec.source_counter_group_id IS NULL THEN
3432: l_counter_groups_rec.source_counter_group_id := l_old_counter_groups_rec.source_counter_group_id;
3433: ELSIF p_counter_groups_rec.source_counter_group_id = FND_API.G_MISS_NUM THEN
3434: l_counter_groups_rec.source_counter_group_id := NULL;
3435: END IF;
3436:
3437: IF p_counter_groups_rec.security_group_id IS NULL THEN

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

3435: END IF;
3436:
3437: IF p_counter_groups_rec.security_group_id IS NULL THEN
3438: l_counter_groups_rec.security_group_id := l_old_counter_groups_rec.security_group_id;
3439: ELSIF p_counter_groups_rec.security_group_id = FND_API.G_MISS_NUM THEN
3440: l_counter_groups_rec.security_group_id := NULL;
3441: END IF;
3442:
3443: -- Counter group name is not updateable

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

3486: ,p_SOURCE_COUNTER_GROUP_ID => p_counter_groups_rec.source_counter_group_id
3487: ,p_SECURITY_GROUP_ID => p_counter_groups_rec.security_group_id
3488: );
3489:
3490: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN
3491: ROLLBACK TO update_counter_group_pvt;
3492: RETURN;
3493: END IF;
3494:

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

3494:
3495:
3496: /* End of API Body */
3497:
3498: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN
3499: COMMIT WORK;
3500: END IF;
3501:
3502: -- Standard call to get message count and IF count is get message info.

Line 3508: WHEN FND_API.G_EXC_ERROR THEN

3504: ( p_count => x_msg_count,
3505: p_data => x_msg_data
3506: );
3507: EXCEPTION
3508: WHEN FND_API.G_EXC_ERROR THEN
3509: x_return_status := FND_API.G_RET_STS_ERROR ;
3510: ROLLBACK TO update_counter_group_pvt;
3511: FND_MSG_PUB.Count_And_Get
3512: ( p_count => x_msg_count,

Line 3509: x_return_status := FND_API.G_RET_STS_ERROR ;

3505: p_data => x_msg_data
3506: );
3507: EXCEPTION
3508: WHEN FND_API.G_EXC_ERROR THEN
3509: x_return_status := FND_API.G_RET_STS_ERROR ;
3510: ROLLBACK TO update_counter_group_pvt;
3511: FND_MSG_PUB.Count_And_Get
3512: ( p_count => x_msg_count,
3513: p_data => x_msg_data

Line 3515: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN

3511: FND_MSG_PUB.Count_And_Get
3512: ( p_count => x_msg_count,
3513: p_data => x_msg_data
3514: );
3515: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
3516: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
3517: ROLLBACK TO update_counter_group_pvt;
3518: FND_MSG_PUB.Count_And_Get
3519: ( p_count => x_msg_count,

Line 3516: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

3512: ( p_count => x_msg_count,
3513: p_data => x_msg_data
3514: );
3515: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
3516: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
3517: ROLLBACK TO update_counter_group_pvt;
3518: FND_MSG_PUB.Count_And_Get
3519: ( p_count => x_msg_count,
3520: p_data => x_msg_data

Line 3523: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

3519: ( p_count => x_msg_count,
3520: p_data => x_msg_data
3521: );
3522: WHEN OTHERS THEN
3523: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
3524: ROLLBACK TO update_counter_group_pvt;
3525: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
3526: FND_MSG_PUB.Add_Exc_Msg
3527: ( G_PKG_NAME,

Line 3615: IF NOT FND_API.Compatible_API_Call (l_api_version,

3611: -- Standard Start of API savepoint
3612: SAVEPOINT update_item_association_pvt;
3613:
3614: -- Standard call to check for call compatibility.
3615: IF NOT FND_API.Compatible_API_Call (l_api_version,
3616: p_api_version,
3617: l_api_name ,
3618: G_PKG_NAME ) THEN
3619: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 3619: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

3615: IF NOT FND_API.Compatible_API_Call (l_api_version,
3616: p_api_version,
3617: l_api_name ,
3618: G_PKG_NAME ) THEN
3619: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3620: END IF;
3621:
3622: -- Initialize message list if p_init_msg_list is set to TRUE.
3623: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

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

3619: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3620: END IF;
3621:
3622: -- Initialize message list if p_init_msg_list is set to TRUE.
3623: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
3624: FND_MSG_PUB.initialize;
3625: END IF;
3626:
3627: -- Initialize API return status to success

Line 3628: x_return_status := FND_API.G_RET_STS_SUCCESS;

3624: FND_MSG_PUB.initialize;
3625: END IF;
3626:
3627: -- Initialize API return status to success
3628: x_return_status := FND_API.G_RET_STS_SUCCESS;
3629:
3630: -- Read the debug profiles values in to global variable 7197402
3631: CSI_CTR_GEN_UTILITY_PVT.read_debug_profiles;
3632:

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

3633: --
3634: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
3635: csi_ctr_gen_utility_pvt.put_line( 'update_item_association_pvt' ||'-'||
3636: p_api_version ||'-'||
3637: nvl(p_commit,FND_API.G_FALSE) ||'-'||
3638: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
3639: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
3640: END IF;
3641:

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

3634: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
3635: csi_ctr_gen_utility_pvt.put_line( 'update_item_association_pvt' ||'-'||
3636: p_api_version ||'-'||
3637: nvl(p_commit,FND_API.G_FALSE) ||'-'||
3638: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
3639: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
3640: END IF;
3641:
3642: /* Start of API Body */

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

3635: csi_ctr_gen_utility_pvt.put_line( 'update_item_association_pvt' ||'-'||
3636: p_api_version ||'-'||
3637: nvl(p_commit,FND_API.G_FALSE) ||'-'||
3638: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
3639: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
3640: END IF;
3641:
3642: /* Start of API Body */
3643: OPEN cur_item_assoc_rec(p_ctr_item_associations_rec.ctr_association_id);

Line 3648: RAISE FND_API.G_EXC_ERROR;

3644: FETCH cur_item_assoc_rec INTO l_old_item_associations_rec;
3645: IF (l_old_item_associations_rec.object_version_number <> nvl(p_ctr_item_associations_rec.OBJECT_VERSION_NUMBER,0)) THEN
3646: FND_MESSAGE.Set_Name('CSI', 'CSI_API_OBJ_VER_MISMATCH');
3647: FND_MSG_PUB.ADD;
3648: RAISE FND_API.G_EXC_ERROR;
3649: END IF;
3650:
3651: CLOSE cur_item_assoc_rec;
3652:

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

3657: l_item_associations_rec := p_ctr_item_associations_rec;
3658:
3659: IF p_ctr_item_associations_rec.group_id IS NULL THEN
3660: l_item_associations_rec.group_id := l_old_item_associations_rec.group_id;
3661: ELSIF p_ctr_item_associations_rec.group_id = FND_API.G_MISS_NUM THEN
3662: l_item_associations_rec.group_id := NULL;
3663: END IF;
3664:
3665: IF p_ctr_item_associations_rec.inventory_item_id IS NULL THEN

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

3663: END IF;
3664:
3665: IF p_ctr_item_associations_rec.inventory_item_id IS NULL THEN
3666: l_item_associations_rec.inventory_item_id := l_old_item_associations_rec.inventory_item_id;
3667: ELSIF p_ctr_item_associations_rec.inventory_item_id = FND_API.G_MISS_NUM THEN
3668: l_item_associations_rec.inventory_item_id := NULL;
3669: END IF;
3670:
3671: IF p_ctr_item_associations_rec.start_date_active IS NULL THEN

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

3669: END IF;
3670:
3671: IF p_ctr_item_associations_rec.start_date_active IS NULL THEN
3672: l_item_associations_rec.start_date_active := l_old_item_associations_rec.start_date_active;
3673: ELSIF p_ctr_item_associations_rec.start_date_active = FND_API.G_MISS_DATE THEN
3674: l_item_associations_rec.start_date_active := NULL;
3675: END IF;
3676:
3677: IF p_ctr_item_associations_rec.end_date_active IS NULL THEN

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

3675: END IF;
3676:
3677: IF p_ctr_item_associations_rec.end_date_active IS NULL THEN
3678: l_item_associations_rec.end_date_active := l_old_item_associations_rec.end_date_active;
3679: ELSIF p_ctr_item_associations_rec.end_date_active = FND_API.G_MISS_DATE THEN
3680: l_item_associations_rec.end_date_active := NULL;
3681: END IF;
3682:
3683: if l_item_associations_rec.end_date_active IS NOT NULL then

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

3687: end if;
3688:
3689: IF p_ctr_item_associations_rec.attribute1 IS NULL THEN
3690: l_item_associations_rec.attribute1 := l_old_item_associations_rec.attribute1;
3691: ELSIF p_ctr_item_associations_rec.attribute1 = FND_API.G_MISS_CHAR THEN
3692: l_item_associations_rec.attribute1 := NULL;
3693: END IF;
3694:
3695: IF p_ctr_item_associations_rec.attribute2 IS NULL THEN

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

3693: END IF;
3694:
3695: IF p_ctr_item_associations_rec.attribute2 IS NULL THEN
3696: l_item_associations_rec.attribute2 := l_old_item_associations_rec.attribute2;
3697: ELSIF p_ctr_item_associations_rec.attribute2 = FND_API.G_MISS_CHAR THEN
3698: l_item_associations_rec.attribute2 := NULL;
3699: END IF;
3700:
3701: IF p_ctr_item_associations_rec.attribute3 IS NULL THEN

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

3699: END IF;
3700:
3701: IF p_ctr_item_associations_rec.attribute3 IS NULL THEN
3702: l_item_associations_rec.attribute3 := l_old_item_associations_rec.attribute3;
3703: ELSIF p_ctr_item_associations_rec.attribute3 = FND_API.G_MISS_CHAR THEN
3704: l_item_associations_rec.attribute3 := NULL;
3705: END IF;
3706:
3707: IF p_ctr_item_associations_rec.attribute4 IS NULL THEN

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

3705: END IF;
3706:
3707: IF p_ctr_item_associations_rec.attribute4 IS NULL THEN
3708: l_item_associations_rec.attribute4 := l_old_item_associations_rec.attribute4;
3709: ELSIF p_ctr_item_associations_rec.attribute4 = FND_API.G_MISS_CHAR THEN
3710: l_item_associations_rec.attribute4 := NULL;
3711: END IF;
3712:
3713: IF p_ctr_item_associations_rec.attribute5 IS NULL THEN

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

3711: END IF;
3712:
3713: IF p_ctr_item_associations_rec.attribute5 IS NULL THEN
3714: l_item_associations_rec.attribute5 := l_old_item_associations_rec.attribute5;
3715: ELSIF p_ctr_item_associations_rec.attribute5 = FND_API.G_MISS_CHAR THEN
3716: l_item_associations_rec.attribute5 := NULL;
3717: END IF;
3718:
3719: IF p_ctr_item_associations_rec.attribute6 IS NULL THEN

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

3717: END IF;
3718:
3719: IF p_ctr_item_associations_rec.attribute6 IS NULL THEN
3720: l_item_associations_rec.attribute6 := l_old_item_associations_rec.attribute6;
3721: ELSIF p_ctr_item_associations_rec.attribute6 = FND_API.G_MISS_CHAR THEN
3722: l_item_associations_rec.attribute6 := NULL;
3723: END IF;
3724:
3725: IF p_ctr_item_associations_rec.attribute7 IS NULL THEN

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

3723: END IF;
3724:
3725: IF p_ctr_item_associations_rec.attribute7 IS NULL THEN
3726: l_item_associations_rec.attribute7 := l_old_item_associations_rec.attribute7;
3727: ELSIF p_ctr_item_associations_rec.attribute7 = FND_API.G_MISS_CHAR THEN
3728: l_item_associations_rec.attribute7 := NULL;
3729: END IF;
3730:
3731: IF p_ctr_item_associations_rec.attribute8 IS NULL THEN

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

3729: END IF;
3730:
3731: IF p_ctr_item_associations_rec.attribute8 IS NULL THEN
3732: l_item_associations_rec.attribute8 := l_old_item_associations_rec.attribute8;
3733: ELSIF p_ctr_item_associations_rec.attribute8 = FND_API.G_MISS_CHAR THEN
3734: l_item_associations_rec.attribute8 := NULL;
3735: END IF;
3736:
3737: IF p_ctr_item_associations_rec.attribute9 IS NULL THEN

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

3735: END IF;
3736:
3737: IF p_ctr_item_associations_rec.attribute9 IS NULL THEN
3738: l_item_associations_rec.attribute9 := l_old_item_associations_rec.attribute9;
3739: ELSIF p_ctr_item_associations_rec.attribute9 = FND_API.G_MISS_CHAR THEN
3740: l_item_associations_rec.attribute9 := NULL;
3741: END IF;
3742:
3743: IF p_ctr_item_associations_rec.attribute10 IS NULL THEN

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

3741: END IF;
3742:
3743: IF p_ctr_item_associations_rec.attribute10 IS NULL THEN
3744: l_item_associations_rec.attribute10 := l_old_item_associations_rec.attribute10;
3745: ELSIF p_ctr_item_associations_rec.attribute10 = FND_API.G_MISS_CHAR THEN
3746: l_item_associations_rec.attribute10 := NULL;
3747: END IF;
3748:
3749: IF p_ctr_item_associations_rec.attribute11 IS NULL THEN

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

3747: END IF;
3748:
3749: IF p_ctr_item_associations_rec.attribute11 IS NULL THEN
3750: l_item_associations_rec.attribute11 := l_old_item_associations_rec.attribute11;
3751: ELSIF p_ctr_item_associations_rec.attribute11 = FND_API.G_MISS_CHAR THEN
3752: l_item_associations_rec.attribute11 := NULL;
3753: END IF;
3754:
3755: IF p_ctr_item_associations_rec.attribute12 IS NULL THEN

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

3753: END IF;
3754:
3755: IF p_ctr_item_associations_rec.attribute12 IS NULL THEN
3756: l_item_associations_rec.attribute12 := l_old_item_associations_rec.attribute12;
3757: ELSIF p_ctr_item_associations_rec.attribute12 = FND_API.G_MISS_CHAR THEN
3758: l_item_associations_rec.attribute12 := NULL;
3759: END IF;
3760:
3761: IF p_ctr_item_associations_rec.attribute13 IS NULL THEN

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

3759: END IF;
3760:
3761: IF p_ctr_item_associations_rec.attribute13 IS NULL THEN
3762: l_item_associations_rec.attribute13 := l_old_item_associations_rec.attribute13;
3763: ELSIF p_ctr_item_associations_rec.attribute13 = FND_API.G_MISS_CHAR THEN
3764: l_item_associations_rec.attribute13 := NULL;
3765: END IF;
3766:
3767: IF p_ctr_item_associations_rec.attribute14 IS NULL THEN

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

3765: END IF;
3766:
3767: IF p_ctr_item_associations_rec.attribute14 IS NULL THEN
3768: l_item_associations_rec.attribute14 := l_old_item_associations_rec.attribute14;
3769: ELSIF p_ctr_item_associations_rec.attribute14 = FND_API.G_MISS_CHAR THEN
3770: l_item_associations_rec.attribute14 := NULL;
3771: END IF;
3772:
3773: IF p_ctr_item_associations_rec.attribute15 IS NULL THEN

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

3771: END IF;
3772:
3773: IF p_ctr_item_associations_rec.attribute15 IS NULL THEN
3774: l_item_associations_rec.attribute15 := l_old_item_associations_rec.attribute15;
3775: ELSIF p_ctr_item_associations_rec.attribute15 = FND_API.G_MISS_CHAR THEN
3776: l_item_associations_rec.attribute15 := NULL;
3777: END IF;
3778:
3779: IF p_ctr_item_associations_rec.attribute_category IS NULL THEN

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

3777: END IF;
3778:
3779: IF p_ctr_item_associations_rec.attribute_category IS NULL THEN
3780: l_item_associations_rec.attribute_category := l_old_item_associations_rec.attribute_category;
3781: ELSIF p_ctr_item_associations_rec.attribute_category = FND_API.G_MISS_CHAR THEN
3782: l_item_associations_rec.attribute_category := NULL;
3783: END IF;
3784:
3785: IF p_ctr_item_associations_rec.associated_to_group IS NULL THEN

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

3783: END IF;
3784:
3785: IF p_ctr_item_associations_rec.associated_to_group IS NULL THEN
3786: l_item_associations_rec.associated_to_group := l_old_item_associations_rec.associated_to_group;
3787: ELSIF p_ctr_item_associations_rec.associated_to_group = FND_API.G_MISS_CHAR THEN
3788: l_item_associations_rec.associated_to_group := NULL;
3789: END IF;
3790:
3791: IF p_ctr_item_associations_rec.usage_rate IS NULL THEN

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

3789: END IF;
3790:
3791: IF p_ctr_item_associations_rec.usage_rate IS NULL THEN
3792: l_item_associations_rec.usage_rate := l_old_item_associations_rec.usage_rate;
3793: ELSIF p_ctr_item_associations_rec.usage_rate = FND_API.G_MISS_NUM THEN
3794: l_item_associations_rec.usage_rate := NULL;
3795: END IF;
3796:
3797: IF p_ctr_item_associations_rec.counter_id IS NULL THEN

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

3795: END IF;
3796:
3797: IF p_ctr_item_associations_rec.counter_id IS NULL THEN
3798: l_item_associations_rec.counter_id := l_old_item_associations_rec.counter_id;
3799: ELSIF p_ctr_item_associations_rec.counter_id = FND_API.G_MISS_NUM THEN
3800: l_item_associations_rec.counter_id := NULL;
3801: END IF;
3802:
3803: IF p_ctr_item_associations_rec.security_group_id IS NULL THEN

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

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

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

3808: END IF;
3809:
3810: IF p_ctr_item_associations_rec.migrated_flag IS NULL THEN
3811: l_item_associations_rec.migrated_flag := l_old_item_associations_rec.migrated_flag;
3812: ELSIF p_ctr_item_associations_rec.migrated_flag = FND_API.G_MISS_CHAR THEN
3813: l_item_associations_rec.migrated_flag := NULL;
3814: END IF;
3815:
3816: IF p_ctr_item_associations_rec.use_past_reading IS NULL THEN

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

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

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

3820: END IF;
3821:
3822: IF p_ctr_item_associations_rec.maint_organization_id IS NULL THEN
3823: l_item_associations_rec.maint_organization_id := l_old_item_associations_rec.maint_organization_id;
3824: ELSIF p_ctr_item_associations_rec.maint_organization_id = FND_API.G_MISS_NUM THEN
3825: l_item_associations_rec.maint_organization_id := NULL;
3826: END IF;
3827:
3828: IF p_ctr_item_associations_rec.primary_failure_flag IS NULL THEN

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

3826: END IF;
3827:
3828: IF p_ctr_item_associations_rec.primary_failure_flag IS NULL THEN
3829: l_item_associations_rec.primary_failure_flag := l_old_item_associations_rec.primary_failure_flag;
3830: ELSIF p_ctr_item_associations_rec.primary_failure_flag = FND_API.G_MISS_CHAR THEN
3831: l_item_associations_rec.primary_failure_flag := NULL;
3832: END IF;
3833:
3834: IF l_item_associations_rec.group_id IS NOT NULL THEN

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

3955: ,p_MAINT_ORGANIZATION_ID => NULL
3956: ,p_PRIMARY_FAILURE_FLAG => p_ctr_item_associations_rec.primary_failure_flag
3957: );
3958:
3959: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN
3960: ROLLBACK TO update_item_association_pvt;
3961: RETURN;
3962: END IF;
3963:

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

3962: END IF;
3963:
3964: /* End of API Body */
3965:
3966: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN
3967: COMMIT WORK;
3968: END IF;
3969:
3970: -- Standard call to get message count and IF count is get message info.

Line 3976: WHEN FND_API.G_EXC_ERROR THEN

3972: ( p_count => x_msg_count,
3973: p_data => x_msg_data
3974: );
3975: EXCEPTION
3976: WHEN FND_API.G_EXC_ERROR THEN
3977: x_return_status := FND_API.G_RET_STS_ERROR ;
3978: ROLLBACK TO update_item_association_pvt;
3979: FND_MSG_PUB.Count_And_Get
3980: ( p_count => x_msg_count,

Line 3977: x_return_status := FND_API.G_RET_STS_ERROR ;

3973: p_data => x_msg_data
3974: );
3975: EXCEPTION
3976: WHEN FND_API.G_EXC_ERROR THEN
3977: x_return_status := FND_API.G_RET_STS_ERROR ;
3978: ROLLBACK TO update_item_association_pvt;
3979: FND_MSG_PUB.Count_And_Get
3980: ( p_count => x_msg_count,
3981: p_data => x_msg_data

Line 3983: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN

3979: FND_MSG_PUB.Count_And_Get
3980: ( p_count => x_msg_count,
3981: p_data => x_msg_data
3982: );
3983: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
3984: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
3985: ROLLBACK TO update_item_association_pvt;
3986: FND_MSG_PUB.Count_And_Get
3987: ( p_count => x_msg_count,

Line 3984: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

3980: ( p_count => x_msg_count,
3981: p_data => x_msg_data
3982: );
3983: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
3984: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
3985: ROLLBACK TO update_item_association_pvt;
3986: FND_MSG_PUB.Count_And_Get
3987: ( p_count => x_msg_count,
3988: p_data => x_msg_data

Line 3991: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

3987: ( p_count => x_msg_count,
3988: p_data => x_msg_data
3989: );
3990: WHEN OTHERS THEN
3991: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
3992: ROLLBACK TO update_item_association_pvt;
3993: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
3994: FND_MSG_PUB.Add_Exc_Msg
3995: ( G_PKG_NAME,

Line 4140: IF NOT FND_API.Compatible_API_Call (l_api_version,

4136: -- Standard Start of API savepoint
4137: SAVEPOINT update_counter_template_pvt;
4138:
4139: -- Standard call to check for call compatibility.
4140: IF NOT FND_API.Compatible_API_Call (l_api_version,
4141: p_api_version,
4142: l_api_name ,
4143: G_PKG_NAME ) THEN
4144: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 4144: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

4140: IF NOT FND_API.Compatible_API_Call (l_api_version,
4141: p_api_version,
4142: l_api_name ,
4143: G_PKG_NAME ) THEN
4144: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
4145: END IF;
4146:
4147: -- Initialize message list if p_init_msg_list is set to TRUE.
4148: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

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

4144: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
4145: END IF;
4146:
4147: -- Initialize message list if p_init_msg_list is set to TRUE.
4148: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
4149: FND_MSG_PUB.initialize;
4150: END IF;
4151:
4152: -- Initialize API return status to success

Line 4153: x_return_status := FND_API.G_RET_STS_SUCCESS;

4149: FND_MSG_PUB.initialize;
4150: END IF;
4151:
4152: -- Initialize API return status to success
4153: x_return_status := FND_API.G_RET_STS_SUCCESS;
4154:
4155: -- Read the debug profiles values in to global variable 7197402
4156: CSI_CTR_GEN_UTILITY_PVT.read_debug_profiles;
4157:

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

4158: --
4159: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
4160: csi_ctr_gen_utility_pvt.put_line( 'update_counter_template_pvt' ||'-'||
4161: p_api_version ||'-'||
4162: nvl(p_commit,FND_API.G_FALSE) ||'-'||
4163: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
4164: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
4165: END IF;
4166:

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

4159: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
4160: csi_ctr_gen_utility_pvt.put_line( 'update_counter_template_pvt' ||'-'||
4161: p_api_version ||'-'||
4162: nvl(p_commit,FND_API.G_FALSE) ||'-'||
4163: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
4164: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
4165: END IF;
4166:
4167: /* Start of API body */

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

4160: csi_ctr_gen_utility_pvt.put_line( 'update_counter_template_pvt' ||'-'||
4161: p_api_version ||'-'||
4162: nvl(p_commit,FND_API.G_FALSE) ||'-'||
4163: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
4164: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
4165: END IF;
4166:
4167: /* Start of API body */
4168: OPEN cur_ctr_template_rec(p_counter_template_rec.counter_id);

Line 4173: RAISE FND_API.G_EXC_ERROR;

4169: FETCH cur_ctr_template_rec INTO l_old_counter_template_rec;
4170: IF (l_old_counter_template_rec.object_version_number <> nvl(p_counter_template_rec.OBJECT_VERSION_NUMBER,0)) THEN
4171: FND_MESSAGE.Set_Name('CSI', 'CSI_API_OBJ_VER_MISMATCH');
4172: FND_MSG_PUB.ADD;
4173: RAISE FND_API.G_EXC_ERROR;
4174: END IF;
4175:
4176: CLOSE cur_ctr_template_rec;
4177:

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

4182: l_counter_template_rec := p_counter_template_rec;
4183:
4184: IF p_counter_template_rec.group_id = NULL THEN
4185: l_counter_template_rec.group_id := l_old_counter_template_rec.group_id;
4186: ELSIF p_counter_template_rec.group_id = FND_API.G_MISS_NUM THEN
4187: l_counter_template_rec.group_id := NULL;
4188: END IF;
4189:
4190: IF p_counter_template_rec.counter_type IS NULL THEN

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

4188: END IF;
4189:
4190: IF p_counter_template_rec.counter_type IS NULL THEN
4191: l_counter_template_rec.counter_type := l_old_counter_template_rec.counter_type;
4192: ELSIF p_counter_template_rec.counter_type = FND_API.G_MISS_CHAR THEN
4193: l_counter_template_rec.counter_type := NULL;
4194: END IF;
4195:
4196: IF p_counter_template_rec.initial_reading IS NULL THEN

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

4194: END IF;
4195:
4196: IF p_counter_template_rec.initial_reading IS NULL THEN
4197: l_counter_template_rec.initial_reading := l_old_counter_template_rec.initial_reading;
4198: ELSIF p_counter_template_rec.initial_reading = FND_API.G_MISS_NUM THEN
4199: l_counter_template_rec.initial_reading := NULL;
4200: END IF;
4201:
4202: IF p_counter_template_rec.step_value IS NULL THEN

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

4200: END IF;
4201:
4202: IF p_counter_template_rec.step_value IS NULL THEN
4203: l_counter_template_rec.step_value := l_old_counter_template_rec.step_value;
4204: ELSIF p_counter_template_rec.step_value = FND_API.G_MISS_NUM THEN
4205: l_counter_template_rec.step_value := NULL;
4206: END IF;
4207:
4208: IF p_counter_template_rec.initial_reading_date IS NULL THEN

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

4206: END IF;
4207:
4208: IF p_counter_template_rec.initial_reading_date IS NULL THEN
4209: l_counter_template_rec.initial_reading_date := l_old_counter_template_rec.initial_reading_date;
4210: ELSIF p_counter_template_rec.initial_reading_date = FND_API.G_MISS_DATE THEN
4211: l_counter_template_rec.initial_reading_date := NULL;
4212: END IF;
4213:
4214: IF p_counter_template_rec.tolerance_plus IS NULL THEN

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

4212: END IF;
4213:
4214: IF p_counter_template_rec.tolerance_plus IS NULL THEN
4215: l_counter_template_rec.tolerance_plus := l_old_counter_template_rec.tolerance_plus;
4216: ELSIF p_counter_template_rec.tolerance_plus = FND_API.G_MISS_NUM THEN
4217: l_counter_template_rec.tolerance_plus := NULL;
4218: END IF;
4219:
4220: IF p_counter_template_rec.tolerance_minus IS NULL THEN

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

4218: END IF;
4219:
4220: IF p_counter_template_rec.tolerance_minus IS NULL THEN
4221: l_counter_template_rec.tolerance_minus := l_old_counter_template_rec.tolerance_minus;
4222: ELSIF p_counter_template_rec.tolerance_minus = FND_API.G_MISS_NUM THEN
4223: l_counter_template_rec.tolerance_minus := NULL;
4224: END IF;
4225:
4226: IF p_counter_template_rec.uom_code IS NULL THEN

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

4224: END IF;
4225:
4226: IF p_counter_template_rec.uom_code IS NULL THEN
4227: l_counter_template_rec.uom_code := l_old_counter_template_rec.uom_code;
4228: ELSIF p_counter_template_rec.uom_code = FND_API.G_MISS_CHAR THEN
4229: l_counter_template_rec.uom_code := NULL;
4230: END IF;
4231:
4232: IF p_counter_template_rec.derive_counter_id IS NULL THEN

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

4230: END IF;
4231:
4232: IF p_counter_template_rec.derive_counter_id IS NULL THEN
4233: l_counter_template_rec.derive_counter_id := l_old_counter_template_rec.derive_counter_id;
4234: ELSIF p_counter_template_rec.derive_counter_id = FND_API.G_MISS_NUM THEN
4235: l_counter_template_rec.derive_counter_id := NULL;
4236: END IF;
4237:
4238: IF p_counter_template_rec.derive_function IS NULL THEN

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

4236: END IF;
4237:
4238: IF p_counter_template_rec.derive_function IS NULL THEN
4239: l_counter_template_rec.derive_function := l_old_counter_template_rec.derive_function;
4240: ELSIF p_counter_template_rec.derive_function = FND_API.G_MISS_CHAR THEN
4241: l_counter_template_rec.derive_function := NULL;
4242: END IF;
4243:
4244: IF p_counter_template_rec.valid_flag IS NULL THEN

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

4242: END IF;
4243:
4244: IF p_counter_template_rec.valid_flag IS NULL THEN
4245: l_counter_template_rec.valid_flag := l_old_counter_template_rec.valid_flag;
4246: ELSIF p_counter_template_rec.valid_flag = FND_API.G_MISS_CHAR THEN
4247: l_counter_template_rec.valid_flag := NULL;
4248: END IF;
4249:
4250: IF p_counter_template_rec.formula_incomplete_flag IS NULL THEN

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

4248: END IF;
4249:
4250: IF p_counter_template_rec.formula_incomplete_flag IS NULL THEN
4251: l_counter_template_rec.formula_incomplete_flag := l_old_counter_template_rec.formula_incomplete_flag;
4252: ELSIF p_counter_template_rec.formula_incomplete_flag = FND_API.G_MISS_CHAR THEN
4253: l_counter_template_rec.formula_incomplete_flag := NULL;
4254: END IF;
4255:
4256: IF p_counter_template_rec.formula_text IS NULL THEN

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

4254: END IF;
4255:
4256: IF p_counter_template_rec.formula_text IS NULL THEN
4257: l_counter_template_rec.formula_text := l_old_counter_template_rec.formula_text;
4258: ELSIF p_counter_template_rec.formula_text = FND_API.G_MISS_CHAR THEN
4259: l_counter_template_rec.formula_text := NULL;
4260: END IF;
4261:
4262: IF p_counter_template_rec.rollover_last_reading IS NULL THEN

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

4260: END IF;
4261:
4262: IF p_counter_template_rec.rollover_last_reading IS NULL THEN
4263: l_counter_template_rec.rollover_last_reading := l_old_counter_template_rec.rollover_last_reading;
4264: ELSIF p_counter_template_rec.rollover_last_reading = FND_API.G_MISS_NUM THEN
4265: l_counter_template_rec.rollover_last_reading := NULL;
4266: END IF;
4267:
4268: IF p_counter_template_rec.rollover_first_reading IS NULL THEN

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

4266: END IF;
4267:
4268: IF p_counter_template_rec.rollover_first_reading IS NULL THEN
4269: l_counter_template_rec.rollover_first_reading := l_old_counter_template_rec.rollover_first_reading;
4270: ELSIF p_counter_template_rec.rollover_first_reading = FND_API.G_MISS_NUM THEN
4271: l_counter_template_rec.rollover_first_reading := NULL;
4272: END IF;
4273:
4274: IF p_counter_template_rec.usage_item_id IS NULL THEN

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

4272: END IF;
4273:
4274: IF p_counter_template_rec.usage_item_id IS NULL THEN
4275: l_counter_template_rec.usage_item_id := l_old_counter_template_rec.usage_item_id;
4276: ELSIF p_counter_template_rec.usage_item_id = FND_API.G_MISS_NUM THEN
4277: l_counter_template_rec.usage_item_id := NULL;
4278: END IF;
4279:
4280: IF p_counter_template_rec.ctr_val_max_seq_no IS NULL THEN

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

4278: END IF;
4279:
4280: IF p_counter_template_rec.ctr_val_max_seq_no IS NULL THEN
4281: l_counter_template_rec.ctr_val_max_seq_no := l_old_counter_template_rec.ctr_val_max_seq_no;
4282: ELSIF p_counter_template_rec.ctr_val_max_seq_no = FND_API.G_MISS_NUM THEN
4283: l_counter_template_rec.ctr_val_max_seq_no := NULL;
4284: END IF;
4285:
4286: IF p_counter_template_rec.start_date_active IS NULL THEN

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

4284: END IF;
4285:
4286: IF p_counter_template_rec.start_date_active IS NULL THEN
4287: l_counter_template_rec.start_date_active := l_old_counter_template_rec.start_date_active;
4288: ELSIF p_counter_template_rec.start_date_active = FND_API.G_MISS_DATE THEN
4289: l_counter_template_rec.start_date_active := NULL;
4290: END IF;
4291:
4292: IF p_counter_template_rec.end_date_active IS NULL THEN

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

4290: END IF;
4291:
4292: IF p_counter_template_rec.end_date_active IS NULL THEN
4293: l_counter_template_rec.end_date_active := l_old_counter_template_rec.end_date_active;
4294: ELSIF p_counter_template_rec.end_date_active = FND_API.G_MISS_DATE THEN
4295: l_counter_template_rec.end_date_active := NULL;
4296: END IF;
4297:
4298: if l_counter_template_rec.end_date_active IS NOT NULL then

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

4303:
4304:
4305: IF p_counter_template_rec.attribute1 IS NULL THEN
4306: l_counter_template_rec.attribute1 := l_old_counter_template_rec.attribute1;
4307: ELSIF p_counter_template_rec.attribute1 = FND_API.G_MISS_CHAR THEN
4308: l_counter_template_rec.attribute1 := NULL;
4309: END IF;
4310:
4311: IF p_counter_template_rec.attribute2 IS NULL THEN

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

4309: END IF;
4310:
4311: IF p_counter_template_rec.attribute2 IS NULL THEN
4312: l_counter_template_rec.attribute2 := l_old_counter_template_rec.attribute2;
4313: ELSIF p_counter_template_rec.attribute2 = FND_API.G_MISS_CHAR THEN
4314: l_counter_template_rec.attribute2 := NULL;
4315: END IF;
4316:
4317: IF p_counter_template_rec.attribute3 IS NULL THEN

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

4315: END IF;
4316:
4317: IF p_counter_template_rec.attribute3 IS NULL THEN
4318: l_counter_template_rec.attribute3 := l_old_counter_template_rec.attribute3;
4319: ELSIF p_counter_template_rec.attribute3 = FND_API.G_MISS_CHAR THEN
4320: l_counter_template_rec.attribute3 := NULL;
4321: END IF;
4322:
4323: IF p_counter_template_rec.attribute4 IS NULL THEN

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

4321: END IF;
4322:
4323: IF p_counter_template_rec.attribute4 IS NULL THEN
4324: l_counter_template_rec.attribute4 := l_old_counter_template_rec.attribute4;
4325: ELSIF p_counter_template_rec.attribute4 = FND_API.G_MISS_CHAR THEN
4326: l_counter_template_rec.attribute4 := NULL;
4327: END IF;
4328:
4329: IF p_counter_template_rec.attribute5 IS NULL THEN

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

4327: END IF;
4328:
4329: IF p_counter_template_rec.attribute5 IS NULL THEN
4330: l_counter_template_rec.attribute5 := l_old_counter_template_rec.attribute5;
4331: ELSIF p_counter_template_rec.attribute5 = FND_API.G_MISS_CHAR THEN
4332: l_counter_template_rec.attribute5 := NULL;
4333: END IF;
4334:
4335: IF p_counter_template_rec.attribute6 IS NULL THEN

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

4333: END IF;
4334:
4335: IF p_counter_template_rec.attribute6 IS NULL THEN
4336: l_counter_template_rec.attribute6 := l_old_counter_template_rec.attribute6;
4337: ELSIF p_counter_template_rec.attribute6 = FND_API.G_MISS_CHAR THEN
4338: l_counter_template_rec.attribute6 := NULL;
4339: END IF;
4340:
4341: IF p_counter_template_rec.attribute7 IS NULL THEN

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

4339: END IF;
4340:
4341: IF p_counter_template_rec.attribute7 IS NULL THEN
4342: l_counter_template_rec.attribute7 := l_old_counter_template_rec.attribute7;
4343: ELSIF p_counter_template_rec.attribute7 = FND_API.G_MISS_CHAR THEN
4344: l_counter_template_rec.attribute7 := NULL;
4345: END IF;
4346:
4347: IF p_counter_template_rec.attribute8 IS NULL THEN

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

4345: END IF;
4346:
4347: IF p_counter_template_rec.attribute8 IS NULL THEN
4348: l_counter_template_rec.attribute8 := l_old_counter_template_rec.attribute8;
4349: ELSIF p_counter_template_rec.attribute8 = FND_API.G_MISS_CHAR THEN
4350: l_counter_template_rec.attribute8 := NULL;
4351: END IF;
4352:
4353: IF p_counter_template_rec.attribute9 IS NULL THEN

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

4351: END IF;
4352:
4353: IF p_counter_template_rec.attribute9 IS NULL THEN
4354: l_counter_template_rec.attribute9 := l_old_counter_template_rec.attribute9;
4355: ELSIF p_counter_template_rec.attribute9 = FND_API.G_MISS_CHAR THEN
4356: l_counter_template_rec.attribute9 := NULL;
4357: END IF;
4358:
4359: IF p_counter_template_rec.attribute10 IS NULL THEN

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

4357: END IF;
4358:
4359: IF p_counter_template_rec.attribute10 IS NULL THEN
4360: l_counter_template_rec.attribute10 := l_old_counter_template_rec.attribute10;
4361: ELSIF p_counter_template_rec.attribute10 = FND_API.G_MISS_CHAR THEN
4362: l_counter_template_rec.attribute10 := NULL;
4363: END IF;
4364:
4365: IF p_counter_template_rec.attribute11 IS NULL THEN

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

4363: END IF;
4364:
4365: IF p_counter_template_rec.attribute11 IS NULL THEN
4366: l_counter_template_rec.attribute11 := l_old_counter_template_rec.attribute11;
4367: ELSIF p_counter_template_rec.attribute11 = FND_API.G_MISS_CHAR THEN
4368: l_counter_template_rec.attribute11 := NULL;
4369: END IF;
4370:
4371: IF p_counter_template_rec.attribute12 IS NULL THEN

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

4369: END IF;
4370:
4371: IF p_counter_template_rec.attribute12 IS NULL THEN
4372: l_counter_template_rec.attribute12 := l_old_counter_template_rec.attribute12;
4373: ELSIF p_counter_template_rec.attribute12 = FND_API.G_MISS_CHAR THEN
4374: l_counter_template_rec.attribute12 := NULL;
4375: END IF;
4376:
4377: IF p_counter_template_rec.attribute13 IS NULL THEN

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

4375: END IF;
4376:
4377: IF p_counter_template_rec.attribute13 IS NULL THEN
4378: l_counter_template_rec.attribute13 := l_old_counter_template_rec.attribute13;
4379: ELSIF p_counter_template_rec.attribute13 = FND_API.G_MISS_CHAR THEN
4380: l_counter_template_rec.attribute13 := NULL;
4381: END IF;
4382:
4383: IF p_counter_template_rec.attribute14 IS NULL THEN

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

4381: END IF;
4382:
4383: IF p_counter_template_rec.attribute14 IS NULL THEN
4384: l_counter_template_rec.attribute14 := l_old_counter_template_rec.attribute14;
4385: ELSIF p_counter_template_rec.attribute14 = FND_API.G_MISS_CHAR THEN
4386: l_counter_template_rec.attribute14 := NULL;
4387: END IF;
4388:
4389: IF p_counter_template_rec.attribute15 IS NULL THEN

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

4387: END IF;
4388:
4389: IF p_counter_template_rec.attribute15 IS NULL THEN
4390: l_counter_template_rec.attribute15 := l_old_counter_template_rec.attribute15;
4391: ELSIF p_counter_template_rec.attribute15 = FND_API.G_MISS_CHAR THEN
4392: l_counter_template_rec.attribute15 := NULL;
4393: END IF;
4394:
4395: IF p_counter_template_rec.attribute16 IS NULL THEN

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

4393: END IF;
4394:
4395: IF p_counter_template_rec.attribute16 IS NULL THEN
4396: l_counter_template_rec.attribute16 := l_old_counter_template_rec.attribute16;
4397: ELSIF p_counter_template_rec.attribute16 = FND_API.G_MISS_CHAR THEN
4398: l_counter_template_rec.attribute16 := NULL;
4399: END IF;
4400:
4401: IF p_counter_template_rec.attribute17 IS NULL THEN

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

4399: END IF;
4400:
4401: IF p_counter_template_rec.attribute17 IS NULL THEN
4402: l_counter_template_rec.attribute17 := l_old_counter_template_rec.attribute17;
4403: ELSIF p_counter_template_rec.attribute17 = FND_API.G_MISS_CHAR THEN
4404: l_counter_template_rec.attribute17 := NULL;
4405: END IF;
4406:
4407: IF p_counter_template_rec.attribute18 IS NULL THEN

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

4405: END IF;
4406:
4407: IF p_counter_template_rec.attribute18 IS NULL THEN
4408: l_counter_template_rec.attribute18 := l_old_counter_template_rec.attribute18;
4409: ELSIF p_counter_template_rec.attribute18 = FND_API.G_MISS_CHAR THEN
4410: l_counter_template_rec.attribute18 := NULL;
4411: END IF;
4412:
4413: IF p_counter_template_rec.attribute19 IS NULL THEN

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

4411: END IF;
4412:
4413: IF p_counter_template_rec.attribute19 IS NULL THEN
4414: l_counter_template_rec.attribute19 := l_old_counter_template_rec.attribute19;
4415: ELSIF p_counter_template_rec.attribute19 = FND_API.G_MISS_CHAR THEN
4416: l_counter_template_rec.attribute19 := NULL;
4417: END IF;
4418:
4419: IF p_counter_template_rec.attribute20 IS NULL THEN

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

4417: END IF;
4418:
4419: IF p_counter_template_rec.attribute20 IS NULL THEN
4420: l_counter_template_rec.attribute20 := l_old_counter_template_rec.attribute20;
4421: ELSIF p_counter_template_rec.attribute20 = FND_API.G_MISS_CHAR THEN
4422: l_counter_template_rec.attribute20 := NULL;
4423: END IF;
4424:
4425: IF p_counter_template_rec.attribute21 IS NULL THEN

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

4423: END IF;
4424:
4425: IF p_counter_template_rec.attribute21 IS NULL THEN
4426: l_counter_template_rec.attribute21 := l_old_counter_template_rec.attribute21;
4427: ELSIF p_counter_template_rec.attribute21 = FND_API.G_MISS_CHAR THEN
4428: l_counter_template_rec.attribute21 := NULL;
4429: END IF;
4430:
4431: IF p_counter_template_rec.attribute22 IS NULL THEN

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

4429: END IF;
4430:
4431: IF p_counter_template_rec.attribute22 IS NULL THEN
4432: l_counter_template_rec.attribute22 := l_old_counter_template_rec.attribute22;
4433: ELSIF p_counter_template_rec.attribute22 = FND_API.G_MISS_CHAR THEN
4434: l_counter_template_rec.attribute22 := NULL;
4435: END IF;
4436:
4437: IF p_counter_template_rec.attribute23 IS NULL THEN

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

4435: END IF;
4436:
4437: IF p_counter_template_rec.attribute23 IS NULL THEN
4438: l_counter_template_rec.attribute23 := l_old_counter_template_rec.attribute23;
4439: ELSIF p_counter_template_rec.attribute23 = FND_API.G_MISS_CHAR THEN
4440: l_counter_template_rec.attribute23 := NULL;
4441: END IF;
4442:
4443: IF p_counter_template_rec.attribute24 IS NULL THEN

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

4441: END IF;
4442:
4443: IF p_counter_template_rec.attribute24 IS NULL THEN
4444: l_counter_template_rec.attribute24 := l_old_counter_template_rec.attribute24;
4445: ELSIF p_counter_template_rec.attribute24 = FND_API.G_MISS_CHAR THEN
4446: l_counter_template_rec.attribute24 := NULL;
4447: END IF;
4448:
4449: IF p_counter_template_rec.attribute25 IS NULL THEN

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

4447: END IF;
4448:
4449: IF p_counter_template_rec.attribute25 IS NULL THEN
4450: l_counter_template_rec.attribute25 := l_old_counter_template_rec.attribute25;
4451: ELSIF p_counter_template_rec.attribute25 = FND_API.G_MISS_CHAR THEN
4452: l_counter_template_rec.attribute25 := NULL;
4453: END IF;
4454:
4455: IF p_counter_template_rec.attribute26 IS NULL THEN

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

4453: END IF;
4454:
4455: IF p_counter_template_rec.attribute26 IS NULL THEN
4456: l_counter_template_rec.attribute26 := l_old_counter_template_rec.attribute26;
4457: ELSIF p_counter_template_rec.attribute26 = FND_API.G_MISS_CHAR THEN
4458: l_counter_template_rec.attribute26 := NULL;
4459: END IF;
4460:
4461: IF p_counter_template_rec.attribute27 IS NULL THEN

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

4459: END IF;
4460:
4461: IF p_counter_template_rec.attribute27 IS NULL THEN
4462: l_counter_template_rec.attribute27 := l_old_counter_template_rec.attribute27;
4463: ELSIF p_counter_template_rec.attribute27 = FND_API.G_MISS_CHAR THEN
4464: l_counter_template_rec.attribute27 := NULL;
4465: END IF;
4466:
4467: IF p_counter_template_rec.attribute28 IS NULL THEN

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

4465: END IF;
4466:
4467: IF p_counter_template_rec.attribute28 IS NULL THEN
4468: l_counter_template_rec.attribute28 := l_old_counter_template_rec.attribute28;
4469: ELSIF p_counter_template_rec.attribute28 = FND_API.G_MISS_CHAR THEN
4470: l_counter_template_rec.attribute28 := NULL;
4471: END IF;
4472:
4473: IF p_counter_template_rec.attribute29 IS NULL THEN

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

4471: END IF;
4472:
4473: IF p_counter_template_rec.attribute29 IS NULL THEN
4474: l_counter_template_rec.attribute29 := l_old_counter_template_rec.attribute29;
4475: ELSIF p_counter_template_rec.attribute29 = FND_API.G_MISS_CHAR THEN
4476: l_counter_template_rec.attribute29 := NULL;
4477: END IF;
4478:
4479: IF p_counter_template_rec.attribute30 IS NULL THEN

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

4477: END IF;
4478:
4479: IF p_counter_template_rec.attribute30 IS NULL THEN
4480: l_counter_template_rec.attribute30 := l_old_counter_template_rec.attribute30;
4481: ELSIF p_counter_template_rec.attribute30 = FND_API.G_MISS_CHAR THEN
4482: l_counter_template_rec.attribute30 := NULL;
4483: END IF;
4484:
4485: IF p_counter_template_rec.attribute_category IS NULL THEN

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

4483: END IF;
4484:
4485: IF p_counter_template_rec.attribute_category IS NULL THEN
4486: l_counter_template_rec.attribute_category := l_old_counter_template_rec.attribute_category;
4487: ELSIF p_counter_template_rec.attribute_category = FND_API.G_MISS_CHAR THEN
4488: l_counter_template_rec.attribute_category := NULL;
4489: END IF;
4490:
4491: IF p_counter_template_rec.customer_view IS NULL THEN

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

4489: END IF;
4490:
4491: IF p_counter_template_rec.customer_view IS NULL THEN
4492: l_counter_template_rec.customer_view := l_old_counter_template_rec.customer_view;
4493: ELSIF p_counter_template_rec.customer_view = FND_API.G_MISS_CHAR THEN
4494: l_counter_template_rec.customer_view := NULL;
4495: END IF;
4496:
4497: IF p_counter_template_rec.direction IS NULL THEN

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

4495: END IF;
4496:
4497: IF p_counter_template_rec.direction IS NULL THEN
4498: l_counter_template_rec.direction := l_old_counter_template_rec.direction;
4499: ELSIF p_counter_template_rec.direction = FND_API.G_MISS_CHAR THEN
4500: l_counter_template_rec.direction := NULL;
4501: END IF;
4502:
4503: IF p_counter_template_rec.filter_type IS NULL THEN

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

4501: END IF;
4502:
4503: IF p_counter_template_rec.filter_type IS NULL THEN
4504: l_counter_template_rec.filter_type := l_old_counter_template_rec.filter_type;
4505: ELSIF p_counter_template_rec.filter_type = FND_API.G_MISS_CHAR THEN
4506: l_counter_template_rec.filter_type := NULL;
4507: END IF;
4508:
4509: IF p_counter_template_rec.filter_reading_count IS NULL THEN

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

4507: END IF;
4508:
4509: IF p_counter_template_rec.filter_reading_count IS NULL THEN
4510: l_counter_template_rec.filter_reading_count := l_old_counter_template_rec.filter_reading_count;
4511: ELSIF p_counter_template_rec.filter_reading_count = FND_API.G_MISS_NUM THEN
4512: l_counter_template_rec.filter_reading_count := NULL;
4513: END IF;
4514:
4515: IF p_counter_template_rec.filter_time_uom IS NULL THEN

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

4513: END IF;
4514:
4515: IF p_counter_template_rec.filter_time_uom IS NULL THEN
4516: l_counter_template_rec.filter_time_uom := l_old_counter_template_rec.filter_time_uom;
4517: ELSIF p_counter_template_rec.filter_time_uom = FND_API.G_MISS_CHAR THEN
4518: l_counter_template_rec.filter_time_uom := NULL;
4519: END IF;
4520:
4521: IF p_counter_template_rec.estimation_id IS NULL THEN

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

4519: END IF;
4520:
4521: IF p_counter_template_rec.estimation_id IS NULL THEN
4522: l_counter_template_rec.estimation_id := l_old_counter_template_rec.estimation_id;
4523: ELSIF p_counter_template_rec.estimation_id = FND_API.G_MISS_NUM THEN
4524: l_counter_template_rec.estimation_id := NULL;
4525: END IF;
4526:
4527: IF p_counter_template_rec.association_type IS NULL THEN

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

4525: END IF;
4526:
4527: IF p_counter_template_rec.association_type IS NULL THEN
4528: l_counter_template_rec.association_type := l_old_counter_template_rec.association_type;
4529: ELSIF p_counter_template_rec.association_type = FND_API.G_MISS_CHAR THEN
4530: l_counter_template_rec.association_type := NULL;
4531: END IF;
4532:
4533: IF p_counter_template_rec.reading_type IS NULL THEN

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

4531: END IF;
4532:
4533: IF p_counter_template_rec.reading_type IS NULL THEN
4534: l_counter_template_rec.reading_type := l_old_counter_template_rec.reading_type;
4535: ELSIF p_counter_template_rec.reading_type = FND_API.G_MISS_NUM THEN
4536: l_counter_template_rec.reading_type := NULL;
4537: END IF;
4538:
4539: IF p_counter_template_rec.automatic_rollover IS NULL THEN

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

4537: END IF;
4538:
4539: IF p_counter_template_rec.automatic_rollover IS NULL THEN
4540: l_counter_template_rec.automatic_rollover := l_old_counter_template_rec.automatic_rollover;
4541: ELSIF p_counter_template_rec.automatic_rollover = FND_API.G_MISS_CHAR THEN
4542: l_counter_template_rec.automatic_rollover := NULL;
4543: END IF;
4544:
4545: IF p_counter_template_rec.default_usage_rate IS NULL THEN

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

4543: END IF;
4544:
4545: IF p_counter_template_rec.default_usage_rate IS NULL THEN
4546: l_counter_template_rec.default_usage_rate := l_old_counter_template_rec.default_usage_rate;
4547: ELSIF p_counter_template_rec.default_usage_rate = FND_API.G_MISS_NUM THEN
4548: l_counter_template_rec.default_usage_rate := NULL;
4549: END IF;
4550:
4551: IF p_counter_template_rec.use_past_reading IS NULL THEN

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

4549: END IF;
4550:
4551: IF p_counter_template_rec.use_past_reading IS NULL THEN
4552: l_counter_template_rec.use_past_reading := l_old_counter_template_rec.use_past_reading;
4553: ELSIF p_counter_template_rec.use_past_reading = FND_API.G_MISS_NUM THEN
4554: l_counter_template_rec.use_past_reading := NULL;
4555: END IF;
4556:
4557: IF p_counter_template_rec.used_in_scheduling IS NULL THEN

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

4555: END IF;
4556:
4557: IF p_counter_template_rec.used_in_scheduling IS NULL THEN
4558: l_counter_template_rec.used_in_scheduling := l_old_counter_template_rec.used_in_scheduling;
4559: ELSIF p_counter_template_rec.used_in_scheduling = FND_API.G_MISS_CHAR THEN
4560: l_counter_template_rec.used_in_scheduling := NULL;
4561: END IF;
4562:
4563: IF p_counter_template_rec.time_based_manual_entry IS NULL THEN

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

4561: END IF;
4562:
4563: IF p_counter_template_rec.time_based_manual_entry IS NULL THEN
4564: l_counter_template_rec.time_based_manual_entry := l_old_counter_template_rec.time_based_manual_entry;
4565: ELSIF p_counter_template_rec.time_based_manual_entry = FND_API.G_MISS_CHAR THEN
4566: l_counter_template_rec.time_based_manual_entry := NULL;
4567: END IF;
4568:
4569: IF l_old_counter_template_rec.used_in_scheduling = 'Y' AND l_counter_template_rec.used_in_scheduling = 'N' THEN

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

4574: X_msg_count => l_msg_count,
4575: X_msg_data => l_msg_data
4576: );
4577:
4578: IF NOT (l_return_status = FND_API.G_RET_STS_SUCCESS ) THEN
4579: csi_ctr_gen_utility_pvt.put_line('used in scheduling cannot be updated');
4580: csi_ctr_gen_utility_pvt.ExitWithErrMsg('CSI_API_USEDINSCHED_NOT_UPDT');
4581: END IF;
4582: END IF;

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

4582: END IF;
4583:
4584: IF p_counter_template_rec.defaulted_group_id IS NULL THEN
4585: l_counter_template_rec.defaulted_group_id := l_old_counter_template_rec.defaulted_group_id;
4586: ELSIF p_counter_template_rec.defaulted_group_id = FND_API.G_MISS_NUM THEN
4587: l_counter_template_rec.defaulted_group_id := NULL;
4588: END IF;
4589:
4590: IF p_counter_template_rec.comments IS NULL THEN

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

4588: END IF;
4589:
4590: IF p_counter_template_rec.comments IS NULL THEN
4591: l_counter_template_rec.comments := l_old_counter_template_rec.comments;
4592: ELSIF p_counter_template_rec.comments = FND_API.G_MISS_CHAR THEN
4593: l_counter_template_rec.comments := NULL;
4594: END IF;
4595:
4596: IF p_counter_template_rec.eam_required_flag IS NULL THEN

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

4594: END IF;
4595:
4596: IF p_counter_template_rec.eam_required_flag IS NULL THEN
4597: l_counter_template_rec.eam_required_flag := l_old_counter_template_rec.eam_required_flag;
4598: ELSIF p_counter_template_rec.eam_required_flag = FND_API.G_MISS_CHAR THEN
4599: l_counter_template_rec.eam_required_flag := NULL;
4600: END IF;
4601:
4602: -- Counter group is not updateable

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

4766: ,p_eam_required_flag => p_counter_template_rec.eam_required_flag
4767: );
4768:
4769:
4770: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN
4771: ROLLBACK TO update_counter_template_pvt;
4772: RETURN;
4773: END IF;
4774:

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

4773: END IF;
4774:
4775: /* End of API Body */
4776:
4777: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN
4778: COMMIT WORK;
4779: END IF;
4780:
4781: -- Standard call to get message count and IF count is get message info.

Line 4787: WHEN FND_API.G_EXC_ERROR THEN

4783: ( p_count => x_msg_count,
4784: p_data => x_msg_data
4785: );
4786: EXCEPTION
4787: WHEN FND_API.G_EXC_ERROR THEN
4788: x_return_status := FND_API.G_RET_STS_ERROR ;
4789: ROLLBACK TO update_counter_template_pvt;
4790: FND_MSG_PUB.Count_And_Get
4791: ( p_count => x_msg_count,

Line 4788: x_return_status := FND_API.G_RET_STS_ERROR ;

4784: p_data => x_msg_data
4785: );
4786: EXCEPTION
4787: WHEN FND_API.G_EXC_ERROR THEN
4788: x_return_status := FND_API.G_RET_STS_ERROR ;
4789: ROLLBACK TO update_counter_template_pvt;
4790: FND_MSG_PUB.Count_And_Get
4791: ( p_count => x_msg_count,
4792: p_data => x_msg_data

Line 4794: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN

4790: FND_MSG_PUB.Count_And_Get
4791: ( p_count => x_msg_count,
4792: p_data => x_msg_data
4793: );
4794: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
4795: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
4796: ROLLBACK TO update_counter_template_pvt;
4797: FND_MSG_PUB.Count_And_Get
4798: ( p_count => x_msg_count,

Line 4795: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

4791: ( p_count => x_msg_count,
4792: p_data => x_msg_data
4793: );
4794: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
4795: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
4796: ROLLBACK TO update_counter_template_pvt;
4797: FND_MSG_PUB.Count_And_Get
4798: ( p_count => x_msg_count,
4799: p_data => x_msg_data

Line 4802: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

4798: ( p_count => x_msg_count,
4799: p_data => x_msg_data
4800: );
4801: WHEN OTHERS THEN
4802: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
4803: ROLLBACK TO update_counter_template_pvt;
4804: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
4805: FND_MSG_PUB.Add_Exc_Msg
4806: ( G_PKG_NAME,

Line 4890: IF NOT FND_API.Compatible_API_Call (l_api_version,

4886: -- Standard Start of API savepoint
4887: SAVEPOINT update_ctr_property_tmpl_pvt;
4888:
4889: -- Standard call to check for call compatibility.
4890: IF NOT FND_API.Compatible_API_Call (l_api_version,
4891: p_api_version,
4892: l_api_name ,
4893: G_PKG_NAME ) THEN
4894: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 4894: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

4890: IF NOT FND_API.Compatible_API_Call (l_api_version,
4891: p_api_version,
4892: l_api_name ,
4893: G_PKG_NAME ) THEN
4894: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
4895: END IF;
4896:
4897: -- Initialize message list if p_init_msg_list is set to TRUE.
4898: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

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

4894: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
4895: END IF;
4896:
4897: -- Initialize message list if p_init_msg_list is set to TRUE.
4898: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
4899: FND_MSG_PUB.initialize;
4900: END IF;
4901:
4902: -- Initialize API return status to success

Line 4903: x_return_status := FND_API.G_RET_STS_SUCCESS;

4899: FND_MSG_PUB.initialize;
4900: END IF;
4901:
4902: -- Initialize API return status to success
4903: x_return_status := FND_API.G_RET_STS_SUCCESS;
4904:
4905: -- Read the debug profiles values in to global variable 7197402
4906: CSI_CTR_GEN_UTILITY_PVT.read_debug_profiles;
4907:

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

4908: --
4909: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
4910: csi_ctr_gen_utility_pvt.put_line( 'update_ctr_property_tmpl_pvt' ||'-'||
4911: p_api_version ||'-'||
4912: nvl(p_commit,FND_API.G_FALSE) ||'-'||
4913: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
4914: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
4915: END IF;
4916:

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

4909: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
4910: csi_ctr_gen_utility_pvt.put_line( 'update_ctr_property_tmpl_pvt' ||'-'||
4911: p_api_version ||'-'||
4912: nvl(p_commit,FND_API.G_FALSE) ||'-'||
4913: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
4914: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
4915: END IF;
4916:
4917: /* Start of API Body */

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

4910: csi_ctr_gen_utility_pvt.put_line( 'update_ctr_property_tmpl_pvt' ||'-'||
4911: p_api_version ||'-'||
4912: nvl(p_commit,FND_API.G_FALSE) ||'-'||
4913: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
4914: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
4915: END IF;
4916:
4917: /* Start of API Body */
4918: OPEN cur_ctr_prop_rec(p_ctr_property_template_rec.counter_property_id);

Line 4923: RAISE FND_API.G_EXC_ERROR;

4919: FETCH cur_ctr_prop_rec INTO l_old_ctr_property_tmpl_rec;
4920: IF (l_old_ctr_property_tmpl_rec.object_version_number <> nvl(p_ctr_property_template_rec.OBJECT_VERSION_NUMBER,0)) THEN
4921: FND_MESSAGE.Set_Name('CSI', 'CSI_API_OBJ_VER_MISMATCH');
4922: FND_MSG_PUB.ADD;
4923: RAISE FND_API.G_EXC_ERROR;
4924: END IF;
4925:
4926: CLOSE cur_ctr_prop_rec;
4927:

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

4932: l_ctr_property_tmpl_rec := p_ctr_property_template_rec;
4933:
4934: IF p_ctr_property_template_rec.name IS NULL THEN
4935: l_ctr_property_tmpl_rec.name := l_old_ctr_property_tmpl_rec.name;
4936: ELSIF p_ctr_property_template_rec.name = FND_API.G_MISS_CHAR THEN
4937: l_ctr_property_tmpl_rec.name := NULL;
4938: END IF;
4939:
4940: IF p_ctr_property_template_rec.description IS NULL THEN

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

4938: END IF;
4939:
4940: IF p_ctr_property_template_rec.description IS NULL THEN
4941: l_ctr_property_tmpl_rec.description := l_old_ctr_property_tmpl_rec.description;
4942: ELSIF p_ctr_property_template_rec.description = FND_API.G_MISS_CHAR THEN
4943: l_ctr_property_tmpl_rec.description := NULL;
4944: END IF;
4945:
4946: IF p_ctr_property_template_rec.counter_id IS NULL THEN

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

4944: END IF;
4945:
4946: IF p_ctr_property_template_rec.counter_id IS NULL THEN
4947: l_ctr_property_tmpl_rec.counter_id := l_old_ctr_property_tmpl_rec.counter_id;
4948: ELSIF p_ctr_property_template_rec.counter_id = FND_API.G_MISS_NUM THEN
4949: l_ctr_property_tmpl_rec.counter_id := NULL;
4950: END IF;
4951:
4952: IF p_ctr_property_template_rec.start_date_active IS NULL THEN

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

4950: END IF;
4951:
4952: IF p_ctr_property_template_rec.start_date_active IS NULL THEN
4953: l_ctr_property_tmpl_rec.start_date_active := l_old_ctr_property_tmpl_rec.start_date_active;
4954: ELSIF p_ctr_property_template_rec.start_date_active = FND_API.G_MISS_DATE THEN
4955: l_ctr_property_tmpl_rec.start_date_active := NULL;
4956: END IF;
4957:
4958: IF p_ctr_property_template_rec.end_date_active IS NULL THEN

Line 4960: ELSIF p_ctr_property_template_rec.end_date_active = FND_API.G_MISS_DATE THEN

4956: END IF;
4957:
4958: IF p_ctr_property_template_rec.end_date_active IS NULL THEN
4959: l_ctr_property_tmpl_rec.end_date_active := l_old_ctr_property_tmpl_rec.end_date_active;
4960: ELSIF p_ctr_property_template_rec.end_date_active = FND_API.G_MISS_DATE THEN
4961: l_ctr_property_tmpl_rec.end_date_active := NULL;
4962: END IF;
4963:
4964: IF p_ctr_property_template_rec.attribute1 IS NULL THEN

Line 4966: ELSIF p_ctr_property_template_rec.attribute1 = FND_API.G_MISS_CHAR THEN

4962: END IF;
4963:
4964: IF p_ctr_property_template_rec.attribute1 IS NULL THEN
4965: l_ctr_property_tmpl_rec.attribute1 := l_old_ctr_property_tmpl_rec.attribute1;
4966: ELSIF p_ctr_property_template_rec.attribute1 = FND_API.G_MISS_CHAR THEN
4967: l_ctr_property_tmpl_rec.attribute1 := NULL;
4968: END IF;
4969:
4970: IF p_ctr_property_template_rec.attribute2 IS NULL THEN

Line 4972: ELSIF p_ctr_property_template_rec.attribute2 = FND_API.G_MISS_CHAR THEN

4968: END IF;
4969:
4970: IF p_ctr_property_template_rec.attribute2 IS NULL THEN
4971: l_ctr_property_tmpl_rec.attribute2 := l_old_ctr_property_tmpl_rec.attribute2;
4972: ELSIF p_ctr_property_template_rec.attribute2 = FND_API.G_MISS_CHAR THEN
4973: l_ctr_property_tmpl_rec.attribute2 := NULL;
4974: END IF;
4975:
4976: IF p_ctr_property_template_rec.attribute3 IS NULL THEN

Line 4978: ELSIF p_ctr_property_template_rec.attribute3 = FND_API.G_MISS_CHAR THEN

4974: END IF;
4975:
4976: IF p_ctr_property_template_rec.attribute3 IS NULL THEN
4977: l_ctr_property_tmpl_rec.attribute3 := l_old_ctr_property_tmpl_rec.attribute3;
4978: ELSIF p_ctr_property_template_rec.attribute3 = FND_API.G_MISS_CHAR THEN
4979: l_ctr_property_tmpl_rec.attribute3 := NULL;
4980: END IF;
4981:
4982: IF p_ctr_property_template_rec.attribute4 IS NULL THEN

Line 4984: ELSIF p_ctr_property_template_rec.attribute4 = FND_API.G_MISS_CHAR THEN

4980: END IF;
4981:
4982: IF p_ctr_property_template_rec.attribute4 IS NULL THEN
4983: l_ctr_property_tmpl_rec.attribute4 := l_old_ctr_property_tmpl_rec.attribute4;
4984: ELSIF p_ctr_property_template_rec.attribute4 = FND_API.G_MISS_CHAR THEN
4985: l_ctr_property_tmpl_rec.attribute4 := NULL;
4986: END IF;
4987:
4988: IF p_ctr_property_template_rec.attribute5 IS NULL THEN

Line 4990: ELSIF p_ctr_property_template_rec.attribute5 = FND_API.G_MISS_CHAR THEN

4986: END IF;
4987:
4988: IF p_ctr_property_template_rec.attribute5 IS NULL THEN
4989: l_ctr_property_tmpl_rec.attribute5 := l_old_ctr_property_tmpl_rec.attribute5;
4990: ELSIF p_ctr_property_template_rec.attribute5 = FND_API.G_MISS_CHAR THEN
4991: l_ctr_property_tmpl_rec.attribute5 := NULL;
4992: END IF;
4993:
4994: IF p_ctr_property_template_rec.attribute6 IS NULL THEN

Line 4996: ELSIF p_ctr_property_template_rec.attribute6 = FND_API.G_MISS_CHAR THEN

4992: END IF;
4993:
4994: IF p_ctr_property_template_rec.attribute6 IS NULL THEN
4995: l_ctr_property_tmpl_rec.attribute6 := l_old_ctr_property_tmpl_rec.attribute6;
4996: ELSIF p_ctr_property_template_rec.attribute6 = FND_API.G_MISS_CHAR THEN
4997: l_ctr_property_tmpl_rec.attribute6 := NULL;
4998: END IF;
4999:
5000: IF p_ctr_property_template_rec.attribute7 IS NULL THEN

Line 5002: ELSIF p_ctr_property_template_rec.attribute7 = FND_API.G_MISS_CHAR THEN

4998: END IF;
4999:
5000: IF p_ctr_property_template_rec.attribute7 IS NULL THEN
5001: l_ctr_property_tmpl_rec.attribute7 := l_old_ctr_property_tmpl_rec.attribute7;
5002: ELSIF p_ctr_property_template_rec.attribute7 = FND_API.G_MISS_CHAR THEN
5003: l_ctr_property_tmpl_rec.attribute7 := NULL;
5004: END IF;
5005:
5006: IF p_ctr_property_template_rec.attribute8 IS NULL THEN

Line 5008: ELSIF p_ctr_property_template_rec.attribute8 = FND_API.G_MISS_CHAR THEN

5004: END IF;
5005:
5006: IF p_ctr_property_template_rec.attribute8 IS NULL THEN
5007: l_ctr_property_tmpl_rec.attribute8 := l_old_ctr_property_tmpl_rec.attribute8;
5008: ELSIF p_ctr_property_template_rec.attribute8 = FND_API.G_MISS_CHAR THEN
5009: l_ctr_property_tmpl_rec.attribute8 := NULL;
5010: END IF;
5011:
5012: IF p_ctr_property_template_rec.attribute9 IS NULL THEN

Line 5014: ELSIF p_ctr_property_template_rec.attribute9 = FND_API.G_MISS_CHAR THEN

5010: END IF;
5011:
5012: IF p_ctr_property_template_rec.attribute9 IS NULL THEN
5013: l_ctr_property_tmpl_rec.attribute9 := l_old_ctr_property_tmpl_rec.attribute9;
5014: ELSIF p_ctr_property_template_rec.attribute9 = FND_API.G_MISS_CHAR THEN
5015: l_ctr_property_tmpl_rec.attribute9 := NULL;
5016: END IF;
5017:
5018: IF p_ctr_property_template_rec.attribute10 IS NULL THEN

Line 5020: ELSIF p_ctr_property_template_rec.attribute10 = FND_API.G_MISS_CHAR THEN

5016: END IF;
5017:
5018: IF p_ctr_property_template_rec.attribute10 IS NULL THEN
5019: l_ctr_property_tmpl_rec.attribute10 := l_old_ctr_property_tmpl_rec.attribute10;
5020: ELSIF p_ctr_property_template_rec.attribute10 = FND_API.G_MISS_CHAR THEN
5021: l_ctr_property_tmpl_rec.attribute10 := NULL;
5022: END IF;
5023:
5024: IF p_ctr_property_template_rec.attribute11 IS NULL THEN

Line 5026: ELSIF p_ctr_property_template_rec.attribute11 = FND_API.G_MISS_CHAR THEN

5022: END IF;
5023:
5024: IF p_ctr_property_template_rec.attribute11 IS NULL THEN
5025: l_ctr_property_tmpl_rec.attribute11 := l_old_ctr_property_tmpl_rec.attribute11;
5026: ELSIF p_ctr_property_template_rec.attribute11 = FND_API.G_MISS_CHAR THEN
5027: l_ctr_property_tmpl_rec.attribute11 := NULL;
5028: END IF;
5029:
5030: IF p_ctr_property_template_rec.attribute12 IS NULL THEN

Line 5032: ELSIF p_ctr_property_template_rec.attribute12 = FND_API.G_MISS_CHAR THEN

5028: END IF;
5029:
5030: IF p_ctr_property_template_rec.attribute12 IS NULL THEN
5031: l_ctr_property_tmpl_rec.attribute12 := l_old_ctr_property_tmpl_rec.attribute12;
5032: ELSIF p_ctr_property_template_rec.attribute12 = FND_API.G_MISS_CHAR THEN
5033: l_ctr_property_tmpl_rec.attribute12 := NULL;
5034: END IF;
5035:
5036: IF p_ctr_property_template_rec.attribute13 IS NULL THEN

Line 5038: ELSIF p_ctr_property_template_rec.attribute13 = FND_API.G_MISS_CHAR THEN

5034: END IF;
5035:
5036: IF p_ctr_property_template_rec.attribute13 IS NULL THEN
5037: l_ctr_property_tmpl_rec.attribute13 := l_old_ctr_property_tmpl_rec.attribute13;
5038: ELSIF p_ctr_property_template_rec.attribute13 = FND_API.G_MISS_CHAR THEN
5039: l_ctr_property_tmpl_rec.attribute13 := NULL;
5040: END IF;
5041:
5042: IF p_ctr_property_template_rec.attribute14 IS NULL THEN

Line 5044: ELSIF p_ctr_property_template_rec.attribute14 = FND_API.G_MISS_CHAR THEN

5040: END IF;
5041:
5042: IF p_ctr_property_template_rec.attribute14 IS NULL THEN
5043: l_ctr_property_tmpl_rec.attribute14 := l_old_ctr_property_tmpl_rec.attribute14;
5044: ELSIF p_ctr_property_template_rec.attribute14 = FND_API.G_MISS_CHAR THEN
5045: l_ctr_property_tmpl_rec.attribute14 := NULL;
5046: END IF;
5047:
5048: IF p_ctr_property_template_rec.attribute15 IS NULL THEN

Line 5050: ELSIF p_ctr_property_template_rec.attribute15 = FND_API.G_MISS_CHAR THEN

5046: END IF;
5047:
5048: IF p_ctr_property_template_rec.attribute15 IS NULL THEN
5049: l_ctr_property_tmpl_rec.attribute15 := l_old_ctr_property_tmpl_rec.attribute15;
5050: ELSIF p_ctr_property_template_rec.attribute15 = FND_API.G_MISS_CHAR THEN
5051: l_ctr_property_tmpl_rec.attribute15 := NULL;
5052: END IF;
5053:
5054: IF p_ctr_property_template_rec.attribute_category IS NULL THEN

Line 5056: ELSIF p_ctr_property_template_rec.attribute_category = FND_API.G_MISS_CHAR THEN

5052: END IF;
5053:
5054: IF p_ctr_property_template_rec.attribute_category IS NULL THEN
5055: l_ctr_property_tmpl_rec.attribute_category := l_old_ctr_property_tmpl_rec.attribute_category;
5056: ELSIF p_ctr_property_template_rec.attribute_category = FND_API.G_MISS_CHAR THEN
5057: l_ctr_property_tmpl_rec.attribute_category := NULL;
5058: END IF;
5059:
5060: IF p_ctr_property_template_rec.property_data_type IS NULL THEN

Line 5062: ELSIF p_ctr_property_template_rec.property_data_type = FND_API.G_MISS_CHAR THEN

5058: END IF;
5059:
5060: IF p_ctr_property_template_rec.property_data_type IS NULL THEN
5061: l_ctr_property_tmpl_rec.property_data_type := l_old_ctr_property_tmpl_rec.property_data_type;
5062: ELSIF p_ctr_property_template_rec.property_data_type = FND_API.G_MISS_CHAR THEN
5063: l_ctr_property_tmpl_rec.property_data_type := NULL;
5064: END IF;
5065:
5066: IF p_ctr_property_template_rec.is_nullable IS NULL THEN

Line 5068: ELSIF p_ctr_property_template_rec.is_nullable = FND_API.G_MISS_CHAR THEN

5064: END IF;
5065:
5066: IF p_ctr_property_template_rec.is_nullable IS NULL THEN
5067: l_ctr_property_tmpl_rec.is_nullable := l_old_ctr_property_tmpl_rec.is_nullable;
5068: ELSIF p_ctr_property_template_rec.is_nullable = FND_API.G_MISS_CHAR THEN
5069: l_ctr_property_tmpl_rec.is_nullable := NULL;
5070: END IF;
5071:
5072: IF p_ctr_property_template_rec.default_value IS NULL THEN

Line 5074: ELSIF p_ctr_property_template_rec.default_value = FND_API.G_MISS_CHAR THEN

5070: END IF;
5071:
5072: IF p_ctr_property_template_rec.default_value IS NULL THEN
5073: l_ctr_property_tmpl_rec.default_value := l_old_ctr_property_tmpl_rec.default_value;
5074: ELSIF p_ctr_property_template_rec.default_value = FND_API.G_MISS_CHAR THEN
5075: l_ctr_property_tmpl_rec.default_value := NULL;
5076: END IF;
5077:
5078: IF p_ctr_property_template_rec.minimum_value IS NULL THEN

Line 5080: ELSIF p_ctr_property_template_rec.minimum_value = FND_API.G_MISS_CHAR THEN

5076: END IF;
5077:
5078: IF p_ctr_property_template_rec.minimum_value IS NULL THEN
5079: l_ctr_property_tmpl_rec.minimum_value := l_old_ctr_property_tmpl_rec.minimum_value;
5080: ELSIF p_ctr_property_template_rec.minimum_value = FND_API.G_MISS_CHAR THEN
5081: l_ctr_property_tmpl_rec.minimum_value := NULL;
5082: END IF;
5083:
5084: IF p_ctr_property_template_rec.maximum_value IS NULL THEN

Line 5086: ELSIF p_ctr_property_template_rec.maximum_value = FND_API.G_MISS_CHAR THEN

5082: END IF;
5083:
5084: IF p_ctr_property_template_rec.maximum_value IS NULL THEN
5085: l_ctr_property_tmpl_rec.maximum_value := l_old_ctr_property_tmpl_rec.maximum_value;
5086: ELSIF p_ctr_property_template_rec.maximum_value = FND_API.G_MISS_CHAR THEN
5087: l_ctr_property_tmpl_rec.maximum_value:= NULL;
5088: END IF;
5089:
5090: IF p_ctr_property_template_rec.uom_code IS NULL THEN

Line 5092: ELSIF p_ctr_property_template_rec.uom_code = FND_API.G_MISS_CHAR THEN

5088: END IF;
5089:
5090: IF p_ctr_property_template_rec.uom_code IS NULL THEN
5091: l_ctr_property_tmpl_rec.uom_code := l_old_ctr_property_tmpl_rec.uom_code;
5092: ELSIF p_ctr_property_template_rec.uom_code = FND_API.G_MISS_CHAR THEN
5093: l_ctr_property_tmpl_rec.uom_code:= NULL;
5094: END IF;
5095:
5096: IF p_ctr_property_template_rec.property_lov_type IS NULL THEN

Line 5098: ELSIF p_ctr_property_template_rec.property_lov_type = FND_API.G_MISS_CHAR THEN

5094: END IF;
5095:
5096: IF p_ctr_property_template_rec.property_lov_type IS NULL THEN
5097: l_ctr_property_tmpl_rec.property_lov_type := l_old_ctr_property_tmpl_rec.property_lov_type;
5098: ELSIF p_ctr_property_template_rec.property_lov_type = FND_API.G_MISS_CHAR THEN
5099: l_ctr_property_tmpl_rec.property_lov_type:= NULL;
5100: END IF;
5101:
5102: IF p_ctr_property_template_rec.migrated_flag IS NULL THEN

Line 5104: ELSIF p_ctr_property_template_rec.migrated_flag = FND_API.G_MISS_CHAR THEN

5100: END IF;
5101:
5102: IF p_ctr_property_template_rec.migrated_flag IS NULL THEN
5103: l_ctr_property_tmpl_rec.migrated_flag := l_old_ctr_property_tmpl_rec.migrated_flag;
5104: ELSIF p_ctr_property_template_rec.migrated_flag = FND_API.G_MISS_CHAR THEN
5105: l_ctr_property_tmpl_rec.migrated_flag:= NULL;
5106: END IF;
5107:
5108: IF p_ctr_property_template_rec.security_group_id IS NULL THEN

Line 5110: ELSIF p_ctr_property_template_rec.security_group_id = FND_API.G_MISS_NUM THEN

5106: END IF;
5107:
5108: IF p_ctr_property_template_rec.security_group_id IS NULL THEN
5109: l_ctr_property_tmpl_rec.security_group_id := l_old_ctr_property_tmpl_rec.security_group_id;
5110: ELSIF p_ctr_property_template_rec.security_group_id = FND_API.G_MISS_NUM THEN
5111: l_ctr_property_tmpl_rec.security_group_id := NULL;
5112: END IF;
5113:
5114: -- Counter property name is not updateable

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

5174: ,p_NAME => p_ctr_property_template_rec.name
5175: ,p_DESCRIPTION => p_ctr_property_template_rec.description
5176: );
5177:
5178: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN
5179: ROLLBACK TO update_ctr_property_tmpl_pvt;
5180: RETURN;
5181: END IF;
5182:

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

5182:
5183:
5184: /* End of API Body */
5185:
5186: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN
5187: COMMIT WORK;
5188: END IF;
5189:
5190: -- Standard call to get message count and IF count is get message info.

Line 5196: WHEN FND_API.G_EXC_ERROR THEN

5192: ( p_count => x_msg_count,
5193: p_data => x_msg_data
5194: );
5195: EXCEPTION
5196: WHEN FND_API.G_EXC_ERROR THEN
5197: x_return_status := FND_API.G_RET_STS_ERROR ;
5198: ROLLBACK TO update_ctr_property_tmpl_pvt;
5199: FND_MSG_PUB.Count_And_Get
5200: ( p_count => x_msg_count,

Line 5197: x_return_status := FND_API.G_RET_STS_ERROR ;

5193: p_data => x_msg_data
5194: );
5195: EXCEPTION
5196: WHEN FND_API.G_EXC_ERROR THEN
5197: x_return_status := FND_API.G_RET_STS_ERROR ;
5198: ROLLBACK TO update_ctr_property_tmpl_pvt;
5199: FND_MSG_PUB.Count_And_Get
5200: ( p_count => x_msg_count,
5201: p_data => x_msg_data

Line 5203: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN

5199: FND_MSG_PUB.Count_And_Get
5200: ( p_count => x_msg_count,
5201: p_data => x_msg_data
5202: );
5203: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
5204: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
5205: ROLLBACK TO update_ctr_property_tmpl_pvt;
5206: FND_MSG_PUB.Count_And_Get
5207: ( p_count => x_msg_count,

Line 5204: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

5200: ( p_count => x_msg_count,
5201: p_data => x_msg_data
5202: );
5203: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
5204: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
5205: ROLLBACK TO update_ctr_property_tmpl_pvt;
5206: FND_MSG_PUB.Count_And_Get
5207: ( p_count => x_msg_count,
5208: p_data => x_msg_data

Line 5211: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

5207: ( p_count => x_msg_count,
5208: p_data => x_msg_data
5209: );
5210: WHEN OTHERS THEN
5211: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
5212: ROLLBACK TO update_ctr_property_tmpl_pvt;
5213: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
5214: FND_MSG_PUB.Add_Exc_Msg
5215: ( G_PKG_NAME,

Line 5309: IF NOT FND_API.Compatible_API_Call (l_api_version,

5305: -- Standard Start of API savepoint
5306: SAVEPOINT update_ctr_relationship_pvt;
5307:
5308: -- Standard call to check for call compatibility.
5309: IF NOT FND_API.Compatible_API_Call (l_api_version,
5310: p_api_version,
5311: l_api_name ,
5312: G_PKG_NAME ) THEN
5313: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 5313: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

5309: IF NOT FND_API.Compatible_API_Call (l_api_version,
5310: p_api_version,
5311: l_api_name ,
5312: G_PKG_NAME ) THEN
5313: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
5314: END IF;
5315:
5316: -- Initialize message list if p_init_msg_list is set to TRUE.
5317: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

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

5313: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
5314: END IF;
5315:
5316: -- Initialize message list if p_init_msg_list is set to TRUE.
5317: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
5318: FND_MSG_PUB.initialize;
5319: END IF;
5320:
5321: -- Initialize API return status to success

Line 5322: x_return_status := FND_API.G_RET_STS_SUCCESS;

5318: FND_MSG_PUB.initialize;
5319: END IF;
5320:
5321: -- Initialize API return status to success
5322: x_return_status := FND_API.G_RET_STS_SUCCESS;
5323:
5324: -- Read the debug profiles values in to global variable 7197402
5325: CSI_CTR_GEN_UTILITY_PVT.read_debug_profiles;
5326:

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

5327: --
5328: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
5329: csi_ctr_gen_utility_pvt.put_line( 'update_ctr_relationship_pvt' ||'-'||
5330: p_api_version ||'-'||
5331: nvl(p_commit,FND_API.G_FALSE) ||'-'||
5332: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
5333: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
5334: END IF;
5335:

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

5328: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
5329: csi_ctr_gen_utility_pvt.put_line( 'update_ctr_relationship_pvt' ||'-'||
5330: p_api_version ||'-'||
5331: nvl(p_commit,FND_API.G_FALSE) ||'-'||
5332: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
5333: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
5334: END IF;
5335:
5336: /* Start of API Body */

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

5329: csi_ctr_gen_utility_pvt.put_line( 'update_ctr_relationship_pvt' ||'-'||
5330: p_api_version ||'-'||
5331: nvl(p_commit,FND_API.G_FALSE) ||'-'||
5332: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
5333: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
5334: END IF;
5335:
5336: /* Start of API Body */
5337: OPEN cur_rel_rec(p_counter_relationships_rec.relationship_id);

Line 5342: ELSIF p_counter_relationships_rec.object_version_number = FND_API.G_MISS_NUM THEN

5338: FETCH cur_rel_rec INTO l_old_ctr_relationships_rec;
5339:
5340: IF p_counter_relationships_rec.object_version_number IS NULL THEN
5341: l_ctr_relationships_rec.object_version_number := l_old_ctr_relationships_rec.object_version_number;
5342: ELSIF p_counter_relationships_rec.object_version_number = FND_API.G_MISS_NUM THEN
5343: l_ctr_relationships_rec.object_version_number := NULL;
5344: END IF;
5345:
5346: IF (l_old_ctr_relationships_rec.object_version_number <> nvl(p_counter_relationships_rec.OBJECT_VERSION_NUMBER,0)) THEN

Line 5349: RAISE FND_API.G_EXC_ERROR;

5345:
5346: IF (l_old_ctr_relationships_rec.object_version_number <> nvl(p_counter_relationships_rec.OBJECT_VERSION_NUMBER,0)) THEN
5347: FND_MESSAGE.Set_Name('CSI', 'CSI_API_OBJ_VER_MISMATCH');
5348: FND_MSG_PUB.ADD;
5349: RAISE FND_API.G_EXC_ERROR;
5350: END IF;
5351:
5352: CLOSE cur_rel_rec;
5353:

Line 5362: ELSIF p_counter_relationships_rec.ctr_association_id = FND_API.G_MISS_NUM THEN

5358: l_ctr_relationships_rec := p_counter_relationships_rec;
5359:
5360: IF p_counter_relationships_rec.ctr_association_id IS NULL THEN
5361: l_ctr_relationships_rec.ctr_association_id := l_old_ctr_relationships_rec.ctr_association_id;
5362: ELSIF p_counter_relationships_rec.ctr_association_id = FND_API.G_MISS_NUM THEN
5363: l_ctr_relationships_rec.ctr_association_id := NULL;
5364: END IF;
5365:
5366: IF p_counter_relationships_rec.relationship_type_code IS NULL THEN

Line 5368: ELSIF p_counter_relationships_rec.relationship_type_code = FND_API.G_MISS_CHAR THEN

5364: END IF;
5365:
5366: IF p_counter_relationships_rec.relationship_type_code IS NULL THEN
5367: l_ctr_relationships_rec.relationship_type_code := l_old_ctr_relationships_rec.relationship_type_code;
5368: ELSIF p_counter_relationships_rec.relationship_type_code = FND_API.G_MISS_CHAR THEN
5369: l_ctr_relationships_rec.relationship_type_code := NULL;
5370: END IF;
5371:
5372: IF p_counter_relationships_rec.source_counter_id IS NULL THEN

Line 5374: ELSIF p_counter_relationships_rec.source_counter_id = FND_API.G_MISS_NUM THEN

5370: END IF;
5371:
5372: IF p_counter_relationships_rec.source_counter_id IS NULL THEN
5373: l_ctr_relationships_rec.source_counter_id := l_old_ctr_relationships_rec.source_counter_id;
5374: ELSIF p_counter_relationships_rec.source_counter_id = FND_API.G_MISS_NUM THEN
5375: l_ctr_relationships_rec.source_counter_id := NULL;
5376: END IF;
5377:
5378: IF p_counter_relationships_rec.object_counter_id IS NULL THEN

Line 5380: ELSIF p_counter_relationships_rec.object_counter_id = FND_API.G_MISS_NUM THEN

5376: END IF;
5377:
5378: IF p_counter_relationships_rec.object_counter_id IS NULL THEN
5379: l_ctr_relationships_rec.object_counter_id := l_old_ctr_relationships_rec.object_counter_id;
5380: ELSIF p_counter_relationships_rec.object_counter_id = FND_API.G_MISS_NUM THEN
5381: l_ctr_relationships_rec.object_counter_id := NULL;
5382: END IF;
5383:
5384: IF p_counter_relationships_rec.active_start_date IS NULL THEN

Line 5386: ELSIF p_counter_relationships_rec.active_start_date = FND_API.G_MISS_DATE THEN

5382: END IF;
5383:
5384: IF p_counter_relationships_rec.active_start_date IS NULL THEN
5385: l_ctr_relationships_rec.active_start_date := l_old_ctr_relationships_rec.active_start_date;
5386: ELSIF p_counter_relationships_rec.active_start_date = FND_API.G_MISS_DATE THEN
5387: l_ctr_relationships_rec.active_start_date := NULL;
5388: END IF;
5389:
5390: IF p_counter_relationships_rec.active_end_date IS NULL THEN

Line 5392: ELSIF p_counter_relationships_rec.active_end_date = FND_API.G_MISS_DATE THEN

5388: END IF;
5389:
5390: IF p_counter_relationships_rec.active_end_date IS NULL THEN
5391: l_ctr_relationships_rec.active_end_date := l_old_ctr_relationships_rec.active_end_date;
5392: ELSIF p_counter_relationships_rec.active_end_date = FND_API.G_MISS_DATE THEN
5393: l_ctr_relationships_rec.active_end_date := NULL;
5394: END IF;
5395:
5396: IF p_counter_relationships_rec.attribute1 IS NULL THEN

Line 5398: ELSIF p_counter_relationships_rec.attribute1 = FND_API.G_MISS_CHAR THEN

5394: END IF;
5395:
5396: IF p_counter_relationships_rec.attribute1 IS NULL THEN
5397: l_ctr_relationships_rec.attribute1 := l_old_ctr_relationships_rec.attribute1;
5398: ELSIF p_counter_relationships_rec.attribute1 = FND_API.G_MISS_CHAR THEN
5399: l_ctr_relationships_rec.attribute1 := NULL;
5400: END IF;
5401:
5402: IF p_counter_relationships_rec.attribute2 IS NULL THEN

Line 5404: ELSIF p_counter_relationships_rec.attribute2 = FND_API.G_MISS_CHAR THEN

5400: END IF;
5401:
5402: IF p_counter_relationships_rec.attribute2 IS NULL THEN
5403: l_ctr_relationships_rec.attribute2 := l_old_ctr_relationships_rec.attribute2;
5404: ELSIF p_counter_relationships_rec.attribute2 = FND_API.G_MISS_CHAR THEN
5405: l_ctr_relationships_rec.attribute2 := NULL;
5406: END IF;
5407:
5408: IF p_counter_relationships_rec.attribute3 IS NULL THEN

Line 5410: ELSIF p_counter_relationships_rec.attribute3 = FND_API.G_MISS_CHAR THEN

5406: END IF;
5407:
5408: IF p_counter_relationships_rec.attribute3 IS NULL THEN
5409: l_ctr_relationships_rec.attribute3 := l_old_ctr_relationships_rec.attribute3;
5410: ELSIF p_counter_relationships_rec.attribute3 = FND_API.G_MISS_CHAR THEN
5411: l_ctr_relationships_rec.attribute3 := NULL;
5412: END IF;
5413:
5414: IF p_counter_relationships_rec.attribute4 IS NULL THEN

Line 5416: ELSIF p_counter_relationships_rec.attribute4 = FND_API.G_MISS_CHAR THEN

5412: END IF;
5413:
5414: IF p_counter_relationships_rec.attribute4 IS NULL THEN
5415: l_ctr_relationships_rec.attribute4 := l_old_ctr_relationships_rec.attribute4;
5416: ELSIF p_counter_relationships_rec.attribute4 = FND_API.G_MISS_CHAR THEN
5417: l_ctr_relationships_rec.attribute4 := NULL;
5418: END IF;
5419:
5420: IF p_counter_relationships_rec.attribute5 IS NULL THEN

Line 5422: ELSIF p_counter_relationships_rec.attribute5 = FND_API.G_MISS_CHAR THEN

5418: END IF;
5419:
5420: IF p_counter_relationships_rec.attribute5 IS NULL THEN
5421: l_ctr_relationships_rec.attribute5 := l_old_ctr_relationships_rec.attribute5;
5422: ELSIF p_counter_relationships_rec.attribute5 = FND_API.G_MISS_CHAR THEN
5423: l_ctr_relationships_rec.attribute5 := NULL;
5424: END IF;
5425:
5426: IF p_counter_relationships_rec.attribute6 IS NULL THEN

Line 5428: ELSIF p_counter_relationships_rec.attribute6 = FND_API.G_MISS_CHAR THEN

5424: END IF;
5425:
5426: IF p_counter_relationships_rec.attribute6 IS NULL THEN
5427: l_ctr_relationships_rec.attribute6 := l_old_ctr_relationships_rec.attribute6;
5428: ELSIF p_counter_relationships_rec.attribute6 = FND_API.G_MISS_CHAR THEN
5429: l_ctr_relationships_rec.attribute6 := NULL;
5430: END IF;
5431:
5432: IF p_counter_relationships_rec.attribute7 IS NULL THEN

Line 5434: ELSIF p_counter_relationships_rec.attribute7 = FND_API.G_MISS_CHAR THEN

5430: END IF;
5431:
5432: IF p_counter_relationships_rec.attribute7 IS NULL THEN
5433: l_ctr_relationships_rec.attribute7 := l_old_ctr_relationships_rec.attribute7;
5434: ELSIF p_counter_relationships_rec.attribute7 = FND_API.G_MISS_CHAR THEN
5435: l_ctr_relationships_rec.attribute7 := NULL;
5436: END IF;
5437:
5438: IF p_counter_relationships_rec.attribute8 IS NULL THEN

Line 5440: ELSIF p_counter_relationships_rec.attribute8 = FND_API.G_MISS_CHAR THEN

5436: END IF;
5437:
5438: IF p_counter_relationships_rec.attribute8 IS NULL THEN
5439: l_ctr_relationships_rec.attribute8 := l_old_ctr_relationships_rec.attribute8;
5440: ELSIF p_counter_relationships_rec.attribute8 = FND_API.G_MISS_CHAR THEN
5441: l_ctr_relationships_rec.attribute8 := NULL;
5442: END IF;
5443:
5444: IF p_counter_relationships_rec.attribute9 IS NULL THEN

Line 5446: ELSIF p_counter_relationships_rec.attribute9 = FND_API.G_MISS_CHAR THEN

5442: END IF;
5443:
5444: IF p_counter_relationships_rec.attribute9 IS NULL THEN
5445: l_ctr_relationships_rec.attribute9 := l_old_ctr_relationships_rec.attribute9;
5446: ELSIF p_counter_relationships_rec.attribute9 = FND_API.G_MISS_CHAR THEN
5447: l_ctr_relationships_rec.attribute9 := NULL;
5448: END IF;
5449:
5450: IF p_counter_relationships_rec.attribute10 IS NULL THEN

Line 5452: ELSIF p_counter_relationships_rec.attribute10 = FND_API.G_MISS_CHAR THEN

5448: END IF;
5449:
5450: IF p_counter_relationships_rec.attribute10 IS NULL THEN
5451: l_ctr_relationships_rec.attribute10 := l_old_ctr_relationships_rec.attribute10;
5452: ELSIF p_counter_relationships_rec.attribute10 = FND_API.G_MISS_CHAR THEN
5453: l_ctr_relationships_rec.attribute10 := NULL;
5454: END IF;
5455:
5456: IF p_counter_relationships_rec.attribute11 IS NULL THEN

Line 5458: ELSIF p_counter_relationships_rec.attribute11 = FND_API.G_MISS_CHAR THEN

5454: END IF;
5455:
5456: IF p_counter_relationships_rec.attribute11 IS NULL THEN
5457: l_ctr_relationships_rec.attribute11 := l_old_ctr_relationships_rec.attribute11;
5458: ELSIF p_counter_relationships_rec.attribute11 = FND_API.G_MISS_CHAR THEN
5459: l_ctr_relationships_rec.attribute11 := NULL;
5460: END IF;
5461:
5462: IF p_counter_relationships_rec.attribute12 IS NULL THEN

Line 5464: ELSIF p_counter_relationships_rec.attribute12 = FND_API.G_MISS_CHAR THEN

5460: END IF;
5461:
5462: IF p_counter_relationships_rec.attribute12 IS NULL THEN
5463: l_ctr_relationships_rec.attribute12 := l_old_ctr_relationships_rec.attribute12;
5464: ELSIF p_counter_relationships_rec.attribute12 = FND_API.G_MISS_CHAR THEN
5465: l_ctr_relationships_rec.attribute12 := NULL;
5466: END IF;
5467:
5468: IF p_counter_relationships_rec.attribute13 IS NULL THEN

Line 5470: ELSIF p_counter_relationships_rec.attribute13 = FND_API.G_MISS_CHAR THEN

5466: END IF;
5467:
5468: IF p_counter_relationships_rec.attribute13 IS NULL THEN
5469: l_ctr_relationships_rec.attribute13 := l_old_ctr_relationships_rec.attribute13;
5470: ELSIF p_counter_relationships_rec.attribute13 = FND_API.G_MISS_CHAR THEN
5471: l_ctr_relationships_rec.attribute13 := NULL;
5472: END IF;
5473:
5474: IF p_counter_relationships_rec.attribute14 IS NULL THEN

Line 5476: ELSIF p_counter_relationships_rec.attribute14 = FND_API.G_MISS_CHAR THEN

5472: END IF;
5473:
5474: IF p_counter_relationships_rec.attribute14 IS NULL THEN
5475: l_ctr_relationships_rec.attribute14 := l_old_ctr_relationships_rec.attribute14;
5476: ELSIF p_counter_relationships_rec.attribute14 = FND_API.G_MISS_CHAR THEN
5477: l_ctr_relationships_rec.attribute14 := NULL;
5478: END IF;
5479:
5480: IF p_counter_relationships_rec.attribute15 IS NULL THEN

Line 5482: ELSIF p_counter_relationships_rec.attribute15 = FND_API.G_MISS_CHAR THEN

5478: END IF;
5479:
5480: IF p_counter_relationships_rec.attribute15 IS NULL THEN
5481: l_ctr_relationships_rec.attribute15 := l_old_ctr_relationships_rec.attribute15;
5482: ELSIF p_counter_relationships_rec.attribute15 = FND_API.G_MISS_CHAR THEN
5483: l_ctr_relationships_rec.attribute15 := NULL;
5484: END IF;
5485:
5486: IF p_counter_relationships_rec.attribute_category IS NULL THEN

Line 5488: ELSIF p_counter_relationships_rec.attribute_category = FND_API.G_MISS_CHAR THEN

5484: END IF;
5485:
5486: IF p_counter_relationships_rec.attribute_category IS NULL THEN
5487: l_ctr_relationships_rec.attribute_category := l_old_ctr_relationships_rec.attribute_category;
5488: ELSIF p_counter_relationships_rec.attribute_category = FND_API.G_MISS_CHAR THEN
5489: l_ctr_relationships_rec.attribute_category := NULL;
5490: END IF;
5491:
5492: IF p_counter_relationships_rec.bind_variable_name IS NULL THEN

Line 5494: ELSIF p_counter_relationships_rec.bind_variable_name = FND_API.G_MISS_CHAR THEN

5490: END IF;
5491:
5492: IF p_counter_relationships_rec.bind_variable_name IS NULL THEN
5493: l_ctr_relationships_rec.bind_variable_name := l_old_ctr_relationships_rec.bind_variable_name;
5494: ELSIF p_counter_relationships_rec.bind_variable_name = FND_API.G_MISS_CHAR THEN
5495: l_ctr_relationships_rec.bind_variable_name := NULL;
5496: END IF;
5497:
5498: IF p_counter_relationships_rec.migrated_flag IS NULL THEN

Line 5500: ELSIF p_counter_relationships_rec.migrated_flag = FND_API.G_MISS_CHAR THEN

5496: END IF;
5497:
5498: IF p_counter_relationships_rec.migrated_flag IS NULL THEN
5499: l_ctr_relationships_rec.migrated_flag := l_old_ctr_relationships_rec.migrated_flag;
5500: ELSIF p_counter_relationships_rec.migrated_flag = FND_API.G_MISS_CHAR THEN
5501: l_ctr_relationships_rec.migrated_flag := NULL;
5502: END IF;
5503:
5504: IF p_counter_relationships_rec.factor IS NULL THEN

Line 5506: ELSIF p_counter_relationships_rec.factor = FND_API.G_MISS_NUM THEN

5502: END IF;
5503:
5504: IF p_counter_relationships_rec.factor IS NULL THEN
5505: l_ctr_relationships_rec.factor := l_old_ctr_relationships_rec.factor;
5506: ELSIF p_counter_relationships_rec.factor = FND_API.G_MISS_NUM THEN
5507: l_ctr_relationships_rec.factor := NULL;
5508: END IF;
5509:
5510: IF p_counter_relationships_rec.security_group_id IS NULL THEN

Line 5512: ELSIF p_counter_relationships_rec.security_group_id = FND_API.G_MISS_NUM THEN

5508: END IF;
5509:
5510: IF p_counter_relationships_rec.security_group_id IS NULL THEN
5511: l_ctr_relationships_rec.security_group_id := l_old_ctr_relationships_rec.security_group_id;
5512: ELSIF p_counter_relationships_rec.security_group_id = FND_API.G_MISS_NUM THEN
5513: l_ctr_relationships_rec.security_group_id := NULL;
5514: END IF;
5515:
5516:

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

5626: ,p_MIGRATED_FLAG => p_counter_relationships_rec.migrated_flag
5627: ,p_BIND_VARIABLE_NAME => p_counter_relationships_rec.bind_variable_name
5628: ,p_FACTOR => p_counter_relationships_rec.factor);
5629:
5630: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN
5631: ROLLBACK TO update_ctr_relationship_pvt;
5632: RETURN;
5633: END IF;
5634:

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

5634:
5635:
5636: /* End of API Body */
5637:
5638: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN
5639: COMMIT WORK;
5640: END IF;
5641:
5642: -- Standard call to get message count and IF count is get message info.

Line 5648: WHEN FND_API.G_EXC_ERROR THEN

5644: ( p_count => x_msg_count,
5645: p_data => x_msg_data
5646: );
5647: EXCEPTION
5648: WHEN FND_API.G_EXC_ERROR THEN
5649: x_return_status := FND_API.G_RET_STS_ERROR ;
5650: ROLLBACK TO update_ctr_relationship_pvt;
5651: FND_MSG_PUB.Count_And_Get
5652: ( p_count => x_msg_count,

Line 5649: x_return_status := FND_API.G_RET_STS_ERROR ;

5645: p_data => x_msg_data
5646: );
5647: EXCEPTION
5648: WHEN FND_API.G_EXC_ERROR THEN
5649: x_return_status := FND_API.G_RET_STS_ERROR ;
5650: ROLLBACK TO update_ctr_relationship_pvt;
5651: FND_MSG_PUB.Count_And_Get
5652: ( p_count => x_msg_count,
5653: p_data => x_msg_data

Line 5655: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN

5651: FND_MSG_PUB.Count_And_Get
5652: ( p_count => x_msg_count,
5653: p_data => x_msg_data
5654: );
5655: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
5656: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
5657: ROLLBACK TO update_ctr_relationship_pvt;
5658: FND_MSG_PUB.Count_And_Get
5659: ( p_count => x_msg_count,

Line 5656: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

5652: ( p_count => x_msg_count,
5653: p_data => x_msg_data
5654: );
5655: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
5656: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
5657: ROLLBACK TO update_ctr_relationship_pvt;
5658: FND_MSG_PUB.Count_And_Get
5659: ( p_count => x_msg_count,
5660: p_data => x_msg_data

Line 5663: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

5659: ( p_count => x_msg_count,
5660: p_data => x_msg_data
5661: );
5662: WHEN OTHERS THEN
5663: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
5664: ROLLBACK TO update_ctr_relationship_pvt;
5665: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
5666: FND_MSG_PUB.Add_Exc_Msg
5667: ( G_PKG_NAME,

Line 5728: IF NOT FND_API.Compatible_API_Call (l_api_version,

5724:
5725: -- csi_ctr_gen_utility_pvt.check_ib_active;
5726:
5727: -- Standard call to check for call compatibility.
5728: IF NOT FND_API.Compatible_API_Call (l_api_version,
5729: p_api_version,
5730: l_api_name ,
5731: G_PKG_NAME )
5732: THEN

Line 5733: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

5729: p_api_version,
5730: l_api_name ,
5731: G_PKG_NAME )
5732: THEN
5733: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
5734: END IF;
5735:
5736: -- Initialize message list if p_init_msg_list is set to TRUE.
5737: IF FND_API.to_Boolean( p_init_msg_list ) THEN

Line 5737: IF FND_API.to_Boolean( p_init_msg_list ) THEN

5733: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
5734: END IF;
5735:
5736: -- Initialize message list if p_init_msg_list is set to TRUE.
5737: IF FND_API.to_Boolean( p_init_msg_list ) THEN
5738: FND_MSG_PUB.initialize;
5739: END IF;
5740:
5741: -- Initialize API return status to success

Line 5742: x_return_status := FND_API.G_RET_STS_SUCCESS;

5738: FND_MSG_PUB.initialize;
5739: END IF;
5740:
5741: -- Initialize API return status to success
5742: x_return_status := FND_API.G_RET_STS_SUCCESS;
5743:
5744: -- Read the debug profiles values in to global variable 7197402
5745: CSI_CTR_GEN_UTILITY_PVT.read_debug_profiles;
5746:

Line 5771: (p_ctr_derived_filters_tbl(tab_row).counter_derived_filter_id = FND_API.G_MISS_NUM))

5767: LOOP
5768: IF p_ctr_derived_filters_tbl.EXISTS(tab_row) THEN
5769: IF ((p_ctr_derived_filters_tbl(tab_row).counter_derived_filter_id IS NULL)
5770: OR
5771: (p_ctr_derived_filters_tbl(tab_row).counter_derived_filter_id = FND_API.G_MISS_NUM))
5772: THEN
5773: create_derived_filters
5774: (p_api_version => p_api_version
5775: ,p_commit => fnd_api.g_false

Line 5775: ,p_commit => fnd_api.g_false

5771: (p_ctr_derived_filters_tbl(tab_row).counter_derived_filter_id = FND_API.G_MISS_NUM))
5772: THEN
5773: create_derived_filters
5774: (p_api_version => p_api_version
5775: ,p_commit => fnd_api.g_false
5776: ,p_init_msg_list => p_init_msg_list
5777: ,p_validation_level => p_validation_level
5778: ,p_ctr_derived_filters_tbl => p_ctr_derived_filters_tbl
5779: ,x_return_status => x_return_status

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

5780: ,x_msg_count => x_msg_count
5781: ,x_msg_data => x_msg_data
5782: );
5783:
5784: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN
5785: l_msg_index := 1;
5786: l_msg_count := x_msg_count;
5787: WHILE l_msg_count > 0 LOOP
5788: x_msg_data := FND_MSG_PUB.GET

Line 5790: FND_API.G_FALSE);

5786: l_msg_count := x_msg_count;
5787: WHILE l_msg_count > 0 LOOP
5788: x_msg_data := FND_MSG_PUB.GET
5789: (l_msg_index,
5790: FND_API.G_FALSE);
5791: csi_ctr_gen_utility_pvt.put_line('Error from CSI_COUNTER_TEMPLATE_PVT.CREATE_DERIVED_FILTERS');
5792: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
5793: l_msg_index := l_msg_index + 1;
5794: l_msg_count := l_msg_count - 1;

Line 5796: RAISE FND_API.G_EXC_ERROR;

5792: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
5793: l_msg_index := l_msg_index + 1;
5794: l_msg_count := l_msg_count - 1;
5795: END LOOP;
5796: RAISE FND_API.G_EXC_ERROR;
5797: END IF;
5798:
5799: ELSE
5800: SELECT counter_id,

Line 5844: IF NVL(l_old_ctr_derived_filters_rec.counter_id, -1) = FND_API.G_MISS_NUM THEN

5840: IF SQL%NOTFOUND THEN
5841: csi_ctr_gen_utility_pvt.ExitWithErrMsg('CSI_API_CTR_DERIVED_FILTER_INVALID');
5842: END IF;
5843:
5844: IF NVL(l_old_ctr_derived_filters_rec.counter_id, -1) = FND_API.G_MISS_NUM THEN
5845: l_counter_id := NULL;
5846: ELSE
5847: l_counter_id := l_old_ctr_derived_filters_rec.counter_id;
5848: END IF;

Line 5868: IF NVL(p_ctr_derived_filters_tbl(tab_row).counter_property_id, -1) <> FND_API.G_MISS_NUM AND

5864: END IF;
5865: END IF;
5866:
5867: -- validate all counter properties
5868: IF NVL(p_ctr_derived_filters_tbl(tab_row).counter_property_id, -1) <> FND_API.G_MISS_NUM AND
5869: NVL(p_ctr_derived_filters_tbl(tab_row).counter_property_id, -1) <> l_old_ctr_derived_filters_rec.counter_property_id THEN
5870: BEGIN
5871: SELECT 'x'
5872: INTO l_dummy

Line 5881: IF p_ctr_derived_filters_tbl(tab_row).LEFT_PARENT NOT IN (FND_API.G_MISS_CHAR,'(', '((', '(((', '((((', '(((((') THEN

5877: END;
5878: END IF;
5879:
5880: -- validate LEFT_PARENT
5881: IF p_ctr_derived_filters_tbl(tab_row).LEFT_PARENT NOT IN (FND_API.G_MISS_CHAR,'(', '((', '(((', '((((', '(((((') THEN
5882: csi_ctr_gen_utility_pvt.ExitWithErrMsg('CSI_API_INV_DER_LEFT_PARENT',
5883: 'PARM',l_ctr_derived_filters_rec.LEFT_PARENT);
5884: END IF;
5885:

Line 5887: IF p_ctr_derived_filters_tbl(tab_row).RIGHT_PARENT NOT IN (FND_API.G_MISS_CHAR,')', '))', ')))', '))))', ')))))') THEN

5883: 'PARM',l_ctr_derived_filters_rec.LEFT_PARENT);
5884: END IF;
5885:
5886: -- validate RIGHT_PARENT
5887: IF p_ctr_derived_filters_tbl(tab_row).RIGHT_PARENT NOT IN (FND_API.G_MISS_CHAR,')', '))', ')))', '))))', ')))))') THEN
5888: csi_ctr_gen_utility_pvt.ExitWithErrMsg('CSI_API_INV_DER_RIGHT_PARENT',
5889: 'PARM',l_ctr_derived_filters_rec.RIGHT_PARENT);
5890: END IF;
5891:

Line 5893: IF p_ctr_derived_filters_tbl(tab_row).RELATIONAL_OPERATOR NOT IN (FND_API.G_MISS_CHAR,'=', '<', '<=', '>', '>=', '!=', '<>') THEN

5889: 'PARM',l_ctr_derived_filters_rec.RIGHT_PARENT);
5890: END IF;
5891:
5892: -- validate RELATIONAL_OPERATOR
5893: IF p_ctr_derived_filters_tbl(tab_row).RELATIONAL_OPERATOR NOT IN (FND_API.G_MISS_CHAR,'=', '<', '<=', '>', '>=', '!=', '<>') THEN
5894: csi_ctr_gen_utility_pvt.ExitWithErrMsg('CSI_API_INV_DER_REL_OPERATOR',
5895: 'PARM',l_ctr_derived_filters_rec.RELATIONAL_OPERATOR);
5896: END IF;
5897:

Line 5900: IF p_ctr_derived_filters_tbl(tab_row).LOGICAL_OPERATOR = FND_API.G_MISS_CHAR then

5896: END IF;
5897:
5898: -- validate LOGICAL_OPERATOR
5899: -- l_log_op := upper(l_ctr_derived_filters_rec.LOGICAL_OPERATOR);
5900: IF p_ctr_derived_filters_tbl(tab_row).LOGICAL_OPERATOR = FND_API.G_MISS_CHAR then
5901: l_log_op := null;
5902: ELSE
5903: l_log_op := upper(p_ctr_derived_filters_tbl(tab_row).LOGICAL_OPERATOR);
5904: END IF;

Line 5907: IF l_log_op NOT IN (FND_API.G_MISS_CHAR, 'AND', 'OR') THEN

5903: l_log_op := upper(p_ctr_derived_filters_tbl(tab_row).LOGICAL_OPERATOR);
5904: END IF;
5905:
5906: IF l_log_op IS NOT NULL THEN
5907: IF l_log_op NOT IN (FND_API.G_MISS_CHAR, 'AND', 'OR') THEN
5908: csi_ctr_gen_utility_pvt.ExitWithErrMsg('CSI_API_INV_DER_LOG_OPERATOR', 'PARM',l_ctr_derived_filters_rec.LOGICAL_OPERATOR);
5909: END IF;
5910: END IF;
5911:

Line 5916: IF p_ctr_derived_filters_tbl(tab_row).seq_no = FND_API.G_MISS_NUM then

5912: -- initialize descritive flexfield
5913: -- csi_ctr_gen_utility_pvt.Initialize_Desc_Flex_For_Upd(p_ctr_derived_filters_rec,l_old_ctr_derived_filters_rec);
5914:
5915: -- validate SEQ_NO
5916: IF p_ctr_derived_filters_tbl(tab_row).seq_no = FND_API.G_MISS_NUM then
5917: p_ctr_derived_filters_tbl(tab_row).seq_no := null;
5918: END IF;
5919:
5920: IF p_ctr_derived_filters_tbl(tab_row).SEQ_NO IS NULL THEN

Line 5923: IF p_ctr_derived_filters_tbl(tab_row).SEQ_NO <> FND_API.G_MISS_NUM THEN

5919:
5920: IF p_ctr_derived_filters_tbl(tab_row).SEQ_NO IS NULL THEN
5921: csi_ctr_gen_utility_pvt.ExitWithErrMsg('CSI_API_CTR_DER_FILTER_NULL_SEQ');
5922: ELSE
5923: IF p_ctr_derived_filters_tbl(tab_row).SEQ_NO <> FND_API.G_MISS_NUM THEN
5924: BEGIN
5925: SELECT 'x'
5926: INTO l_dummy
5927: FROM CSI_COUNTER_DERIVED_FILTERS

Line 5989: p_commit => FND_API.G_FALSE,

5985:
5986: csi_ctr_gen_utility_pvt.Validate_GrpOp_ctr
5987: (
5988: p_api_version => 1.0,
5989: p_commit => FND_API.G_FALSE,
5990: p_validation_level => FND_API.G_VALID_LEVEL_NONE,
5991: x_return_status => l_return_status,
5992: x_msg_count => l_msg_count,
5993: x_msg_data => l_msg_data,

Line 5990: p_validation_level => FND_API.G_VALID_LEVEL_NONE,

5986: csi_ctr_gen_utility_pvt.Validate_GrpOp_ctr
5987: (
5988: p_api_version => 1.0,
5989: p_commit => FND_API.G_FALSE,
5990: p_validation_level => FND_API.G_VALID_LEVEL_NONE,
5991: x_return_status => l_return_status,
5992: x_msg_count => l_msg_count,
5993: x_msg_data => l_msg_data,
5994: p_counter_id => p_ctr_derived_filters_tbl(tab_row).COUNTER_ID,

Line 5998: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN

5994: p_counter_id => p_ctr_derived_filters_tbl(tab_row).COUNTER_ID,
5995: x_valid_flag => l_valid_flag
5996: );
5997:
5998: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
5999: RAISE FND_API.G_EXC_ERROR;
6000: END IF;
6001:
6002: -- l_ctr_derived_filters_rec.OBJECT_VERSION_NUMBER := l_ctr_derived_filters_rec.OBJECT_VERSION_NUMBER+1;

Line 5999: RAISE FND_API.G_EXC_ERROR;

5995: x_valid_flag => l_valid_flag
5996: );
5997:
5998: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
5999: RAISE FND_API.G_EXC_ERROR;
6000: END IF;
6001:
6002: -- l_ctr_derived_filters_rec.OBJECT_VERSION_NUMBER := l_ctr_derived_filters_rec.OBJECT_VERSION_NUMBER+1;
6003: csi_ctr_gen_utility_pvt.put_line('before updating csi_counters_vl');

Line 6028: IF FND_API.To_Boolean( p_commit ) THEN

6024: END IF;
6025: -- End of API body
6026:
6027: -- Standard check of p_commit.
6028: IF FND_API.To_Boolean( p_commit ) THEN
6029: COMMIT WORK;
6030: END IF;
6031:
6032: FND_MSG_PUB.Count_And_Get

Line 6038: WHEN FND_API.G_EXC_ERROR THEN

6034: p_data => x_msg_data
6035: );
6036:
6037: EXCEPTION
6038: WHEN FND_API.G_EXC_ERROR THEN
6039: x_return_status := FND_API.G_RET_STS_ERROR ;
6040: ROLLBACK TO update_derived_filters;
6041: FND_MSG_PUB.Count_And_Get
6042: (p_count => x_msg_count,

Line 6039: x_return_status := FND_API.G_RET_STS_ERROR ;

6035: );
6036:
6037: EXCEPTION
6038: WHEN FND_API.G_EXC_ERROR THEN
6039: x_return_status := FND_API.G_RET_STS_ERROR ;
6040: ROLLBACK TO update_derived_filters;
6041: FND_MSG_PUB.Count_And_Get
6042: (p_count => x_msg_count,
6043: p_data => x_msg_data

Line 6046: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN

6042: (p_count => x_msg_count,
6043: p_data => x_msg_data
6044: );
6045:
6046: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
6047: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
6048: ROLLBACK TO update_derived_filters;
6049: FND_MSG_PUB.Count_And_Get
6050: (p_count => x_msg_count,

Line 6047: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

6043: p_data => x_msg_data
6044: );
6045:
6046: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
6047: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
6048: ROLLBACK TO update_derived_filters;
6049: FND_MSG_PUB.Count_And_Get
6050: (p_count => x_msg_count,
6051: p_data => x_msg_data

Line 6054: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

6050: (p_count => x_msg_count,
6051: p_data => x_msg_data
6052: );
6053: WHEN OTHERS THEN
6054: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
6055: ROLLBACK TO update_derived_filters;
6056: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
6057: THEN
6058: FND_MSG_PUB.Add_Exc_Msg

Line 6130: IF NOT FND_API.Compatible_API_Call (l_api_version,

6126: -- Standard Start of API savepoint
6127: SAVEPOINT create_estimation_method_pvt;
6128:
6129: -- Standard call to check for call compatibility.
6130: IF NOT FND_API.Compatible_API_Call (l_api_version,
6131: p_api_version,
6132: l_api_name ,
6133: G_PKG_NAME ) THEN
6134: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 6134: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

6130: IF NOT FND_API.Compatible_API_Call (l_api_version,
6131: p_api_version,
6132: l_api_name ,
6133: G_PKG_NAME ) THEN
6134: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
6135: END IF;
6136:
6137: -- Initialize message list if p_init_msg_list is set to TRUE.
6138: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

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

6134: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
6135: END IF;
6136:
6137: -- Initialize message list if p_init_msg_list is set to TRUE.
6138: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
6139: FND_MSG_PUB.initialize;
6140: END IF;
6141:
6142: -- Initialize API return status to success

Line 6143: x_return_status := FND_API.G_RET_STS_SUCCESS;

6139: FND_MSG_PUB.initialize;
6140: END IF;
6141:
6142: -- Initialize API return status to success
6143: x_return_status := FND_API.G_RET_STS_SUCCESS;
6144:
6145: -- Read the debug profiles values in to global variable 7197402
6146: CSI_CTR_GEN_UTILITY_PVT.read_debug_profiles;
6147:

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

6148: --
6149: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
6150: csi_ctr_gen_utility_pvt.put_line( 'create_estimation_method_pvt' ||'-'||
6151: p_api_version ||'-'||
6152: nvl(p_commit,FND_API.G_FALSE) ||'-'||
6153: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
6154: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
6155: END IF;
6156:

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

6149: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
6150: csi_ctr_gen_utility_pvt.put_line( 'create_estimation_method_pvt' ||'-'||
6151: p_api_version ||'-'||
6152: nvl(p_commit,FND_API.G_FALSE) ||'-'||
6153: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
6154: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
6155: END IF;
6156:
6157:

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

6150: csi_ctr_gen_utility_pvt.put_line( 'create_estimation_method_pvt' ||'-'||
6151: p_api_version ||'-'||
6152: nvl(p_commit,FND_API.G_FALSE) ||'-'||
6153: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
6154: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
6155: END IF;
6156:
6157:
6158: if p_ctr_estimation_rec.estimation_id = FND_API.G_MISS_NUM then

Line 6158: if p_ctr_estimation_rec.estimation_id = FND_API.G_MISS_NUM then

6154: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
6155: END IF;
6156:
6157:
6158: if p_ctr_estimation_rec.estimation_id = FND_API.G_MISS_NUM then
6159: l_estimation_id := null;
6160: else
6161: l_estimation_id := p_ctr_estimation_rec.estimation_id;
6162: end if;

Line 6164: if p_ctr_estimation_rec.name = FND_API.G_MISS_CHAR then

6160: else
6161: l_estimation_id := p_ctr_estimation_rec.estimation_id;
6162: end if;
6163:
6164: if p_ctr_estimation_rec.name = FND_API.G_MISS_CHAR then
6165: l_name := null;
6166: else
6167: l_name := p_ctr_estimation_rec.name;
6168: end if;

Line 6170: if p_ctr_estimation_rec.description= FND_API.G_MISS_CHAR then

6166: else
6167: l_name := p_ctr_estimation_rec.name;
6168: end if;
6169:
6170: if p_ctr_estimation_rec.description= FND_API.G_MISS_CHAR then
6171: l_description := null;
6172: else
6173: l_description := p_ctr_estimation_rec.description;
6174: end if;

Line 6176: if p_ctr_estimation_rec.estimation_type= FND_API.G_MISS_CHAR then

6172: else
6173: l_description := p_ctr_estimation_rec.description;
6174: end if;
6175:
6176: if p_ctr_estimation_rec.estimation_type= FND_API.G_MISS_CHAR then
6177: l_estimation_type := null;
6178: else
6179: l_estimation_type := p_ctr_estimation_rec.estimation_type;
6180: end if;

Line 6182: if p_ctr_estimation_rec.estimation_avg_type = FND_API.G_MISS_CHAR then

6178: else
6179: l_estimation_type := p_ctr_estimation_rec.estimation_type;
6180: end if;
6181:
6182: if p_ctr_estimation_rec.estimation_avg_type = FND_API.G_MISS_CHAR then
6183: l_estimation_avg_type := null;
6184: else
6185: l_estimation_avg_type := p_ctr_estimation_rec.estimation_avg_type;
6186: end if;

Line 6188: if p_ctr_estimation_rec.fixed_value = FND_API.G_MISS_NUM then

6184: else
6185: l_estimation_avg_type := p_ctr_estimation_rec.estimation_avg_type;
6186: end if;
6187:
6188: if p_ctr_estimation_rec.fixed_value = FND_API.G_MISS_NUM then
6189: l_fixed_value := null;
6190: else
6191: l_fixed_value := p_ctr_estimation_rec.fixed_value;
6192: end if;

Line 6194: if p_ctr_estimation_rec.usage_markup = FND_API.G_MISS_NUM then

6190: else
6191: l_fixed_value := p_ctr_estimation_rec.fixed_value;
6192: end if;
6193:
6194: if p_ctr_estimation_rec.usage_markup = FND_API.G_MISS_NUM then
6195: l_usage_markup := null;
6196: else
6197: l_usage_markup := p_ctr_estimation_rec.usage_markup;
6198: end if;

Line 6200: if p_ctr_estimation_rec.default_value = FND_API.G_MISS_NUM then

6196: else
6197: l_usage_markup := p_ctr_estimation_rec.usage_markup;
6198: end if;
6199:
6200: if p_ctr_estimation_rec.default_value = FND_API.G_MISS_NUM then
6201: l_default_value := null;
6202: else
6203: l_default_value := p_ctr_estimation_rec.default_value;
6204: end if;

Line 6206: if nvl(p_ctr_estimation_rec.start_date_active,FND_API.G_MISS_DATE) = FND_API.G_MISS_DATE then

6202: else
6203: l_default_value := p_ctr_estimation_rec.default_value;
6204: end if;
6205:
6206: if nvl(p_ctr_estimation_rec.start_date_active,FND_API.G_MISS_DATE) = FND_API.G_MISS_DATE then
6207: l_start_date_active := sysdate;
6208: else
6209: l_start_date_active := p_ctr_estimation_rec.start_date_active;
6210: end if;

Line 6212: if p_ctr_estimation_rec.end_date_active = FND_API.G_MISS_DATE then

6208: else
6209: l_start_date_active := p_ctr_estimation_rec.start_date_active;
6210: end if;
6211:
6212: if p_ctr_estimation_rec.end_date_active = FND_API.G_MISS_DATE then
6213: l_end_date_active := null;
6214: else
6215: l_end_date_active := p_ctr_estimation_rec.end_date_active;
6216: end if;

Line 6218: if p_ctr_estimation_rec.attribute1 = FND_API.G_MISS_CHAR then

6214: else
6215: l_end_date_active := p_ctr_estimation_rec.end_date_active;
6216: end if;
6217:
6218: if p_ctr_estimation_rec.attribute1 = FND_API.G_MISS_CHAR then
6219: l_attribute1 := null;
6220: else
6221: l_attribute1 := p_ctr_estimation_rec.attribute1;
6222: end if;

Line 6224: if p_ctr_estimation_rec.attribute2 = FND_API.G_MISS_CHAR then

6220: else
6221: l_attribute1 := p_ctr_estimation_rec.attribute1;
6222: end if;
6223:
6224: if p_ctr_estimation_rec.attribute2 = FND_API.G_MISS_CHAR then
6225: l_attribute2 := null;
6226: else
6227: l_attribute2 := p_ctr_estimation_rec.attribute2;
6228: end if;

Line 6230: if p_ctr_estimation_rec.attribute3 = FND_API.G_MISS_CHAR then

6226: else
6227: l_attribute2 := p_ctr_estimation_rec.attribute2;
6228: end if;
6229:
6230: if p_ctr_estimation_rec.attribute3 = FND_API.G_MISS_CHAR then
6231: l_attribute3 := null;
6232: else
6233: l_attribute3 := p_ctr_estimation_rec.attribute3;
6234: end if;

Line 6236: if p_ctr_estimation_rec.attribute4 = FND_API.G_MISS_CHAR then

6232: else
6233: l_attribute3 := p_ctr_estimation_rec.attribute3;
6234: end if;
6235:
6236: if p_ctr_estimation_rec.attribute4 = FND_API.G_MISS_CHAR then
6237: l_attribute4 := null;
6238: else
6239: l_attribute4 := p_ctr_estimation_rec.attribute4;
6240: end if;

Line 6242: if p_ctr_estimation_rec.attribute5 = FND_API.G_MISS_CHAR then

6238: else
6239: l_attribute4 := p_ctr_estimation_rec.attribute4;
6240: end if;
6241:
6242: if p_ctr_estimation_rec.attribute5 = FND_API.G_MISS_CHAR then
6243: l_attribute5 := null;
6244: else
6245: l_attribute5 := p_ctr_estimation_rec.attribute5;
6246: end if;

Line 6248: if p_ctr_estimation_rec.attribute6 = FND_API.G_MISS_CHAR then

6244: else
6245: l_attribute5 := p_ctr_estimation_rec.attribute5;
6246: end if;
6247:
6248: if p_ctr_estimation_rec.attribute6 = FND_API.G_MISS_CHAR then
6249: l_attribute6 := null;
6250: else
6251: l_attribute6 := p_ctr_estimation_rec.attribute6;
6252: end if;

Line 6254: if p_ctr_estimation_rec.attribute7 = FND_API.G_MISS_CHAR then

6250: else
6251: l_attribute6 := p_ctr_estimation_rec.attribute6;
6252: end if;
6253:
6254: if p_ctr_estimation_rec.attribute7 = FND_API.G_MISS_CHAR then
6255: l_attribute7 := null;
6256: else
6257: l_attribute7 := p_ctr_estimation_rec.attribute7;
6258: end if;

Line 6260: if p_ctr_estimation_rec.attribute8 = FND_API.G_MISS_CHAR then

6256: else
6257: l_attribute7 := p_ctr_estimation_rec.attribute7;
6258: end if;
6259:
6260: if p_ctr_estimation_rec.attribute8 = FND_API.G_MISS_CHAR then
6261: l_attribute8 := null;
6262: else
6263: l_attribute8 := p_ctr_estimation_rec.attribute8;
6264: end if;

Line 6266: if p_ctr_estimation_rec.attribute9 = FND_API.G_MISS_CHAR then

6262: else
6263: l_attribute8 := p_ctr_estimation_rec.attribute8;
6264: end if;
6265:
6266: if p_ctr_estimation_rec.attribute9 = FND_API.G_MISS_CHAR then
6267: l_attribute9 := null;
6268: else
6269: l_attribute9 := p_ctr_estimation_rec.attribute9;
6270: end if;

Line 6272: if p_ctr_estimation_rec.attribute10 = FND_API.G_MISS_CHAR then

6268: else
6269: l_attribute9 := p_ctr_estimation_rec.attribute9;
6270: end if;
6271:
6272: if p_ctr_estimation_rec.attribute10 = FND_API.G_MISS_CHAR then
6273: l_attribute10 := null;
6274: else
6275: l_attribute10 := p_ctr_estimation_rec.attribute10;
6276: end if;

Line 6278: if p_ctr_estimation_rec.attribute11 = FND_API.G_MISS_CHAR then

6274: else
6275: l_attribute10 := p_ctr_estimation_rec.attribute10;
6276: end if;
6277:
6278: if p_ctr_estimation_rec.attribute11 = FND_API.G_MISS_CHAR then
6279: l_attribute11 := null;
6280: else
6281: l_attribute11 := p_ctr_estimation_rec.attribute11;
6282: end if;

Line 6284: if p_ctr_estimation_rec.attribute12 = FND_API.G_MISS_CHAR then

6280: else
6281: l_attribute11 := p_ctr_estimation_rec.attribute11;
6282: end if;
6283:
6284: if p_ctr_estimation_rec.attribute12 = FND_API.G_MISS_CHAR then
6285: l_attribute12 := null;
6286: else
6287: l_attribute12 := p_ctr_estimation_rec.attribute12;
6288: end if;

Line 6290: if p_ctr_estimation_rec.attribute13 = FND_API.G_MISS_CHAR then

6286: else
6287: l_attribute12 := p_ctr_estimation_rec.attribute12;
6288: end if;
6289:
6290: if p_ctr_estimation_rec.attribute13 = FND_API.G_MISS_CHAR then
6291: l_attribute13 := null;
6292: else
6293: l_attribute13 := p_ctr_estimation_rec.attribute13;
6294: end if;

Line 6296: if p_ctr_estimation_rec.attribute14 = FND_API.G_MISS_CHAR then

6292: else
6293: l_attribute13 := p_ctr_estimation_rec.attribute13;
6294: end if;
6295:
6296: if p_ctr_estimation_rec.attribute14 = FND_API.G_MISS_CHAR then
6297: l_attribute14 := null;
6298: else
6299: l_attribute14 := p_ctr_estimation_rec.attribute14;
6300: end if;

Line 6302: if p_ctr_estimation_rec.attribute15 = FND_API.G_MISS_CHAR then

6298: else
6299: l_attribute14 := p_ctr_estimation_rec.attribute14;
6300: end if;
6301:
6302: if p_ctr_estimation_rec.attribute15 = FND_API.G_MISS_CHAR then
6303: l_attribute15 := null;
6304: else
6305: l_attribute15 := p_ctr_estimation_rec.attribute15;
6306: end if;

Line 6308: if p_ctr_estimation_rec.attribute_category = FND_API.G_MISS_CHAR then

6304: else
6305: l_attribute15 := p_ctr_estimation_rec.attribute15;
6306: end if;
6307:
6308: if p_ctr_estimation_rec.attribute_category = FND_API.G_MISS_CHAR then
6309: l_attribute_category := null;
6310: else
6311: l_attribute_category := p_ctr_estimation_rec.attribute_category;
6312: end if;

Line 6314: if p_ctr_estimation_rec.migrated_flag = FND_API.G_MISS_CHAR then

6310: else
6311: l_attribute_category := p_ctr_estimation_rec.attribute_category;
6312: end if;
6313:
6314: if p_ctr_estimation_rec.migrated_flag = FND_API.G_MISS_CHAR then
6315: l_migrated_flag := null;
6316: else
6317: l_migrated_flag := p_ctr_estimation_rec.migrated_flag;
6318: end if;

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

6383: ,p_NAME => l_name
6384: ,p_DESCRIPTION => l_description
6385: );
6386:
6387: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN
6388: ROLLBACK TO create_estimation_method_pvt;
6389: RETURN;
6390: END IF;
6391:

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

6390: END IF;
6391:
6392: /* End of table handler call */
6393:
6394: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN
6395: COMMIT WORK;
6396: END IF;
6397:
6398: -- Standard call to get message count and IF count is get message info.

Line 6404: WHEN FND_API.G_EXC_ERROR THEN

6400: ( p_count => x_msg_count,
6401: p_data => x_msg_data
6402: );
6403: EXCEPTION
6404: WHEN FND_API.G_EXC_ERROR THEN
6405: x_return_status := FND_API.G_RET_STS_ERROR ;
6406: ROLLBACK TO create_estimation_method_pvt;
6407: FND_MSG_PUB.Count_And_Get
6408: ( p_count => x_msg_count,

Line 6405: x_return_status := FND_API.G_RET_STS_ERROR ;

6401: p_data => x_msg_data
6402: );
6403: EXCEPTION
6404: WHEN FND_API.G_EXC_ERROR THEN
6405: x_return_status := FND_API.G_RET_STS_ERROR ;
6406: ROLLBACK TO create_estimation_method_pvt;
6407: FND_MSG_PUB.Count_And_Get
6408: ( p_count => x_msg_count,
6409: p_data => x_msg_data

Line 6411: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN

6407: FND_MSG_PUB.Count_And_Get
6408: ( p_count => x_msg_count,
6409: p_data => x_msg_data
6410: );
6411: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
6412: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
6413: ROLLBACK TO create_estimation_method_pvt;
6414: FND_MSG_PUB.Count_And_Get
6415: ( p_count => x_msg_count,

Line 6412: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

6408: ( p_count => x_msg_count,
6409: p_data => x_msg_data
6410: );
6411: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
6412: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
6413: ROLLBACK TO create_estimation_method_pvt;
6414: FND_MSG_PUB.Count_And_Get
6415: ( p_count => x_msg_count,
6416: p_data => x_msg_data

Line 6419: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

6415: ( p_count => x_msg_count,
6416: p_data => x_msg_data
6417: );
6418: WHEN OTHERS THEN
6419: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
6420: ROLLBACK TO create_estimation_method_pvt;
6421: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
6422: FND_MSG_PUB.Add_Exc_Msg
6423: ( G_PKG_NAME,

Line 6496: IF NOT FND_API.Compatible_API_Call (l_api_version,

6492: -- Standard Start of API savepoint
6493: SAVEPOINT update_estimation_method_pvt;
6494:
6495: -- Standard call to check for call compatibility.
6496: IF NOT FND_API.Compatible_API_Call (l_api_version,
6497: p_api_version,
6498: l_api_name ,
6499: G_PKG_NAME ) THEN
6500: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 6500: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

6496: IF NOT FND_API.Compatible_API_Call (l_api_version,
6497: p_api_version,
6498: l_api_name ,
6499: G_PKG_NAME ) THEN
6500: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
6501: END IF;
6502:
6503: -- Initialize message list if p_init_msg_list is set to TRUE.
6504: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

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

6500: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
6501: END IF;
6502:
6503: -- Initialize message list if p_init_msg_list is set to TRUE.
6504: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
6505: FND_MSG_PUB.initialize;
6506: END IF;
6507:
6508: -- Initialize API return status to success

Line 6509: x_return_status := FND_API.G_RET_STS_SUCCESS;

6505: FND_MSG_PUB.initialize;
6506: END IF;
6507:
6508: -- Initialize API return status to success
6509: x_return_status := FND_API.G_RET_STS_SUCCESS;
6510:
6511: -- Read the debug profiles values in to global variable 7197402
6512: CSI_CTR_GEN_UTILITY_PVT.read_debug_profiles;
6513:

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

6514: --
6515: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
6516: csi_ctr_gen_utility_pvt.put_line( 'update_estimation_method_pvt' ||'-'||
6517: p_api_version ||'-'||
6518: nvl(p_commit,FND_API.G_FALSE) ||'-'||
6519: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
6520: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
6521: END IF;
6522:

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

6515: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
6516: csi_ctr_gen_utility_pvt.put_line( 'update_estimation_method_pvt' ||'-'||
6517: p_api_version ||'-'||
6518: nvl(p_commit,FND_API.G_FALSE) ||'-'||
6519: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
6520: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
6521: END IF;
6522:
6523: /* Start of API Body */

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

6516: csi_ctr_gen_utility_pvt.put_line( 'update_estimation_method_pvt' ||'-'||
6517: p_api_version ||'-'||
6518: nvl(p_commit,FND_API.G_FALSE) ||'-'||
6519: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
6520: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
6521: END IF;
6522:
6523: /* Start of API Body */
6524: OPEN cur_estimation_rec(p_ctr_estimation_rec.estimation_id);

Line 6529: RAISE FND_API.G_EXC_ERROR;

6525: FETCH cur_estimation_rec INTO l_old_ctr_estimation_rec;
6526: IF (l_old_ctr_estimation_rec.object_version_number <> nvl(p_ctr_estimation_rec.OBJECT_VERSION_NUMBER,0)) THEN
6527: FND_MESSAGE.Set_Name('CSI', 'CSI_API_OBJ_VER_MISMATCH');
6528: FND_MSG_PUB.ADD;
6529: RAISE FND_API.G_EXC_ERROR;
6530: END IF;
6531:
6532: CLOSE cur_estimation_rec;
6533:

Line 6543: ELSIF p_ctr_estimation_rec.name = FND_API.G_MISS_CHAR THEN

6539:
6540:
6541: IF p_ctr_estimation_rec.name IS NULL THEN
6542: l_ctr_estimation_rec.name := l_old_ctr_estimation_rec.name;
6543: ELSIF p_ctr_estimation_rec.name = FND_API.G_MISS_CHAR THEN
6544: l_ctr_estimation_rec.name := NULL;
6545: END IF;
6546:
6547: IF p_ctr_estimation_rec.description IS NULL THEN

Line 6549: ELSIF p_ctr_estimation_rec.description = FND_API.G_MISS_CHAR THEN

6545: END IF;
6546:
6547: IF p_ctr_estimation_rec.description IS NULL THEN
6548: l_ctr_estimation_rec.description := l_old_ctr_estimation_rec.description;
6549: ELSIF p_ctr_estimation_rec.description = FND_API.G_MISS_CHAR THEN
6550: l_ctr_estimation_rec.description := NULL;
6551: END IF;
6552:
6553: IF p_ctr_estimation_rec.estimation_type IS NULL THEN

Line 6555: ELSIF p_ctr_estimation_rec.estimation_type = FND_API.G_MISS_CHAR THEN

6551: END IF;
6552:
6553: IF p_ctr_estimation_rec.estimation_type IS NULL THEN
6554: l_ctr_estimation_rec.estimation_type := l_old_ctr_estimation_rec.estimation_type;
6555: ELSIF p_ctr_estimation_rec.estimation_type = FND_API.G_MISS_CHAR THEN
6556: l_ctr_estimation_rec.estimation_type := NULL;
6557: END IF;
6558:
6559: IF p_ctr_estimation_rec.fixed_value IS NULL THEN

Line 6561: ELSIF p_ctr_estimation_rec.fixed_value = FND_API.G_MISS_NUM THEN

6557: END IF;
6558:
6559: IF p_ctr_estimation_rec.fixed_value IS NULL THEN
6560: l_ctr_estimation_rec.fixed_value := l_old_ctr_estimation_rec.fixed_value;
6561: ELSIF p_ctr_estimation_rec.fixed_value = FND_API.G_MISS_NUM THEN
6562: l_ctr_estimation_rec.fixed_value := NULL;
6563: END IF;
6564:
6565: IF p_ctr_estimation_rec.usage_markup IS NULL THEN

Line 6567: ELSIF p_ctr_estimation_rec.usage_markup = FND_API.G_MISS_NUM THEN

6563: END IF;
6564:
6565: IF p_ctr_estimation_rec.usage_markup IS NULL THEN
6566: l_ctr_estimation_rec.usage_markup := l_old_ctr_estimation_rec.usage_markup;
6567: ELSIF p_ctr_estimation_rec.usage_markup = FND_API.G_MISS_NUM THEN
6568: l_ctr_estimation_rec.usage_markup := NULL;
6569: END IF;
6570:
6571: IF p_ctr_estimation_rec.default_value IS NULL THEN

Line 6573: ELSIF p_ctr_estimation_rec.default_value = FND_API.G_MISS_NUM THEN

6569: END IF;
6570:
6571: IF p_ctr_estimation_rec.default_value IS NULL THEN
6572: l_ctr_estimation_rec.default_value := l_old_ctr_estimation_rec.default_value;
6573: ELSIF p_ctr_estimation_rec.default_value = FND_API.G_MISS_NUM THEN
6574: l_ctr_estimation_rec.default_value := NULL;
6575: END IF;
6576:
6577: IF p_ctr_estimation_rec.estimation_avg_type IS NULL THEN

Line 6579: ELSIF p_ctr_estimation_rec.estimation_avg_type = FND_API.G_MISS_CHAR THEN

6575: END IF;
6576:
6577: IF p_ctr_estimation_rec.estimation_avg_type IS NULL THEN
6578: l_ctr_estimation_rec.estimation_avg_type := l_old_ctr_estimation_rec.estimation_avg_type;
6579: ELSIF p_ctr_estimation_rec.estimation_avg_type = FND_API.G_MISS_CHAR THEN
6580: l_ctr_estimation_rec.estimation_avg_type := NULL;
6581: END IF;
6582:
6583: IF p_ctr_estimation_rec.start_date_active IS NULL THEN

Line 6585: ELSIF p_ctr_estimation_rec.start_date_active = FND_API.G_MISS_DATE THEN

6581: END IF;
6582:
6583: IF p_ctr_estimation_rec.start_date_active IS NULL THEN
6584: l_ctr_estimation_rec.start_date_active := l_old_ctr_estimation_rec.start_date_active;
6585: ELSIF p_ctr_estimation_rec.start_date_active = FND_API.G_MISS_DATE THEN
6586: l_ctr_estimation_rec.start_date_active := NULL;
6587: END IF;
6588:
6589: IF p_ctr_estimation_rec.end_date_active IS NULL THEN

Line 6591: ELSIF p_ctr_estimation_rec.end_date_active = FND_API.G_MISS_DATE THEN

6587: END IF;
6588:
6589: IF p_ctr_estimation_rec.end_date_active IS NULL THEN
6590: l_ctr_estimation_rec.end_date_active := l_old_ctr_estimation_rec.end_date_active;
6591: ELSIF p_ctr_estimation_rec.end_date_active = FND_API.G_MISS_DATE THEN
6592: l_ctr_estimation_rec.end_date_active := NULL;
6593: END IF;
6594:
6595: IF p_ctr_estimation_rec.attribute_category IS NULL THEN

Line 6597: ELSIF p_ctr_estimation_rec.attribute_category = FND_API.G_MISS_CHAR THEN

6593: END IF;
6594:
6595: IF p_ctr_estimation_rec.attribute_category IS NULL THEN
6596: l_ctr_estimation_rec.attribute_category := l_old_ctr_estimation_rec.attribute_category;
6597: ELSIF p_ctr_estimation_rec.attribute_category = FND_API.G_MISS_CHAR THEN
6598: l_ctr_estimation_rec.attribute_category := NULL;
6599: END IF;
6600: --
6601: IF p_ctr_estimation_rec.attribute1 IS NULL THEN

Line 6603: ELSIF p_ctr_estimation_rec.attribute1 = FND_API.G_MISS_CHAR THEN

6599: END IF;
6600: --
6601: IF p_ctr_estimation_rec.attribute1 IS NULL THEN
6602: l_ctr_estimation_rec.attribute1 := l_old_ctr_estimation_rec.attribute1;
6603: ELSIF p_ctr_estimation_rec.attribute1 = FND_API.G_MISS_CHAR THEN
6604: l_ctr_estimation_rec.attribute1 := NULL;
6605: END IF;
6606:
6607: IF p_ctr_estimation_rec.attribute2 IS NULL THEN

Line 6609: ELSIF p_ctr_estimation_rec.attribute2 = FND_API.G_MISS_CHAR THEN

6605: END IF;
6606:
6607: IF p_ctr_estimation_rec.attribute2 IS NULL THEN
6608: l_ctr_estimation_rec.attribute2 := l_old_ctr_estimation_rec.attribute2;
6609: ELSIF p_ctr_estimation_rec.attribute2 = FND_API.G_MISS_CHAR THEN
6610: l_ctr_estimation_rec.attribute2 := NULL;
6611: END IF;
6612:
6613: IF p_ctr_estimation_rec.attribute3 IS NULL THEN

Line 6615: ELSIF p_ctr_estimation_rec.attribute3 = FND_API.G_MISS_CHAR THEN

6611: END IF;
6612:
6613: IF p_ctr_estimation_rec.attribute3 IS NULL THEN
6614: l_ctr_estimation_rec.attribute3 := l_old_ctr_estimation_rec.attribute3;
6615: ELSIF p_ctr_estimation_rec.attribute3 = FND_API.G_MISS_CHAR THEN
6616: l_ctr_estimation_rec.attribute3 := NULL;
6617: END IF;
6618:
6619: IF p_ctr_estimation_rec.attribute4 IS NULL THEN

Line 6621: ELSIF p_ctr_estimation_rec.attribute4 = FND_API.G_MISS_CHAR THEN

6617: END IF;
6618:
6619: IF p_ctr_estimation_rec.attribute4 IS NULL THEN
6620: l_ctr_estimation_rec.attribute4 := l_old_ctr_estimation_rec.attribute4;
6621: ELSIF p_ctr_estimation_rec.attribute4 = FND_API.G_MISS_CHAR THEN
6622: l_ctr_estimation_rec.attribute4 := NULL;
6623: END IF;
6624:
6625: IF p_ctr_estimation_rec.attribute5 IS NULL THEN

Line 6627: ELSIF p_ctr_estimation_rec.attribute5 = FND_API.G_MISS_CHAR THEN

6623: END IF;
6624:
6625: IF p_ctr_estimation_rec.attribute5 IS NULL THEN
6626: l_ctr_estimation_rec.attribute5 := l_old_ctr_estimation_rec.attribute5;
6627: ELSIF p_ctr_estimation_rec.attribute5 = FND_API.G_MISS_CHAR THEN
6628: l_ctr_estimation_rec.attribute5 := NULL;
6629: END IF;
6630:
6631: IF p_ctr_estimation_rec.attribute6 IS NULL THEN

Line 6633: ELSIF p_ctr_estimation_rec.attribute6 = FND_API.G_MISS_CHAR THEN

6629: END IF;
6630:
6631: IF p_ctr_estimation_rec.attribute6 IS NULL THEN
6632: l_ctr_estimation_rec.attribute6 := l_old_ctr_estimation_rec.attribute6;
6633: ELSIF p_ctr_estimation_rec.attribute6 = FND_API.G_MISS_CHAR THEN
6634: l_ctr_estimation_rec.attribute6 := NULL;
6635: END IF;
6636:
6637: IF p_ctr_estimation_rec.attribute7 IS NULL THEN

Line 6639: ELSIF p_ctr_estimation_rec.attribute7 = FND_API.G_MISS_CHAR THEN

6635: END IF;
6636:
6637: IF p_ctr_estimation_rec.attribute7 IS NULL THEN
6638: l_ctr_estimation_rec.attribute7 := l_old_ctr_estimation_rec.attribute7;
6639: ELSIF p_ctr_estimation_rec.attribute7 = FND_API.G_MISS_CHAR THEN
6640: l_ctr_estimation_rec.attribute7 := NULL;
6641: END IF;
6642:
6643: IF p_ctr_estimation_rec.attribute8 IS NULL THEN

Line 6645: ELSIF p_ctr_estimation_rec.attribute8 = FND_API.G_MISS_CHAR THEN

6641: END IF;
6642:
6643: IF p_ctr_estimation_rec.attribute8 IS NULL THEN
6644: l_ctr_estimation_rec.attribute8 := l_old_ctr_estimation_rec.attribute8;
6645: ELSIF p_ctr_estimation_rec.attribute8 = FND_API.G_MISS_CHAR THEN
6646: l_ctr_estimation_rec.attribute8 := NULL;
6647: END IF;
6648:
6649: IF p_ctr_estimation_rec.attribute9 IS NULL THEN

Line 6651: ELSIF p_ctr_estimation_rec.attribute9 = FND_API.G_MISS_CHAR THEN

6647: END IF;
6648:
6649: IF p_ctr_estimation_rec.attribute9 IS NULL THEN
6650: l_ctr_estimation_rec.attribute9 := l_old_ctr_estimation_rec.attribute9;
6651: ELSIF p_ctr_estimation_rec.attribute9 = FND_API.G_MISS_CHAR THEN
6652: l_ctr_estimation_rec.attribute9 := NULL;
6653: END IF;
6654:
6655: IF p_ctr_estimation_rec.attribute10 IS NULL THEN

Line 6657: ELSIF p_ctr_estimation_rec.attribute10 = FND_API.G_MISS_CHAR THEN

6653: END IF;
6654:
6655: IF p_ctr_estimation_rec.attribute10 IS NULL THEN
6656: l_ctr_estimation_rec.attribute10 := l_old_ctr_estimation_rec.attribute10;
6657: ELSIF p_ctr_estimation_rec.attribute10 = FND_API.G_MISS_CHAR THEN
6658: l_ctr_estimation_rec.attribute10 := NULL;
6659: END IF;
6660:
6661: IF p_ctr_estimation_rec.attribute11 IS NULL THEN

Line 6663: ELSIF p_ctr_estimation_rec.attribute11 = FND_API.G_MISS_CHAR THEN

6659: END IF;
6660:
6661: IF p_ctr_estimation_rec.attribute11 IS NULL THEN
6662: l_ctr_estimation_rec.attribute11 := l_old_ctr_estimation_rec.attribute11;
6663: ELSIF p_ctr_estimation_rec.attribute11 = FND_API.G_MISS_CHAR THEN
6664: l_ctr_estimation_rec.attribute11 := NULL;
6665: END IF;
6666:
6667: IF p_ctr_estimation_rec.attribute12 IS NULL THEN

Line 6669: ELSIF p_ctr_estimation_rec.attribute12= FND_API.G_MISS_CHAR THEN

6665: END IF;
6666:
6667: IF p_ctr_estimation_rec.attribute12 IS NULL THEN
6668: l_ctr_estimation_rec.attribute12 := l_old_ctr_estimation_rec.attribute12;
6669: ELSIF p_ctr_estimation_rec.attribute12= FND_API.G_MISS_CHAR THEN
6670: l_ctr_estimation_rec.attribute12 := NULL;
6671: END IF;
6672:
6673: IF p_ctr_estimation_rec.attribute13 IS NULL THEN

Line 6675: ELSIF p_ctr_estimation_rec.attribute13 = FND_API.G_MISS_CHAR THEN

6671: END IF;
6672:
6673: IF p_ctr_estimation_rec.attribute13 IS NULL THEN
6674: l_ctr_estimation_rec.attribute13 := l_old_ctr_estimation_rec.attribute13;
6675: ELSIF p_ctr_estimation_rec.attribute13 = FND_API.G_MISS_CHAR THEN
6676: l_ctr_estimation_rec.attribute13 := NULL;
6677: END IF;
6678:
6679: IF p_ctr_estimation_rec.attribute14 IS NULL THEN

Line 6681: ELSIF p_ctr_estimation_rec.attribute14 = FND_API.G_MISS_CHAR THEN

6677: END IF;
6678:
6679: IF p_ctr_estimation_rec.attribute14 IS NULL THEN
6680: l_ctr_estimation_rec.attribute14 := l_old_ctr_estimation_rec.attribute14;
6681: ELSIF p_ctr_estimation_rec.attribute14 = FND_API.G_MISS_CHAR THEN
6682: l_ctr_estimation_rec.attribute14 := NULL;
6683: END IF;
6684:
6685: IF p_ctr_estimation_rec.attribute15 IS NULL THEN

Line 6687: ELSIF p_ctr_estimation_rec.attribute15 = FND_API.G_MISS_CHAR THEN

6683: END IF;
6684:
6685: IF p_ctr_estimation_rec.attribute15 IS NULL THEN
6686: l_ctr_estimation_rec.attribute15 := l_old_ctr_estimation_rec.attribute15;
6687: ELSIF p_ctr_estimation_rec.attribute15 = FND_API.G_MISS_CHAR THEN
6688: l_ctr_estimation_rec.attribute15 := NULL;
6689: END IF;
6690:
6691: IF p_ctr_estimation_rec.migrated_flag IS NULL THEN

Line 6693: ELSIF p_ctr_estimation_rec.migrated_flag = FND_API.G_MISS_CHAR THEN

6689: END IF;
6690:
6691: IF p_ctr_estimation_rec.migrated_flag IS NULL THEN
6692: l_ctr_estimation_rec.migrated_flag := l_old_ctr_estimation_rec.migrated_flag;
6693: ELSIF p_ctr_estimation_rec.migrated_flag = FND_API.G_MISS_CHAR THEN
6694: l_ctr_estimation_rec.migrated_flag := NULL;
6695: END IF;
6696:
6697: -- validate_start_date(l_ctr_estimation_rec.start_date_active);

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

6743: ,p_NAME => p_ctr_estimation_rec.name
6744: ,p_DESCRIPTION => p_ctr_estimation_rec.description
6745: );
6746:
6747: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN
6748: ROLLBACK TO update_estimation_method_pvt;
6749: RETURN;
6750: END IF;
6751:

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

6750: END IF;
6751:
6752: /* End of API Body */
6753:
6754: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN
6755: COMMIT WORK;
6756: END IF;
6757:
6758: -- Standard call to get message count and IF count is get message info.

Line 6764: WHEN FND_API.G_EXC_ERROR THEN

6760: ( p_count => x_msg_count,
6761: p_data => x_msg_data
6762: );
6763: EXCEPTION
6764: WHEN FND_API.G_EXC_ERROR THEN
6765: x_return_status := FND_API.G_RET_STS_ERROR ;
6766: ROLLBACK TO update_estimation_method_pvt;
6767: FND_MSG_PUB.Count_And_Get
6768: ( p_count => x_msg_count,

Line 6765: x_return_status := FND_API.G_RET_STS_ERROR ;

6761: p_data => x_msg_data
6762: );
6763: EXCEPTION
6764: WHEN FND_API.G_EXC_ERROR THEN
6765: x_return_status := FND_API.G_RET_STS_ERROR ;
6766: ROLLBACK TO update_estimation_method_pvt;
6767: FND_MSG_PUB.Count_And_Get
6768: ( p_count => x_msg_count,
6769: p_data => x_msg_data

Line 6771: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN

6767: FND_MSG_PUB.Count_And_Get
6768: ( p_count => x_msg_count,
6769: p_data => x_msg_data
6770: );
6771: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
6772: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
6773: ROLLBACK TO update_estimation_method_pvt;
6774: FND_MSG_PUB.Count_And_Get
6775: ( p_count => x_msg_count,

Line 6772: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

6768: ( p_count => x_msg_count,
6769: p_data => x_msg_data
6770: );
6771: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
6772: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
6773: ROLLBACK TO update_estimation_method_pvt;
6774: FND_MSG_PUB.Count_And_Get
6775: ( p_count => x_msg_count,
6776: p_data => x_msg_data

Line 6779: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

6775: ( p_count => x_msg_count,
6776: p_data => x_msg_data
6777: );
6778: WHEN OTHERS THEN
6779: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
6780: ROLLBACK TO update_estimation_method_pvt;
6781: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
6782: FND_MSG_PUB.Add_Exc_Msg
6783: ( G_PKG_NAME,

Line 7106: IF NOT FND_API.Compatible_API_Call (l_api_version,

7102: -- Standard Start of API savepoint
7103: SAVEPOINT instantiate_ctr_pvt;
7104:
7105: -- Standard call to check for call compatibility.
7106: IF NOT FND_API.Compatible_API_Call (l_api_version,
7107: p_api_version,
7108: l_api_name ,
7109: G_PKG_NAME ) THEN
7110: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 7110: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

7106: IF NOT FND_API.Compatible_API_Call (l_api_version,
7107: p_api_version,
7108: l_api_name ,
7109: G_PKG_NAME ) THEN
7110: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
7111: END IF;
7112:
7113: -- Initialize message list if p_init_msg_list is set to TRUE.
7114: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

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

7110: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
7111: END IF;
7112:
7113: -- Initialize message list if p_init_msg_list is set to TRUE.
7114: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
7115: FND_MSG_PUB.initialize;
7116: END IF;
7117:
7118: -- Initialize API return status to success

Line 7119: x_return_status := FND_API.G_RET_STS_SUCCESS;

7115: FND_MSG_PUB.initialize;
7116: END IF;
7117:
7118: -- Initialize API return status to success
7119: x_return_status := FND_API.G_RET_STS_SUCCESS;
7120:
7121: -- Read the debug profiles values in to global variable 7197402
7122: CSI_CTR_GEN_UTILITY_PVT.read_debug_profiles;
7123:

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

7125: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
7126: csi_ctr_gen_utility_pvt.put_line(
7127: 'instantiate_ctr_pvt'||'-'||
7128: p_api_version ||'-'||
7129: nvl(p_commit,FND_API.G_FALSE) ||'-'||
7130: nvl(p_init_msg_list,FND_API.G_FALSE)||'-'||
7131: nvl(l_validation_level,FND_API.G_VALID_LEVEL_FULL) );
7132: END IF;
7133:

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

7126: csi_ctr_gen_utility_pvt.put_line(
7127: 'instantiate_ctr_pvt'||'-'||
7128: p_api_version ||'-'||
7129: nvl(p_commit,FND_API.G_FALSE) ||'-'||
7130: nvl(p_init_msg_list,FND_API.G_FALSE)||'-'||
7131: nvl(l_validation_level,FND_API.G_VALID_LEVEL_FULL) );
7132: END IF;
7133:
7134: l_source_object_cd := p_source_object_code_instance;

Line 7131: nvl(l_validation_level,FND_API.G_VALID_LEVEL_FULL) );

7127: 'instantiate_ctr_pvt'||'-'||
7128: p_api_version ||'-'||
7129: nvl(p_commit,FND_API.G_FALSE) ||'-'||
7130: nvl(p_init_msg_list,FND_API.G_FALSE)||'-'||
7131: nvl(l_validation_level,FND_API.G_VALID_LEVEL_FULL) );
7132: END IF;
7133:
7134: l_source_object_cd := p_source_object_code_instance;
7135: l_source_object_id_instance := p_source_object_id_instance;

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

7245: x_msg_count => x_msg_count,
7246: x_msg_data => x_msg_data,
7247: x_ctr_id => l_new_ctr_id
7248: );
7249: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN
7250: l_msg_index := 1;
7251: l_msg_count := x_msg_count;
7252:
7253: WHILE l_msg_count > 0 LOOP

Line 7256: FND_API.G_FALSE );

7252:
7253: WHILE l_msg_count > 0 LOOP
7254: x_msg_data := FND_MSG_PUB.GET
7255: (l_msg_index,
7256: FND_API.G_FALSE );
7257: csi_ctr_gen_utility_pvt.put_line( ' Error from CSI_COUNTER_PVT.CREATE_COUNTER');
7258: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
7259: l_msg_index := l_msg_index + 1;
7260: l_msg_count := l_msg_count - 1;

Line 7262: RAISE FND_API.G_EXC_ERROR;

7258: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
7259: l_msg_index := l_msg_index + 1;
7260: l_msg_count := l_msg_count - 1;
7261: END LOOP;
7262: RAISE FND_API.G_EXC_ERROR;
7263: END IF;
7264:
7265: -- x_ctr_id_instance := l_counter_instance_rec.group_id;
7266: -- Create Counter Associations

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

7285: ,x_msg_data => x_msg_data
7286: ,x_instance_association_id => l_instance_association_id
7287: );
7288:
7289: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN
7290: l_msg_index := 1;
7291: l_msg_count := x_msg_count;
7292:
7293: WHILE l_msg_count > 0 LOOP

Line 7296: FND_API.G_FALSE );

7292:
7293: WHILE l_msg_count > 0 LOOP
7294: x_msg_data := FND_MSG_PUB.GET
7295: (l_msg_index,
7296: FND_API.G_FALSE );
7297: csi_ctr_gen_utility_pvt.put_line( ' Error from CSI_COUNTER_PVT.CREATE_CTR_ASSOCIATIONS');
7298: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
7299: l_msg_index := l_msg_index + 1;
7300: l_msg_count := l_msg_count - 1;

Line 7302: RAISE FND_API.G_EXC_ERROR;

7298: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
7299: l_msg_index := l_msg_index + 1;
7300: l_msg_count := l_msg_count - 1;
7301: END LOOP;
7302: RAISE FND_API.G_EXC_ERROR;
7303: END IF;
7304:
7305: -- Insert initial reading by calling counter reading api.
7306: IF ctr_cur_rec.counter_type = 'REGULAR' AND

Line 7308: ctr_cur_rec.initial_reading <> FND_API.G_MISS_NUM) AND

7304:
7305: -- Insert initial reading by calling counter reading api.
7306: IF ctr_cur_rec.counter_type = 'REGULAR' AND
7307: (ctr_cur_rec.initial_reading is not null AND
7308: ctr_cur_rec.initial_reading <> FND_API.G_MISS_NUM) AND
7309: nvl(l_counter_relationships_rec.RELATIONSHIP_TYPE_CODE,'X') <>
7310: l_rel_type THEN
7311:
7312: csi_ctr_gen_utility_pvt.put_line('Inside the call reading api...');

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

7377: x_msg_count => x_msg_count,
7378: x_msg_data => x_msg_data
7379: );
7380:
7381: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN
7382: l_msg_index := 1;
7383: l_msg_count := x_msg_count;
7384:
7385: WHILE l_msg_count > 0 LOOP

Line 7388: FND_API.G_FALSE );

7384:
7385: WHILE l_msg_count > 0 LOOP
7386: x_msg_data := FND_MSG_PUB.GET
7387: (l_msg_index,
7388: FND_API.G_FALSE );
7389: csi_ctr_gen_utility_pvt.put_line( ' Error from Instantiate-Capture Readings');
7390: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
7391: l_msg_index := l_msg_index + 1;
7392: l_msg_count := l_msg_count - 1;

Line 7394: RAISE FND_API.G_EXC_ERROR;

7390: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
7391: l_msg_index := l_msg_index + 1;
7392: l_msg_count := l_msg_count - 1;
7393: END LOOP;
7394: RAISE FND_API.G_EXC_ERROR;
7395: END IF;
7396: END IF;
7397:
7398: -- INstantiate all the properties for that counter.

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

7448: ,x_msg_data => x_msg_data
7449: ,x_ctr_property_id => l_new_ctr_prop_id
7450: );
7451:
7452: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN
7453: l_msg_index := 1;
7454: l_msg_count := x_msg_count;
7455:
7456: WHILE l_msg_count > 0 LOOP

Line 7459: FND_API.G_FALSE );

7455:
7456: WHILE l_msg_count > 0 LOOP
7457: x_msg_data := FND_MSG_PUB.GET
7458: (l_msg_index,
7459: FND_API.G_FALSE );
7460: csi_ctr_gen_utility_pvt.put_line( ' Error from CSI_Counter_PVT.Create_Ctr_Property');
7461: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
7462: l_msg_index := l_msg_index + 1;
7463: l_msg_count := l_msg_count - 1;

Line 7465: RAISE FND_API.G_EXC_ERROR;

7461: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
7462: l_msg_index := l_msg_index + 1;
7463: l_msg_count := l_msg_count - 1;
7464: END LOOP;
7465: RAISE FND_API.G_EXC_ERROR;
7466: END IF;
7467:
7468: END LOOP;
7469:

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

7531: ,x_msg_count => x_msg_count
7532: ,x_msg_data => x_msg_data
7533: );
7534:
7535: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN
7536: l_msg_index := 1;
7537: l_msg_count := x_msg_count;
7538:
7539: WHILE l_msg_count > 0 LOOP

Line 7542: FND_API.G_FALSE );

7538:
7539: WHILE l_msg_count > 0 LOOP
7540: x_msg_data := FND_MSG_PUB.GET
7541: (l_msg_index,
7542: FND_API.G_FALSE );
7543: csi_ctr_gen_utility_pvt.put_line( ' Error from CSI_COUNTER_TEMPLATE_PVT.CREATE_DERIVED_FILTERS');
7544: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
7545: l_msg_index := l_msg_index + 1;
7546: l_msg_count := l_msg_count - 1;

Line 7548: RAISE FND_API.G_EXC_ERROR;

7544: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
7545: l_msg_index := l_msg_index + 1;
7546: l_msg_count := l_msg_count - 1;
7547: END LOOP;
7548: RAISE FND_API.G_EXC_ERROR;
7549: END IF;
7550:
7551: END LOOP;
7552:

Line 7666: ,p_commit => fnd_api.g_false

7662:
7663: csi_counter_template_pvt.create_counter_relationship
7664: (
7665: p_api_version => p_api_version
7666: ,p_commit => fnd_api.g_false
7667: ,p_init_msg_list => p_init_msg_list
7668: ,p_validation_level => l_validation_level
7669: ,p_counter_relationships_rec => l_counter_relationships_rec
7670: ,x_return_status => x_return_status

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

7677:
7678: x_ctr_id_template := p_counter_id_template;
7679: -- x_ctr_id_instance := l_new_ctr_id;
7680:
7681: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN
7682: COMMIT WORK;
7683: END IF;
7684:
7685: -- Standard call to get message count and IF count is get message info.

Line 7691: WHEN FND_API.G_EXC_ERROR THEN

7687: ( p_count => x_msg_count,
7688: p_data => x_msg_data
7689: );
7690: EXCEPTION
7691: WHEN FND_API.G_EXC_ERROR THEN
7692: x_return_status := FND_API.G_RET_STS_ERROR ;
7693: ROLLBACK TO instantiate_ctr_pvt;
7694: FND_MSG_PUB.Count_And_Get
7695: ( p_count => x_msg_count,

Line 7692: x_return_status := FND_API.G_RET_STS_ERROR ;

7688: p_data => x_msg_data
7689: );
7690: EXCEPTION
7691: WHEN FND_API.G_EXC_ERROR THEN
7692: x_return_status := FND_API.G_RET_STS_ERROR ;
7693: ROLLBACK TO instantiate_ctr_pvt;
7694: FND_MSG_PUB.Count_And_Get
7695: ( p_count => x_msg_count,
7696: p_data => x_msg_data

Line 7698: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN

7694: FND_MSG_PUB.Count_And_Get
7695: ( p_count => x_msg_count,
7696: p_data => x_msg_data
7697: );
7698: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
7699: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
7700: ROLLBACK TO instantiate_ctr_pvt;
7701: FND_MSG_PUB.Count_And_Get
7702: ( p_count => x_msg_count,

Line 7699: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

7695: ( p_count => x_msg_count,
7696: p_data => x_msg_data
7697: );
7698: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
7699: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
7700: ROLLBACK TO instantiate_ctr_pvt;
7701: FND_MSG_PUB.Count_And_Get
7702: ( p_count => x_msg_count,
7703: p_data => x_msg_data

Line 7706: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

7702: ( p_count => x_msg_count,
7703: p_data => x_msg_data
7704: );
7705: WHEN OTHERS THEN
7706: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
7707: ROLLBACK TO instantiate_ctr_pvt;
7708: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
7709: FND_MSG_PUB.Add_Exc_Msg
7710: ( G_PKG_NAME,

Line 8018: IF NOT FND_API.Compatible_API_Call (l_api_version,

8014: -- Standard Start of API savepoint
8015: SAVEPOINT instantiate_grp_counters;
8016:
8017: -- Standard call to check for call compatibility.
8018: IF NOT FND_API.Compatible_API_Call (l_api_version,
8019: p_api_version,
8020: l_api_name ,
8021: G_PKG_NAME ) THEN
8022: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 8022: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

8018: IF NOT FND_API.Compatible_API_Call (l_api_version,
8019: p_api_version,
8020: l_api_name ,
8021: G_PKG_NAME ) THEN
8022: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
8023: END IF;
8024:
8025: -- Initialize message list if p_init_msg_list is set to TRUE.
8026: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

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

8022: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
8023: END IF;
8024:
8025: -- Initialize message list if p_init_msg_list is set to TRUE.
8026: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
8027: FND_MSG_PUB.initialize;
8028: END IF;
8029:
8030: -- Initialize API return status to success

Line 8031: x_return_status := FND_API.G_RET_STS_SUCCESS;

8027: FND_MSG_PUB.initialize;
8028: END IF;
8029:
8030: -- Initialize API return status to success
8031: x_return_status := FND_API.G_RET_STS_SUCCESS;
8032:
8033: -- Read the debug profiles values in to global variable 7197402
8034: CSI_CTR_GEN_UTILITY_PVT.read_debug_profiles;
8035:

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

8037: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
8038: csi_ctr_gen_utility_pvt.put_line(
8039: 'instantiate_grp_counters'||'-'||
8040: p_api_version ||'-'||
8041: nvl(p_commit,FND_API.G_FALSE) ||'-'||
8042: nvl(p_init_msg_list,FND_API.G_FALSE)||'-'||
8043: nvl(l_validation_level,FND_API.G_VALID_LEVEL_FULL) );
8044: END IF;
8045:

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

8038: csi_ctr_gen_utility_pvt.put_line(
8039: 'instantiate_grp_counters'||'-'||
8040: p_api_version ||'-'||
8041: nvl(p_commit,FND_API.G_FALSE) ||'-'||
8042: nvl(p_init_msg_list,FND_API.G_FALSE)||'-'||
8043: nvl(l_validation_level,FND_API.G_VALID_LEVEL_FULL) );
8044: END IF;
8045:
8046: l_source_object_cd := p_source_object_code_instance;

Line 8043: nvl(l_validation_level,FND_API.G_VALID_LEVEL_FULL) );

8039: 'instantiate_grp_counters'||'-'||
8040: p_api_version ||'-'||
8041: nvl(p_commit,FND_API.G_FALSE) ||'-'||
8042: nvl(p_init_msg_list,FND_API.G_FALSE)||'-'||
8043: nvl(l_validation_level,FND_API.G_VALID_LEVEL_FULL) );
8044: END IF;
8045:
8046: l_source_object_cd := p_source_object_code_instance;
8047: l_source_object_id_instance := p_source_object_id_instance;

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

8110: ,x_msg_count => x_msg_count
8111: ,x_msg_data => x_msg_data
8112: );
8113:
8114: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN
8115: l_msg_index := 1;
8116: l_msg_count := x_msg_count;
8117:
8118: WHILE l_msg_count > 0 LOOP

Line 8121: FND_API.G_FALSE );

8117:
8118: WHILE l_msg_count > 0 LOOP
8119: x_msg_data := FND_MSG_PUB.GET
8120: (l_msg_index,
8121: FND_API.G_FALSE );
8122: csi_ctr_gen_utility_pvt.put_line('Error from CSI_COUNTER_TEMPLATE_PVT.CREATE_COUNTER_GROUP');
8123: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
8124: l_msg_index := l_msg_index + 1;
8125: l_msg_count := l_msg_count - 1;

Line 8127: RAISE FND_API.G_EXC_ERROR;

8123: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
8124: l_msg_index := l_msg_index + 1;
8125: l_msg_count := l_msg_count - 1;
8126: END LOOP;
8127: RAISE FND_API.G_EXC_ERROR;
8128: END IF;
8129:
8130: l_ctr_grp_id_instance := l_ctr_grp_rec.counter_group_id;
8131: x_ctr_grp_id_instance := l_ctr_grp_rec.counter_group_id;

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

8238: x_msg_count => x_msg_count,
8239: x_msg_data => x_msg_data,
8240: x_ctr_id => l_new_ctr_id
8241: );
8242: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN
8243: l_msg_index := 1;
8244: l_msg_count := x_msg_count;
8245:
8246: WHILE l_msg_count > 0 LOOP

Line 8249: FND_API.G_FALSE );

8245:
8246: WHILE l_msg_count > 0 LOOP
8247: x_msg_data := FND_MSG_PUB.GET
8248: (l_msg_index,
8249: FND_API.G_FALSE );
8250: csi_ctr_gen_utility_pvt.put_line( ' Error from CSI_COUNTER_PVT.CREATE_COUNTER');
8251: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
8252: l_msg_index := l_msg_index + 1;
8253: l_msg_count := l_msg_count - 1;

Line 8255: RAISE FND_API.G_EXC_ERROR;

8251: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
8252: l_msg_index := l_msg_index + 1;
8253: l_msg_count := l_msg_count - 1;
8254: END LOOP;
8255: RAISE FND_API.G_EXC_ERROR;
8256: END IF;
8257:
8258: -- x_ctr_id_instance := l_counter_instance_rec.group_id;
8259: -- Create Counter Associations

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

8276: ,x_msg_data => x_msg_data
8277: ,x_instance_association_id => l_instance_association_id
8278: );
8279:
8280: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN
8281: l_msg_index := 1;
8282: l_msg_count := x_msg_count;
8283:
8284: WHILE l_msg_count > 0 LOOP

Line 8287: FND_API.G_FALSE );

8283:
8284: WHILE l_msg_count > 0 LOOP
8285: x_msg_data := FND_MSG_PUB.GET
8286: (l_msg_index,
8287: FND_API.G_FALSE );
8288: csi_ctr_gen_utility_pvt.put_line( ' Error from CSI_COUNTER_PVT.CREATE_CTR_ASSOCIATIONS');
8289: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
8290: l_msg_index := l_msg_index + 1;
8291: l_msg_count := l_msg_count - 1;

Line 8293: RAISE FND_API.G_EXC_ERROR;

8289: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
8290: l_msg_index := l_msg_index + 1;
8291: l_msg_count := l_msg_count - 1;
8292: END LOOP;
8293: RAISE FND_API.G_EXC_ERROR;
8294: END IF;
8295: -- INstantiate all the properties for that counter.
8296:
8297: FOR ctr_prop_cur_rec IN ctr_prop_cur(ctr_cur_rec.counter_id) LOOP

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

8346: ,x_msg_data => x_msg_data
8347: ,x_ctr_property_id => l_new_ctr_prop_id
8348: );
8349:
8350: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN
8351: l_msg_index := 1;
8352: l_msg_count := x_msg_count;
8353:
8354: WHILE l_msg_count > 0 LOOP

Line 8357: FND_API.G_FALSE );

8353:
8354: WHILE l_msg_count > 0 LOOP
8355: x_msg_data := FND_MSG_PUB.GET
8356: (l_msg_index,
8357: FND_API.G_FALSE );
8358: csi_ctr_gen_utility_pvt.put_line( ' Error from CSI_Counter_PVT.Create_Ctr_Property');
8359: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
8360: l_msg_index := l_msg_index + 1;
8361: l_msg_count := l_msg_count - 1;

Line 8363: RAISE FND_API.G_EXC_ERROR;

8359: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
8360: l_msg_index := l_msg_index + 1;
8361: l_msg_count := l_msg_count - 1;
8362: END LOOP;
8363: RAISE FND_API.G_EXC_ERROR;
8364: END IF;
8365:
8366: END LOOP;
8367:

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

8396: ,x_msg_count => x_msg_count
8397: ,x_msg_data => x_msg_data
8398: );
8399:
8400: IF NOT(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN
8401: l_msg_index := 1;
8402: l_msg_count := x_msg_count;
8403:
8404: WHILE l_msg_count > 0 LOOP

Line 8407: FND_API.G_FALSE );

8403:
8404: WHILE l_msg_count > 0 LOOP
8405: x_msg_data := FND_MSG_PUB.GET
8406: (l_msg_index,
8407: FND_API.G_FALSE );
8408: csi_ctr_gen_utility_pvt.put_line( ' Error from CSI_COUNTER_TEMPLATE_PVT.CREATE_DERIVED_FILTERS');
8409: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
8410: l_msg_index := l_msg_index + 1;
8411: l_msg_count := l_msg_count - 1;

Line 8413: RAISE FND_API.G_EXC_ERROR;

8409: csi_ctr_gen_utility_pvt.put_line('MESSAGE DATA = '||x_msg_data);
8410: l_msg_index := l_msg_index + 1;
8411: l_msg_count := l_msg_count - 1;
8412: END LOOP;
8413: RAISE FND_API.G_EXC_ERROR;
8414: END IF;
8415:
8416: END LOOP;
8417:

Line 8539: ,p_commit => fnd_api.g_false

8535:
8536: csi_counter_template_pvt.create_counter_relationship
8537: (
8538: p_api_version => p_api_version
8539: ,p_commit => fnd_api.g_false
8540: ,p_init_msg_list => p_init_msg_list
8541: ,p_validation_level => l_validation_level
8542: ,p_counter_relationships_rec => l_counter_relationships_rec
8543: ,x_return_status => x_return_status

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

8550:
8551: -- x_ctr_id_template := p_counter_id_template;
8552: -- x_ctr_id_instance := l_new_ctr_id;
8553:
8554: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN
8555: COMMIT WORK;
8556: END IF;
8557:
8558: -- Standard call to get message count and IF count is get message info.

Line 8564: WHEN FND_API.G_EXC_ERROR THEN

8560: ( p_count => x_msg_count,
8561: p_data => x_msg_data
8562: );
8563: EXCEPTION
8564: WHEN FND_API.G_EXC_ERROR THEN
8565: x_return_status := FND_API.G_RET_STS_ERROR ;
8566: ROLLBACK TO instantiate_grp_counters;
8567: FND_MSG_PUB.Count_And_Get
8568: ( p_count => x_msg_count,

Line 8565: x_return_status := FND_API.G_RET_STS_ERROR ;

8561: p_data => x_msg_data
8562: );
8563: EXCEPTION
8564: WHEN FND_API.G_EXC_ERROR THEN
8565: x_return_status := FND_API.G_RET_STS_ERROR ;
8566: ROLLBACK TO instantiate_grp_counters;
8567: FND_MSG_PUB.Count_And_Get
8568: ( p_count => x_msg_count,
8569: p_data => x_msg_data

Line 8571: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN

8567: FND_MSG_PUB.Count_And_Get
8568: ( p_count => x_msg_count,
8569: p_data => x_msg_data
8570: );
8571: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
8572: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
8573: ROLLBACK TO instantiate_grp_counters;
8574: FND_MSG_PUB.Count_And_Get
8575: ( p_count => x_msg_count,

Line 8572: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

8568: ( p_count => x_msg_count,
8569: p_data => x_msg_data
8570: );
8571: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
8572: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
8573: ROLLBACK TO instantiate_grp_counters;
8574: FND_MSG_PUB.Count_And_Get
8575: ( p_count => x_msg_count,
8576: p_data => x_msg_data

Line 8579: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

8575: ( p_count => x_msg_count,
8576: p_data => x_msg_data
8577: );
8578: WHEN OTHERS THEN
8579: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
8580: ROLLBACK TO instantiate_grp_counters;
8581: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
8582: FND_MSG_PUB.Add_Exc_Msg
8583: ( G_PKG_NAME,

Line 8641: IF NOT FND_API.Compatible_API_Call (l_api_version,

8637: -- Standard Start of API savepoint
8638: SAVEPOINT delete_item_association_pvt;
8639:
8640: -- Standard call to check for call compatibility.
8641: IF NOT FND_API.Compatible_API_Call (l_api_version,
8642: p_api_version,
8643: l_api_name ,
8644: G_PKG_NAME ) THEN
8645: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 8645: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

8641: IF NOT FND_API.Compatible_API_Call (l_api_version,
8642: p_api_version,
8643: l_api_name ,
8644: G_PKG_NAME ) THEN
8645: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
8646: END IF;
8647:
8648: -- Initialize message list if p_init_msg_list is set to TRUE.
8649: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN

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

8645: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
8646: END IF;
8647:
8648: -- Initialize message list if p_init_msg_list is set to TRUE.
8649: IF FND_API.to_Boolean(nvl(p_init_msg_list,FND_API.G_FALSE)) THEN
8650: FND_MSG_PUB.initialize;
8651: END IF;
8652:
8653: -- Initialize API return status to success

Line 8654: x_return_status := FND_API.G_RET_STS_SUCCESS;

8650: FND_MSG_PUB.initialize;
8651: END IF;
8652:
8653: -- Initialize API return status to success
8654: x_return_status := FND_API.G_RET_STS_SUCCESS;
8655:
8656: -- Read the debug profiles values in to global variable 7197402
8657: CSI_CTR_GEN_UTILITY_PVT.read_debug_profiles;
8658:

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

8660: IF (CSI_CTR_GEN_UTILITY_PVT.g_debug_level > 0) THEN
8661: csi_ctr_gen_utility_pvt.put_line
8662: ( 'delete_item_association_pvt' ||'-'||
8663: p_api_version ||'-'||
8664: nvl(p_commit,FND_API.G_FALSE) ||'-'||
8665: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
8666: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
8667: END IF;
8668:

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

8661: csi_ctr_gen_utility_pvt.put_line
8662: ( 'delete_item_association_pvt' ||'-'||
8663: p_api_version ||'-'||
8664: nvl(p_commit,FND_API.G_FALSE) ||'-'||
8665: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
8666: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
8667: END IF;
8668:
8669: if p_ctr_associations_id = FND_API.G_MISS_NUM then

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

8662: ( 'delete_item_association_pvt' ||'-'||
8663: p_api_version ||'-'||
8664: nvl(p_commit,FND_API.G_FALSE) ||'-'||
8665: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
8666: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
8667: END IF;
8668:
8669: if p_ctr_associations_id = FND_API.G_MISS_NUM then
8670: l_ctr_associations_id := null;

Line 8669: if p_ctr_associations_id = FND_API.G_MISS_NUM then

8665: nvl(p_init_msg_list,FND_API.G_FALSE) ||'-'||
8666: nvl(p_validation_level,FND_API.G_VALID_LEVEL_FULL) );
8667: END IF;
8668:
8669: if p_ctr_associations_id = FND_API.G_MISS_NUM then
8670: l_ctr_associations_id := null;
8671: else
8672: l_ctr_associations_id := p_ctr_associations_id;
8673: end if;

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

8705: /* Call the table Handler */
8706: CSI_CTR_ITEM_ASSOCIATIONS_PKG.Delete_Row
8707: (p_CTR_ASSOCIATION_ID => get_item_rec.ctr_association_id);
8708:
8709: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN
8710: ROLLBACK TO delete_item_association_pvt;
8711: RETURN;
8712: END IF;
8713: END LOOP;

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

8716: /* Call the table Handler */
8717: CSI_CTR_ITEM_ASSOCIATIONS_PKG.Delete_Row
8718: (p_CTR_ASSOCIATION_ID => l_ctr_associations_id);
8719:
8720: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN
8721: ROLLBACK TO delete_item_association_pvt;
8722: RETURN;
8723: END IF;
8724: ELSE

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

8742: /* Call the table Handler */
8743: CSI_CTR_ITEM_ASSOCIATIONS_PKG.Delete_Row
8744: (p_CTR_ASSOCIATION_ID => l_ctr_associations_id);
8745:
8746: IF NOT (x_return_status = FND_API.G_RET_STS_SUCCESS ) THEN
8747: ROLLBACK TO delete_item_association_pvt;
8748: RETURN;
8749: END IF;
8750: END IF;

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

8753: WHEN OTHERS THEN
8754: CSI_CTR_GEN_UTILITY_PVT.ExitWithErrMsg('CSI_API_CTR_ITEM_DEL_NOTALLOW');
8755: END;
8756:
8757: IF FND_API.to_Boolean(nvl(p_commit,FND_API.G_FALSE)) THEN
8758: COMMIT WORK;
8759: END IF;
8760:
8761: -- Standard call to get message count and IF count is get message info.

Line 8767: WHEN FND_API.G_EXC_ERROR THEN

8763: ( p_count => x_msg_count,
8764: p_data => x_msg_data
8765: );
8766: EXCEPTION
8767: WHEN FND_API.G_EXC_ERROR THEN
8768: x_return_status := FND_API.G_RET_STS_ERROR ;
8769: ROLLBACK TO delete_item_association_pvt;
8770: FND_MSG_PUB.Count_And_Get
8771: ( p_count => x_msg_count,

Line 8768: x_return_status := FND_API.G_RET_STS_ERROR ;

8764: p_data => x_msg_data
8765: );
8766: EXCEPTION
8767: WHEN FND_API.G_EXC_ERROR THEN
8768: x_return_status := FND_API.G_RET_STS_ERROR ;
8769: ROLLBACK TO delete_item_association_pvt;
8770: FND_MSG_PUB.Count_And_Get
8771: ( p_count => x_msg_count,
8772: p_data => x_msg_data

Line 8774: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN

8770: FND_MSG_PUB.Count_And_Get
8771: ( p_count => x_msg_count,
8772: p_data => x_msg_data
8773: );
8774: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
8775: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
8776: ROLLBACK TO delete_item_association_pvt;
8777: FND_MSG_PUB.Count_And_Get
8778: ( p_count => x_msg_count,

Line 8775: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

8771: ( p_count => x_msg_count,
8772: p_data => x_msg_data
8773: );
8774: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
8775: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
8776: ROLLBACK TO delete_item_association_pvt;
8777: FND_MSG_PUB.Count_And_Get
8778: ( p_count => x_msg_count,
8779: p_data => x_msg_data

Line 8782: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;

8778: ( p_count => x_msg_count,
8779: p_data => x_msg_data
8780: );
8781: WHEN OTHERS THEN
8782: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
8783: ROLLBACK TO create_item_association_pvt;
8784: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
8785: FND_MSG_PUB.Add_Exc_Msg
8786: ( G_PKG_NAME,