DBA Data[Home] [Help]

APPS.AHL_UC_INSTANCE_PVT dependencies on FND_MESSAGE

Line 34: FND_MESSAGE.set_name('AHL','AHL_UC_SERIAL_NULL');

30: --3 = Dynamic Entry at inventory receipt.)
31: IF (nvl(p_serial_number_control,0) IN (2,5,6)) THEN
32: -- serial number is mandatory.
33: IF (p_serial_number IS NULL) OR (p_serial_number = FND_API.G_MISS_CHAR) THEN
34: FND_MESSAGE.set_name('AHL','AHL_UC_SERIAL_NULL');
35: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
36: FND_MSG_PUB.add;
37: --dbms_output.put_line('Serial Number is null');
38: ELSE

Line 35: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);

31: IF (nvl(p_serial_number_control,0) IN (2,5,6)) THEN
32: -- serial number is mandatory.
33: IF (p_serial_number IS NULL) OR (p_serial_number = FND_API.G_MISS_CHAR) THEN
34: FND_MESSAGE.set_name('AHL','AHL_UC_SERIAL_NULL');
35: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
36: FND_MSG_PUB.add;
37: --dbms_output.put_line('Serial Number is null');
38: ELSE
39: /**

Line 46: FND_MESSAGE.set_name('AHL','AHL_UC_SERIAL_INVALID');

42: IF (p_serialnum_tag_code = 'INVENTORY') THEN
43: OPEN mtl_serial_numbers_csr(p_inventory_id,p_Serial_Number);
44: FETCH mtl_serial_numbers_csr INTO l_junk;
45: IF (mtl_serial_numbers_csr%NOTFOUND) THEN
46: FND_MESSAGE.set_name('AHL','AHL_UC_SERIAL_INVALID');
47: FND_MESSAGE.set_token('SERIAL',p_Serial_Number);
48: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
49: FND_MSG_PUB.add;
50: --dbms_output.put_line('Serial Number does not exist in master ');

Line 47: FND_MESSAGE.set_token('SERIAL',p_Serial_Number);

43: OPEN mtl_serial_numbers_csr(p_inventory_id,p_Serial_Number);
44: FETCH mtl_serial_numbers_csr INTO l_junk;
45: IF (mtl_serial_numbers_csr%NOTFOUND) THEN
46: FND_MESSAGE.set_name('AHL','AHL_UC_SERIAL_INVALID');
47: FND_MESSAGE.set_token('SERIAL',p_Serial_Number);
48: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
49: FND_MSG_PUB.add;
50: --dbms_output.put_line('Serial Number does not exist in master ');
51: END IF;

Line 48: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);

44: FETCH mtl_serial_numbers_csr INTO l_junk;
45: IF (mtl_serial_numbers_csr%NOTFOUND) THEN
46: FND_MESSAGE.set_name('AHL','AHL_UC_SERIAL_INVALID');
47: FND_MESSAGE.set_token('SERIAL',p_Serial_Number);
48: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
49: FND_MSG_PUB.add;
50: --dbms_output.put_line('Serial Number does not exist in master ');
51: END IF;
52: CLOSE mtl_serial_numbers_csr;

Line 57: FND_MESSAGE.set_name('AHL','AHL_UC_SRLQTY_MISMATCH');

53: END IF;
54: **/
55: -- Check quantity.
56: IF (nvl(p_quantity,0) <> 1) THEN
57: FND_MESSAGE.set_name('AHL','AHL_UC_SRLQTY_MISMATCH');
58: FND_MESSAGE.set_token('QTY',p_quantity);
59: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
60: FND_MSG_PUB.add;
61: --dbms_output.put_line('For serialized items Quantity must be 1');

Line 58: FND_MESSAGE.set_token('QTY',p_quantity);

54: **/
55: -- Check quantity.
56: IF (nvl(p_quantity,0) <> 1) THEN
57: FND_MESSAGE.set_name('AHL','AHL_UC_SRLQTY_MISMATCH');
58: FND_MESSAGE.set_token('QTY',p_quantity);
59: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
60: FND_MSG_PUB.add;
61: --dbms_output.put_line('For serialized items Quantity must be 1');
62: END IF;

Line 59: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);

55: -- Check quantity.
56: IF (nvl(p_quantity,0) <> 1) THEN
57: FND_MESSAGE.set_name('AHL','AHL_UC_SRLQTY_MISMATCH');
58: FND_MESSAGE.set_token('QTY',p_quantity);
59: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
60: FND_MSG_PUB.add;
61: --dbms_output.put_line('For serialized items Quantity must be 1');
62: END IF;
63: END IF;

Line 67: FND_MESSAGE.set_name('AHL','AHL_UC_SERIAL_NOTNULL');

63: END IF;
64: ELSE
65: -- if not serialized item, then serial number must be null.
66: IF (p_serial_number <> FND_API.G_MISS_CHAR) AND (p_serial_number IS NOT NULL) THEN
67: FND_MESSAGE.set_name('AHL','AHL_UC_SERIAL_NOTNULL');
68: FND_MESSAGE.set_token('SERIAL',p_Serial_Number);
69: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
70: FND_MSG_PUB.add;
71: --dbms_output.put_line('Serial Number is not null');

Line 68: FND_MESSAGE.set_token('SERIAL',p_Serial_Number);

64: ELSE
65: -- if not serialized item, then serial number must be null.
66: IF (p_serial_number <> FND_API.G_MISS_CHAR) AND (p_serial_number IS NOT NULL) THEN
67: FND_MESSAGE.set_name('AHL','AHL_UC_SERIAL_NOTNULL');
68: FND_MESSAGE.set_token('SERIAL',p_Serial_Number);
69: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
70: FND_MSG_PUB.add;
71: --dbms_output.put_line('Serial Number is not null');
72: END IF;

Line 69: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);

65: -- if not serialized item, then serial number must be null.
66: IF (p_serial_number <> FND_API.G_MISS_CHAR) AND (p_serial_number IS NOT NULL) THEN
67: FND_MESSAGE.set_name('AHL','AHL_UC_SERIAL_NOTNULL');
68: FND_MESSAGE.set_token('SERIAL',p_Serial_Number);
69: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
70: FND_MSG_PUB.add;
71: --dbms_output.put_line('Serial Number is not null');
72: END IF;
73: END IF; /* for serial number control */

Line 85: FND_MESSAGE.set_name('AHL','AHL_UC_QTY_NULL');

81: p_concatenated_segments IN VARCHAR2) IS
82: BEGIN
83: --Validate quantity and UOM code.
84: IF (p_quantity = FND_API.G_MISS_NUM OR p_quantity IS NULL) THEN
85: FND_MESSAGE.set_name('AHL','AHL_UC_QTY_NULL');
86: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
87: FND_MSG_PUB.add;
88: --dbms_output.put_line('Quantity is null.');
89: ELSIF (p_quantity <= 0) THEN

Line 86: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);

82: BEGIN
83: --Validate quantity and UOM code.
84: IF (p_quantity = FND_API.G_MISS_NUM OR p_quantity IS NULL) THEN
85: FND_MESSAGE.set_name('AHL','AHL_UC_QTY_NULL');
86: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
87: FND_MSG_PUB.add;
88: --dbms_output.put_line('Quantity is null.');
89: ELSIF (p_quantity <= 0) THEN
90: FND_MESSAGE.set_name('AHL','AHL_UC_QTY_INVALID');

Line 90: FND_MESSAGE.set_name('AHL','AHL_UC_QTY_INVALID');

86: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
87: FND_MSG_PUB.add;
88: --dbms_output.put_line('Quantity is null.');
89: ELSIF (p_quantity <= 0) THEN
90: FND_MESSAGE.set_name('AHL','AHL_UC_QTY_INVALID');
91: FND_MESSAGE.set_token('QTY',p_quantity);
92: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
93: FND_MSG_PUB.add;
94: --dbms_output.put_line('Quantity is less than or equal to zero.');

Line 91: FND_MESSAGE.set_token('QTY',p_quantity);

87: FND_MSG_PUB.add;
88: --dbms_output.put_line('Quantity is null.');
89: ELSIF (p_quantity <= 0) THEN
90: FND_MESSAGE.set_name('AHL','AHL_UC_QTY_INVALID');
91: FND_MESSAGE.set_token('QTY',p_quantity);
92: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
93: FND_MSG_PUB.add;
94: --dbms_output.put_line('Quantity is less than or equal to zero.');
95: ELSE

Line 92: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);

88: --dbms_output.put_line('Quantity is null.');
89: ELSIF (p_quantity <= 0) THEN
90: FND_MESSAGE.set_name('AHL','AHL_UC_QTY_INVALID');
91: FND_MESSAGE.set_token('QTY',p_quantity);
92: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
93: FND_MSG_PUB.add;
94: --dbms_output.put_line('Quantity is less than or equal to zero.');
95: ELSE
96: --Call inv function to validate uom.

Line 101: FND_MESSAGE.set_name('AHL','AHL_UC_UOM_INVALID');

97: IF NOT(inv_convert.validate_Item_Uom(p_item_id => p_inventory_id,
98: p_organization_id => p_organization_id,
99: p_uom_code => p_uom_code))
100: THEN
101: FND_MESSAGE.set_name('AHL','AHL_UC_UOM_INVALID');
102: FND_MESSAGE.set_token('UOM',p_uom_code);
103: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
104: FND_MSG_PUB.add;
105: --dbms_output.put_line('Invalid UOM code for the item');

Line 102: FND_MESSAGE.set_token('UOM',p_uom_code);

98: p_organization_id => p_organization_id,
99: p_uom_code => p_uom_code))
100: THEN
101: FND_MESSAGE.set_name('AHL','AHL_UC_UOM_INVALID');
102: FND_MESSAGE.set_token('UOM',p_uom_code);
103: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
104: FND_MSG_PUB.add;
105: --dbms_output.put_line('Invalid UOM code for the item');
106: END IF;

Line 103: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);

99: p_uom_code => p_uom_code))
100: THEN
101: FND_MESSAGE.set_name('AHL','AHL_UC_UOM_INVALID');
102: FND_MESSAGE.set_token('UOM',p_uom_code);
103: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
104: FND_MSG_PUB.add;
105: --dbms_output.put_line('Invalid UOM code for the item');
106: END IF;
107: END IF; /* for p_quantity */

Line 130: FND_MESSAGE.set_name('AHL','AHL_UC_LOT_NULL');

126: BEGIN
127: -- Validate Lot number.(1 = No lot control; 2 = Full lot control)
128: IF (nvl(p_lot_control_code,0) = 2) THEN
129: IF (p_lot_number IS NULL) OR (p_lot_number = FND_API.G_MISS_CHAR) THEN
130: FND_MESSAGE.set_name('AHL','AHL_UC_LOT_NULL');
131: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
132: FND_MSG_PUB.add;
133: --dbms_output.put_line('Lot Number is null');
134: ELSE

Line 131: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);

127: -- Validate Lot number.(1 = No lot control; 2 = Full lot control)
128: IF (nvl(p_lot_control_code,0) = 2) THEN
129: IF (p_lot_number IS NULL) OR (p_lot_number = FND_API.G_MISS_CHAR) THEN
130: FND_MESSAGE.set_name('AHL','AHL_UC_LOT_NULL');
131: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
132: FND_MSG_PUB.add;
133: --dbms_output.put_line('Lot Number is null');
134: ELSE
135: OPEN mtl_lot_numbers_csr(p_inventory_id,p_organization_id, p_lot_number);

Line 138: FND_MESSAGE.set_name('AHL','AHL_UC_LOT_INVALID');

134: ELSE
135: OPEN mtl_lot_numbers_csr(p_inventory_id,p_organization_id, p_lot_number);
136: FETCH mtl_lot_numbers_csr INTO l_junk;
137: IF (mtl_lot_numbers_csr%NOTFOUND) THEN
138: FND_MESSAGE.set_name('AHL','AHL_UC_LOT_INVALID');
139: FND_MESSAGE.set_token('LOT',p_Lot_number);
140: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
141: FND_MSG_PUB.add;
142: --dbms_output.put_line('Lot number does not exist in master');

Line 139: FND_MESSAGE.set_token('LOT',p_Lot_number);

135: OPEN mtl_lot_numbers_csr(p_inventory_id,p_organization_id, p_lot_number);
136: FETCH mtl_lot_numbers_csr INTO l_junk;
137: IF (mtl_lot_numbers_csr%NOTFOUND) THEN
138: FND_MESSAGE.set_name('AHL','AHL_UC_LOT_INVALID');
139: FND_MESSAGE.set_token('LOT',p_Lot_number);
140: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
141: FND_MSG_PUB.add;
142: --dbms_output.put_line('Lot number does not exist in master');
143: END IF;

Line 140: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);

136: FETCH mtl_lot_numbers_csr INTO l_junk;
137: IF (mtl_lot_numbers_csr%NOTFOUND) THEN
138: FND_MESSAGE.set_name('AHL','AHL_UC_LOT_INVALID');
139: FND_MESSAGE.set_token('LOT',p_Lot_number);
140: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
141: FND_MSG_PUB.add;
142: --dbms_output.put_line('Lot number does not exist in master');
143: END IF;
144: CLOSE mtl_lot_numbers_csr;

Line 149: FND_MESSAGE.set_name('AHL','AHL_UC_LOT_NOTNULL');

145: END IF;
146: ELSIF (p_Lot_number <> FND_API.G_MISS_CHAR) AND (p_lot_Number IS NOT NULL) THEN
147:
148: -- If lot number not controlled; then lot num must be null.
149: FND_MESSAGE.set_name('AHL','AHL_UC_LOT_NOTNULL');
150: --FND_MESSAGE.set_token('LOT',p_Lot_Number);
151: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
152: FND_MSG_PUB.add;
153: --dbms_output.put_line('Lot Number is not null');

Line 150: --FND_MESSAGE.set_token('LOT',p_Lot_Number);

146: ELSIF (p_Lot_number <> FND_API.G_MISS_CHAR) AND (p_lot_Number IS NOT NULL) THEN
147:
148: -- If lot number not controlled; then lot num must be null.
149: FND_MESSAGE.set_name('AHL','AHL_UC_LOT_NOTNULL');
150: --FND_MESSAGE.set_token('LOT',p_Lot_Number);
151: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
152: FND_MSG_PUB.add;
153: --dbms_output.put_line('Lot Number is not null');
154: END IF; /* for lot_control_code */

Line 151: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);

147:
148: -- If lot number not controlled; then lot num must be null.
149: FND_MESSAGE.set_name('AHL','AHL_UC_LOT_NOTNULL');
150: --FND_MESSAGE.set_token('LOT',p_Lot_Number);
151: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
152: FND_MSG_PUB.add;
153: --dbms_output.put_line('Lot Number is not null');
154: END IF; /* for lot_control_code */
155: END validate_lotnumber;

Line 176: FND_MESSAGE.set_name('AHL','AHL_UC_REV_NULL');

172: BEGIN
173: --Validate Revision.
174: IF (nvl(p_revision_qty_control_code,0) = 2) THEN
175: IF (p_revision IS NULL) OR (p_revision = FND_API.G_MISS_CHAR) THEN
176: FND_MESSAGE.set_name('AHL','AHL_UC_REV_NULL');
177: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
178: FND_MSG_PUB.add;
179: --dbms_output.put_line('Revision is null');
180: ELSE

Line 177: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);

173: --Validate Revision.
174: IF (nvl(p_revision_qty_control_code,0) = 2) THEN
175: IF (p_revision IS NULL) OR (p_revision = FND_API.G_MISS_CHAR) THEN
176: FND_MESSAGE.set_name('AHL','AHL_UC_REV_NULL');
177: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
178: FND_MSG_PUB.add;
179: --dbms_output.put_line('Revision is null');
180: ELSE
181: OPEN mtl_item_revisions_csr(p_inventory_id,p_organization_id, p_revision);

Line 184: FND_MESSAGE.set_name('AHL','AHL_UC_REV_INVALID');

180: ELSE
181: OPEN mtl_item_revisions_csr(p_inventory_id,p_organization_id, p_revision);
182: FETCH mtl_item_revisions_csr INTO l_junk;
183: IF (mtl_item_revisions_csr%NOTFOUND) THEN
184: FND_MESSAGE.set_name('AHL','AHL_UC_REV_INVALID');
185: FND_MESSAGE.set_token('REV',p_revision);
186: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
187: FND_MSG_PUB.add;
188: --dbms_output.put_line('Revision does not exist in master');

Line 185: FND_MESSAGE.set_token('REV',p_revision);

181: OPEN mtl_item_revisions_csr(p_inventory_id,p_organization_id, p_revision);
182: FETCH mtl_item_revisions_csr INTO l_junk;
183: IF (mtl_item_revisions_csr%NOTFOUND) THEN
184: FND_MESSAGE.set_name('AHL','AHL_UC_REV_INVALID');
185: FND_MESSAGE.set_token('REV',p_revision);
186: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
187: FND_MSG_PUB.add;
188: --dbms_output.put_line('Revision does not exist in master');
189: END IF;

Line 186: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);

182: FETCH mtl_item_revisions_csr INTO l_junk;
183: IF (mtl_item_revisions_csr%NOTFOUND) THEN
184: FND_MESSAGE.set_name('AHL','AHL_UC_REV_INVALID');
185: FND_MESSAGE.set_token('REV',p_revision);
186: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
187: FND_MSG_PUB.add;
188: --dbms_output.put_line('Revision does not exist in master');
189: END IF;
190: CLOSE mtl_item_revisions_csr;

Line 193: FND_MESSAGE.set_name('AHL','AHL_UC_REV_NOTNULL');

189: END IF;
190: CLOSE mtl_item_revisions_csr;
191: END IF;
192: ELSIF (p_revision IS NOT NULL) AND (p_revision <> FND_API.G_MISS_CHAR) THEN
193: FND_MESSAGE.set_name('AHL','AHL_UC_REV_NOTNULL');
194: --FND_MESSAGE.set_token('REV',p_revision);
195: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
196: FND_MSG_PUB.add;
197: --dbms_output.put_line('Revision is not null. Revision not required.');

Line 194: --FND_MESSAGE.set_token('REV',p_revision);

190: CLOSE mtl_item_revisions_csr;
191: END IF;
192: ELSIF (p_revision IS NOT NULL) AND (p_revision <> FND_API.G_MISS_CHAR) THEN
193: FND_MESSAGE.set_name('AHL','AHL_UC_REV_NOTNULL');
194: --FND_MESSAGE.set_token('REV',p_revision);
195: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
196: FND_MSG_PUB.add;
197: --dbms_output.put_line('Revision is not null. Revision not required.');
198: END IF; /* for revision_qty_control_code */

Line 195: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);

191: END IF;
192: ELSIF (p_revision IS NOT NULL) AND (p_revision <> FND_API.G_MISS_CHAR) THEN
193: FND_MESSAGE.set_name('AHL','AHL_UC_REV_NOTNULL');
194: --FND_MESSAGE.set_token('REV',p_revision);
195: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
196: FND_MSG_PUB.add;
197: --dbms_output.put_line('Revision is not null. Revision not required.');
198: END IF; /* for revision_qty_control_code */
199: END validate_revision;

Line 209: FND_MESSAGE.set_name('AHL','AHL_UC_SERIALTAG_NULL');

205:
206: BEGIN
207: IF (p_serial_number_control IN (2,5,6)) THEN
208: IF (p_serialnum_tag_code IS NULL OR p_serialnum_tag_code = FND_API.G_MISS_CHAR) THEN
209: FND_MESSAGE.set_name('AHL','AHL_UC_SERIALTAG_NULL');
210: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
211: FND_MSG_PUB.add;
212: ELSE
213: IF NOT(AHL_UTIL_MC_PKG.validate_Lookup_Code('AHL_SERIALNUMBER_TAG',p_serialnum_tag_code)) THEN

Line 210: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);

206: BEGIN
207: IF (p_serial_number_control IN (2,5,6)) THEN
208: IF (p_serialnum_tag_code IS NULL OR p_serialnum_tag_code = FND_API.G_MISS_CHAR) THEN
209: FND_MESSAGE.set_name('AHL','AHL_UC_SERIALTAG_NULL');
210: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
211: FND_MSG_PUB.add;
212: ELSE
213: IF NOT(AHL_UTIL_MC_PKG.validate_Lookup_Code('AHL_SERIALNUMBER_TAG',p_serialnum_tag_code)) THEN
214:

Line 215: FND_MESSAGE.set_name('AHL','AHL_UC_SERIALTAG_INVALID');

211: FND_MSG_PUB.add;
212: ELSE
213: IF NOT(AHL_UTIL_MC_PKG.validate_Lookup_Code('AHL_SERIALNUMBER_TAG',p_serialnum_tag_code)) THEN
214:
215: FND_MESSAGE.set_name('AHL','AHL_UC_SERIALTAG_INVALID');
216: FND_MESSAGE.set_token('TAG',p_serialnum_tag_code);
217: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
218: FND_MSG_PUB.add;
219: --dbms_output.put_line('Serial Tag code is invalid.');

Line 216: FND_MESSAGE.set_token('TAG',p_serialnum_tag_code);

212: ELSE
213: IF NOT(AHL_UTIL_MC_PKG.validate_Lookup_Code('AHL_SERIALNUMBER_TAG',p_serialnum_tag_code)) THEN
214:
215: FND_MESSAGE.set_name('AHL','AHL_UC_SERIALTAG_INVALID');
216: FND_MESSAGE.set_token('TAG',p_serialnum_tag_code);
217: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
218: FND_MSG_PUB.add;
219: --dbms_output.put_line('Serial Tag code is invalid.');
220: END IF;

Line 217: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);

213: IF NOT(AHL_UTIL_MC_PKG.validate_Lookup_Code('AHL_SERIALNUMBER_TAG',p_serialnum_tag_code)) THEN
214:
215: FND_MESSAGE.set_name('AHL','AHL_UC_SERIALTAG_INVALID');
216: FND_MESSAGE.set_token('TAG',p_serialnum_tag_code);
217: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
218: FND_MSG_PUB.add;
219: --dbms_output.put_line('Serial Tag code is invalid.');
220: END IF;
221: END IF;

Line 224: FND_MESSAGE.set_name('AHL','AHL_UC_SERIALTAG_NOTNULL');

220: END IF;
221: END IF;
222: ELSE
223: IF (p_serialnum_tag_code IS NOT NULL AND p_serialnum_tag_code <> FND_API.G_MISS_CHAR) THEN
224: FND_MESSAGE.set_name('AHL','AHL_UC_SERIALTAG_NOTNULL');
225: FND_MESSAGE.set_token('TAG',p_serialnum_tag_code);
226: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
227: FND_MSG_PUB.add;
228: --dbms_output.put_line('Serial Tag code is invalid.');

Line 225: FND_MESSAGE.set_token('TAG',p_serialnum_tag_code);

221: END IF;
222: ELSE
223: IF (p_serialnum_tag_code IS NOT NULL AND p_serialnum_tag_code <> FND_API.G_MISS_CHAR) THEN
224: FND_MESSAGE.set_name('AHL','AHL_UC_SERIALTAG_NOTNULL');
225: FND_MESSAGE.set_token('TAG',p_serialnum_tag_code);
226: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
227: FND_MSG_PUB.add;
228: --dbms_output.put_line('Serial Tag code is invalid.');
229: END IF;

Line 226: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);

222: ELSE
223: IF (p_serialnum_tag_code IS NOT NULL AND p_serialnum_tag_code <> FND_API.G_MISS_CHAR) THEN
224: FND_MESSAGE.set_name('AHL','AHL_UC_SERIALTAG_NOTNULL');
225: FND_MESSAGE.set_token('TAG',p_serialnum_tag_code);
226: FND_MESSAGE.set_token('INV_ITEM',p_concatenated_segments);
227: FND_MSG_PUB.add;
228: --dbms_output.put_line('Serial Tag code is invalid.');
229: END IF;
230: END IF; /* p_serial_number_control */

Line 266: FND_MESSAGE.set_name('AHL','AHL_UC_INVITEM_NULL');

262: BEGIN
263: IF (p_inventory_id IS NULL) OR (p_inventory_id = FND_API.G_MISS_NUM)
264: OR (p_organization_id IS NULL) OR (p_organization_id = FND_API.G_MISS_NUM)
265: THEN
266: FND_MESSAGE.set_name('AHL','AHL_UC_INVITEM_NULL');
267: FND_MESSAGE.set_token('POSN_REF',p_position_ref_meaning);
268: FND_MSG_PUB.add;
269: --dbms_output.put_line('Inventory Item is null');
270: RETURN;

Line 267: FND_MESSAGE.set_token('POSN_REF',p_position_ref_meaning);

263: IF (p_inventory_id IS NULL) OR (p_inventory_id = FND_API.G_MISS_NUM)
264: OR (p_organization_id IS NULL) OR (p_organization_id = FND_API.G_MISS_NUM)
265: THEN
266: FND_MESSAGE.set_name('AHL','AHL_UC_INVITEM_NULL');
267: FND_MESSAGE.set_token('POSN_REF',p_position_ref_meaning);
268: FND_MSG_PUB.add;
269: --dbms_output.put_line('Inventory Item is null');
270: RETURN;
271: END IF;

Line 281: FND_MESSAGE.set_name('AHL','AHL_UC_INVITEM_INVALID');

277: l_revision_qty_control_code,
278: l_comms_nl_trackable_flag;
279: IF (mtl_system_items_csr%NOTFOUND) THEN
280: CLOSE mtl_system_items_csr;
281: FND_MESSAGE.set_name('AHL','AHL_UC_INVITEM_INVALID');
282: FND_MESSAGE.set_token('POSN_REF',p_position_ref_meaning);
283: FND_MSG_PUB.add;
284: x_concatenated_segments := null;
285: --dbms_output.put_line('Inventory item does not exist in Master');

Line 282: FND_MESSAGE.set_token('POSN_REF',p_position_ref_meaning);

278: l_comms_nl_trackable_flag;
279: IF (mtl_system_items_csr%NOTFOUND) THEN
280: CLOSE mtl_system_items_csr;
281: FND_MESSAGE.set_name('AHL','AHL_UC_INVITEM_INVALID');
282: FND_MESSAGE.set_token('POSN_REF',p_position_ref_meaning);
283: FND_MSG_PUB.add;
284: x_concatenated_segments := null;
285: --dbms_output.put_line('Inventory item does not exist in Master');
286: RETURN;

Line 290: FND_MESSAGE.set_name('AHL','AHL_MC_INV_TRACK');

286: RETURN;
287: END IF;
288: CLOSE mtl_system_items_csr;
289: IF upper(nvl(l_comms_nl_trackable_flag,'N')) = 'N' THEN
290: FND_MESSAGE.set_name('AHL','AHL_MC_INV_TRACK');
291: FND_MESSAGE.set_token('INV_ITEM',l_concatenated_segments);
292: FND_MSG_PUB.add;
293: --dbms_output.put_line('Inventory item does not exist in Master');
294: END IF;

Line 291: FND_MESSAGE.set_token('INV_ITEM',l_concatenated_segments);

287: END IF;
288: CLOSE mtl_system_items_csr;
289: IF upper(nvl(l_comms_nl_trackable_flag,'N')) = 'N' THEN
290: FND_MESSAGE.set_name('AHL','AHL_MC_INV_TRACK');
291: FND_MESSAGE.set_token('INV_ITEM',l_concatenated_segments);
292: FND_MSG_PUB.add;
293: --dbms_output.put_line('Inventory item does not exist in Master');
294: END IF;
295: -- Validate quantity .

Line 448: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');

444: END IF;
445:
446: --Validate input parameters p_prod_user_flag
447: IF (upper(p_prod_user_flag) <> 'Y' AND upper(p_prod_user_flag) <> 'N') THEN
448: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
449: FND_MESSAGE.set_token('NAME', 'prod_user_flag');
450: FND_MESSAGE.set_token('VALUE', p_prod_user_flag);
451: FND_MSG_PUB.add;
452: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 449: FND_MESSAGE.set_token('NAME', 'prod_user_flag');

445:
446: --Validate input parameters p_prod_user_flag
447: IF (upper(p_prod_user_flag) <> 'Y' AND upper(p_prod_user_flag) <> 'N') THEN
448: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
449: FND_MESSAGE.set_token('NAME', 'prod_user_flag');
450: FND_MESSAGE.set_token('VALUE', p_prod_user_flag);
451: FND_MSG_PUB.add;
452: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
453: END IF;

Line 450: FND_MESSAGE.set_token('VALUE', p_prod_user_flag);

446: --Validate input parameters p_prod_user_flag
447: IF (upper(p_prod_user_flag) <> 'Y' AND upper(p_prod_user_flag) <> 'N') THEN
448: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
449: FND_MESSAGE.set_token('NAME', 'prod_user_flag');
450: FND_MESSAGE.set_token('VALUE', p_prod_user_flag);
451: FND_MSG_PUB.add;
452: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
453: END IF;
454: --Validate input parameters p_csi_ii_ovn

Line 456: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');

452: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
453: END IF;
454: --Validate input parameters p_csi_ii_ovn
455: IF (p_csi_ii_ovn IS NULL OR p_csi_ii_ovn <= 0 ) THEN
456: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
457: FND_MESSAGE.set_token('NAME', 'csi_ii_ovn');
458: FND_MESSAGE.set_token('VALUE', p_csi_ii_ovn);
459: FND_MSG_PUB.add;
460: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 457: FND_MESSAGE.set_token('NAME', 'csi_ii_ovn');

453: END IF;
454: --Validate input parameters p_csi_ii_ovn
455: IF (p_csi_ii_ovn IS NULL OR p_csi_ii_ovn <= 0 ) THEN
456: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
457: FND_MESSAGE.set_token('NAME', 'csi_ii_ovn');
458: FND_MESSAGE.set_token('VALUE', p_csi_ii_ovn);
459: FND_MSG_PUB.add;
460: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
461: END IF;

Line 458: FND_MESSAGE.set_token('VALUE', p_csi_ii_ovn);

454: --Validate input parameters p_csi_ii_ovn
455: IF (p_csi_ii_ovn IS NULL OR p_csi_ii_ovn <= 0 ) THEN
456: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
457: FND_MESSAGE.set_token('NAME', 'csi_ii_ovn');
458: FND_MESSAGE.set_token('VALUE', p_csi_ii_ovn);
459: FND_MSG_PUB.add;
460: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
461: END IF;
462: --Validate input parameter p_uc_header_id, its two status

Line 466: FND_MESSAGE.set_name( 'AHL','AHL_UC_API_PARAMETER_INVALID');

462: --Validate input parameter p_uc_header_id, its two status
463: OPEN check_uc_header;
464: FETCH check_uc_header INTO l_check_uc_header;
465: IF check_uc_header%NOTFOUND THEN
466: FND_MESSAGE.set_name( 'AHL','AHL_UC_API_PARAMETER_INVALID');
467: FND_MESSAGE.set_token('NAME', 'uc_header_id');
468: FND_MESSAGE.set_token('VALUE', p_uc_header_id);
469: FND_MSG_PUB.add;
470: CLOSE check_uc_header;

Line 467: FND_MESSAGE.set_token('NAME', 'uc_header_id');

463: OPEN check_uc_header;
464: FETCH check_uc_header INTO l_check_uc_header;
465: IF check_uc_header%NOTFOUND THEN
466: FND_MESSAGE.set_name( 'AHL','AHL_UC_API_PARAMETER_INVALID');
467: FND_MESSAGE.set_token('NAME', 'uc_header_id');
468: FND_MESSAGE.set_token('VALUE', p_uc_header_id);
469: FND_MSG_PUB.add;
470: CLOSE check_uc_header;
471: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 468: FND_MESSAGE.set_token('VALUE', p_uc_header_id);

464: FETCH check_uc_header INTO l_check_uc_header;
465: IF check_uc_header%NOTFOUND THEN
466: FND_MESSAGE.set_name( 'AHL','AHL_UC_API_PARAMETER_INVALID');
467: FND_MESSAGE.set_token('NAME', 'uc_header_id');
468: FND_MESSAGE.set_token('VALUE', p_uc_header_id);
469: FND_MSG_PUB.add;
470: CLOSE check_uc_header;
471: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
472: ELSE

Line 476: FND_MESSAGE.set_name( 'AHL','AHL_UC_INVALID_Q_ACTION' );

472: ELSE
473:
474: -- ACL :: Changes for R12
475: IF (ahl_util_uc_pkg.IS_UNIT_QUARANTINED(p_unit_header_id => p_uc_header_id , p_instance_id => null) = FND_API.G_TRUE) THEN
476: FND_MESSAGE.set_name( 'AHL','AHL_UC_INVALID_Q_ACTION' );
477: FND_MSG_PUB.add;
478: CLOSE check_uc_header;
479: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
480: END IF;

Line 490: FND_MESSAGE.set_name( 'AHL','AHL_UC_STATUS_NOT_ACTIVE' );

486: l_root_active_uc_status_code,
487: l_root_uc_ovn);
488: IF (p_prod_user_flag = 'Y' AND --For production user, no need to confirm either one of the statuses is not APPROVAL_PENDING
489: l_root_uc_status_code NOT IN ('COMPLETE', 'INCOMPLETE')) THEN
490: FND_MESSAGE.set_name( 'AHL','AHL_UC_STATUS_NOT_ACTIVE' );
491: FND_MSG_PUB.add;
492: CLOSE check_uc_header;
493: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
494: ELSIF (p_prod_user_flag = 'N' AND

Line 497: FND_MESSAGE.set_name( 'AHL','AHL_UC_STATUS_PENDING' );

493: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
494: ELSIF (p_prod_user_flag = 'N' AND
495: (l_root_uc_status_code = 'APPROVAL_PENDING' OR
496: l_root_active_uc_status_code = 'APPROVAL_PENDING')) THEN
497: FND_MESSAGE.set_name( 'AHL','AHL_UC_STATUS_PENDING' );
498: FND_MESSAGE.set_token('UC_HEADER_ID', l_root_uc_header_id);
499: FND_MSG_PUB.add;
500: CLOSE check_uc_header;
501: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 498: FND_MESSAGE.set_token('UC_HEADER_ID', l_root_uc_header_id);

494: ELSIF (p_prod_user_flag = 'N' AND
495: (l_root_uc_status_code = 'APPROVAL_PENDING' OR
496: l_root_active_uc_status_code = 'APPROVAL_PENDING')) THEN
497: FND_MESSAGE.set_name( 'AHL','AHL_UC_STATUS_PENDING' );
498: FND_MESSAGE.set_token('UC_HEADER_ID', l_root_uc_header_id);
499: FND_MSG_PUB.add;
500: CLOSE check_uc_header;
501: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
502: ELSE

Line 515: FND_MESSAGE.set_name( 'AHL','AHL_UC_API_PARAMETER_INVALID');

511: l_subject_id := l_get_uc_descendant.subject_id;
512: EXIT WHEN l_subject_id = p_instance_id;
513: END LOOP;
514: IF (p_instance_id IS NULL OR l_subject_id IS NULL OR l_subject_id <> p_instance_id)THEN
515: FND_MESSAGE.set_name( 'AHL','AHL_UC_API_PARAMETER_INVALID');
516: FND_MESSAGE.set_token('NAME', 'instance_id');
517: FND_MESSAGE.set_token('VALUE', p_instance_id);
518: FND_MSG_PUB.add;
519: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 516: FND_MESSAGE.set_token('NAME', 'instance_id');

512: EXIT WHEN l_subject_id = p_instance_id;
513: END LOOP;
514: IF (p_instance_id IS NULL OR l_subject_id IS NULL OR l_subject_id <> p_instance_id)THEN
515: FND_MESSAGE.set_name( 'AHL','AHL_UC_API_PARAMETER_INVALID');
516: FND_MESSAGE.set_token('NAME', 'instance_id');
517: FND_MESSAGE.set_token('VALUE', p_instance_id);
518: FND_MSG_PUB.add;
519: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
520: --Ensure no current user makes change to the same csi_ii_relationships record

Line 517: FND_MESSAGE.set_token('VALUE', p_instance_id);

513: END LOOP;
514: IF (p_instance_id IS NULL OR l_subject_id IS NULL OR l_subject_id <> p_instance_id)THEN
515: FND_MESSAGE.set_name( 'AHL','AHL_UC_API_PARAMETER_INVALID');
516: FND_MESSAGE.set_token('NAME', 'instance_id');
517: FND_MESSAGE.set_token('VALUE', p_instance_id);
518: FND_MSG_PUB.add;
519: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
520: --Ensure no current user makes change to the same csi_ii_relationships record
521: ELSIF l_object_version_number <> p_csi_ii_ovn THEN

Line 522: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );

518: FND_MSG_PUB.add;
519: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
520: --Ensure no current user makes change to the same csi_ii_relationships record
521: ELSIF l_object_version_number <> p_csi_ii_ovn THEN
522: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );
523: FND_MSG_PUB.add;
524: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
525: END IF;
526:

Line 533: FND_MESSAGE.set_name( 'AHL','AHL_UC_INSTANCE_EXPIRED');

529: OPEN get_instance_date(p_instance_id);
530: FETCH get_instance_date INTO l_end_date;
531: CLOSE get_instance_date;
532: IF TRUNC(NVL(l_end_date, SYSDATE+1)) <= TRUNC(SYSDATE) THEN
533: FND_MESSAGE.set_name( 'AHL','AHL_UC_INSTANCE_EXPIRED');
534: FND_MESSAGE.set_token('INSTANCE', p_instance_id);
535: FND_MSG_PUB.add;
536: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
537: END IF;

Line 534: FND_MESSAGE.set_token('INSTANCE', p_instance_id);

530: FETCH get_instance_date INTO l_end_date;
531: CLOSE get_instance_date;
532: IF TRUNC(NVL(l_end_date, SYSDATE+1)) <= TRUNC(SYSDATE) THEN
533: FND_MESSAGE.set_name( 'AHL','AHL_UC_INSTANCE_EXPIRED');
534: FND_MESSAGE.set_token('INSTANCE', p_instance_id);
535: FND_MSG_PUB.add;
536: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
537: END IF;
538:

Line 584: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );

580: last_update_login = FND_GLOBAL.login_id
581: WHERE unit_config_header_id = l_root_uc_header_id
582: AND object_version_number = l_root_uc_ovn;
583: IF SQL%ROWCOUNT = 0 THEN
584: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );
585: FND_MSG_PUB.add;
586: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
587: END IF;
588: ELSIF (l_root_uc_status_code = 'INCOMPLETE' AND

Line 600: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );

596: last_update_login = FND_GLOBAL.login_id
597: WHERE unit_config_header_id = l_root_uc_header_id
598: AND object_version_number = l_root_uc_ovn;
599: IF SQL%ROWCOUNT = 0 THEN
600: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );
601: FND_MSG_PUB.add;
602: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
603: END IF;
604: ELSIF l_root_uc_status_code NOT IN ('COMPLETE', 'INCOMPLETE', 'DRAFT') THEN

Line 614: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );

610: last_update_login = FND_GLOBAL.login_id
611: WHERE unit_config_header_id = l_root_uc_header_id
612: AND object_version_number = l_root_uc_ovn;
613: IF SQL%ROWCOUNT = 0 THEN
614: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );
615: FND_MSG_PUB.add;
616: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
617: END IF;
618: END IF;

Line 630: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );

626: last_update_login = FND_GLOBAL.login_id
627: WHERE unit_config_header_id = l_root_uc_header_id
628: AND object_version_number = l_root_uc_ovn;
629: IF SQL%ROWCOUNT = 0 THEN
630: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );
631: FND_MSG_PUB.add;
632: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
633: END IF;
634: END IF;

Line 895: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');

891: END IF;
892:
893: --Validate input parameters p_prod_user_flag
894: IF upper(p_prod_user_flag) <> 'Y' AND upper(p_prod_user_flag) <> 'N' THEN
895: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
896: FND_MESSAGE.set_token('NAME', 'prod_user_flag');
897: FND_MESSAGE.set_token('VALUE', p_prod_user_flag);
898: FND_MSG_PUB.add;
899: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 896: FND_MESSAGE.set_token('NAME', 'prod_user_flag');

892:
893: --Validate input parameters p_prod_user_flag
894: IF upper(p_prod_user_flag) <> 'Y' AND upper(p_prod_user_flag) <> 'N' THEN
895: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
896: FND_MESSAGE.set_token('NAME', 'prod_user_flag');
897: FND_MESSAGE.set_token('VALUE', p_prod_user_flag);
898: FND_MSG_PUB.add;
899: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
900: END IF;

Line 897: FND_MESSAGE.set_token('VALUE', p_prod_user_flag);

893: --Validate input parameters p_prod_user_flag
894: IF upper(p_prod_user_flag) <> 'Y' AND upper(p_prod_user_flag) <> 'N' THEN
895: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
896: FND_MESSAGE.set_token('NAME', 'prod_user_flag');
897: FND_MESSAGE.set_token('VALUE', p_prod_user_flag);
898: FND_MSG_PUB.add;
899: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
900: END IF;
901:

Line 904: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');

900: END IF;
901:
902: --Validate input parameters p_csi_ii_ovn
903: IF (p_csi_ii_ovn IS NULL OR p_csi_ii_ovn <= 0 ) THEN
904: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
905: FND_MESSAGE.set_token('NAME', 'csi_ii_ovn');
906: FND_MESSAGE.set_token('VALUE', p_csi_ii_ovn);
907: FND_MSG_PUB.add;
908: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 905: FND_MESSAGE.set_token('NAME', 'csi_ii_ovn');

901:
902: --Validate input parameters p_csi_ii_ovn
903: IF (p_csi_ii_ovn IS NULL OR p_csi_ii_ovn <= 0 ) THEN
904: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
905: FND_MESSAGE.set_token('NAME', 'csi_ii_ovn');
906: FND_MESSAGE.set_token('VALUE', p_csi_ii_ovn);
907: FND_MSG_PUB.add;
908: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
909: END IF;

Line 906: FND_MESSAGE.set_token('VALUE', p_csi_ii_ovn);

902: --Validate input parameters p_csi_ii_ovn
903: IF (p_csi_ii_ovn IS NULL OR p_csi_ii_ovn <= 0 ) THEN
904: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
905: FND_MESSAGE.set_token('NAME', 'csi_ii_ovn');
906: FND_MESSAGE.set_token('VALUE', p_csi_ii_ovn);
907: FND_MSG_PUB.add;
908: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
909: END IF;
910: --Validate input parameter p_uc_header_id, its two statuses

Line 914: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');

910: --Validate input parameter p_uc_header_id, its two statuses
911: OPEN check_uc_header;
912: FETCH check_uc_header INTO l_check_uc_header;
913: IF check_uc_header%NOTFOUND THEN
914: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
915: FND_MESSAGE.set_token('NAME', 'uc_header_id');
916: FND_MESSAGE.set_token('NAME', p_uc_header_id);
917: FND_MSG_PUB.add;
918: CLOSE check_uc_header;

Line 915: FND_MESSAGE.set_token('NAME', 'uc_header_id');

911: OPEN check_uc_header;
912: FETCH check_uc_header INTO l_check_uc_header;
913: IF check_uc_header%NOTFOUND THEN
914: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
915: FND_MESSAGE.set_token('NAME', 'uc_header_id');
916: FND_MESSAGE.set_token('NAME', p_uc_header_id);
917: FND_MSG_PUB.add;
918: CLOSE check_uc_header;
919: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 916: FND_MESSAGE.set_token('NAME', p_uc_header_id);

912: FETCH check_uc_header INTO l_check_uc_header;
913: IF check_uc_header%NOTFOUND THEN
914: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
915: FND_MESSAGE.set_token('NAME', 'uc_header_id');
916: FND_MESSAGE.set_token('NAME', p_uc_header_id);
917: FND_MSG_PUB.add;
918: CLOSE check_uc_header;
919: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
920: ELSE

Line 924: FND_MESSAGE.set_name( 'AHL','AHL_UC_INVALID_Q_ACTION' );

920: ELSE
921:
922: -- ACL :: Changes for R12
923: IF (ahl_util_uc_pkg.IS_UNIT_QUARANTINED(p_unit_header_id => p_uc_header_id , p_instance_id => null) = FND_API.G_TRUE) THEN
924: FND_MESSAGE.set_name( 'AHL','AHL_UC_INVALID_Q_ACTION' );
925: FND_MSG_PUB.add;
926: CLOSE check_uc_header;
927: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
928: END IF;

Line 938: FND_MESSAGE.set_name( 'AHL','AHL_UC_STATUS_NOT_ACTIVE' );

934: l_root_active_uc_status_code,
935: l_root_uc_ovn);
936: IF (p_prod_user_flag = 'Y' AND --For production user, no need to confirm either one of the statuses is not APPROVAL_PENDING
937: l_root_uc_status_code NOT IN ('COMPLETE', 'INCOMPLETE')) THEN
938: FND_MESSAGE.set_name( 'AHL','AHL_UC_STATUS_NOT_ACTIVE' );
939: FND_MSG_PUB.add;
940: CLOSE check_uc_header;
941: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
942: ELSIF (p_prod_user_flag = 'N' AND

Line 945: FND_MESSAGE.set_name( 'AHL','AHL_UC_STATUS_PENDING' );

941: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
942: ELSIF (p_prod_user_flag = 'N' AND
943: (l_root_uc_status_code = 'APPROVAL_PENDING' OR
944: l_root_active_uc_status_code = 'APPROVAL_PENDING')) THEN
945: FND_MESSAGE.set_name( 'AHL','AHL_UC_STATUS_PENDING' );
946: FND_MESSAGE.set_token('UC_HEADER_ID', l_root_uc_header_id);
947: FND_MSG_PUB.add;
948: CLOSE check_uc_header;
949: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 946: FND_MESSAGE.set_token('UC_HEADER_ID', l_root_uc_header_id);

942: ELSIF (p_prod_user_flag = 'N' AND
943: (l_root_uc_status_code = 'APPROVAL_PENDING' OR
944: l_root_active_uc_status_code = 'APPROVAL_PENDING')) THEN
945: FND_MESSAGE.set_name( 'AHL','AHL_UC_STATUS_PENDING' );
946: FND_MESSAGE.set_token('UC_HEADER_ID', l_root_uc_header_id);
947: FND_MSG_PUB.add;
948: CLOSE check_uc_header;
949: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
950: ELSE

Line 966: FND_MESSAGE.set_name( 'AHL','AHL_UC_API_PARAMETER_INVALID' );

962: END LOOP;
963: --Ensure the instance is installed in this UC but it could be an extra node(l_position_referece=null)
964:
965: IF (p_instance_id IS NULL OR l_subject_id IS NULL OR l_subject_id <> p_instance_id) THEN
966: FND_MESSAGE.set_name( 'AHL','AHL_UC_API_PARAMETER_INVALID' );
967: FND_MESSAGE.set_token('NAME', 'instance_id');
968: FND_MESSAGE.set_token('VALUE', p_instance_id);
969: FND_MSG_PUB.add;
970: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 967: FND_MESSAGE.set_token('NAME', 'instance_id');

963: --Ensure the instance is installed in this UC but it could be an extra node(l_position_referece=null)
964:
965: IF (p_instance_id IS NULL OR l_subject_id IS NULL OR l_subject_id <> p_instance_id) THEN
966: FND_MESSAGE.set_name( 'AHL','AHL_UC_API_PARAMETER_INVALID' );
967: FND_MESSAGE.set_token('NAME', 'instance_id');
968: FND_MESSAGE.set_token('VALUE', p_instance_id);
969: FND_MSG_PUB.add;
970: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
971: --Ensure no current user makes change to the same csi_ii_relationships record

Line 968: FND_MESSAGE.set_token('VALUE', p_instance_id);

964:
965: IF (p_instance_id IS NULL OR l_subject_id IS NULL OR l_subject_id <> p_instance_id) THEN
966: FND_MESSAGE.set_name( 'AHL','AHL_UC_API_PARAMETER_INVALID' );
967: FND_MESSAGE.set_token('NAME', 'instance_id');
968: FND_MESSAGE.set_token('VALUE', p_instance_id);
969: FND_MSG_PUB.add;
970: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
971: --Ensure no current user makes change to the same csi_ii_relationships record
972: ELSIF l_object_version_number <> p_csi_ii_ovn THEN

Line 973: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );

969: FND_MSG_PUB.add;
970: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
971: --Ensure no current user makes change to the same csi_ii_relationships record
972: ELSIF l_object_version_number <> p_csi_ii_ovn THEN
973: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );
974: FND_MSG_PUB.add;
975: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
976: END IF;
977:

Line 1020: FND_MESSAGE.set_name('AHL','AHL_COM_RECORD_DELETED');

1016: OPEN get_csi_obj_ver_num(l_subject_id);
1017: FETCH get_csi_obj_ver_num INTO l_dummy;
1018: IF (get_csi_obj_ver_num%NOTFOUND) THEN
1019: CLOSE get_csi_obj_ver_num;
1020: FND_MESSAGE.set_name('AHL','AHL_COM_RECORD_DELETED');
1021: FND_MSG_PUB.add;
1022: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
1023: ELSE
1024: CLOSE get_csi_obj_ver_num;

Line 1088: FND_MESSAGE.set_name('AHL', 'AHL_UC_HISTORY_COPY_FAILED');

1084: --Copy the change to UC history table
1085: ahl_util_uc_pkg.copy_uc_header_to_history(l_sub_uc_header_id, l_return_status);
1086: --IF history copy failed, then don't raise exception, just add the messageto the message stack
1087: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
1088: FND_MESSAGE.set_name('AHL', 'AHL_UC_HISTORY_COPY_FAILED');
1089: FND_MSG_PUB.add;
1090: END IF;
1091: ELSE --Non subunit top node
1092: OPEN check_instance_non_leaf(p_instance_id);

Line 1100: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_INVALID');

1096: FOR l_get_1st_level_subunit IN get_1st_level_subunits(p_instance_id) LOOP
1097: OPEN get_uc_header_id(l_get_1st_level_subunit.subject_id);
1098: FETCH get_uc_header_id INTO l_sub_uc_header_id;
1099: IF get_uc_header_id%NOTFOUND THEN
1100: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_INVALID');
1101: FND_MESSAGE.set_token('INSTANCE', l_get_1st_level_subunit.subject_id);
1102: FND_MSG_PUB.add;
1103: END IF;
1104: CLOSE get_uc_header_id;

Line 1101: FND_MESSAGE.set_token('INSTANCE', l_get_1st_level_subunit.subject_id);

1097: OPEN get_uc_header_id(l_get_1st_level_subunit.subject_id);
1098: FETCH get_uc_header_id INTO l_sub_uc_header_id;
1099: IF get_uc_header_id%NOTFOUND THEN
1100: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_INVALID');
1101: FND_MESSAGE.set_token('INSTANCE', l_get_1st_level_subunit.subject_id);
1102: FND_MSG_PUB.add;
1103: END IF;
1104: CLOSE get_uc_header_id;
1105:

Line 1123: FND_MESSAGE.set_name('AHL', 'AHL_UC_HISTORY_COPY_FAILED');

1119: --Copy the change to UC history table
1120: ahl_util_uc_pkg.copy_uc_header_to_history(l_sub_uc_header_id, l_return_status);
1121: --IF history copy failed, then don't raise exception, just add the messae to the message stack
1122: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
1123: FND_MESSAGE.set_name('AHL', 'AHL_UC_HISTORY_COPY_FAILED');
1124: FND_MSG_PUB.add;
1125: END IF;
1126: END LOOP;
1127: END IF;

Line 1137: FND_MESSAGE.set_name( 'AHL','AHL_UC_POSTION_INVALID' );

1133: NOT ahl_util_uc_pkg.extra_node(p_instance_id, l_root_instance_id)) THEN
1134: OPEN get_position_necessity(l_position_reference);
1135: FETCH get_position_necessity INTO l_position_necessity;
1136: IF get_position_necessity%NOTFOUND THEN
1137: FND_MESSAGE.set_name( 'AHL','AHL_UC_POSTION_INVALID' );
1138: FND_MESSAGE.set_token('POSITION', l_position_reference);
1139: FND_MSG_PUB.add;
1140: CLOSE get_position_necessity;
1141: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 1138: FND_MESSAGE.set_token('POSITION', l_position_reference);

1134: OPEN get_position_necessity(l_position_reference);
1135: FETCH get_position_necessity INTO l_position_necessity;
1136: IF get_position_necessity%NOTFOUND THEN
1137: FND_MESSAGE.set_name( 'AHL','AHL_UC_POSTION_INVALID' );
1138: FND_MESSAGE.set_token('POSITION', l_position_reference);
1139: FND_MSG_PUB.add;
1140: CLOSE get_position_necessity;
1141: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
1142: ELSE

Line 1163: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );

1159: last_update_login = FND_GLOBAL.login_id
1160: WHERE unit_config_header_id = l_root_uc_header_id
1161: AND object_version_number = l_root_uc_ovn;
1162: IF SQL%ROWCOUNT = 0 THEN
1163: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );
1164: FND_MSG_PUB.add;
1165: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
1166: END IF;
1167: ELSIF (l_root_uc_status_code IN ('COMPLETE', 'INCOMPLETE') AND

Line 1181: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );

1177: last_update_login = FND_GLOBAL.login_id
1178: WHERE unit_config_header_id = l_root_uc_header_id
1179: AND object_version_number = l_root_uc_ovn;
1180: IF SQL%ROWCOUNT = 0 THEN
1181: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );
1182: FND_MSG_PUB.add;
1183: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
1184: END IF;
1185: ELSIF l_root_uc_status_code NOT IN ('COMPLETE', 'INCOMPLETE', 'DRAFT') THEN

Line 1197: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );

1193: last_update_login = FND_GLOBAL.login_id
1194: WHERE unit_config_header_id = l_root_uc_header_id
1195: AND object_version_number = l_root_uc_ovn;
1196: IF SQL%ROWCOUNT = 0 THEN
1197: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );
1198: FND_MSG_PUB.add;
1199: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
1200: END IF;
1201: END IF;

Line 1213: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );

1209: last_update_login = FND_GLOBAL.login_id
1210: WHERE unit_config_header_id = l_root_uc_header_id
1211: AND object_version_number = l_root_uc_ovn;
1212: IF SQL%ROWCOUNT = 0 THEN
1213: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );
1214: FND_MSG_PUB.add;
1215: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
1216: END IF;
1217: END IF;

Line 1416: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');

1412: END IF;
1413:
1414: --Validate input parameters p_prod_user_flag
1415: IF upper(p_prod_user_flag) <> 'Y' AND upper(p_prod_user_flag) <> 'N' THEN
1416: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
1417: FND_MESSAGE.set_token('NAME', 'prod_user_flag');
1418: FND_MESSAGE.set_token('VALUE', p_prod_user_flag);
1419: FND_MSG_PUB.add;
1420: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 1417: FND_MESSAGE.set_token('NAME', 'prod_user_flag');

1413:
1414: --Validate input parameters p_prod_user_flag
1415: IF upper(p_prod_user_flag) <> 'Y' AND upper(p_prod_user_flag) <> 'N' THEN
1416: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
1417: FND_MESSAGE.set_token('NAME', 'prod_user_flag');
1418: FND_MESSAGE.set_token('VALUE', p_prod_user_flag);
1419: FND_MSG_PUB.add;
1420: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
1421: END IF;

Line 1418: FND_MESSAGE.set_token('VALUE', p_prod_user_flag);

1414: --Validate input parameters p_prod_user_flag
1415: IF upper(p_prod_user_flag) <> 'Y' AND upper(p_prod_user_flag) <> 'N' THEN
1416: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
1417: FND_MESSAGE.set_token('NAME', 'prod_user_flag');
1418: FND_MESSAGE.set_token('VALUE', p_prod_user_flag);
1419: FND_MSG_PUB.add;
1420: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
1421: END IF;
1422: --Validate input parameter p_uc_header_id, its two statuses

Line 1426: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');

1422: --Validate input parameter p_uc_header_id, its two statuses
1423: OPEN check_uc_header;
1424: FETCH check_uc_header INTO l_check_uc_header;
1425: IF check_uc_header%NOTFOUND THEN
1426: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
1427: FND_MESSAGE.set_token('NAME', 'uc_header_id');
1428: FND_MESSAGE.set_token('VALUE', p_uc_header_id);
1429: FND_MSG_PUB.add;
1430: CLOSE check_uc_header;

Line 1427: FND_MESSAGE.set_token('NAME', 'uc_header_id');

1423: OPEN check_uc_header;
1424: FETCH check_uc_header INTO l_check_uc_header;
1425: IF check_uc_header%NOTFOUND THEN
1426: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
1427: FND_MESSAGE.set_token('NAME', 'uc_header_id');
1428: FND_MESSAGE.set_token('VALUE', p_uc_header_id);
1429: FND_MSG_PUB.add;
1430: CLOSE check_uc_header;
1431: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 1428: FND_MESSAGE.set_token('VALUE', p_uc_header_id);

1424: FETCH check_uc_header INTO l_check_uc_header;
1425: IF check_uc_header%NOTFOUND THEN
1426: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
1427: FND_MESSAGE.set_token('NAME', 'uc_header_id');
1428: FND_MESSAGE.set_token('VALUE', p_uc_header_id);
1429: FND_MSG_PUB.add;
1430: CLOSE check_uc_header;
1431: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
1432: ELSE

Line 1443: FND_MESSAGE.set_name( 'AHL','AHL_UC_INVALID_Q_ACTION' );

1439: END IF;
1440:
1441: -- ACL :: Changes for R12
1442: IF (ahl_util_uc_pkg.IS_UNIT_QUARANTINED(p_unit_header_id => p_uc_header_id , p_instance_id => null) = FND_API.G_TRUE) THEN
1443: FND_MESSAGE.set_name( 'AHL','AHL_UC_INVALID_Q_ACTION' );
1444: FND_MSG_PUB.add;
1445: CLOSE check_uc_header;
1446: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
1447: END IF;

Line 1457: FND_MESSAGE.set_name( 'AHL','AHL_UC_STATUS_NOT_ACTIVE' );

1453: l_root_active_uc_status_code,
1454: l_root_uc_ovn);
1455: IF (p_prod_user_flag = 'Y' AND --For production user, no need to confirm either one of the statuses is not APPROVAL_PENDING
1456: l_root_uc_status_code NOT IN ('COMPLETE', 'INCOMPLETE')) THEN
1457: FND_MESSAGE.set_name( 'AHL','AHL_UC_STATUS_NOT_ACTIVE' );
1458: FND_MSG_PUB.add;
1459: CLOSE check_uc_header;
1460: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
1461: ELSIF (p_prod_user_flag = 'N' AND

Line 1464: FND_MESSAGE.set_name( 'AHL','AHL_UC_STATUS_PENDING' );

1460: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
1461: ELSIF (p_prod_user_flag = 'N' AND
1462: (l_root_uc_status_code = 'APPROVAL_PENDING' OR
1463: l_root_active_uc_status_code = 'APPROVAL_PENDING')) THEN
1464: FND_MESSAGE.set_name( 'AHL','AHL_UC_STATUS_PENDING' );
1465: FND_MESSAGE.set_token( 'UC_HEADER_ID', l_root_uc_header_id);
1466: FND_MSG_PUB.add;
1467: CLOSE check_uc_header;
1468: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 1465: FND_MESSAGE.set_token( 'UC_HEADER_ID', l_root_uc_header_id);

1461: ELSIF (p_prod_user_flag = 'N' AND
1462: (l_root_uc_status_code = 'APPROVAL_PENDING' OR
1463: l_root_active_uc_status_code = 'APPROVAL_PENDING')) THEN
1464: FND_MESSAGE.set_name( 'AHL','AHL_UC_STATUS_PENDING' );
1465: FND_MESSAGE.set_token( 'UC_HEADER_ID', l_root_uc_header_id);
1466: FND_MSG_PUB.add;
1467: CLOSE check_uc_header;
1468: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
1469: ELSE

Line 1488: FND_MESSAGE.set_name( 'AHL','AHL_UC_INSTANCE_NOT_IN_UC' );

1484: IF (l_object_id <> p_uc_instance_rec.instance_id AND
1485: (l_subject_id <> p_uc_instance_rec.instance_id OR
1486: l_subject_id IS NULL)) THEN
1487: --Do we allow an extra node's attributes to be changed? Yes
1488: FND_MESSAGE.set_name( 'AHL','AHL_UC_INSTANCE_NOT_IN_UC' );
1489: FND_MESSAGE.set_token('INSTANCE', p_uc_instance_rec.instance_id);
1490: FND_MSG_PUB.add;
1491: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
1492: END IF;

Line 1489: FND_MESSAGE.set_token('INSTANCE', p_uc_instance_rec.instance_id);

1485: (l_subject_id <> p_uc_instance_rec.instance_id OR
1486: l_subject_id IS NULL)) THEN
1487: --Do we allow an extra node's attributes to be changed? Yes
1488: FND_MESSAGE.set_name( 'AHL','AHL_UC_INSTANCE_NOT_IN_UC' );
1489: FND_MESSAGE.set_token('INSTANCE', p_uc_instance_rec.instance_id);
1490: FND_MSG_PUB.add;
1491: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
1492: END IF;
1493:

Line 1500: FND_MESSAGE.set_name( 'AHL','AHL_UC_INSTANCE_EXPIRED');

1496: OPEN get_instance_date(p_uc_instance_rec.instance_id);
1497: FETCH get_instance_date INTO l_end_date;
1498: CLOSE get_instance_date;
1499: IF TRUNC(NVL(l_end_date, SYSDATE+1)) <= TRUNC(SYSDATE) THEN
1500: FND_MESSAGE.set_name( 'AHL','AHL_UC_INSTANCE_EXPIRED');
1501: FND_MESSAGE.set_token('INSTANCE', p_uc_instance_rec.instance_id);
1502: FND_MSG_PUB.add;
1503: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
1504: END IF;

Line 1501: FND_MESSAGE.set_token('INSTANCE', p_uc_instance_rec.instance_id);

1497: FETCH get_instance_date INTO l_end_date;
1498: CLOSE get_instance_date;
1499: IF TRUNC(NVL(l_end_date, SYSDATE+1)) <= TRUNC(SYSDATE) THEN
1500: FND_MESSAGE.set_name( 'AHL','AHL_UC_INSTANCE_EXPIRED');
1501: FND_MESSAGE.set_token('INSTANCE', p_uc_instance_rec.instance_id);
1502: FND_MSG_PUB.add;
1503: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
1504: END IF;
1505:

Line 1576: FND_MESSAGE.set_name('AHL','AHL_UC_TAGMEANING_INVALID');

1572: l_uc_instance_rec.sn_tag_meaning,
1573: l_lookup_code,
1574: l_return_val);
1575: IF NOT(l_return_val) THEN
1576: FND_MESSAGE.set_name('AHL','AHL_UC_TAGMEANING_INVALID');
1577: FND_MESSAGE.set_token('TAG',l_uc_instance_rec.sn_tag_meaning);
1578: FND_MSG_PUB.add;
1579: ELSE
1580: l_uc_instance_rec.sn_tag_code := l_lookup_code;

Line 1577: FND_MESSAGE.set_token('TAG',l_uc_instance_rec.sn_tag_meaning);

1573: l_lookup_code,
1574: l_return_val);
1575: IF NOT(l_return_val) THEN
1576: FND_MESSAGE.set_name('AHL','AHL_UC_TAGMEANING_INVALID');
1577: FND_MESSAGE.set_token('TAG',l_uc_instance_rec.sn_tag_meaning);
1578: FND_MSG_PUB.add;
1579: ELSE
1580: l_uc_instance_rec.sn_tag_code := l_lookup_code;
1581: END IF;

Line 1591: FND_MESSAGE.Set_Name('AHL','AHL_COM_KEY_NOUPDATE');

1587: IF ((l_uc_instance_rec.inventory_item_id <> FND_API.G_MISS_NUM AND
1588: l_uc_instance_rec.inventory_item_id <> l_old_uc_instance_rec.inventory_item_id) OR
1589: (l_uc_instance_rec.inventory_org_id <> FND_API.G_MISS_NUM AND
1590: l_uc_instance_rec.inventory_org_id <> l_old_uc_instance_rec.inventory_org_id)) THEN
1591: FND_MESSAGE.Set_Name('AHL','AHL_COM_KEY_NOUPDATE');
1592: FND_MSG_PUB.ADD;
1593: --dbms_output.put_line('Cannot update key values');
1594: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
1595: END IF;

Line 1788: FND_MESSAGE.Set_Name('AHL','AHL_UC_SER_TG_EDIT_INVEN');

1784:
1785: --mpothuku added on 13-Jul-2007 to fix the Bug 4337259
1786: IF(l_old_uc_instance_rec.sn_tag_code is not NULL AND l_old_uc_instance_rec.sn_tag_code IN ('ACTUAL','TEMPORARY')) THEN
1787: IF(l_uc_instance_rec.sn_tag_code is not NULL AND l_uc_instance_rec.sn_tag_code = 'INVENTORY') THEN
1788: FND_MESSAGE.Set_Name('AHL','AHL_UC_SER_TG_EDIT_INVEN');
1789: FND_MSG_PUB.ADD;
1790: END IF;
1791: END IF;
1792: --mpothuku End

Line 1830: FND_MESSAGE.Set_Name('AHL','AHL_UC_INSTDATE_INVALID');

1826: /*
1827: IF (l_uc_instance_rec.install_date IS NOT NULL AND
1828: l_uc_instance_rec.install_date <> FND_API.G_MISS_DATE) THEN
1829: IF (l_uc_instance_rec.install_date > SYSDATE) THEN
1830: FND_MESSAGE.Set_Name('AHL','AHL_UC_INSTDATE_INVALID');
1831: FND_MESSAGE.Set_Token('DATE',l_uc_instance_rec.install_date);
1832: FND_MESSAGE.Set_Token('INV_ITEM',l_concatenated_segments);
1833: FND_MSG_PUB.ADD;
1834: --dbms_output.put_line('Installation date invalid.');

Line 1831: FND_MESSAGE.Set_Token('DATE',l_uc_instance_rec.install_date);

1827: IF (l_uc_instance_rec.install_date IS NOT NULL AND
1828: l_uc_instance_rec.install_date <> FND_API.G_MISS_DATE) THEN
1829: IF (l_uc_instance_rec.install_date > SYSDATE) THEN
1830: FND_MESSAGE.Set_Name('AHL','AHL_UC_INSTDATE_INVALID');
1831: FND_MESSAGE.Set_Token('DATE',l_uc_instance_rec.install_date);
1832: FND_MESSAGE.Set_Token('INV_ITEM',l_concatenated_segments);
1833: FND_MSG_PUB.ADD;
1834: --dbms_output.put_line('Installation date invalid.');
1835: END IF;

Line 1832: FND_MESSAGE.Set_Token('INV_ITEM',l_concatenated_segments);

1828: l_uc_instance_rec.install_date <> FND_API.G_MISS_DATE) THEN
1829: IF (l_uc_instance_rec.install_date > SYSDATE) THEN
1830: FND_MESSAGE.Set_Name('AHL','AHL_UC_INSTDATE_INVALID');
1831: FND_MESSAGE.Set_Token('DATE',l_uc_instance_rec.install_date);
1832: FND_MESSAGE.Set_Token('INV_ITEM',l_concatenated_segments);
1833: FND_MSG_PUB.ADD;
1834: --dbms_output.put_line('Installation date invalid.');
1835: END IF;
1836: END IF;

Line 1842: FND_MESSAGE.Set_Name('AHL','AHL_UC_MFGDATE_INVALID');

1838:
1839: --Validate mfg_date if not null.
1840: IF (l_uc_instance_rec.mfg_date IS NOT NULL AND l_uc_instance_rec.mfg_date <> FND_API.G_MISS_DATE) THEN
1841: IF (l_uc_instance_rec.mfg_date > SYSDATE) THEN
1842: FND_MESSAGE.Set_Name('AHL','AHL_UC_MFGDATE_INVALID');
1843: FND_MESSAGE.Set_Token('DATE',l_uc_instance_rec.mfg_date);
1844: FND_MESSAGE.Set_Token('INV_ITEM',l_concatenated_segments);
1845: FND_MSG_PUB.ADD;
1846: --dbms_output.put_line('Mfg date invalid.');

Line 1843: FND_MESSAGE.Set_Token('DATE',l_uc_instance_rec.mfg_date);

1839: --Validate mfg_date if not null.
1840: IF (l_uc_instance_rec.mfg_date IS NOT NULL AND l_uc_instance_rec.mfg_date <> FND_API.G_MISS_DATE) THEN
1841: IF (l_uc_instance_rec.mfg_date > SYSDATE) THEN
1842: FND_MESSAGE.Set_Name('AHL','AHL_UC_MFGDATE_INVALID');
1843: FND_MESSAGE.Set_Token('DATE',l_uc_instance_rec.mfg_date);
1844: FND_MESSAGE.Set_Token('INV_ITEM',l_concatenated_segments);
1845: FND_MSG_PUB.ADD;
1846: --dbms_output.put_line('Mfg date invalid.');
1847: END IF;

Line 1844: FND_MESSAGE.Set_Token('INV_ITEM',l_concatenated_segments);

1840: IF (l_uc_instance_rec.mfg_date IS NOT NULL AND l_uc_instance_rec.mfg_date <> FND_API.G_MISS_DATE) THEN
1841: IF (l_uc_instance_rec.mfg_date > SYSDATE) THEN
1842: FND_MESSAGE.Set_Name('AHL','AHL_UC_MFGDATE_INVALID');
1843: FND_MESSAGE.Set_Token('DATE',l_uc_instance_rec.mfg_date);
1844: FND_MESSAGE.Set_Token('INV_ITEM',l_concatenated_segments);
1845: FND_MSG_PUB.ADD;
1846: --dbms_output.put_line('Mfg date invalid.');
1847: END IF;
1848: END IF;

Line 1893: FND_MESSAGE.Set_Name('AHL','AHL_UC_ATTRIB_CODE_MISSING');

1889: IF (l_uc_instance_rec.sn_tag_code IS NOT NULL) THEN
1890: -- create extended attributes.
1891: AHL_Util_UC_Pkg.getcsi_attribute_id('AHL_TEMP_SERIAL_NUM', l_attribute_id,l_return_val);
1892: IF NOT(l_return_val) THEN
1893: FND_MESSAGE.Set_Name('AHL','AHL_UC_ATTRIB_CODE_MISSING');
1894: FND_MESSAGE.Set_Token('CODE', 'AHL_TEMP_SERIAL_NUM');
1895: FND_MSG_PUB.ADD;
1896: --dbms_output.put_line('Attribute code for TEMP_SERIAL_NUM not found');
1897: ELSE

Line 1894: FND_MESSAGE.Set_Token('CODE', 'AHL_TEMP_SERIAL_NUM');

1890: -- create extended attributes.
1891: AHL_Util_UC_Pkg.getcsi_attribute_id('AHL_TEMP_SERIAL_NUM', l_attribute_id,l_return_val);
1892: IF NOT(l_return_val) THEN
1893: FND_MESSAGE.Set_Name('AHL','AHL_UC_ATTRIB_CODE_MISSING');
1894: FND_MESSAGE.Set_Token('CODE', 'AHL_TEMP_SERIAL_NUM');
1895: FND_MSG_PUB.ADD;
1896: --dbms_output.put_line('Attribute code for TEMP_SERIAL_NUM not found');
1897: ELSE
1898: l_csi_extend_attrib_rec1.attribute_id := l_attribute_id;

Line 1925: FND_MESSAGE.Set_Name('AHL','AHL_UC_MFGDATE_INVALID');

1921: l_mfg_date_rec_found := 'Y';
1922: END IF;
1923: EXCEPTION
1924: WHEN OTHERS THEN
1925: FND_MESSAGE.Set_Name('AHL','AHL_UC_MFGDATE_INVALID');
1926: FND_MSG_PUB.ADD;
1927: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
1928: END;
1929: --dbms_output.put_line('after get mfg_date');

Line 1951: FND_MESSAGE.Set_Name('AHL','AHL_UC_ATTRIB_CODE_MISSING');

1947: ELSIF (l_mfg_date_rec_found = 'N' ) THEN
1948: IF (l_uc_instance_rec.mfg_date IS NOT NULL) THEN
1949: AHL_Util_UC_Pkg.getcsi_attribute_id('AHL_MFG_DATE', l_attribute_id, l_return_val);
1950: IF NOT(l_return_val) THEN
1951: FND_MESSAGE.Set_Name('AHL','AHL_UC_ATTRIB_CODE_MISSING');
1952: FND_MESSAGE.Set_Token('CODE', 'AHL_MFG_DATE');
1953: FND_MSG_PUB.ADD;
1954: --dbms_output.put_line('Attribute code for AHL_MFG_DATE not found');
1955: ELSE

Line 1952: FND_MESSAGE.Set_Token('CODE', 'AHL_MFG_DATE');

1948: IF (l_uc_instance_rec.mfg_date IS NOT NULL) THEN
1949: AHL_Util_UC_Pkg.getcsi_attribute_id('AHL_MFG_DATE', l_attribute_id, l_return_val);
1950: IF NOT(l_return_val) THEN
1951: FND_MESSAGE.Set_Name('AHL','AHL_UC_ATTRIB_CODE_MISSING');
1952: FND_MESSAGE.Set_Token('CODE', 'AHL_MFG_DATE');
1953: FND_MSG_PUB.ADD;
1954: --dbms_output.put_line('Attribute code for AHL_MFG_DATE not found');
1955: ELSE
1956: l_csi_extend_attrib_rec1.attribute_id := l_attribute_id;

Line 2118: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );

2114: last_update_login = FND_GLOBAL.login_id
2115: WHERE unit_config_header_id = l_root_uc_header_id
2116: AND object_version_number = l_root_uc_ovn;
2117: IF SQL%ROWCOUNT = 0 THEN
2118: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );
2119: FND_MSG_PUB.add;
2120: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2121: END IF;
2122: ELSIF (l_root_uc_status_code = 'INCOMPLETE' AND

Line 2135: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );

2131: last_update_login = FND_GLOBAL.login_id
2132: WHERE unit_config_header_id = l_root_uc_header_id
2133: AND object_version_number = l_root_uc_ovn;
2134: IF SQL%ROWCOUNT = 0 THEN
2135: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );
2136: FND_MSG_PUB.add;
2137: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2138: END IF;
2139: ELSIF (l_root_uc_status_code NOT IN ('COMPLETE', 'INCOMPLETE', 'DRAFT')) THEN

Line 2151: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );

2147: last_update_login = FND_GLOBAL.login_id
2148: WHERE unit_config_header_id = l_root_uc_header_id
2149: AND object_version_number = l_root_uc_ovn;
2150: IF SQL%ROWCOUNT = 0 THEN
2151: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );
2152: FND_MSG_PUB.add;
2153: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2154: END IF;
2155: END IF;

Line 2449: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');

2445: END IF;
2446:
2447: --Validate input parameters p_prod_user_flag
2448: IF upper(p_prod_user_flag) <> 'Y' AND upper(p_prod_user_flag) <> 'N' THEN
2449: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
2450: FND_MESSAGE.set_token('NAME', 'prod_user_flag');
2451: FND_MESSAGE.set_token('VALUE', p_prod_user_flag);
2452: FND_MSG_PUB.add;
2453: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 2450: FND_MESSAGE.set_token('NAME', 'prod_user_flag');

2446:
2447: --Validate input parameters p_prod_user_flag
2448: IF upper(p_prod_user_flag) <> 'Y' AND upper(p_prod_user_flag) <> 'N' THEN
2449: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
2450: FND_MESSAGE.set_token('NAME', 'prod_user_flag');
2451: FND_MESSAGE.set_token('VALUE', p_prod_user_flag);
2452: FND_MSG_PUB.add;
2453: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2454: END IF;

Line 2451: FND_MESSAGE.set_token('VALUE', p_prod_user_flag);

2447: --Validate input parameters p_prod_user_flag
2448: IF upper(p_prod_user_flag) <> 'Y' AND upper(p_prod_user_flag) <> 'N' THEN
2449: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
2450: FND_MESSAGE.set_token('NAME', 'prod_user_flag');
2451: FND_MESSAGE.set_token('VALUE', p_prod_user_flag);
2452: FND_MSG_PUB.add;
2453: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2454: END IF;
2455: --Validate input parameter p_uc_header_id, its two statuses

Line 2459: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');

2455: --Validate input parameter p_uc_header_id, its two statuses
2456: OPEN check_uc_header;
2457: FETCH check_uc_header INTO l_check_uc_header;
2458: IF check_uc_header%NOTFOUND THEN
2459: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
2460: FND_MESSAGE.set_token('NAME', 'uc_header_id');
2461: FND_MESSAGE.set_token('VALUE', p_uc_header_id);
2462: FND_MSG_PUB.add;
2463: CLOSE check_uc_header;

Line 2460: FND_MESSAGE.set_token('NAME', 'uc_header_id');

2456: OPEN check_uc_header;
2457: FETCH check_uc_header INTO l_check_uc_header;
2458: IF check_uc_header%NOTFOUND THEN
2459: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
2460: FND_MESSAGE.set_token('NAME', 'uc_header_id');
2461: FND_MESSAGE.set_token('VALUE', p_uc_header_id);
2462: FND_MSG_PUB.add;
2463: CLOSE check_uc_header;
2464: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 2461: FND_MESSAGE.set_token('VALUE', p_uc_header_id);

2457: FETCH check_uc_header INTO l_check_uc_header;
2458: IF check_uc_header%NOTFOUND THEN
2459: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
2460: FND_MESSAGE.set_token('NAME', 'uc_header_id');
2461: FND_MESSAGE.set_token('VALUE', p_uc_header_id);
2462: FND_MSG_PUB.add;
2463: CLOSE check_uc_header;
2464: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2465: ELSE

Line 2469: FND_MESSAGE.set_name( 'AHL','AHL_UC_INVALID_Q_ACTION' );

2465: ELSE
2466:
2467: -- ACL :: Changes for R12
2468: IF (ahl_util_uc_pkg.IS_UNIT_QUARANTINED(p_unit_header_id => p_uc_header_id , p_instance_id => null) = FND_API.G_TRUE) THEN
2469: FND_MESSAGE.set_name( 'AHL','AHL_UC_INVALID_Q_ACTION' );
2470: FND_MSG_PUB.add;
2471: CLOSE check_uc_header;
2472: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2473: END IF;

Line 2483: FND_MESSAGE.set_name( 'AHL','AHL_UC_STATUS_NOT_ACTIVE' );

2479: l_root_active_uc_status_code,
2480: l_root_uc_ovn);
2481: IF (p_prod_user_flag = 'Y' AND --For production user, no need to confirm either one of the statuses is not APPROVAL_PENDING
2482: l_root_uc_status_code NOT IN ('COMPLETE', 'INCOMPLETE')) THEN
2483: FND_MESSAGE.set_name( 'AHL','AHL_UC_STATUS_NOT_ACTIVE' );
2484: FND_MSG_PUB.add;
2485: CLOSE check_uc_header;
2486: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2487: ELSIF (p_prod_user_flag = 'N' AND

Line 2490: FND_MESSAGE.set_name( 'AHL','AHL_UC_STATUS_PENDING' );

2486: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2487: ELSIF (p_prod_user_flag = 'N' AND
2488: (l_root_uc_status_code = 'APPROVAL_PENDING' OR
2489: l_root_active_uc_status_code = 'APPROVAL_PENDING')) THEN
2490: FND_MESSAGE.set_name( 'AHL','AHL_UC_STATUS_PENDING' );
2491: FND_MESSAGE.set_token( 'UC_HEADER_ID', l_root_uc_header_id);
2492: FND_MSG_PUB.add;
2493: CLOSE check_uc_header;
2494: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 2491: FND_MESSAGE.set_token( 'UC_HEADER_ID', l_root_uc_header_id);

2487: ELSIF (p_prod_user_flag = 'N' AND
2488: (l_root_uc_status_code = 'APPROVAL_PENDING' OR
2489: l_root_active_uc_status_code = 'APPROVAL_PENDING')) THEN
2490: FND_MESSAGE.set_name( 'AHL','AHL_UC_STATUS_PENDING' );
2491: FND_MESSAGE.set_token( 'UC_HEADER_ID', l_root_uc_header_id);
2492: FND_MSG_PUB.add;
2493: CLOSE check_uc_header;
2494: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2495: ELSE

Line 2522: FND_MESSAGE.set_name( 'AHL','AHL_UC_INSTANCE_NOT_IN_UC' );

2518: p_parent_instance_id IS NULL OR
2519: l_subject_id IS NULL OR
2520: l_parent_relationship_id IS NULL) THEN
2521: --Do we allow an extra node's attributes to be changed?
2522: FND_MESSAGE.set_name( 'AHL','AHL_UC_INSTANCE_NOT_IN_UC' );
2523: FND_MESSAGE.set_token('INSTANCE', p_parent_instance_id);
2524: FND_MSG_PUB.add;
2525: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2526: END IF;

Line 2523: FND_MESSAGE.set_token('INSTANCE', p_parent_instance_id);

2519: l_subject_id IS NULL OR
2520: l_parent_relationship_id IS NULL) THEN
2521: --Do we allow an extra node's attributes to be changed?
2522: FND_MESSAGE.set_name( 'AHL','AHL_UC_INSTANCE_NOT_IN_UC' );
2523: FND_MESSAGE.set_token('INSTANCE', p_parent_instance_id);
2524: FND_MSG_PUB.add;
2525: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2526: END IF;
2527: END IF;

Line 2533: FND_MESSAGE.set_name( 'AHL','AHL_UC_POSITION_MISMATCH' );

2529: --Then validate p_x_uc_instance_rec.relationship_id can be child of l_parent_relationship_id
2530: OPEN check_parent_relationship(p_x_uc_instance_rec.relationship_id, l_parent_relationship_id);
2531: FETCH check_parent_relationship INTO l_dummy_char;
2532: IF check_parent_relationship%NOTFOUND THEN
2533: FND_MESSAGE.set_name( 'AHL','AHL_UC_POSITION_MISMATCH' );
2534: FND_MESSAGE.set_token('CHILD', p_x_uc_instance_rec.relationship_id);
2535: FND_MESSAGE.set_token('PARENT', l_parent_relationship_id);
2536: FND_MSG_PUB.add;
2537: CLOSE check_parent_relationship;

Line 2534: FND_MESSAGE.set_token('CHILD', p_x_uc_instance_rec.relationship_id);

2530: OPEN check_parent_relationship(p_x_uc_instance_rec.relationship_id, l_parent_relationship_id);
2531: FETCH check_parent_relationship INTO l_dummy_char;
2532: IF check_parent_relationship%NOTFOUND THEN
2533: FND_MESSAGE.set_name( 'AHL','AHL_UC_POSITION_MISMATCH' );
2534: FND_MESSAGE.set_token('CHILD', p_x_uc_instance_rec.relationship_id);
2535: FND_MESSAGE.set_token('PARENT', l_parent_relationship_id);
2536: FND_MSG_PUB.add;
2537: CLOSE check_parent_relationship;
2538: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 2535: FND_MESSAGE.set_token('PARENT', l_parent_relationship_id);

2531: FETCH check_parent_relationship INTO l_dummy_char;
2532: IF check_parent_relationship%NOTFOUND THEN
2533: FND_MESSAGE.set_name( 'AHL','AHL_UC_POSITION_MISMATCH' );
2534: FND_MESSAGE.set_token('CHILD', p_x_uc_instance_rec.relationship_id);
2535: FND_MESSAGE.set_token('PARENT', l_parent_relationship_id);
2536: FND_MSG_PUB.add;
2537: CLOSE check_parent_relationship;
2538: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2539: ELSE

Line 2547: FND_MESSAGE.set_name( 'AHL','AHL_UC_POSITION_INSTALLED' );

2543: --Make sure position p_x_uc_instance_rec.relationship_id is empty
2544: OPEN check_position_empty(p_parent_instance_id, p_x_uc_instance_rec.relationship_id);
2545: FETCH check_position_empty INTO l_dummy;
2546: IF check_position_empty%FOUND THEN
2547: FND_MESSAGE.set_name( 'AHL','AHL_UC_POSITION_INSTALLED' );
2548: FND_MESSAGE.set_token('POSITION', p_x_uc_instance_rec.relationship_id);
2549: FND_MSG_PUB.add;
2550: CLOSE check_position_empty;
2551: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 2548: FND_MESSAGE.set_token('POSITION', p_x_uc_instance_rec.relationship_id);

2544: OPEN check_position_empty(p_parent_instance_id, p_x_uc_instance_rec.relationship_id);
2545: FETCH check_position_empty INTO l_dummy;
2546: IF check_position_empty%FOUND THEN
2547: FND_MESSAGE.set_name( 'AHL','AHL_UC_POSITION_INSTALLED' );
2548: FND_MESSAGE.set_token('POSITION', p_x_uc_instance_rec.relationship_id);
2549: FND_MSG_PUB.add;
2550: CLOSE check_position_empty;
2551: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2552: ELSE

Line 2558: FND_MESSAGE.set_name( 'AHL','AHL_UC_SER_TG_CR_INVEN' );

2554: END IF;
2555: --When creating the new instances, the "From Inventory" Serial Tag should not be used anymore.
2556: --mpothuku added on 13-Jul-2007 to fix the Bug 4337259
2557: IF(p_x_uc_instance_rec.sn_tag_code is not null AND p_x_uc_instance_rec.sn_tag_code = 'INVENTORY') THEN
2558: FND_MESSAGE.set_name( 'AHL','AHL_UC_SER_TG_CR_INVEN' );
2559: FND_MSG_PUB.add;
2560: END IF;
2561: --mpothuku End
2562:

Line 2595: FND_MESSAGE.set_name('AHL','AHL_UC_SUB_UNIT_INFO_MISSING');

2591: p_x_sub_uc_rec.uc_name IS NULL) OR
2592: p_x_sub_uc_rec.uc_name IS NOT NULL AND (p_x_sub_uc_rec.mc_revision IS NULL OR
2593: p_x_sub_uc_rec.mc_name IS NULL))
2594: THEN
2595: FND_MESSAGE.set_name('AHL','AHL_UC_SUB_UNIT_INFO_MISSING');
2596: FND_MSG_PUB.add;
2597: RAISE FND_API.G_EXC_ERROR;
2598: END IF;
2599:

Line 2605: FND_MESSAGE.set_name('AHL','AHL_UC_NAME_DUPLICATE');

2601: IF p_x_sub_uc_rec.uc_name IS NOT NULL THEN
2602: OPEN check_uc_name_unique(p_x_sub_uc_rec.uc_name);
2603: FETCH check_uc_name_unique INTO l_dummy_char;
2604: IF check_uc_name_unique%FOUND THEN
2605: FND_MESSAGE.set_name('AHL','AHL_UC_NAME_DUPLICATE');
2606: FND_MESSAGE.set_token('NAME', p_x_sub_uc_rec.uc_name);
2607: FND_MSG_PUB.add;
2608: CLOSE check_uc_name_unique;
2609: RAISE FND_API.G_EXC_ERROR;

Line 2606: FND_MESSAGE.set_token('NAME', p_x_sub_uc_rec.uc_name);

2602: OPEN check_uc_name_unique(p_x_sub_uc_rec.uc_name);
2603: FETCH check_uc_name_unique INTO l_dummy_char;
2604: IF check_uc_name_unique%FOUND THEN
2605: FND_MESSAGE.set_name('AHL','AHL_UC_NAME_DUPLICATE');
2606: FND_MESSAGE.set_token('NAME', p_x_sub_uc_rec.uc_name);
2607: FND_MSG_PUB.add;
2608: CLOSE check_uc_name_unique;
2609: RAISE FND_API.G_EXC_ERROR;
2610: ELSE

Line 2622: FND_MESSAGE.set_name('AHL','AHL_UC_SUB_MC_INVALID');

2618: p_x_sub_uc_rec.mc_revision,
2619: p_x_uc_instance_rec.relationship_id);
2620: FETCH get_sub_mc_header INTO l_sub_mc_header_id, l_top_relationship_id;
2621: IF get_sub_mc_header%NOTFOUND THEN
2622: FND_MESSAGE.set_name('AHL','AHL_UC_SUB_MC_INVALID');
2623: FND_MESSAGE.set_token('NAME', p_x_sub_uc_rec.mc_name);
2624: FND_MESSAGE.set_token('REVISION', p_x_sub_uc_rec.mc_revision);
2625: FND_MSG_PUB.add;
2626: CLOSE get_sub_mc_header;

Line 2623: FND_MESSAGE.set_token('NAME', p_x_sub_uc_rec.mc_name);

2619: p_x_uc_instance_rec.relationship_id);
2620: FETCH get_sub_mc_header INTO l_sub_mc_header_id, l_top_relationship_id;
2621: IF get_sub_mc_header%NOTFOUND THEN
2622: FND_MESSAGE.set_name('AHL','AHL_UC_SUB_MC_INVALID');
2623: FND_MESSAGE.set_token('NAME', p_x_sub_uc_rec.mc_name);
2624: FND_MESSAGE.set_token('REVISION', p_x_sub_uc_rec.mc_revision);
2625: FND_MSG_PUB.add;
2626: CLOSE get_sub_mc_header;
2627: RAISE FND_API.G_EXC_ERROR;

Line 2624: FND_MESSAGE.set_token('REVISION', p_x_sub_uc_rec.mc_revision);

2620: FETCH get_sub_mc_header INTO l_sub_mc_header_id, l_top_relationship_id;
2621: IF get_sub_mc_header%NOTFOUND THEN
2622: FND_MESSAGE.set_name('AHL','AHL_UC_SUB_MC_INVALID');
2623: FND_MESSAGE.set_token('NAME', p_x_sub_uc_rec.mc_name);
2624: FND_MESSAGE.set_token('REVISION', p_x_sub_uc_rec.mc_revision);
2625: FND_MSG_PUB.add;
2626: CLOSE get_sub_mc_header;
2627: RAISE FND_API.G_EXC_ERROR;
2628: ELSE

Line 2664: FND_MESSAGE.set_name('AHL','AHL_UC_MFGDATE_INVALID');

2660: --Validate manufacturing date.
2661: IF (p_x_uc_instance_rec.mfg_date IS NOT NULL AND
2662: p_x_uc_instance_rec.mfg_date <> FND_API.G_MISS_DATE) THEN
2663: IF (p_x_uc_instance_rec.mfg_date > SYSDATE) THEN
2664: FND_MESSAGE.set_name('AHL','AHL_UC_MFGDATE_INVALID');
2665: FND_MESSAGE.set_token('DATE',p_x_uc_instance_rec.mfg_date);
2666: FND_MESSAGE.set_token('INV_ITEM',l_concatenated_segments);
2667: FND_MSG_PUB.add;
2668: --dbms_output.put_line('Mfg date invalid.');

Line 2665: FND_MESSAGE.set_token('DATE',p_x_uc_instance_rec.mfg_date);

2661: IF (p_x_uc_instance_rec.mfg_date IS NOT NULL AND
2662: p_x_uc_instance_rec.mfg_date <> FND_API.G_MISS_DATE) THEN
2663: IF (p_x_uc_instance_rec.mfg_date > SYSDATE) THEN
2664: FND_MESSAGE.set_name('AHL','AHL_UC_MFGDATE_INVALID');
2665: FND_MESSAGE.set_token('DATE',p_x_uc_instance_rec.mfg_date);
2666: FND_MESSAGE.set_token('INV_ITEM',l_concatenated_segments);
2667: FND_MSG_PUB.add;
2668: --dbms_output.put_line('Mfg date invalid.');
2669: END IF;

Line 2666: FND_MESSAGE.set_token('INV_ITEM',l_concatenated_segments);

2662: p_x_uc_instance_rec.mfg_date <> FND_API.G_MISS_DATE) THEN
2663: IF (p_x_uc_instance_rec.mfg_date > SYSDATE) THEN
2664: FND_MESSAGE.set_name('AHL','AHL_UC_MFGDATE_INVALID');
2665: FND_MESSAGE.set_token('DATE',p_x_uc_instance_rec.mfg_date);
2666: FND_MESSAGE.set_token('INV_ITEM',l_concatenated_segments);
2667: FND_MSG_PUB.add;
2668: --dbms_output.put_line('Mfg date invalid.');
2669: END IF;
2670: END IF;

Line 2677: FND_MESSAGE.set_name('AHL','AHL_UC_INSTDATE_INVALID');

2673: --Keep the installation date validation only for production user (04/21/2004)
2674: IF (p_x_uc_instance_rec.install_date IS NOT NULL AND
2675: p_x_uc_instance_rec.install_date <> FND_API.G_MISS_DATE) THEN
2676: IF (p_prod_user_flag = 'Y' AND trunc(p_x_uc_instance_rec.install_date) > trunc(SYSDATE)) THEN
2677: FND_MESSAGE.set_name('AHL','AHL_UC_INSTDATE_INVALID');
2678: FND_MESSAGE.set_token('DATE',p_x_uc_instance_rec.install_date);
2679: FND_MESSAGE.set_token('POSN_REF',p_x_uc_instance_rec.relationship_id);
2680: FND_MSG_PUB.add;
2681: --dbms_output.put_line('Installation date invalid.');

Line 2678: FND_MESSAGE.set_token('DATE',p_x_uc_instance_rec.install_date);

2674: IF (p_x_uc_instance_rec.install_date IS NOT NULL AND
2675: p_x_uc_instance_rec.install_date <> FND_API.G_MISS_DATE) THEN
2676: IF (p_prod_user_flag = 'Y' AND trunc(p_x_uc_instance_rec.install_date) > trunc(SYSDATE)) THEN
2677: FND_MESSAGE.set_name('AHL','AHL_UC_INSTDATE_INVALID');
2678: FND_MESSAGE.set_token('DATE',p_x_uc_instance_rec.install_date);
2679: FND_MESSAGE.set_token('POSN_REF',p_x_uc_instance_rec.relationship_id);
2680: FND_MSG_PUB.add;
2681: --dbms_output.put_line('Installation date invalid.');
2682: END IF;

Line 2679: FND_MESSAGE.set_token('POSN_REF',p_x_uc_instance_rec.relationship_id);

2675: p_x_uc_instance_rec.install_date <> FND_API.G_MISS_DATE) THEN
2676: IF (p_prod_user_flag = 'Y' AND trunc(p_x_uc_instance_rec.install_date) > trunc(SYSDATE)) THEN
2677: FND_MESSAGE.set_name('AHL','AHL_UC_INSTDATE_INVALID');
2678: FND_MESSAGE.set_token('DATE',p_x_uc_instance_rec.install_date);
2679: FND_MESSAGE.set_token('POSN_REF',p_x_uc_instance_rec.relationship_id);
2680: FND_MSG_PUB.add;
2681: --dbms_output.put_line('Installation date invalid.');
2682: END IF;
2683: END IF;

Line 2691: FND_MESSAGE.set_name('AHL','AHL_UC_CSII_INVALID');

2687: OPEN csi_item_instance_csr(p_parent_instance_id);
2688: FETCH csi_item_instance_csr INTO l_uc_owner_loc_rec;
2689: IF (csi_item_instance_csr%NOTFOUND) THEN
2690: CLOSE csi_item_instance_csr;
2691: FND_MESSAGE.set_name('AHL','AHL_UC_CSII_INVALID');
2692: FND_MESSAGE.set_token('CSII',p_parent_instance_id);
2693: FND_MESSAGE.Set_Token('POSN_REF',p_x_uc_instance_rec.relationship_id);
2694: FND_MSG_PUB.add;
2695: --dbms_output.put_line('Top node item instance does not exist.');

Line 2692: FND_MESSAGE.set_token('CSII',p_parent_instance_id);

2688: FETCH csi_item_instance_csr INTO l_uc_owner_loc_rec;
2689: IF (csi_item_instance_csr%NOTFOUND) THEN
2690: CLOSE csi_item_instance_csr;
2691: FND_MESSAGE.set_name('AHL','AHL_UC_CSII_INVALID');
2692: FND_MESSAGE.set_token('CSII',p_parent_instance_id);
2693: FND_MESSAGE.Set_Token('POSN_REF',p_x_uc_instance_rec.relationship_id);
2694: FND_MSG_PUB.add;
2695: --dbms_output.put_line('Top node item instance does not exist.');
2696: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 2693: FND_MESSAGE.Set_Token('POSN_REF',p_x_uc_instance_rec.relationship_id);

2689: IF (csi_item_instance_csr%NOTFOUND) THEN
2690: CLOSE csi_item_instance_csr;
2691: FND_MESSAGE.set_name('AHL','AHL_UC_CSII_INVALID');
2692: FND_MESSAGE.set_token('CSII',p_parent_instance_id);
2693: FND_MESSAGE.Set_Token('POSN_REF',p_x_uc_instance_rec.relationship_id);
2694: FND_MSG_PUB.add;
2695: --dbms_output.put_line('Top node item instance does not exist.');
2696: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2697: END IF;

Line 2899: FND_MESSAGE.set_name('AHL','AHL_UC_ATTRIB_CODE_MISSING');

2895: IF (p_x_uc_instance_rec.mfg_date IS NOT NULL AND
2896: p_x_uc_instance_rec.mfg_date <> FND_API.G_MISS_DATE) THEN
2897: AHL_UTIL_UC_PKG.getcsi_attribute_id('AHL_MFG_DATE',l_attribute_id, l_return_val);
2898: IF NOT(l_return_val) THEN
2899: FND_MESSAGE.set_name('AHL','AHL_UC_ATTRIB_CODE_MISSING');
2900: FND_MESSAGE.set_token('CODE', 'AHL_MFG_DATE');
2901: FND_MSG_PUB.add;
2902: --dbms_output.put_line('Attribute code for AHL_MFG_DATE not found');
2903: ELSE

Line 2900: FND_MESSAGE.set_token('CODE', 'AHL_MFG_DATE');

2896: p_x_uc_instance_rec.mfg_date <> FND_API.G_MISS_DATE) THEN
2897: AHL_UTIL_UC_PKG.getcsi_attribute_id('AHL_MFG_DATE',l_attribute_id, l_return_val);
2898: IF NOT(l_return_val) THEN
2899: FND_MESSAGE.set_name('AHL','AHL_UC_ATTRIB_CODE_MISSING');
2900: FND_MESSAGE.set_token('CODE', 'AHL_MFG_DATE');
2901: FND_MSG_PUB.add;
2902: --dbms_output.put_line('Attribute code for AHL_MFG_DATE not found');
2903: ELSE
2904: l_csi_extend_attrib_rec.attribute_id := l_attribute_id;

Line 2916: FND_MESSAGE.set_name('AHL','AHL_UC_ATTRIB_CODE_MISSING');

2912: p_x_uc_instance_rec.serial_number <> FND_API.G_MISS_CHAR) THEN
2913: AHL_UTIL_UC_PKG.getcsi_attribute_id('AHL_TEMP_SERIAL_NUM',l_attribute_id, l_return_val);
2914:
2915: IF NOT(l_return_val) THEN
2916: FND_MESSAGE.set_name('AHL','AHL_UC_ATTRIB_CODE_MISSING');
2917: FND_MESSAGE.set_token('CODE', 'AHL_TEMP_SERIAL_NUM');
2918: FND_MSG_PUB.add;
2919: --dbms_output.put_line('Attribute code for TEMP_SERIAL_NUM not found');
2920: ELSE

Line 2917: FND_MESSAGE.set_token('CODE', 'AHL_TEMP_SERIAL_NUM');

2913: AHL_UTIL_UC_PKG.getcsi_attribute_id('AHL_TEMP_SERIAL_NUM',l_attribute_id, l_return_val);
2914:
2915: IF NOT(l_return_val) THEN
2916: FND_MESSAGE.set_name('AHL','AHL_UC_ATTRIB_CODE_MISSING');
2917: FND_MESSAGE.set_token('CODE', 'AHL_TEMP_SERIAL_NUM');
2918: FND_MSG_PUB.add;
2919: --dbms_output.put_line('Attribute code for TEMP_SERIAL_NUM not found');
2920: ELSE
2921: l_csi_extend_attrib_rec.attribute_id := l_attribute_id;

Line 3001: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_OU_NULL');

2997: --Before installing the new instance, make sure its operating unit is exactly the same as that
2998: --of the root instance.
2999: l_new_instance_ou := get_operating_unit(l_new_instance_id);
3000: IF l_root_instance_ou IS NULL THEN
3001: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_OU_NULL');
3002: FND_MESSAGE.set_token('INSTANCE', l_root_instance_id);
3003: FND_MSG_PUB.add;
3004: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3005: ELSIF l_new_instance_ou IS NULL THEN

Line 3002: FND_MESSAGE.set_token('INSTANCE', l_root_instance_id);

2998: --of the root instance.
2999: l_new_instance_ou := get_operating_unit(l_new_instance_id);
3000: IF l_root_instance_ou IS NULL THEN
3001: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_OU_NULL');
3002: FND_MESSAGE.set_token('INSTANCE', l_root_instance_id);
3003: FND_MSG_PUB.add;
3004: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3005: ELSIF l_new_instance_ou IS NULL THEN
3006: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_OU_NULL');

Line 3006: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_OU_NULL');

3002: FND_MESSAGE.set_token('INSTANCE', l_root_instance_id);
3003: FND_MSG_PUB.add;
3004: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3005: ELSIF l_new_instance_ou IS NULL THEN
3006: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_OU_NULL');
3007: FND_MESSAGE.set_token('INSTANCE', l_new_instance_id);
3008: FND_MSG_PUB.add;
3009: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3010: ELSIF l_root_instance_ou <> l_new_instance_ou THEN

Line 3007: FND_MESSAGE.set_token('INSTANCE', l_new_instance_id);

3003: FND_MSG_PUB.add;
3004: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3005: ELSIF l_new_instance_ou IS NULL THEN
3006: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_OU_NULL');
3007: FND_MESSAGE.set_token('INSTANCE', l_new_instance_id);
3008: FND_MSG_PUB.add;
3009: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3010: ELSIF l_root_instance_ou <> l_new_instance_ou THEN
3011: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_OU_UNMATCH');

Line 3011: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_OU_UNMATCH');

3007: FND_MESSAGE.set_token('INSTANCE', l_new_instance_id);
3008: FND_MSG_PUB.add;
3009: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3010: ELSIF l_root_instance_ou <> l_new_instance_ou THEN
3011: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_OU_UNMATCH');
3012: FND_MESSAGE.set_token('INSTANCE', l_new_instance_id);
3013: FND_MESSAGE.set_token('ROOT_INSTANCE', l_root_instance_id);
3014: FND_MSG_PUB.add;
3015: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 3012: FND_MESSAGE.set_token('INSTANCE', l_new_instance_id);

3008: FND_MSG_PUB.add;
3009: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3010: ELSIF l_root_instance_ou <> l_new_instance_ou THEN
3011: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_OU_UNMATCH');
3012: FND_MESSAGE.set_token('INSTANCE', l_new_instance_id);
3013: FND_MESSAGE.set_token('ROOT_INSTANCE', l_root_instance_id);
3014: FND_MSG_PUB.add;
3015: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3016: END IF;

Line 3013: FND_MESSAGE.set_token('ROOT_INSTANCE', l_root_instance_id);

3009: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3010: ELSIF l_root_instance_ou <> l_new_instance_ou THEN
3011: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_OU_UNMATCH');
3012: FND_MESSAGE.set_token('INSTANCE', l_new_instance_id);
3013: FND_MESSAGE.set_token('ROOT_INSTANCE', l_root_instance_id);
3014: FND_MSG_PUB.add;
3015: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3016: END IF;
3017:

Line 3098: FND_MESSAGE.set_name('AHL', 'AHL_UC_HISTORY_COPY_FAILED');

3094: ahl_util_uc_pkg.copy_uc_header_to_history(p_x_sub_uc_rec.uc_header_id, l_return_status);
3095:
3096: --IF history copy failed, then don't raise exception, just add the message to the message stack
3097: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
3098: FND_MESSAGE.set_name('AHL', 'AHL_UC_HISTORY_COPY_FAILED');
3099: FND_MSG_PUB.add;
3100: END IF;
3101:
3102: END IF;

Line 3131: FND_MESSAGE.set_name('AHL', 'AHL_UC_ITEM_INTERCHANGE_MISS');

3127: OPEN get_interchange_type(p_x_uc_instance_rec.instance_id, p_x_uc_instance_rec.relationship_id);
3128: END IF;
3129: FETCH get_interchange_type INTO l_interchange_type_code;
3130: IF get_interchange_type%NOTFOUND THEN
3131: FND_MESSAGE.set_name('AHL', 'AHL_UC_ITEM_INTERCHANGE_MISS');
3132: FND_MESSAGE.set_token('INSTANCE', p_x_uc_instance_rec.instance_id);
3133: FND_MSG_PUB.add;
3134: CLOSE get_interchange_type;
3135: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 3132: FND_MESSAGE.set_token('INSTANCE', p_x_uc_instance_rec.instance_id);

3128: END IF;
3129: FETCH get_interchange_type INTO l_interchange_type_code;
3130: IF get_interchange_type%NOTFOUND THEN
3131: FND_MESSAGE.set_name('AHL', 'AHL_UC_ITEM_INTERCHANGE_MISS');
3132: FND_MESSAGE.set_token('INSTANCE', p_x_uc_instance_rec.instance_id);
3133: FND_MSG_PUB.add;
3134: CLOSE get_interchange_type;
3135: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3136: ELSIF l_interchange_type_code = '1-WAY INTERCHANGEABLE' THEN

Line 3137: FND_MESSAGE.set_name('AHL', 'AHL_UC_1WAY_ITEM_INSTALLED');

3133: FND_MSG_PUB.add;
3134: CLOSE get_interchange_type;
3135: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3136: ELSIF l_interchange_type_code = '1-WAY INTERCHANGEABLE' THEN
3137: FND_MESSAGE.set_name('AHL', 'AHL_UC_1WAY_ITEM_INSTALLED');
3138: SELECT f.meaning INTO l_position_ref_meaning
3139: FROM ahl_mc_relationships a,
3140: fnd_lookups f
3141: WHERE a.relationship_id = p_x_uc_instance_rec.relationship_id

Line 3147: FND_MESSAGE.set_token('POSITION', l_position_ref_meaning);

3143: AND f.lookup_type (+) = 'AHL_POSITION_REFERENCE' ;
3144: --Here always use p_x_uc_instance_rec.relationship_id instead of l_top_relationship_id because
3145: --UC tree UI always displays the parent leaf relationship_id instead of sub-uc top relationship_id
3146: --when it comes to the sub-uc.
3147: FND_MESSAGE.set_token('POSITION', l_position_ref_meaning);
3148: --Here the message is not added to the global message stack;
3149: IF x_warning_msg_tbl.count > 0 THEN
3150: x_warning_msg_tbl(x_warning_msg_tbl.last + 1) := FND_MESSAGE.get;
3151: ELSE

Line 3150: x_warning_msg_tbl(x_warning_msg_tbl.last + 1) := FND_MESSAGE.get;

3146: --when it comes to the sub-uc.
3147: FND_MESSAGE.set_token('POSITION', l_position_ref_meaning);
3148: --Here the message is not added to the global message stack;
3149: IF x_warning_msg_tbl.count > 0 THEN
3150: x_warning_msg_tbl(x_warning_msg_tbl.last + 1) := FND_MESSAGE.get;
3151: ELSE
3152: x_warning_msg_tbl(0) := FND_MESSAGE.get;
3153: END IF;
3154: END IF;

Line 3152: x_warning_msg_tbl(0) := FND_MESSAGE.get;

3148: --Here the message is not added to the global message stack;
3149: IF x_warning_msg_tbl.count > 0 THEN
3150: x_warning_msg_tbl(x_warning_msg_tbl.last + 1) := FND_MESSAGE.get;
3151: ELSE
3152: x_warning_msg_tbl(0) := FND_MESSAGE.get;
3153: END IF;
3154: END IF;
3155: CLOSE get_interchange_type;
3156:

Line 3175: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );

3171: last_update_login = FND_GLOBAL.login_id
3172: WHERE unit_config_header_id = l_root_uc_header_id
3173: AND object_version_number = l_root_uc_ovn;
3174: IF SQL%ROWCOUNT = 0 THEN
3175: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );
3176: FND_MSG_PUB.add;
3177: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3178: END IF;
3179: ELSIF (l_root_uc_status_code IN ('COMPLETE', 'INCOMPLETE') AND

Line 3193: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );

3189: last_update_login = FND_GLOBAL.login_id
3190: WHERE unit_config_header_id = l_root_uc_header_id
3191: AND object_version_number = l_root_uc_ovn;
3192: IF SQL%ROWCOUNT = 0 THEN
3193: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );
3194: FND_MSG_PUB.add;
3195: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3196: END IF;
3197: ELSIF (l_root_uc_status_code NOT IN ('COMPLETE', 'INCOMPLETE', 'DRAFT')) THEN

Line 3215: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );

3211: last_update_login = FND_GLOBAL.login_id
3212: WHERE unit_config_header_id = l_root_uc_header_id
3213: AND object_version_number = l_root_uc_ovn;
3214: IF SQL%ROWCOUNT = 0 THEN
3215: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );
3216: FND_MSG_PUB.add;
3217: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3218: END IF;
3219: END IF;

Line 3232: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );

3228: last_update_login = FND_GLOBAL.login_id
3229: WHERE unit_config_header_id = l_root_uc_header_id
3230: AND object_version_number = l_root_uc_ovn;
3231: IF SQL%ROWCOUNT = 0 THEN
3232: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );
3233: FND_MSG_PUB.add;
3234: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3235: END IF;
3236: END IF;

Line 3639: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');

3635: END IF;
3636:
3637: --Validate input parameters p_prod_user_flag
3638: IF upper(p_prod_user_flag) <> 'Y' AND upper(p_prod_user_flag) <> 'N' THEN
3639: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
3640: FND_MESSAGE.set_token('NAME', 'prod_user_flag');
3641: FND_MESSAGE.set_token('VALUE', p_prod_user_flag);
3642: FND_MSG_PUB.add;
3643: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 3640: FND_MESSAGE.set_token('NAME', 'prod_user_flag');

3636:
3637: --Validate input parameters p_prod_user_flag
3638: IF upper(p_prod_user_flag) <> 'Y' AND upper(p_prod_user_flag) <> 'N' THEN
3639: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
3640: FND_MESSAGE.set_token('NAME', 'prod_user_flag');
3641: FND_MESSAGE.set_token('VALUE', p_prod_user_flag);
3642: FND_MSG_PUB.add;
3643: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3644: END IF;

Line 3641: FND_MESSAGE.set_token('VALUE', p_prod_user_flag);

3637: --Validate input parameters p_prod_user_flag
3638: IF upper(p_prod_user_flag) <> 'Y' AND upper(p_prod_user_flag) <> 'N' THEN
3639: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
3640: FND_MESSAGE.set_token('NAME', 'prod_user_flag');
3641: FND_MESSAGE.set_token('VALUE', p_prod_user_flag);
3642: FND_MSG_PUB.add;
3643: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3644: END IF;
3645:

Line 3650: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');

3646: --Validate input parameter p_uc_header_id, its two statuses
3647: OPEN check_uc_header;
3648: FETCH check_uc_header INTO l_check_uc_header;
3649: IF check_uc_header%NOTFOUND THEN
3650: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
3651: FND_MESSAGE.set_token('NAME', 'uc_header_id');
3652: FND_MESSAGE.set_token('VALUE', p_uc_header_id);
3653: FND_MSG_PUB.add;
3654: CLOSE check_uc_header;

Line 3651: FND_MESSAGE.set_token('NAME', 'uc_header_id');

3647: OPEN check_uc_header;
3648: FETCH check_uc_header INTO l_check_uc_header;
3649: IF check_uc_header%NOTFOUND THEN
3650: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
3651: FND_MESSAGE.set_token('NAME', 'uc_header_id');
3652: FND_MESSAGE.set_token('VALUE', p_uc_header_id);
3653: FND_MSG_PUB.add;
3654: CLOSE check_uc_header;
3655: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 3652: FND_MESSAGE.set_token('VALUE', p_uc_header_id);

3648: FETCH check_uc_header INTO l_check_uc_header;
3649: IF check_uc_header%NOTFOUND THEN
3650: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
3651: FND_MESSAGE.set_token('NAME', 'uc_header_id');
3652: FND_MESSAGE.set_token('VALUE', p_uc_header_id);
3653: FND_MSG_PUB.add;
3654: CLOSE check_uc_header;
3655: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3656: ELSE

Line 3660: FND_MESSAGE.set_name( 'AHL','AHL_UC_INVALID_Q_ACTION' );

3656: ELSE
3657:
3658: -- ACL :: Changes for R12
3659: IF (ahl_util_uc_pkg.IS_UNIT_QUARANTINED(p_unit_header_id => p_uc_header_id , p_instance_id => null) = FND_API.G_TRUE) THEN
3660: FND_MESSAGE.set_name( 'AHL','AHL_UC_INVALID_Q_ACTION' );
3661: FND_MSG_PUB.add;
3662: CLOSE check_uc_header;
3663: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3664: END IF;

Line 3674: FND_MESSAGE.set_name( 'AHL','AHL_UC_STATUS_NOT_ACTIVE' );

3670: l_root_active_uc_status_code,
3671: l_root_uc_ovn);
3672: IF (p_prod_user_flag = 'Y' AND --For production user, no need to confirm either one of the statuses is not APPROVAL_PENDING
3673: l_root_uc_status_code NOT IN ('COMPLETE', 'INCOMPLETE')) THEN
3674: FND_MESSAGE.set_name( 'AHL','AHL_UC_STATUS_NOT_ACTIVE' );
3675: FND_MSG_PUB.add;
3676: CLOSE check_uc_header;
3677: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3678: ELSIF (p_prod_user_flag = 'N' AND

Line 3681: FND_MESSAGE.set_name( 'AHL','AHL_UC_STATUS_PENDING' );

3677: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3678: ELSIF (p_prod_user_flag = 'N' AND
3679: (l_root_uc_status_code = 'APPROVAL_PENDING' OR
3680: l_root_active_uc_status_code = 'APPROVAL_PENDING')) THEN
3681: FND_MESSAGE.set_name( 'AHL','AHL_UC_STATUS_PENDING' );
3682: FND_MESSAGE.set_token('UC_HEADER_ID', l_root_uc_header_id);
3683: FND_MSG_PUB.add;
3684: CLOSE check_uc_header;
3685: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 3682: FND_MESSAGE.set_token('UC_HEADER_ID', l_root_uc_header_id);

3678: ELSIF (p_prod_user_flag = 'N' AND
3679: (l_root_uc_status_code = 'APPROVAL_PENDING' OR
3680: l_root_active_uc_status_code = 'APPROVAL_PENDING')) THEN
3681: FND_MESSAGE.set_name( 'AHL','AHL_UC_STATUS_PENDING' );
3682: FND_MESSAGE.set_token('UC_HEADER_ID', l_root_uc_header_id);
3683: FND_MSG_PUB.add;
3684: CLOSE check_uc_header;
3685: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3686: ELSE

Line 3713: FND_MESSAGE.set_name( 'AHL','AHL_UC_INSTANCE_NOT_IN_UC' );

3709: p_parent_instance_id IS NULL OR
3710: l_subject_id IS NULL OR
3711: l_parent_relationship_id IS NULL) THEN
3712: --We don't allow installing child instance to an extra node.
3713: FND_MESSAGE.set_name( 'AHL','AHL_UC_INSTANCE_NOT_IN_UC' );
3714: FND_MESSAGE.set_token('INSTANCE', p_parent_instance_id);
3715: FND_MSG_PUB.add;
3716: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3717: END IF;

Line 3714: FND_MESSAGE.set_token('INSTANCE', p_parent_instance_id);

3710: l_subject_id IS NULL OR
3711: l_parent_relationship_id IS NULL) THEN
3712: --We don't allow installing child instance to an extra node.
3713: FND_MESSAGE.set_name( 'AHL','AHL_UC_INSTANCE_NOT_IN_UC' );
3714: FND_MESSAGE.set_token('INSTANCE', p_parent_instance_id);
3715: FND_MSG_PUB.add;
3716: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3717: END IF;
3718: END IF;

Line 3723: FND_MESSAGE.set_name( 'AHL','AHL_UC_POSITION_MISMATCH' );

3719: --Then validate p_relationship_id can be child of l_parent_relationship_id
3720: OPEN check_parent_relationship(p_relationship_id, l_parent_relationship_id);
3721: FETCH check_parent_relationship INTO l_dummy;
3722: IF check_parent_relationship%NOTFOUND THEN
3723: FND_MESSAGE.set_name( 'AHL','AHL_UC_POSITION_MISMATCH' );
3724: FND_MESSAGE.set_token('CHILD', p_relationship_id);
3725: FND_MESSAGE.set_token('PARENT', l_parent_relationship_id);
3726: FND_MSG_PUB.add;
3727: CLOSE check_parent_relationship;

Line 3724: FND_MESSAGE.set_token('CHILD', p_relationship_id);

3720: OPEN check_parent_relationship(p_relationship_id, l_parent_relationship_id);
3721: FETCH check_parent_relationship INTO l_dummy;
3722: IF check_parent_relationship%NOTFOUND THEN
3723: FND_MESSAGE.set_name( 'AHL','AHL_UC_POSITION_MISMATCH' );
3724: FND_MESSAGE.set_token('CHILD', p_relationship_id);
3725: FND_MESSAGE.set_token('PARENT', l_parent_relationship_id);
3726: FND_MSG_PUB.add;
3727: CLOSE check_parent_relationship;
3728: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 3725: FND_MESSAGE.set_token('PARENT', l_parent_relationship_id);

3721: FETCH check_parent_relationship INTO l_dummy;
3722: IF check_parent_relationship%NOTFOUND THEN
3723: FND_MESSAGE.set_name( 'AHL','AHL_UC_POSITION_MISMATCH' );
3724: FND_MESSAGE.set_token('CHILD', p_relationship_id);
3725: FND_MESSAGE.set_token('PARENT', l_parent_relationship_id);
3726: FND_MSG_PUB.add;
3727: CLOSE check_parent_relationship;
3728: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3729: ELSE

Line 3736: FND_MESSAGE.set_name( 'AHL','AHL_UC_POSITION_INSTALLED' );

3732: --Make sure position p_relationship_id is empty
3733: OPEN check_position_empty(p_parent_instance_id, p_relationship_id);
3734: FETCH check_position_empty INTO l_dummy;
3735: IF check_position_empty%FOUND THEN
3736: FND_MESSAGE.set_name( 'AHL','AHL_UC_POSITION_INSTALLED' );
3737: FND_MESSAGE.set_token('POSITION', p_relationship_id);
3738: FND_MSG_PUB.add;
3739: CLOSE check_position_empty;
3740: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 3737: FND_MESSAGE.set_token('POSITION', p_relationship_id);

3733: OPEN check_position_empty(p_parent_instance_id, p_relationship_id);
3734: FETCH check_position_empty INTO l_dummy;
3735: IF check_position_empty%FOUND THEN
3736: FND_MESSAGE.set_name( 'AHL','AHL_UC_POSITION_INSTALLED' );
3737: FND_MESSAGE.set_token('POSITION', p_relationship_id);
3738: FND_MSG_PUB.add;
3739: CLOSE check_position_empty;
3740: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3741: ELSE

Line 3751: FND_MESSAGE.set_name('AHL','AHL_UC_CSII_INVALID');

3747: OPEN csi_item_instance_csr(p_instance_id);
3748: FETCH csi_item_instance_csr INTO l_instance_rec;
3749: IF (csi_item_instance_csr%NOTFOUND) THEN
3750: CLOSE csi_item_instance_csr;
3751: FND_MESSAGE.set_name('AHL','AHL_UC_CSII_INVALID');
3752: FND_MESSAGE.set_token('CSII',p_instance_id);
3753: FND_MESSAGE.set_token('POSN_REF',p_relationship_id);
3754: FND_MSG_PUB.add;
3755: --dbms_output.put_line('CSI item instance ID does not exist.');

Line 3752: FND_MESSAGE.set_token('CSII',p_instance_id);

3748: FETCH csi_item_instance_csr INTO l_instance_rec;
3749: IF (csi_item_instance_csr%NOTFOUND) THEN
3750: CLOSE csi_item_instance_csr;
3751: FND_MESSAGE.set_name('AHL','AHL_UC_CSII_INVALID');
3752: FND_MESSAGE.set_token('CSII',p_instance_id);
3753: FND_MESSAGE.set_token('POSN_REF',p_relationship_id);
3754: FND_MSG_PUB.add;
3755: --dbms_output.put_line('CSI item instance ID does not exist.');
3756: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 3753: FND_MESSAGE.set_token('POSN_REF',p_relationship_id);

3749: IF (csi_item_instance_csr%NOTFOUND) THEN
3750: CLOSE csi_item_instance_csr;
3751: FND_MESSAGE.set_name('AHL','AHL_UC_CSII_INVALID');
3752: FND_MESSAGE.set_token('CSII',p_instance_id);
3753: FND_MESSAGE.set_token('POSN_REF',p_relationship_id);
3754: FND_MSG_PUB.add;
3755: --dbms_output.put_line('CSI item instance ID does not exist.');
3756: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3757: END IF;

Line 3766: FND_MESSAGE.set_name('AHL','AHL_UC_INSTANCE_INSTALLED');

3762: OPEN check_instance_installed(p_instance_id);
3763: FETCH check_instance_installed INTO l_dummy_char;
3764: IF (check_instance_installed%FOUND) THEN
3765: CLOSE check_instance_installed;
3766: FND_MESSAGE.set_name('AHL','AHL_UC_INSTANCE_INSTALLED');
3767: FND_MESSAGE.set_token('INSTANCE',p_instance_id);
3768: FND_MSG_PUB.add;
3769: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3770: END IF;

Line 3767: FND_MESSAGE.set_token('INSTANCE',p_instance_id);

3763: FETCH check_instance_installed INTO l_dummy_char;
3764: IF (check_instance_installed%FOUND) THEN
3765: CLOSE check_instance_installed;
3766: FND_MESSAGE.set_name('AHL','AHL_UC_INSTANCE_INSTALLED');
3767: FND_MESSAGE.set_token('INSTANCE',p_instance_id);
3768: FND_MSG_PUB.add;
3769: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3770: END IF;
3771: CLOSE check_instance_installed;

Line 3778: FND_MESSAGE.set_name('AHL','AHL_COM_RECORD_CHANGED');

3774: --Check object_version_number of the instance
3775: /* IF (p_uc_instance_rec.object_version_number <> l_csi_inst_rec.object_version
3776: _number) THEN
3777: CLOSE csi_item_instance_csr;
3778: FND_MESSAGE.set_name('AHL','AHL_COM_RECORD_CHANGED');
3779: FND_MSG_PUB.add;
3780: --dbms_output.put_line('Item Instance id object version changed');
3781: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3782: END IF;

Line 3786: FND_MESSAGE.set_name('AHL','AHL_UC_INST_STATUS_INVALID');

3782: END IF;
3783: */
3784: --Validate the status of the instance
3785: IF (l_instance_rec.location_type_code IN ('PO','IN-TRANSIT','PROJECT','INVENTORY')) THEN
3786: FND_MESSAGE.set_name('AHL','AHL_UC_INST_STATUS_INVALID');
3787: AHL_UTIL_UC_PKG.convert_to_csimeaning('CSI_INST_LOCATION_SOURCE_CODE',
3788: l_instance_rec.location_type_code,
3789: l_meaning,l_return_val);
3790: IF NOT(l_return_val) THEN

Line 3793: FND_MESSAGE.set_token('LOCATION',l_meaning);

3789: l_meaning,l_return_val);
3790: IF NOT(l_return_val) THEN
3791: l_meaning := l_instance_rec.location_type_code;
3792: END IF;
3793: FND_MESSAGE.set_token('LOCATION',l_meaning);
3794: FND_MSG_PUB.add;
3795: --dbms_output.put_line('Item Instance location is not valid');
3796: END IF;
3797:

Line 3819: FND_MESSAGE.set_name('AHL','AHL_UC_INSTDATE_INVALID');

3815: --Keep the installation date validation only for production user(04/21/2004).
3816: IF (l_instance_rec.install_date IS NOT NULL AND
3817: l_instance_rec.install_date <> FND_API.G_MISS_DATE) THEN
3818: IF (p_prod_user_flag = 'Y' AND trunc(l_instance_rec.install_date) > trunc(SYSDATE)) THEN
3819: FND_MESSAGE.set_name('AHL','AHL_UC_INSTDATE_INVALID');
3820: FND_MESSAGE.set_token('DATE',l_instance_rec.install_date);
3821: FND_MESSAGE.set_token('POSN_REF',p_relationship_id);
3822: FND_MSG_PUB.add;
3823: --dbms_output.put_line('Installation date invalid.');

Line 3820: FND_MESSAGE.set_token('DATE',l_instance_rec.install_date);

3816: IF (l_instance_rec.install_date IS NOT NULL AND
3817: l_instance_rec.install_date <> FND_API.G_MISS_DATE) THEN
3818: IF (p_prod_user_flag = 'Y' AND trunc(l_instance_rec.install_date) > trunc(SYSDATE)) THEN
3819: FND_MESSAGE.set_name('AHL','AHL_UC_INSTDATE_INVALID');
3820: FND_MESSAGE.set_token('DATE',l_instance_rec.install_date);
3821: FND_MESSAGE.set_token('POSN_REF',p_relationship_id);
3822: FND_MSG_PUB.add;
3823: --dbms_output.put_line('Installation date invalid.');
3824: END IF;

Line 3821: FND_MESSAGE.set_token('POSN_REF',p_relationship_id);

3817: l_instance_rec.install_date <> FND_API.G_MISS_DATE) THEN
3818: IF (p_prod_user_flag = 'Y' AND trunc(l_instance_rec.install_date) > trunc(SYSDATE)) THEN
3819: FND_MESSAGE.set_name('AHL','AHL_UC_INSTDATE_INVALID');
3820: FND_MESSAGE.set_token('DATE',l_instance_rec.install_date);
3821: FND_MESSAGE.set_token('POSN_REF',p_relationship_id);
3822: FND_MSG_PUB.add;
3823: --dbms_output.put_line('Installation date invalid.');
3824: END IF;
3825: END IF;

Line 3837: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_OU_NULL');

3833: --Before installing the existing instance, make sure its operating unit is exactly the same as that
3834: --of the root instance.
3835: l_instance_ou := get_operating_unit(p_instance_id);
3836: IF l_root_instance_ou IS NULL THEN
3837: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_OU_NULL');
3838: FND_MESSAGE.set_token('INSTANCE', l_root_instance_id);
3839: FND_MSG_PUB.add;
3840: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3841: ELSIF l_instance_ou IS NULL THEN

Line 3838: FND_MESSAGE.set_token('INSTANCE', l_root_instance_id);

3834: --of the root instance.
3835: l_instance_ou := get_operating_unit(p_instance_id);
3836: IF l_root_instance_ou IS NULL THEN
3837: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_OU_NULL');
3838: FND_MESSAGE.set_token('INSTANCE', l_root_instance_id);
3839: FND_MSG_PUB.add;
3840: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3841: ELSIF l_instance_ou IS NULL THEN
3842: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_OU_NULL');

Line 3842: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_OU_NULL');

3838: FND_MESSAGE.set_token('INSTANCE', l_root_instance_id);
3839: FND_MSG_PUB.add;
3840: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3841: ELSIF l_instance_ou IS NULL THEN
3842: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_OU_NULL');
3843: FND_MESSAGE.set_token('INSTANCE', p_instance_id);
3844: FND_MSG_PUB.add;
3845: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3846: ELSIF l_root_instance_ou <> l_instance_ou THEN

Line 3843: FND_MESSAGE.set_token('INSTANCE', p_instance_id);

3839: FND_MSG_PUB.add;
3840: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3841: ELSIF l_instance_ou IS NULL THEN
3842: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_OU_NULL');
3843: FND_MESSAGE.set_token('INSTANCE', p_instance_id);
3844: FND_MSG_PUB.add;
3845: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3846: ELSIF l_root_instance_ou <> l_instance_ou THEN
3847: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_OU_UNMATCH');

Line 3847: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_OU_UNMATCH');

3843: FND_MESSAGE.set_token('INSTANCE', p_instance_id);
3844: FND_MSG_PUB.add;
3845: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3846: ELSIF l_root_instance_ou <> l_instance_ou THEN
3847: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_OU_UNMATCH');
3848: FND_MESSAGE.set_token('INSTANCE', p_instance_id);
3849: FND_MESSAGE.set_token('ROOT_INSTANCE', l_root_instance_id);
3850: FND_MSG_PUB.add;
3851: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 3848: FND_MESSAGE.set_token('INSTANCE', p_instance_id);

3844: FND_MSG_PUB.add;
3845: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3846: ELSIF l_root_instance_ou <> l_instance_ou THEN
3847: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_OU_UNMATCH');
3848: FND_MESSAGE.set_token('INSTANCE', p_instance_id);
3849: FND_MESSAGE.set_token('ROOT_INSTANCE', l_root_instance_id);
3850: FND_MSG_PUB.add;
3851: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3852: END IF;

Line 3849: FND_MESSAGE.set_token('ROOT_INSTANCE', l_root_instance_id);

3845: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3846: ELSIF l_root_instance_ou <> l_instance_ou THEN
3847: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_OU_UNMATCH');
3848: FND_MESSAGE.set_token('INSTANCE', p_instance_id);
3849: FND_MESSAGE.set_token('ROOT_INSTANCE', l_root_instance_id);
3850: FND_MSG_PUB.add;
3851: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3852: END IF;
3853:

Line 3861: FND_MESSAGE.set_name( 'AHL','AHL_UC_INVALID_Q_ACTION' );

3857: FETCH get_uc_header INTO l_sub_uc_header_id, l_mc_header_id;
3858: IF get_uc_header%FOUND THEN
3859: -- ACL :: R12 Changes
3860: IF (ahl_util_uc_pkg.IS_UNIT_QUARANTINED(p_unit_header_id => l_sub_uc_header_id , p_instance_id => null) = FND_API.G_TRUE) THEN
3861: FND_MESSAGE.set_name( 'AHL','AHL_UC_INVALID_Q_ACTION' );
3862: FND_MSG_PUB.add;
3863: CLOSE check_uc_header;
3864: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3865: END IF;

Line 3877: FND_MESSAGE.set_name('AHL','AHL_UC_SUBUNIT_MISMATCH');

3873: EXIT;
3874: END IF;
3875: END LOOP;
3876: IF NOT l_subunit THEN
3877: FND_MESSAGE.set_name('AHL','AHL_UC_SUBUNIT_MISMATCH');
3878: FND_MESSAGE.set_token('INSTANCE', p_instance_id);
3879: FND_MESSAGE.set_token('POSITION', p_relationship_id);
3880: FND_MSG_PUB.add;
3881: CLOSE get_uc_header;

Line 3878: FND_MESSAGE.set_token('INSTANCE', p_instance_id);

3874: END IF;
3875: END LOOP;
3876: IF NOT l_subunit THEN
3877: FND_MESSAGE.set_name('AHL','AHL_UC_SUBUNIT_MISMATCH');
3878: FND_MESSAGE.set_token('INSTANCE', p_instance_id);
3879: FND_MESSAGE.set_token('POSITION', p_relationship_id);
3880: FND_MSG_PUB.add;
3881: CLOSE get_uc_header;
3882: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 3879: FND_MESSAGE.set_token('POSITION', p_relationship_id);

3875: END LOOP;
3876: IF NOT l_subunit THEN
3877: FND_MESSAGE.set_name('AHL','AHL_UC_SUBUNIT_MISMATCH');
3878: FND_MESSAGE.set_token('INSTANCE', p_instance_id);
3879: FND_MESSAGE.set_token('POSITION', p_relationship_id);
3880: FND_MSG_PUB.add;
3881: CLOSE get_uc_header;
3882: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3883: END IF;

Line 3962: FND_MESSAGE.set_name('AHL', 'AHL_UC_CSII_INVALID');

3958: --mfg_searil_numbers, otherwise it is 'TEMPORARY'
3959: OPEN get_serial_number(p_instance_id);
3960: FETCH get_serial_number INTO l_serial_number, l_mfg_serial_number_flag;
3961: IF get_serial_number%NOTFOUND THEN
3962: FND_MESSAGE.set_name('AHL', 'AHL_UC_CSII_INVALID');
3963: FND_MESSAGE.set_token('CSII', p_instance_id);
3964: FND_MSG_PUB.add;
3965: RAISE FND_API.G_EXC_ERROR;
3966: CLOSE get_serial_number;

Line 3963: FND_MESSAGE.set_token('CSII', p_instance_id);

3959: OPEN get_serial_number(p_instance_id);
3960: FETCH get_serial_number INTO l_serial_number, l_mfg_serial_number_flag;
3961: IF get_serial_number%NOTFOUND THEN
3962: FND_MESSAGE.set_name('AHL', 'AHL_UC_CSII_INVALID');
3963: FND_MESSAGE.set_token('CSII', p_instance_id);
3964: FND_MSG_PUB.add;
3965: RAISE FND_API.G_EXC_ERROR;
3966: CLOSE get_serial_number;
3967: ELSE

Line 3993: FND_MESSAGE.set_name('AHL','AHL_UC_ATTRIB_CODE_MISSING');

3989: --mpothuku End
3990: AHL_Util_UC_Pkg.getcsi_attribute_id('AHL_TEMP_SERIAL_NUM', l_attribute_id, l_return_val);
3991:
3992: IF NOT(l_return_val) THEN
3993: FND_MESSAGE.set_name('AHL','AHL_UC_ATTRIB_CODE_MISSING');
3994: FND_MESSAGE.set_token('CODE', 'AHL_TEMP_SERIAL_NUM');
3995: FND_MSG_PUB.add;
3996: ELSE
3997: l_csi_extend_attrib_rec.attribute_id := l_attribute_id;

Line 3994: FND_MESSAGE.set_token('CODE', 'AHL_TEMP_SERIAL_NUM');

3990: AHL_Util_UC_Pkg.getcsi_attribute_id('AHL_TEMP_SERIAL_NUM', l_attribute_id, l_return_val);
3991:
3992: IF NOT(l_return_val) THEN
3993: FND_MESSAGE.set_name('AHL','AHL_UC_ATTRIB_CODE_MISSING');
3994: FND_MESSAGE.set_token('CODE', 'AHL_TEMP_SERIAL_NUM');
3995: FND_MSG_PUB.add;
3996: ELSE
3997: l_csi_extend_attrib_rec.attribute_id := l_attribute_id;
3998: l_csi_extend_attrib_rec.attribute_value := l_serial_number_tag;

Line 4033: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');

4029: END IF;
4030:
4031: --Validate input parameters p_csi_ii_ovn
4032: IF (p_csi_ii_ovn IS NULL OR p_csi_ii_ovn <= 0 ) THEN
4033: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
4034: FND_MESSAGE.set_token('NAME', 'csi_ii_ovn');
4035: FND_MESSAGE.set_token('VALUE', p_csi_ii_ovn);
4036: FND_MSG_PUB.add;
4037: CLOSE check_extra_node;

Line 4034: FND_MESSAGE.set_token('NAME', 'csi_ii_ovn');

4030:
4031: --Validate input parameters p_csi_ii_ovn
4032: IF (p_csi_ii_ovn IS NULL OR p_csi_ii_ovn <= 0 ) THEN
4033: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
4034: FND_MESSAGE.set_token('NAME', 'csi_ii_ovn');
4035: FND_MESSAGE.set_token('VALUE', p_csi_ii_ovn);
4036: FND_MSG_PUB.add;
4037: CLOSE check_extra_node;
4038: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 4035: FND_MESSAGE.set_token('VALUE', p_csi_ii_ovn);

4031: --Validate input parameters p_csi_ii_ovn
4032: IF (p_csi_ii_ovn IS NULL OR p_csi_ii_ovn <= 0 ) THEN
4033: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
4034: FND_MESSAGE.set_token('NAME', 'csi_ii_ovn');
4035: FND_MESSAGE.set_token('VALUE', p_csi_ii_ovn);
4036: FND_MSG_PUB.add;
4037: CLOSE check_extra_node;
4038: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
4039: ELSIF l_object_version_number <> p_csi_ii_ovn THEN

Line 4040: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );

4036: FND_MSG_PUB.add;
4037: CLOSE check_extra_node;
4038: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
4039: ELSIF l_object_version_number <> p_csi_ii_ovn THEN
4040: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );
4041: FND_MSG_PUB.add;
4042: CLOSE check_extra_node;
4043: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
4044: END IF;

Line 4076: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');

4072: END IF;
4073:
4074: -- Validate input parameters p_csi_ii_ovn
4075: IF (p_csi_ii_ovn IS NULL OR p_csi_ii_ovn <= 0 ) THEN
4076: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
4077: FND_MESSAGE.set_token('NAME', 'csi_ii_ovn');
4078: FND_MESSAGE.set_token('VALUE', p_csi_ii_ovn);
4079: FND_MSG_PUB.add;
4080: CLOSE check_unasgnd_extra_node_csr;

Line 4077: FND_MESSAGE.set_token('NAME', 'csi_ii_ovn');

4073:
4074: -- Validate input parameters p_csi_ii_ovn
4075: IF (p_csi_ii_ovn IS NULL OR p_csi_ii_ovn <= 0 ) THEN
4076: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
4077: FND_MESSAGE.set_token('NAME', 'csi_ii_ovn');
4078: FND_MESSAGE.set_token('VALUE', p_csi_ii_ovn);
4079: FND_MSG_PUB.add;
4080: CLOSE check_unasgnd_extra_node_csr;
4081: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 4078: FND_MESSAGE.set_token('VALUE', p_csi_ii_ovn);

4074: -- Validate input parameters p_csi_ii_ovn
4075: IF (p_csi_ii_ovn IS NULL OR p_csi_ii_ovn <= 0 ) THEN
4076: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
4077: FND_MESSAGE.set_token('NAME', 'csi_ii_ovn');
4078: FND_MESSAGE.set_token('VALUE', p_csi_ii_ovn);
4079: FND_MSG_PUB.add;
4080: CLOSE check_unasgnd_extra_node_csr;
4081: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
4082: ELSIF l_object_version_number <> p_csi_ii_ovn THEN

Line 4083: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );

4079: FND_MSG_PUB.add;
4080: CLOSE check_unasgnd_extra_node_csr;
4081: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
4082: ELSIF l_object_version_number <> p_csi_ii_ovn THEN
4083: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );
4084: FND_MSG_PUB.add;
4085: CLOSE check_unasgnd_extra_node_csr;
4086: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
4087: END IF;

Line 4195: FND_MESSAGE.set_name('AHL', 'AHL_UC_HISTORY_COPY_FAILED');

4191: --Copy the change to history table
4192: ahl_util_uc_pkg.copy_uc_header_to_history(l_sub_uc_header_id, l_return_status);
4193: --IF history copy failed, then don't raise exception, just add the message to the message stack
4194: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
4195: FND_MESSAGE.set_name('AHL', 'AHL_UC_HISTORY_COPY_FAILED');
4196: FND_MSG_PUB.add;
4197: END IF;
4198: ELSIF l_instance_type = 'B' THEN --this instance is a branch node
4199: ahl_util_uc_pkg.get_parent_uc_header(p_instance_id,

Line 4216: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_NOT_IN_UC');

4212:
4213: OPEN get_uc_header(l_get_1st_level_subunit.subject_id);
4214: FETCH get_uc_header INTO l_sub_uc_header_id, l_mc_header_id;
4215: IF get_uc_header%NOTFOUND THEN
4216: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_NOT_IN_UC');
4217: FND_MESSAGE.set_token('INSTANCE', l_get_1st_level_subunit.subject_id);
4218: FND_MSG_PUB.add;
4219: CLOSE get_uc_header;
4220: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 4217: FND_MESSAGE.set_token('INSTANCE', l_get_1st_level_subunit.subject_id);

4213: OPEN get_uc_header(l_get_1st_level_subunit.subject_id);
4214: FETCH get_uc_header INTO l_sub_uc_header_id, l_mc_header_id;
4215: IF get_uc_header%NOTFOUND THEN
4216: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_NOT_IN_UC');
4217: FND_MESSAGE.set_token('INSTANCE', l_get_1st_level_subunit.subject_id);
4218: FND_MSG_PUB.add;
4219: CLOSE get_uc_header;
4220: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
4221: ELSE

Line 4230: FND_MESSAGE.set_name('AHL', 'AHL_UC_HISTORY_COPY_FAILED');

4226: ahl_util_uc_pkg.copy_uc_header_to_history(l_sub_uc_header_id, l_return_status);
4227: --IF history copy failed, then don't raise exception, just add the messageto the message stack
4228:
4229: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
4230: FND_MESSAGE.set_name('AHL', 'AHL_UC_HISTORY_COPY_FAILED');
4231: FND_MSG_PUB.add;
4232: END IF;
4233: END LOOP;
4234: END IF;

Line 4259: FND_MESSAGE.set_name('AHL', 'AHL_UC_ITEM_INTERCHANGE_MISS');

4255: IF l_instance_type <> 'S' THEN
4256: OPEN get_interchange_type(p_instance_id, p_relationship_id);
4257: FETCH get_interchange_type INTO l_interchange_type_code;
4258: IF get_interchange_type%NOTFOUND THEN
4259: FND_MESSAGE.set_name('AHL', 'AHL_UC_ITEM_INTERCHANGE_MISS');
4260: FND_MESSAGE.set_token('INSTANCE', p_instance_id);
4261: FND_MSG_PUB.add;
4262: CLOSE get_interchange_type;
4263: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 4260: FND_MESSAGE.set_token('INSTANCE', p_instance_id);

4256: OPEN get_interchange_type(p_instance_id, p_relationship_id);
4257: FETCH get_interchange_type INTO l_interchange_type_code;
4258: IF get_interchange_type%NOTFOUND THEN
4259: FND_MESSAGE.set_name('AHL', 'AHL_UC_ITEM_INTERCHANGE_MISS');
4260: FND_MESSAGE.set_token('INSTANCE', p_instance_id);
4261: FND_MSG_PUB.add;
4262: CLOSE get_interchange_type;
4263: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
4264: ELSIF l_interchange_type_code = '1-WAY INTERCHANGEABLE' THEN

Line 4265: FND_MESSAGE.set_name('AHL', 'AHL_UC_1WAY_ITEM_INSTALLED');

4261: FND_MSG_PUB.add;
4262: CLOSE get_interchange_type;
4263: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
4264: ELSIF l_interchange_type_code = '1-WAY INTERCHANGEABLE' THEN
4265: FND_MESSAGE.set_name('AHL', 'AHL_UC_1WAY_ITEM_INSTALLED');
4266: SELECT f.meaning INTO l_position_ref_meaning
4267: FROM ahl_mc_relationships a,
4268: fnd_lookups f
4269: WHERE a.relationship_id = p_relationship_id

Line 4272: FND_MESSAGE.set_token('POSITION', l_position_ref_meaning);

4268: fnd_lookups f
4269: WHERE a.relationship_id = p_relationship_id
4270: AND f.lookup_code (+) = A.position_ref_code
4271: AND f.lookup_type (+) = 'AHL_POSITION_REFERENCE' ;
4272: FND_MESSAGE.set_token('POSITION', l_position_ref_meaning);
4273: --Here the message is not added to the global message stack;
4274: IF x_warning_msg_tbl.count > 0 THEN
4275: x_warning_msg_tbl(x_warning_msg_tbl.last + 1) := FND_MESSAGE.get;
4276: ELSE

Line 4275: x_warning_msg_tbl(x_warning_msg_tbl.last + 1) := FND_MESSAGE.get;

4271: AND f.lookup_type (+) = 'AHL_POSITION_REFERENCE' ;
4272: FND_MESSAGE.set_token('POSITION', l_position_ref_meaning);
4273: --Here the message is not added to the global message stack;
4274: IF x_warning_msg_tbl.count > 0 THEN
4275: x_warning_msg_tbl(x_warning_msg_tbl.last + 1) := FND_MESSAGE.get;
4276: ELSE
4277: x_warning_msg_tbl(0) := FND_MESSAGE.get;
4278: END IF;
4279: END IF;

Line 4277: x_warning_msg_tbl(0) := FND_MESSAGE.get;

4273: --Here the message is not added to the global message stack;
4274: IF x_warning_msg_tbl.count > 0 THEN
4275: x_warning_msg_tbl(x_warning_msg_tbl.last + 1) := FND_MESSAGE.get;
4276: ELSE
4277: x_warning_msg_tbl(0) := FND_MESSAGE.get;
4278: END IF;
4279: END IF;
4280: CLOSE get_interchange_type;
4281: END IF;

Line 4300: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );

4296: last_update_login = FND_GLOBAL.login_id
4297: WHERE unit_config_header_id = l_root_uc_header_id
4298: AND object_version_number = l_root_uc_ovn;
4299: IF SQL%ROWCOUNT = 0 THEN
4300: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );
4301: FND_MSG_PUB.add;
4302: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
4303: END IF;
4304: ELSIF (l_root_uc_status_code IN ('COMPLETE', 'INCOMPLETE') AND

Line 4318: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );

4314: last_update_login = FND_GLOBAL.login_id
4315: WHERE unit_config_header_id = l_root_uc_header_id
4316: AND object_version_number = l_root_uc_ovn;
4317: IF SQL%ROWCOUNT = 0 THEN
4318: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );
4319: FND_MSG_PUB.add;
4320: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
4321: END IF;
4322: ELSIF l_root_uc_status_code NOT IN ('COMPLETE', 'INCOMPLETE', 'DRAFT') THEN

Line 4340: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );

4336: last_update_login = FND_GLOBAL.login_id
4337: WHERE unit_config_header_id = l_root_uc_header_id
4338: AND object_version_number = l_root_uc_ovn;
4339: IF SQL%ROWCOUNT = 0 THEN
4340: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );
4341: FND_MSG_PUB.add;
4342: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
4343: END IF;
4344: END IF;

Line 4357: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );

4353: last_update_login = FND_GLOBAL.login_id
4354: WHERE unit_config_header_id = l_root_uc_header_id
4355: AND object_version_number = l_root_uc_ovn;
4356: IF SQL%ROWCOUNT = 0 THEN
4357: FND_MESSAGE.set_name( 'AHL','AHL_COM_RECORD_CHANGED' );
4358: FND_MSG_PUB.add;
4359: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
4360: END IF;
4361: END IF;

Line 4508: FND_MESSAGE.set_name( 'AHL','AHL_UC_POSITION_NOT_SAME' );

4504: --the one of the new_instance_id. All the other validations will be made in the
4505: --other two called APIs.
4506: OPEN check_relationship_id(p_old_instance_id, p_relationship_id);
4507: IF check_relationship_id%NOTFOUND THEN
4508: FND_MESSAGE.set_name( 'AHL','AHL_UC_POSITION_NOT_SAME' );
4509: FND_MESSAGE.set_token('POSITION', p_relationship_id);
4510: FND_MSG_PUB.add;
4511: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
4512: END IF;

Line 4509: FND_MESSAGE.set_token('POSITION', p_relationship_id);

4505: --other two called APIs.
4506: OPEN check_relationship_id(p_old_instance_id, p_relationship_id);
4507: IF check_relationship_id%NOTFOUND THEN
4508: FND_MESSAGE.set_name( 'AHL','AHL_UC_POSITION_NOT_SAME' );
4509: FND_MESSAGE.set_token('POSITION', p_relationship_id);
4510: FND_MSG_PUB.add;
4511: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
4512: END IF;
4513:

Line 5076: FND_MESSAGE.set_name( 'AHL','AHL_COM_PARAM_MISSING' );-- check the message name here.

5072: --------------------------------------
5073: -- Work Order id is mandatory parmater. Throw error if its not passed.
5074: IF p_workorder_id IS NULL THEN
5075: -- Workorder is mandatory. Throw an error.
5076: FND_MESSAGE.set_name( 'AHL','AHL_COM_PARAM_MISSING' );-- check the message name here.
5077: FND_MSG_PUB.add;
5078: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
5079: END IF;
5080:

Line 5088: FND_MESSAGE.set_name( 'AHL','AHL_UC_WORKORDER_INVALID' );

5084: CLOSE c_get_visit_details;
5085:
5086: -- 1.a validation corresponding to Work Order
5087: IF l_visit_details_rec.wip_entity_id IS NULL THEN
5088: FND_MESSAGE.set_name( 'AHL','AHL_UC_WORKORDER_INVALID' );
5089: FND_MESSAGE.set_token('WORKORDER', p_workorder_id);
5090: FND_MSG_PUB.add;
5091: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
5092: END IF;

Line 5089: FND_MESSAGE.set_token('WORKORDER', p_workorder_id);

5085:
5086: -- 1.a validation corresponding to Work Order
5087: IF l_visit_details_rec.wip_entity_id IS NULL THEN
5088: FND_MESSAGE.set_name( 'AHL','AHL_UC_WORKORDER_INVALID' );
5089: FND_MESSAGE.set_token('WORKORDER', p_workorder_id);
5090: FND_MSG_PUB.add;
5091: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
5092: END IF;
5093:

Line 5117: FND_MESSAGE.set_name( 'AHL','AHL_UC_POSITION_INVALID' );

5113: FETCH check_relationship_id INTO l_relationship_id;
5114: CLOSE check_relationship_id;
5115:
5116: IF l_relationship_id IS NULL THEN
5117: FND_MESSAGE.set_name( 'AHL','AHL_UC_POSITION_INVALID' );
5118: FND_MESSAGE.set_token('POSITION', p_relationship_id);
5119: FND_MSG_PUB.add;
5120: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
5121: END IF;

Line 5118: FND_MESSAGE.set_token('POSITION', p_relationship_id);

5114: CLOSE check_relationship_id;
5115:
5116: IF l_relationship_id IS NULL THEN
5117: FND_MESSAGE.set_name( 'AHL','AHL_UC_POSITION_INVALID' );
5118: FND_MESSAGE.set_token('POSITION', p_relationship_id);
5119: FND_MSG_PUB.add;
5120: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
5121: END IF;
5122:

Line 5801: FND_MESSAGE.set_name( 'AHL','AHL_UC_POSITION_INVALID' );

5797:
5798: OPEN check_relationship_id;
5799: FETCH check_relationship_id INTO l_relationship_id;
5800: IF check_relationship_id%NOTFOUND THEN
5801: FND_MESSAGE.set_name( 'AHL','AHL_UC_POSITION_INVALID' );
5802: FND_MESSAGE.set_token('POSITION', p_relationship_id);
5803: FND_MSG_PUB.add;
5804: CLOSE check_relationship_id;
5805: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 5802: FND_MESSAGE.set_token('POSITION', p_relationship_id);

5798: OPEN check_relationship_id;
5799: FETCH check_relationship_id INTO l_relationship_id;
5800: IF check_relationship_id%NOTFOUND THEN
5801: FND_MESSAGE.set_name( 'AHL','AHL_UC_POSITION_INVALID' );
5802: FND_MESSAGE.set_token('POSITION', p_relationship_id);
5803: FND_MSG_PUB.add;
5804: CLOSE check_relationship_id;
5805: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
5806: ELSE

Line 5815: FND_MESSAGE.set_name( 'AHL','AHL_UC_WORKORDER_INVALID' );

5811: IF p_workorder_id IS NOT NULL THEN
5812: OPEN get_wip_entity_id(p_workorder_id);
5813: FETCH get_wip_entity_id INTO l_wip_entity_id;
5814: IF get_wip_entity_id%NOTFOUND THEN
5815: FND_MESSAGE.set_name( 'AHL','AHL_UC_WORKORDER_INVALID' );
5816: FND_MESSAGE.set_token('WORKORDER', p_workorder_id);
5817: FND_MSG_PUB.add;
5818: CLOSE get_wip_entity_id;
5819: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 5816: FND_MESSAGE.set_token('WORKORDER', p_workorder_id);

5812: OPEN get_wip_entity_id(p_workorder_id);
5813: FETCH get_wip_entity_id INTO l_wip_entity_id;
5814: IF get_wip_entity_id%NOTFOUND THEN
5815: FND_MESSAGE.set_name( 'AHL','AHL_UC_WORKORDER_INVALID' );
5816: FND_MESSAGE.set_token('WORKORDER', p_workorder_id);
5817: FND_MSG_PUB.add;
5818: CLOSE get_wip_entity_id;
5819: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
5820: ELSE

Line 5833: FND_MESSAGE.set_name( 'AHL','AHL_UC_PARENT_INST_INVALID' );

5829: IF p_parent_instance_id IS NOT NULL THEN
5830: OPEN check_parent_instance(p_parent_instance_id);
5831: FETCH check_parent_instance INTO l_dummy_char;
5832: IF check_parent_instance%NOTFOUND THEN
5833: FND_MESSAGE.set_name( 'AHL','AHL_UC_PARENT_INST_INVALID' );
5834: FND_MESSAGE.set_token('INSTANCE', p_parent_instance_id);
5835: FND_MSG_PUB.add;
5836: CLOSE check_parent_instance;
5837: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 5834: FND_MESSAGE.set_token('INSTANCE', p_parent_instance_id);

5830: OPEN check_parent_instance(p_parent_instance_id);
5831: FETCH check_parent_instance INTO l_dummy_char;
5832: IF check_parent_instance%NOTFOUND THEN
5833: FND_MESSAGE.set_name( 'AHL','AHL_UC_PARENT_INST_INVALID' );
5834: FND_MESSAGE.set_token('INSTANCE', p_parent_instance_id);
5835: FND_MSG_PUB.add;
5836: CLOSE check_parent_instance;
5837: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
5838: ELSE

Line 5857: FND_MESSAGE.set_name( 'AHL','AHL_UC_INSTANCE_NOT_IN_UC' );

5853:
5854: OPEN get_uc_status(l_top_instance_id);
5855: FETCH get_uc_status INTO l_top_uc_status;
5856: IF get_uc_status%NOTFOUND THEN
5857: FND_MESSAGE.set_name( 'AHL','AHL_UC_INSTANCE_NOT_IN_UC' );
5858: FND_MESSAGE.set_token('INSTANCE', l_top_instance_id);
5859: FND_MSG_PUB.add;
5860: CLOSE get_uc_status;
5861: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 5858: FND_MESSAGE.set_token('INSTANCE', l_top_instance_id);

5854: OPEN get_uc_status(l_top_instance_id);
5855: FETCH get_uc_status INTO l_top_uc_status;
5856: IF get_uc_status%NOTFOUND THEN
5857: FND_MESSAGE.set_name( 'AHL','AHL_UC_INSTANCE_NOT_IN_UC' );
5858: FND_MESSAGE.set_token('INSTANCE', l_top_instance_id);
5859: FND_MSG_PUB.add;
5860: CLOSE get_uc_status;
5861: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
5862: ELSE

Line 6202: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');

6198:
6199: IF check_uc_header_csr%NOTFOUND THEN
6200: CLOSE check_uc_header_csr;
6201: -- p_uc_header_id in invalid
6202: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
6203: FND_MESSAGE.set_token('NAME', 'uc_header_id');
6204: FND_MESSAGE.set_token('VALUE', p_uc_header_id);
6205: FND_MSG_PUB.add;
6206: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 6203: FND_MESSAGE.set_token('NAME', 'uc_header_id');

6199: IF check_uc_header_csr%NOTFOUND THEN
6200: CLOSE check_uc_header_csr;
6201: -- p_uc_header_id in invalid
6202: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
6203: FND_MESSAGE.set_token('NAME', 'uc_header_id');
6204: FND_MESSAGE.set_token('VALUE', p_uc_header_id);
6205: FND_MSG_PUB.add;
6206: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
6207: ELSIF (l_check_uc_header_rec.unit_config_status_code = 'APPROVAL_PENDING' OR

Line 6204: FND_MESSAGE.set_token('VALUE', p_uc_header_id);

6200: CLOSE check_uc_header_csr;
6201: -- p_uc_header_id in invalid
6202: FND_MESSAGE.set_name('AHL','AHL_UC_API_PARAMETER_INVALID');
6203: FND_MESSAGE.set_token('NAME', 'uc_header_id');
6204: FND_MESSAGE.set_token('VALUE', p_uc_header_id);
6205: FND_MSG_PUB.add;
6206: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
6207: ELSIF (l_check_uc_header_rec.unit_config_status_code = 'APPROVAL_PENDING' OR
6208: l_check_uc_header_rec.active_uc_status_code = 'APPROVAL_PENDING') THEN

Line 6211: FND_MESSAGE.set_name('AHL','AHL_UC_STATUS_PENDING');

6207: ELSIF (l_check_uc_header_rec.unit_config_status_code = 'APPROVAL_PENDING' OR
6208: l_check_uc_header_rec.active_uc_status_code = 'APPROVAL_PENDING') THEN
6209: CLOSE check_uc_header_csr;
6210: -- UC status is not editable
6211: FND_MESSAGE.set_name('AHL','AHL_UC_STATUS_PENDING');
6212: FND_MESSAGE.set_token('UC_HEADER_ID', l_check_uc_header_rec.unit_config_header_id);
6213: FND_MSG_PUB.add;
6214: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
6215: ELSIF (l_check_uc_header_rec.parent_uc_header_id IS NOT NULL) THEN

Line 6212: FND_MESSAGE.set_token('UC_HEADER_ID', l_check_uc_header_rec.unit_config_header_id);

6208: l_check_uc_header_rec.active_uc_status_code = 'APPROVAL_PENDING') THEN
6209: CLOSE check_uc_header_csr;
6210: -- UC status is not editable
6211: FND_MESSAGE.set_name('AHL','AHL_UC_STATUS_PENDING');
6212: FND_MESSAGE.set_token('UC_HEADER_ID', l_check_uc_header_rec.unit_config_header_id);
6213: FND_MSG_PUB.add;
6214: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
6215: ELSIF (l_check_uc_header_rec.parent_uc_header_id IS NOT NULL) THEN
6216: CLOSE check_uc_header_csr;

Line 6218: FND_MESSAGE.set_name('AHL','AHL_UC_INST_SUB_CONFIG');

6214: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
6215: ELSIF (l_check_uc_header_rec.parent_uc_header_id IS NOT NULL) THEN
6216: CLOSE check_uc_header_csr;
6217: -- UC is installed sub config
6218: FND_MESSAGE.set_name('AHL','AHL_UC_INST_SUB_CONFIG');
6219: FND_MESSAGE.set_token('UC_HEADER_ID', l_check_uc_header_rec.unit_config_header_id);
6220: FND_MSG_PUB.add;
6221: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
6222: ELSE

Line 6219: FND_MESSAGE.set_token('UC_HEADER_ID', l_check_uc_header_rec.unit_config_header_id);

6215: ELSIF (l_check_uc_header_rec.parent_uc_header_id IS NOT NULL) THEN
6216: CLOSE check_uc_header_csr;
6217: -- UC is installed sub config
6218: FND_MESSAGE.set_name('AHL','AHL_UC_INST_SUB_CONFIG');
6219: FND_MESSAGE.set_token('UC_HEADER_ID', l_check_uc_header_rec.unit_config_header_id);
6220: FND_MSG_PUB.add;
6221: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
6222: ELSE
6223: CLOSE check_uc_header_csr;

Line 6237: FND_MESSAGE.set_name('AHL','AHL_UC_STATUS_EXPIRED');

6233: OPEN get_instance_date(l_parent_instance_id);
6234: FETCH get_instance_date INTO l_end_date;
6235: CLOSE get_instance_date;
6236: IF TRUNC(NVL(l_end_date, SYSDATE+1)) <= TRUNC(SYSDATE) THEN
6237: FND_MESSAGE.set_name('AHL','AHL_UC_STATUS_EXPIRED');
6238: FND_MESSAGE.set_token('UC_NAME', l_check_uc_header_rec.unit_config_header_id);
6239: FND_MSG_PUB.add;
6240: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
6241: END IF;

Line 6238: FND_MESSAGE.set_token('UC_NAME', l_check_uc_header_rec.unit_config_header_id);

6234: FETCH get_instance_date INTO l_end_date;
6235: CLOSE get_instance_date;
6236: IF TRUNC(NVL(l_end_date, SYSDATE+1)) <= TRUNC(SYSDATE) THEN
6237: FND_MESSAGE.set_name('AHL','AHL_UC_STATUS_EXPIRED');
6238: FND_MESSAGE.set_token('UC_NAME', l_check_uc_header_rec.unit_config_header_id);
6239: FND_MSG_PUB.add;
6240: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
6241: END IF;
6242:

Line 6245: FND_MESSAGE.set_name( 'AHL','AHL_UC_SER_TG_CR_INVEN' );

6241: END IF;
6242:
6243: -- When creating the new instances, the "From Inventory" Serial Tag should not be used anymore.
6244: IF(p_x_uc_instance_rec.sn_tag_code IS NOT NULL AND p_x_uc_instance_rec.sn_tag_code = 'INVENTORY') THEN
6245: FND_MESSAGE.set_name( 'AHL','AHL_UC_SER_TG_CR_INVEN' );
6246: FND_MSG_PUB.add;
6247: RAISE FND_API.G_EXC_ERROR;
6248: END IF;
6249:

Line 6283: FND_MESSAGE.set_name('AHL','AHL_UC_MFGDATE_INVALID');

6279: IF (p_x_uc_instance_rec.mfg_date IS NOT NULL AND
6280: p_x_uc_instance_rec.mfg_date <> FND_API.G_MISS_DATE AND
6281: p_x_uc_instance_rec.mfg_date > SYSDATE) THEN
6282: -- mfg_date is invalid
6283: FND_MESSAGE.set_name('AHL','AHL_UC_MFGDATE_INVALID');
6284: FND_MESSAGE.set_token('DATE',p_x_uc_instance_rec.mfg_date);
6285: FND_MESSAGE.set_token('INV_ITEM',l_concatenated_segments);
6286: FND_MSG_PUB.add;
6287: END IF;

Line 6284: FND_MESSAGE.set_token('DATE',p_x_uc_instance_rec.mfg_date);

6280: p_x_uc_instance_rec.mfg_date <> FND_API.G_MISS_DATE AND
6281: p_x_uc_instance_rec.mfg_date > SYSDATE) THEN
6282: -- mfg_date is invalid
6283: FND_MESSAGE.set_name('AHL','AHL_UC_MFGDATE_INVALID');
6284: FND_MESSAGE.set_token('DATE',p_x_uc_instance_rec.mfg_date);
6285: FND_MESSAGE.set_token('INV_ITEM',l_concatenated_segments);
6286: FND_MSG_PUB.add;
6287: END IF;
6288:

Line 6285: FND_MESSAGE.set_token('INV_ITEM',l_concatenated_segments);

6281: p_x_uc_instance_rec.mfg_date > SYSDATE) THEN
6282: -- mfg_date is invalid
6283: FND_MESSAGE.set_name('AHL','AHL_UC_MFGDATE_INVALID');
6284: FND_MESSAGE.set_token('DATE',p_x_uc_instance_rec.mfg_date);
6285: FND_MESSAGE.set_token('INV_ITEM',l_concatenated_segments);
6286: FND_MSG_PUB.add;
6287: END IF;
6288:
6289: -- Build CSI records and call API

Line 6297: FND_MESSAGE.set_name('AHL','AHL_UC_CSII_INVALID');

6293:
6294: IF (csi_item_instance_csr%NOTFOUND) THEN
6295: CLOSE csi_item_instance_csr;
6296: -- parent instance is invalid
6297: FND_MESSAGE.set_name('AHL','AHL_UC_CSII_INVALID');
6298: FND_MESSAGE.set_token('CSII',l_parent_instance_id);
6299: FND_MSG_PUB.add;
6300: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
6301: END IF;

Line 6298: FND_MESSAGE.set_token('CSII',l_parent_instance_id);

6294: IF (csi_item_instance_csr%NOTFOUND) THEN
6295: CLOSE csi_item_instance_csr;
6296: -- parent instance is invalid
6297: FND_MESSAGE.set_name('AHL','AHL_UC_CSII_INVALID');
6298: FND_MESSAGE.set_token('CSII',l_parent_instance_id);
6299: FND_MSG_PUB.add;
6300: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
6301: END IF;
6302:

Line 6348: FND_MESSAGE.set_name('AHL','AHL_UC_ATTRIB_CODE_MISSING');

6344: p_x_uc_instance_rec.mfg_date <> FND_API.G_MISS_DATE) THEN
6345: AHL_UTIL_UC_PKG.getcsi_attribute_id('AHL_MFG_DATE',l_attribute_id, l_return_val);
6346:
6347: IF NOT(l_return_val) THEN
6348: FND_MESSAGE.set_name('AHL','AHL_UC_ATTRIB_CODE_MISSING');
6349: FND_MESSAGE.set_token('CODE', 'AHL_MFG_DATE');
6350: FND_MSG_PUB.add;
6351: ELSE
6352: l_csi_extend_attrib_rec.attribute_id := l_attribute_id;

Line 6349: FND_MESSAGE.set_token('CODE', 'AHL_MFG_DATE');

6345: AHL_UTIL_UC_PKG.getcsi_attribute_id('AHL_MFG_DATE',l_attribute_id, l_return_val);
6346:
6347: IF NOT(l_return_val) THEN
6348: FND_MESSAGE.set_name('AHL','AHL_UC_ATTRIB_CODE_MISSING');
6349: FND_MESSAGE.set_token('CODE', 'AHL_MFG_DATE');
6350: FND_MSG_PUB.add;
6351: ELSE
6352: l_csi_extend_attrib_rec.attribute_id := l_attribute_id;
6353: l_csi_extend_attrib_rec.attribute_value := to_char(p_x_uc_instance_rec.mfg_date, 'DD/MM/YYYY');

Line 6364: FND_MESSAGE.set_name('AHL','AHL_UC_ATTRIB_CODE_MISSING');

6360: p_x_uc_instance_rec.serial_number <> FND_API.G_MISS_CHAR) THEN
6361: AHL_UTIL_UC_PKG.getcsi_attribute_id('AHL_TEMP_SERIAL_NUM',l_attribute_id, l_return_val);
6362:
6363: IF NOT(l_return_val) THEN
6364: FND_MESSAGE.set_name('AHL','AHL_UC_ATTRIB_CODE_MISSING');
6365: FND_MESSAGE.set_token('CODE', 'AHL_TEMP_SERIAL_NUM');
6366: FND_MSG_PUB.add;
6367: ELSE
6368: l_csi_extend_attrib_rec.attribute_id := l_attribute_id;

Line 6365: FND_MESSAGE.set_token('CODE', 'AHL_TEMP_SERIAL_NUM');

6361: AHL_UTIL_UC_PKG.getcsi_attribute_id('AHL_TEMP_SERIAL_NUM',l_attribute_id, l_return_val);
6362:
6363: IF NOT(l_return_val) THEN
6364: FND_MESSAGE.set_name('AHL','AHL_UC_ATTRIB_CODE_MISSING');
6365: FND_MESSAGE.set_token('CODE', 'AHL_TEMP_SERIAL_NUM');
6366: FND_MSG_PUB.add;
6367: ELSE
6368: l_csi_extend_attrib_rec.attribute_id := l_attribute_id;
6369: l_csi_extend_attrib_rec.attribute_value := p_x_uc_instance_rec.sn_tag_code;

Line 6457: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_OU_NULL');

6453: -- of the root instance
6454: l_new_instance_ou := get_operating_unit(l_new_instance_id);
6455:
6456: IF l_root_instance_ou IS NULL THEN
6457: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_OU_NULL');
6458: FND_MESSAGE.set_token('INSTANCE', l_parent_instance_id);
6459: FND_MSG_PUB.add;
6460: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
6461: ELSIF l_new_instance_ou IS NULL THEN

Line 6458: FND_MESSAGE.set_token('INSTANCE', l_parent_instance_id);

6454: l_new_instance_ou := get_operating_unit(l_new_instance_id);
6455:
6456: IF l_root_instance_ou IS NULL THEN
6457: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_OU_NULL');
6458: FND_MESSAGE.set_token('INSTANCE', l_parent_instance_id);
6459: FND_MSG_PUB.add;
6460: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
6461: ELSIF l_new_instance_ou IS NULL THEN
6462: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_OU_NULL');

Line 6462: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_OU_NULL');

6458: FND_MESSAGE.set_token('INSTANCE', l_parent_instance_id);
6459: FND_MSG_PUB.add;
6460: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
6461: ELSIF l_new_instance_ou IS NULL THEN
6462: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_OU_NULL');
6463: FND_MESSAGE.set_token('INSTANCE', l_new_instance_id);
6464: FND_MSG_PUB.add;
6465: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
6466: ELSIF l_root_instance_ou <> l_new_instance_ou THEN

Line 6463: FND_MESSAGE.set_token('INSTANCE', l_new_instance_id);

6459: FND_MSG_PUB.add;
6460: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
6461: ELSIF l_new_instance_ou IS NULL THEN
6462: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_OU_NULL');
6463: FND_MESSAGE.set_token('INSTANCE', l_new_instance_id);
6464: FND_MSG_PUB.add;
6465: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
6466: ELSIF l_root_instance_ou <> l_new_instance_ou THEN
6467: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_OU_UNMATCH');

Line 6467: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_OU_UNMATCH');

6463: FND_MESSAGE.set_token('INSTANCE', l_new_instance_id);
6464: FND_MSG_PUB.add;
6465: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
6466: ELSIF l_root_instance_ou <> l_new_instance_ou THEN
6467: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_OU_UNMATCH');
6468: FND_MESSAGE.set_token('INSTANCE', l_new_instance_id);
6469: FND_MESSAGE.set_token('ROOT_INSTANCE', l_parent_instance_id);
6470: FND_MSG_PUB.add;
6471: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 6468: FND_MESSAGE.set_token('INSTANCE', l_new_instance_id);

6464: FND_MSG_PUB.add;
6465: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
6466: ELSIF l_root_instance_ou <> l_new_instance_ou THEN
6467: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_OU_UNMATCH');
6468: FND_MESSAGE.set_token('INSTANCE', l_new_instance_id);
6469: FND_MESSAGE.set_token('ROOT_INSTANCE', l_parent_instance_id);
6470: FND_MSG_PUB.add;
6471: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
6472: END IF;

Line 6469: FND_MESSAGE.set_token('ROOT_INSTANCE', l_parent_instance_id);

6465: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
6466: ELSIF l_root_instance_ou <> l_new_instance_ou THEN
6467: FND_MESSAGE.set_name('AHL', 'AHL_UC_INSTANCE_OU_UNMATCH');
6468: FND_MESSAGE.set_token('INSTANCE', l_new_instance_id);
6469: FND_MESSAGE.set_token('ROOT_INSTANCE', l_parent_instance_id);
6470: FND_MSG_PUB.add;
6471: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
6472: END IF;
6473: