81: IF FND_GLOBAL.User_Id IS NULL
82: THEN
83: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_ERROR)
84: THEN
85: FND_MESSAGE.Set_Name('IEX', 'IEX_CANNOT_GET_PROFILE_VALUE');
86: FND_MESSAGE.Set_Token('PROFILE', 'USER_ID', FALSE);
87: FND_MSG_PUB.ADD;
88: END IF;
89: RAISE FND_API.G_EXC_ERROR;
82: THEN
83: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_ERROR)
84: THEN
85: FND_MESSAGE.Set_Name('IEX', 'IEX_CANNOT_GET_PROFILE_VALUE');
86: FND_MESSAGE.Set_Token('PROFILE', 'USER_ID', FALSE);
87: FND_MSG_PUB.ADD;
88: END IF;
89: RAISE FND_API.G_EXC_ERROR;
90: END IF;
121: IF ((p_costs_rec.case_id IS NULL) OR (p_costs_rec.case_ID = FND_API.G_MISS_NUM))
122: AND
123: ((p_costs_rec.delinquency_id IS NULL) OR (p_costs_rec.delinquency_ID = FND_API.G_MISS_NUM))
124: THEN
125: fnd_message.set_name('IEX', 'IEX_API_ALL_MISSING_PARAM');
126: fnd_message.set_token('API_NAME', l_api_name);
127: fnd_message.set_token('MISSING_PARAM', 'case_id/delinquency_id');
128: fnd_msg_pub.add;
129: RAISE FND_API.G_EXC_ERROR;
122: AND
123: ((p_costs_rec.delinquency_id IS NULL) OR (p_costs_rec.delinquency_ID = FND_API.G_MISS_NUM))
124: THEN
125: fnd_message.set_name('IEX', 'IEX_API_ALL_MISSING_PARAM');
126: fnd_message.set_token('API_NAME', l_api_name);
127: fnd_message.set_token('MISSING_PARAM', 'case_id/delinquency_id');
128: fnd_msg_pub.add;
129: RAISE FND_API.G_EXC_ERROR;
130: END IF;
123: ((p_costs_rec.delinquency_id IS NULL) OR (p_costs_rec.delinquency_ID = FND_API.G_MISS_NUM))
124: THEN
125: fnd_message.set_name('IEX', 'IEX_API_ALL_MISSING_PARAM');
126: fnd_message.set_token('API_NAME', l_api_name);
127: fnd_message.set_token('MISSING_PARAM', 'case_id/delinquency_id');
128: fnd_msg_pub.add;
129: RAISE FND_API.G_EXC_ERROR;
130: END IF;
131: -- IF PG_DEBUG < 10 THEN
134: END IF;
135:
136: --check for cost_type_code
137: IF (p_costs_rec.cost_type_code IS NULL) OR (p_costs_rec.cost_type_code = FND_API.G_MISS_CHAR) THEN
138: fnd_message.set_name('IEX', 'IEX_API_ALL_MISSING_PARAM');
139: fnd_message.set_token('API_NAME', l_api_name);
140: fnd_message.set_token('MISSING_PARAM', 'cost_type_code');
141: fnd_msg_pub.add;
142: RAISE FND_API.G_EXC_ERROR;
135:
136: --check for cost_type_code
137: IF (p_costs_rec.cost_type_code IS NULL) OR (p_costs_rec.cost_type_code = FND_API.G_MISS_CHAR) THEN
138: fnd_message.set_name('IEX', 'IEX_API_ALL_MISSING_PARAM');
139: fnd_message.set_token('API_NAME', l_api_name);
140: fnd_message.set_token('MISSING_PARAM', 'cost_type_code');
141: fnd_msg_pub.add;
142: RAISE FND_API.G_EXC_ERROR;
143: END IF;
136: --check for cost_type_code
137: IF (p_costs_rec.cost_type_code IS NULL) OR (p_costs_rec.cost_type_code = FND_API.G_MISS_CHAR) THEN
138: fnd_message.set_name('IEX', 'IEX_API_ALL_MISSING_PARAM');
139: fnd_message.set_token('API_NAME', l_api_name);
140: fnd_message.set_token('MISSING_PARAM', 'cost_type_code');
141: fnd_msg_pub.add;
142: RAISE FND_API.G_EXC_ERROR;
143: END IF;
144: -- IF PG_DEBUG < 10 THEN
147: END IF;
148:
149: --check for cost_item type_code
150: IF (p_costs_rec.cost_item_type_code IS NULL) OR (p_costs_rec.cost_item_type_code = FND_API.G_MISS_CHAR) THEN
151: fnd_message.set_name('IEX', 'IEX_API_ALL_MISSING_PARAM');
152: fnd_message.set_token('API_NAME', l_api_name);
153: fnd_message.set_token('MISSING_PARAM', 'cost_item_type_code');
154: fnd_msg_pub.add;
155: RAISE FND_API.G_EXC_ERROR;
148:
149: --check for cost_item type_code
150: IF (p_costs_rec.cost_item_type_code IS NULL) OR (p_costs_rec.cost_item_type_code = FND_API.G_MISS_CHAR) THEN
151: fnd_message.set_name('IEX', 'IEX_API_ALL_MISSING_PARAM');
152: fnd_message.set_token('API_NAME', l_api_name);
153: fnd_message.set_token('MISSING_PARAM', 'cost_item_type_code');
154: fnd_msg_pub.add;
155: RAISE FND_API.G_EXC_ERROR;
156: END IF;
149: --check for cost_item type_code
150: IF (p_costs_rec.cost_item_type_code IS NULL) OR (p_costs_rec.cost_item_type_code = FND_API.G_MISS_CHAR) THEN
151: fnd_message.set_name('IEX', 'IEX_API_ALL_MISSING_PARAM');
152: fnd_message.set_token('API_NAME', l_api_name);
153: fnd_message.set_token('MISSING_PARAM', 'cost_item_type_code');
154: fnd_msg_pub.add;
155: RAISE FND_API.G_EXC_ERROR;
156: END IF;
157: -- IF PG_DEBUG < 10 THEN