131: structure_number => l_coa_id,
132: combination_id => p_base_ccid );
133: IF (NOT l_result) THEN
134: -- Add the error to the standard API message list.
135: FND_MESSAGE.set_encoded(FND_FLEX_KEYVAL.encoded_error_message);
136: FND_MSG_PUB.add;
137: RAISE FND_API.G_EXC_ERROR;
138: END IF;
139:
151: structure_number => l_coa_id,
152: combination_id => p_overlay_ccid );
153: IF (NOT l_result) THEN
154: -- Add the error to the standard API message list.
155: FND_MESSAGE.set_encoded(FND_FLEX_KEYVAL.encoded_error_message);
156: FND_MSG_PUB.add;
157: RAISE FND_API.G_EXC_ERROR;
158: END IF;
159:
171: structure_number => l_coa_id,
172: flex_qual_name => l_auto_offset_method,
173: segment_number => l_qualifier_segment_num );
174: IF (NOT l_result) THEN
175: FND_MESSAGE.set_name('PO', 'PO_GENERIC_ERROR');
176: FND_MESSAGE.set_token('ERROR_TEXT',
177: 'Could not retrieve the qualifier segment; automatic offset method: '
178: || l_auto_offset_method);
179: FND_MSG_PUB.add;
172: flex_qual_name => l_auto_offset_method,
173: segment_number => l_qualifier_segment_num );
174: IF (NOT l_result) THEN
175: FND_MESSAGE.set_name('PO', 'PO_GENERIC_ERROR');
176: FND_MESSAGE.set_token('ERROR_TEXT',
177: 'Could not retrieve the qualifier segment; automatic offset method: '
178: || l_auto_offset_method);
179: FND_MSG_PUB.add;
180: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
219: l_result_segments(i) := l_base_segments(i);
220: END IF;
221:
222: ELSE -- Invalid automatic offset method
223: FND_MESSAGE.set_name('PO', 'PO_GENERIC_ERROR');
224: FND_MESSAGE.set_token('ERROR_TEXT',
225: 'Invalid automatic offset method: ' || l_auto_offset_method);
226: FND_MSG_PUB.add;
227: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
220: END IF;
221:
222: ELSE -- Invalid automatic offset method
223: FND_MESSAGE.set_name('PO', 'PO_GENERIC_ERROR');
224: FND_MESSAGE.set_token('ERROR_TEXT',
225: 'Invalid automatic offset method: ' || l_auto_offset_method);
226: FND_MSG_PUB.add;
227: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
228: END IF; -- l_auto_offset_method