284: OPEN c_get_interest_type;
285: FETCH c_get_interest_type INTO l_interest_type;
286: CLOSE c_get_interest_type;
287: IF ( i=0) THEN
288: FND_MESSAGE.Set_Name('AMS', 'AMS_API_INTEREST_TYPE_MISSING');
289: FND_FILE.PUT_LINE(FND_FILE.LOG,FND_MESSAGE.Get());
290: -- Category Mapping is missing for the following Interest Types in the as_interest_types:
291: END IF;
292: FND_MESSAGE.Set_Name('AMS', 'AMS_INTEREST_TYPE_ASSOC_COMP');
285: FETCH c_get_interest_type INTO l_interest_type;
286: CLOSE c_get_interest_type;
287: IF ( i=0) THEN
288: FND_MESSAGE.Set_Name('AMS', 'AMS_API_INTEREST_TYPE_MISSING');
289: FND_FILE.PUT_LINE(FND_FILE.LOG,FND_MESSAGE.Get());
290: -- Category Mapping is missing for the following Interest Types in the as_interest_types:
291: END IF;
292: FND_MESSAGE.Set_Name('AMS', 'AMS_INTEREST_TYPE_ASSOC_COMP');
293: -- Interest Type NAME ( Id: ID) associated with the COMPNAME (Competitor_Id: COMPID).
288: FND_MESSAGE.Set_Name('AMS', 'AMS_API_INTEREST_TYPE_MISSING');
289: FND_FILE.PUT_LINE(FND_FILE.LOG,FND_MESSAGE.Get());
290: -- Category Mapping is missing for the following Interest Types in the as_interest_types:
291: END IF;
292: FND_MESSAGE.Set_Name('AMS', 'AMS_INTEREST_TYPE_ASSOC_COMP');
293: -- Interest Type NAME ( Id: ID) associated with the COMPNAME (Competitor_Id: COMPID).
294: FND_MESSAGE.Set_Token('NAME',l_interest_type);
295: FND_MESSAGE.Set_Token('ID',l_interest_type_id);
296: FND_MESSAGE.Set_Token('COMPNAME',l_comp_name);
290: -- Category Mapping is missing for the following Interest Types in the as_interest_types:
291: END IF;
292: FND_MESSAGE.Set_Name('AMS', 'AMS_INTEREST_TYPE_ASSOC_COMP');
293: -- Interest Type NAME ( Id: ID) associated with the COMPNAME (Competitor_Id: COMPID).
294: FND_MESSAGE.Set_Token('NAME',l_interest_type);
295: FND_MESSAGE.Set_Token('ID',l_interest_type_id);
296: FND_MESSAGE.Set_Token('COMPNAME',l_comp_name);
297: FND_MESSAGE.Set_Token('COMPID',l_competitor_prod_id);
298: FND_FILE.PUT_LINE(FND_FILE.LOG,FND_MESSAGE.Get());
291: END IF;
292: FND_MESSAGE.Set_Name('AMS', 'AMS_INTEREST_TYPE_ASSOC_COMP');
293: -- Interest Type NAME ( Id: ID) associated with the COMPNAME (Competitor_Id: COMPID).
294: FND_MESSAGE.Set_Token('NAME',l_interest_type);
295: FND_MESSAGE.Set_Token('ID',l_interest_type_id);
296: FND_MESSAGE.Set_Token('COMPNAME',l_comp_name);
297: FND_MESSAGE.Set_Token('COMPID',l_competitor_prod_id);
298: FND_FILE.PUT_LINE(FND_FILE.LOG,FND_MESSAGE.Get());
299: i := i+1;
292: FND_MESSAGE.Set_Name('AMS', 'AMS_INTEREST_TYPE_ASSOC_COMP');
293: -- Interest Type NAME ( Id: ID) associated with the COMPNAME (Competitor_Id: COMPID).
294: FND_MESSAGE.Set_Token('NAME',l_interest_type);
295: FND_MESSAGE.Set_Token('ID',l_interest_type_id);
296: FND_MESSAGE.Set_Token('COMPNAME',l_comp_name);
297: FND_MESSAGE.Set_Token('COMPID',l_competitor_prod_id);
298: FND_FILE.PUT_LINE(FND_FILE.LOG,FND_MESSAGE.Get());
299: i := i+1;
300: END IF;
293: -- Interest Type NAME ( Id: ID) associated with the COMPNAME (Competitor_Id: COMPID).
294: FND_MESSAGE.Set_Token('NAME',l_interest_type);
295: FND_MESSAGE.Set_Token('ID',l_interest_type_id);
296: FND_MESSAGE.Set_Token('COMPNAME',l_comp_name);
297: FND_MESSAGE.Set_Token('COMPID',l_competitor_prod_id);
298: FND_FILE.PUT_LINE(FND_FILE.LOG,FND_MESSAGE.Get());
299: i := i+1;
300: END IF;
301: CLOSE c_get_category;
294: FND_MESSAGE.Set_Token('NAME',l_interest_type);
295: FND_MESSAGE.Set_Token('ID',l_interest_type_id);
296: FND_MESSAGE.Set_Token('COMPNAME',l_comp_name);
297: FND_MESSAGE.Set_Token('COMPID',l_competitor_prod_id);
298: FND_FILE.PUT_LINE(FND_FILE.LOG,FND_MESSAGE.Get());
299: i := i+1;
300: END IF;
301: CLOSE c_get_category;
302: END LOOP;
377: ,category_set_id = l_cat_rec.cat_set_id
378: WHERE activity_product_id = l_activity_product_id;
379: ELSE
380: IF (i = 0) THEN
381: FND_MESSAGE.Set_Name('AMS', 'AMS_API_CAT_MAPPING_MISSING');
382: -- Category Mapping is missing for the following:
383: FND_FILE.PUT_LINE(FND_FILE.LOG,FND_MESSAGE.Get());
384: END IF;
385: FND_MESSAGE.Set_Name('AMS', 'AMS_API_CAT_ASSOC_OBJECT');
379: ELSE
380: IF (i = 0) THEN
381: FND_MESSAGE.Set_Name('AMS', 'AMS_API_CAT_MAPPING_MISSING');
382: -- Category Mapping is missing for the following:
383: FND_FILE.PUT_LINE(FND_FILE.LOG,FND_MESSAGE.Get());
384: END IF;
385: FND_MESSAGE.Set_Name('AMS', 'AMS_API_CAT_ASSOC_OBJECT');
386: -- NAME ( Id: ID) category associated with the object OBJTYPE (ObjId: OBJID).
387: FND_MESSAGE.Set_Token('NAME',l_cat_name_rec.description);
381: FND_MESSAGE.Set_Name('AMS', 'AMS_API_CAT_MAPPING_MISSING');
382: -- Category Mapping is missing for the following:
383: FND_FILE.PUT_LINE(FND_FILE.LOG,FND_MESSAGE.Get());
384: END IF;
385: FND_MESSAGE.Set_Name('AMS', 'AMS_API_CAT_ASSOC_OBJECT');
386: -- NAME ( Id: ID) category associated with the object OBJTYPE (ObjId: OBJID).
387: FND_MESSAGE.Set_Token('NAME',l_cat_name_rec.description);
388: FND_MESSAGE.Set_Token('ID',l_category_id);
389: FND_MESSAGE.Set_Token('OBJTYPE',l_obj_type);
383: FND_FILE.PUT_LINE(FND_FILE.LOG,FND_MESSAGE.Get());
384: END IF;
385: FND_MESSAGE.Set_Name('AMS', 'AMS_API_CAT_ASSOC_OBJECT');
386: -- NAME ( Id: ID) category associated with the object OBJTYPE (ObjId: OBJID).
387: FND_MESSAGE.Set_Token('NAME',l_cat_name_rec.description);
388: FND_MESSAGE.Set_Token('ID',l_category_id);
389: FND_MESSAGE.Set_Token('OBJTYPE',l_obj_type);
390: FND_MESSAGE.Set_Token('OBJID',l_obj_id);
391: FND_FILE.PUT_LINE(FND_FILE.LOG,FND_MESSAGE.Get());
384: END IF;
385: FND_MESSAGE.Set_Name('AMS', 'AMS_API_CAT_ASSOC_OBJECT');
386: -- NAME ( Id: ID) category associated with the object OBJTYPE (ObjId: OBJID).
387: FND_MESSAGE.Set_Token('NAME',l_cat_name_rec.description);
388: FND_MESSAGE.Set_Token('ID',l_category_id);
389: FND_MESSAGE.Set_Token('OBJTYPE',l_obj_type);
390: FND_MESSAGE.Set_Token('OBJID',l_obj_id);
391: FND_FILE.PUT_LINE(FND_FILE.LOG,FND_MESSAGE.Get());
392: i := i+1;
385: FND_MESSAGE.Set_Name('AMS', 'AMS_API_CAT_ASSOC_OBJECT');
386: -- NAME ( Id: ID) category associated with the object OBJTYPE (ObjId: OBJID).
387: FND_MESSAGE.Set_Token('NAME',l_cat_name_rec.description);
388: FND_MESSAGE.Set_Token('ID',l_category_id);
389: FND_MESSAGE.Set_Token('OBJTYPE',l_obj_type);
390: FND_MESSAGE.Set_Token('OBJID',l_obj_id);
391: FND_FILE.PUT_LINE(FND_FILE.LOG,FND_MESSAGE.Get());
392: i := i+1;
393: END IF;
386: -- NAME ( Id: ID) category associated with the object OBJTYPE (ObjId: OBJID).
387: FND_MESSAGE.Set_Token('NAME',l_cat_name_rec.description);
388: FND_MESSAGE.Set_Token('ID',l_category_id);
389: FND_MESSAGE.Set_Token('OBJTYPE',l_obj_type);
390: FND_MESSAGE.Set_Token('OBJID',l_obj_id);
391: FND_FILE.PUT_LINE(FND_FILE.LOG,FND_MESSAGE.Get());
392: i := i+1;
393: END IF;
394: CLOSE c_get_map_cat;
387: FND_MESSAGE.Set_Token('NAME',l_cat_name_rec.description);
388: FND_MESSAGE.Set_Token('ID',l_category_id);
389: FND_MESSAGE.Set_Token('OBJTYPE',l_obj_type);
390: FND_MESSAGE.Set_Token('OBJID',l_obj_id);
391: FND_FILE.PUT_LINE(FND_FILE.LOG,FND_MESSAGE.Get());
392: i := i+1;
393: END IF;
394: CLOSE c_get_map_cat;
395: END LOOP;