DBA Data[Home] [Help]

APPS.PO_ACCOUNTING_GRP dependencies on FND_API

Line 30: -- If FND_API.G_TRUE, the API will initialize the standard API message list.

26: --IN:
27: --p_api_version
28: -- API version number expected by the caller.
29: --p_init_msg_list
30: -- If FND_API.G_TRUE, the API will initialize the standard API message list.
31: --p_base_ccid
32: -- base account on which the overlaying will be done; ex. receiving inspection
33: -- account.
34: --p_overlay_ccid

Line 43: -- FND_API.G_RET_STS_SUCCESS if the API successfully built the offset account.

39: --p_org_id
40: -- operating unit for retrieving the set of books and Automatic Offset Method.
41: --OUT:
42: --x_return_status
43: -- FND_API.G_RET_STS_SUCCESS if the API successfully built the offset account.
44: -- FND_API.G_RET_STS_ERROR if the offset account could not be built, for
45: -- example if the base account, overlay account, or offset account fails
46: -- Flexbuilder validation. The error message will be returned on the
47: -- standard API message list.

Line 44: -- FND_API.G_RET_STS_ERROR if the offset account could not be built, for

40: -- operating unit for retrieving the set of books and Automatic Offset Method.
41: --OUT:
42: --x_return_status
43: -- FND_API.G_RET_STS_SUCCESS if the API successfully built the offset account.
44: -- FND_API.G_RET_STS_ERROR if the offset account could not be built, for
45: -- example if the base account, overlay account, or offset account fails
46: -- Flexbuilder validation. The error message will be returned on the
47: -- standard API message list.
48: -- FND_API.G_RET_STS_UNEXP_ERROR if an unexpected error occurred.

Line 48: -- FND_API.G_RET_STS_UNEXP_ERROR if an unexpected error occurred.

44: -- FND_API.G_RET_STS_ERROR if the offset account could not be built, for
45: -- example if the base account, overlay account, or offset account fails
46: -- Flexbuilder validation. The error message will be returned on the
47: -- standard API message list.
48: -- FND_API.G_RET_STS_UNEXP_ERROR if an unexpected error occurred.
49: --x_result_ccid
50: -- the resulting offset account, if x_return_status=FND_API.G_RET_STS_SUCCESS.
51: --Notes:
52: -- This procedure is adapted from AP_ACCOUNTING_MAIN_PKG.build_offset_account.

Line 50: -- the resulting offset account, if x_return_status=FND_API.G_RET_STS_SUCCESS.

46: -- Flexbuilder validation. The error message will be returned on the
47: -- standard API message list.
48: -- FND_API.G_RET_STS_UNEXP_ERROR if an unexpected error occurred.
49: --x_result_ccid
50: -- the resulting offset account, if x_return_status=FND_API.G_RET_STS_SUCCESS.
51: --Notes:
52: -- This procedure is adapted from AP_ACCOUNTING_MAIN_PKG.build_offset_account.
53: --End of Comments
54: -------------------------------------------------------------------------------

Line 88: IF NOT FND_API.compatible_api_call ( l_api_version, p_api_version,

84: END IF;
85: END IF;
86:
87: -- Standard API initialization:
88: IF NOT FND_API.compatible_api_call ( l_api_version, p_api_version,
89: l_api_name, G_PKG_NAME ) THEN
90: RAISE FND_API.g_exc_unexpected_error;
91: END IF;
92:

Line 90: RAISE FND_API.g_exc_unexpected_error;

86:
87: -- Standard API initialization:
88: IF NOT FND_API.compatible_api_call ( l_api_version, p_api_version,
89: l_api_name, G_PKG_NAME ) THEN
90: RAISE FND_API.g_exc_unexpected_error;
91: END IF;
92:
93: IF (FND_API.to_boolean(p_init_msg_list)) THEN
94: FND_MSG_PUB.initialize;

Line 93: IF (FND_API.to_boolean(p_init_msg_list)) THEN

89: l_api_name, G_PKG_NAME ) THEN
90: RAISE FND_API.g_exc_unexpected_error;
91: END IF;
92:
93: IF (FND_API.to_boolean(p_init_msg_list)) THEN
94: FND_MSG_PUB.initialize;
95: END IF;
96:
97: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 97: x_return_status := FND_API.G_RET_STS_SUCCESS;

93: IF (FND_API.to_boolean(p_init_msg_list)) THEN
94: FND_MSG_PUB.initialize;
95: END IF;
96:
97: x_return_status := FND_API.G_RET_STS_SUCCESS;
98:
99: -- SQL What: Retrieve the Automatic Offset Method and chart of accounts
100: -- for the given operating unit.
101: -- SQL Why: Need these parameters to generate the offset account.

Line 137: RAISE FND_API.G_EXC_ERROR;

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:
140: -- validate_ccid retrieved the base account segments into the package
141: -- variable segment_value. Copy them into l_base_segments.

Line 157: RAISE FND_API.G_EXC_ERROR;

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:
160: -- validate_ccid retrieved the overlay account segments into the package
161: -- variable segment_value. Copy them into l_overlay_segments.

Line 180: RAISE FND_API.G_EXC_UNEXPECTED_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;
181: END IF;
182:
183: IF (g_fnd_debug = 'Y') THEN
184: IF (FND_LOG.G_CURRENT_RUNTIME_LEVEL <= FND_LOG.LEVEL_EVENT) THEN

Line 227: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

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
229:
230: END LOOP;
231:

Line 264: RAISE FND_API.G_EXC_ERROR;

260: IF (NOT l_result) THEN
261: -- get_combination_id returned the error message on the stack.
262: -- Add it to the standard API message list.
263: FND_MSG_PUB.add;
264: RAISE FND_API.G_EXC_ERROR;
265: END IF;
266:
267: IF (g_fnd_debug = 'Y') THEN
268: IF (FND_LOG.G_CURRENT_RUNTIME_LEVEL <= FND_LOG.LEVEL_PROCEDURE) THEN

Line 276: WHEN FND_API.G_EXC_ERROR THEN

272: END IF;
273: END IF;
274:
275: EXCEPTION
276: WHEN FND_API.G_EXC_ERROR THEN
277: x_return_status := FND_API.G_RET_STS_ERROR;
278: IF (g_fnd_debug = 'Y') THEN
279: IF (FND_LOG.G_CURRENT_RUNTIME_LEVEL <= FND_LOG.LEVEL_ERROR) THEN
280: FND_LOG.string ( FND_LOG.LEVEL_ERROR,

Line 277: x_return_status := FND_API.G_RET_STS_ERROR;

273: END IF;
274:
275: EXCEPTION
276: WHEN FND_API.G_EXC_ERROR THEN
277: x_return_status := FND_API.G_RET_STS_ERROR;
278: IF (g_fnd_debug = 'Y') THEN
279: IF (FND_LOG.G_CURRENT_RUNTIME_LEVEL <= FND_LOG.LEVEL_ERROR) THEN
280: FND_LOG.string ( FND_LOG.LEVEL_ERROR,
281: g_module_prefix || l_api_name,

Line 283: p_encoded => FND_API.G_FALSE ));

279: IF (FND_LOG.G_CURRENT_RUNTIME_LEVEL <= FND_LOG.LEVEL_ERROR) THEN
280: FND_LOG.string ( FND_LOG.LEVEL_ERROR,
281: g_module_prefix || l_api_name,
282: FND_MSG_PUB.get ( p_msg_index => FND_MSG_PUB.G_LAST,
283: p_encoded => FND_API.G_FALSE ));
284: END IF;
285: END IF;
286: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
287: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 286: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN

282: FND_MSG_PUB.get ( p_msg_index => FND_MSG_PUB.G_LAST,
283: p_encoded => FND_API.G_FALSE ));
284: END IF;
285: END IF;
286: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
287: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
288: IF (g_fnd_debug = 'Y') THEN
289: IF (FND_LOG.G_CURRENT_RUNTIME_LEVEL <= FND_LOG.LEVEL_UNEXPECTED) THEN
290: FND_LOG.string ( FND_LOG.LEVEL_UNEXPECTED,

Line 287: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

283: p_encoded => FND_API.G_FALSE ));
284: END IF;
285: END IF;
286: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
287: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
288: IF (g_fnd_debug = 'Y') THEN
289: IF (FND_LOG.G_CURRENT_RUNTIME_LEVEL <= FND_LOG.LEVEL_UNEXPECTED) THEN
290: FND_LOG.string ( FND_LOG.LEVEL_UNEXPECTED,
291: g_module_prefix || l_api_name,

Line 293: p_encoded => FND_API.G_FALSE ));

289: IF (FND_LOG.G_CURRENT_RUNTIME_LEVEL <= FND_LOG.LEVEL_UNEXPECTED) THEN
290: FND_LOG.string ( FND_LOG.LEVEL_UNEXPECTED,
291: g_module_prefix || l_api_name,
292: FND_MSG_PUB.get ( p_msg_index => FND_MSG_PUB.G_LAST,
293: p_encoded => FND_API.G_FALSE ));
294: END IF;
295: END IF;
296: WHEN OTHERS THEN
297: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 297: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

293: p_encoded => FND_API.G_FALSE ));
294: END IF;
295: END IF;
296: WHEN OTHERS THEN
297: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
298: FND_MSG_PUB.add_exc_msg ( G_PKG_NAME, l_api_name );
299: IF (g_fnd_debug = 'Y') THEN
300: IF (FND_LOG.G_CURRENT_RUNTIME_LEVEL <= FND_LOG.LEVEL_UNEXPECTED) THEN
301: FND_LOG.string ( FND_LOG.LEVEL_UNEXPECTED,

Line 304: p_encoded => FND_API.G_FALSE ));

300: IF (FND_LOG.G_CURRENT_RUNTIME_LEVEL <= FND_LOG.LEVEL_UNEXPECTED) THEN
301: FND_LOG.string ( FND_LOG.LEVEL_UNEXPECTED,
302: g_module_prefix || l_api_name,
303: FND_MSG_PUB.get ( p_msg_index => FND_MSG_PUB.G_LAST,
304: p_encoded => FND_API.G_FALSE ));
305: END IF;
306: END IF;
307: END build_offset_account;
308: