DBA Data[Home] [Help]

APPS.GMD_RECIPE_HEADER_PVT dependencies on GMD_DEBUG

Line 785: gmd_debug.log_initialize('CopyRecipe');

781:
782: BEGIN
783:
784: IF (l_debug = 'Y') THEN
785: gmd_debug.log_initialize('CopyRecipe');
786: END IF;
787:
788: /* Get the old recipe record and compare with the new one that
789: is passed in. Compare the old record with the new record that

Line 797: gmd_debug.put_line('-- 1. Check for Recipe id ');

793: */
794: FOR old_recipe_rec IN get_old_recipe_record(p_old_recipe_id) LOOP
795: l_rowcount := l_rowcount + 1;
796: IF (l_debug = 'Y') THEN
797: gmd_debug.put_line('-- 1. Check for Recipe id ');
798: END IF;
799: IF p_recipe_header_rec.recipe_id = FND_API.G_MISS_NUM THEN
800: fnd_message.set_name ('GMI', 'GMI_MISSING');
801: fnd_message.set_token ('MISSING', 'RECIPE_ID');

Line 842: gmd_debug.put_line('-- 2. Check for Recipe Number (recipe_no) ');

838: END IF; -- End condition when recipe id is null
839: END IF; -- End condition when recipe id is G_miss...
840:
841: IF (l_debug = 'Y') THEN
842: gmd_debug.put_line('-- 2. Check for Recipe Number (recipe_no) ');
843: END IF;
844:
845: IF p_recipe_header_rec.recipe_no = FND_API.G_MISS_CHAR THEN
846: fnd_message.set_name ('GMI', 'GMI_MISSING');

Line 882: gmd_debug.put_line('-- 3. Check for Recipe Version (recipe_version) ');

878: END IF; -- End condition when recipe_no is G_miss...
879:
880:
881: IF (l_debug = 'Y') THEN
882: gmd_debug.put_line('-- 3. Check for Recipe Version (recipe_version) ');
883: END IF;
884:
885: IF p_recipe_header_rec.recipe_version = FND_API.G_MISS_NUM THEN
886: fnd_message.set_name ('GMI', 'GMI_MISSING');

Line 951: gmd_debug.put_line('-- 3.1. Check for Recipe Description ');

947: RAISE copy_recipe_err;
948: END IF;
949:
950: IF (l_debug = 'Y') THEN
951: gmd_debug.put_line('-- 3.1. Check for Recipe Description ');
952: END IF;
953:
954: IF p_recipe_header_rec.recipe_description = FND_API.G_MISS_CHAR THEN
955: fnd_message.set_name ('GMI', 'GMI_MISSING');

Line 976: gmd_debug.put_line('-- 4. Check for user id ');

972: END IF; -- End condition when recipe_desc is null
973: END IF; -- End condition when recipe_desc is G_miss...
974:
975: IF (l_debug = 'Y') THEN
976: gmd_debug.put_line('-- 4. Check for user id ');
977: END IF;
978: IF p_recipe_header_rec.user_id = FND_API.G_MISS_NUM THEN
979: fnd_message.set_name ('GMI', 'GMI_MISSING');
980: fnd_message.set_token ('MISSING', 'USER ID');

Line 995: gmd_debug.put_line('-- 5. Check for owner orgn code ');

991: END IF; -- End condition when user id is null
992: END IF; -- End condition when user id is G_miss...
993:
994: IF (l_debug = 'Y') THEN
995: gmd_debug.put_line('-- 5. Check for owner orgn code ');
996: END IF;
997:
998: IF p_recipe_header_rec.owner_organization_id = FND_API.G_MISS_NUM THEN
999: fnd_message.set_name ('GMI', 'GMI_MISSING');

Line 1032: gmd_debug.put_line('-- 6. Check for creation orgn code ');

1028: END IF; -- End condition when owner_orgn_code is G_miss...
1029:
1030:
1031: IF (l_debug = 'Y') THEN
1032: gmd_debug.put_line('-- 6. Check for creation orgn code ');
1033: END IF;
1034: IF p_recipe_header_rec.creation_organization_id = FND_API.G_MISS_NUM THEN
1035: fnd_message.set_name ('GMI', 'GMI_MISSING');
1036: fnd_message.set_token ('MISSING', 'CREATION_ORGANIZATION_ID');

Line 1068: gmd_debug.put_line('-- 7. Check for formula id ');

1064: END IF; -- End condition when creation_orgn_code is G_miss...
1065:
1066:
1067: IF (l_debug = 'Y') THEN
1068: gmd_debug.put_line('-- 7. Check for formula id ');
1069: END IF;
1070: IF p_recipe_header_rec.formula_id = FND_API.G_MISS_NUM THEN
1071: fnd_message.set_name ('GMI', 'GMI_MISSING');
1072: fnd_message.set_token ('MISSING', 'FORMULA_ID');

Line 1107: gmd_debug.put_line('-- 8. Check for formula_no and version ');

1103: END IF;
1104:
1105:
1106: IF (l_debug = 'Y') THEN
1107: gmd_debug.put_line('-- 8. Check for formula_no and version ');
1108: END IF;
1109: /* What if the calling function passes same formula_id
1110: but different formula_no and/or formula_vers?
1111: Then we need to the formula id that corresponds to this

Line 1157: gmd_debug.put_line('-- 9. Check for routing_id ');

1153: END IF; -- Condition for G_Miss_....
1154:
1155:
1156: IF (l_debug = 'Y') THEN
1157: gmd_debug.put_line('-- 9. Check for routing_id ');
1158: END IF;
1159:
1160: IF p_recipe_header_rec.routing_id = FND_API.G_MISS_NUM THEN
1161: l_recipe_header_rec.routing_id := NULL;

Line 1193: gmd_debug.put_line('-- 10. Check for routing_no and version ');

1189: END IF; -- End condition when routing_id is null
1190: END IF; -- End condition when routing_id is G_miss...
1191:
1192: IF (l_debug = 'Y') THEN
1193: gmd_debug.put_line('-- 10. Check for routing_no and version ');
1194: END IF;
1195: /* We need to the set the routing_id that corresponds to the
1196: id derived from routing_no and/or routing_vers passed in.
1197: We need to do this only if the old and new routing id are

Line 2050: gmd_debug.put_line('Atleast one Recipe field should change ');

2046: RAISE copy_recipe_err;
2047: END IF; -- End condition when create API return state is ...
2048: ELSE -- when l_changed_flag is False
2049: IF (l_debug = 'Y') THEN
2050: gmd_debug.put_line('Atleast one Recipe field should change ');
2051: END IF;
2052: fnd_message.set_name ('GMD', 'GMD_CANNOT_COPY');
2053: fnd_message.set_token ('ENTITY', 'recipe');
2054: fnd_msg_pub.add;