DBA Data[Home] [Help]

APPS.FA_UNIT_ADJ_PUB dependencies on FA_UNIT_ADJ_PUB

Line 1: PACKAGE BODY FA_UNIT_ADJ_PUB AS

1: PACKAGE BODY FA_UNIT_ADJ_PUB AS
2: /* $Header: FAPUADJB.pls 120.9 2006/08/25 15:45:02 spooyath noship $ */
3:
4: G_PKG_NAME CONSTANT VARCHAR2(30) := 'FA_UNIT_ADJ_PUB';
5: g_log_level_rec fa_api_types.log_level_rec_type;

Line 4: G_PKG_NAME CONSTANT VARCHAR2(30) := 'FA_UNIT_ADJ_PUB';

1: PACKAGE BODY FA_UNIT_ADJ_PUB AS
2: /* $Header: FAPUADJB.pls 120.9 2006/08/25 15:45:02 spooyath noship $ */
3:
4: G_PKG_NAME CONSTANT VARCHAR2(30) := 'FA_UNIT_ADJ_PUB';
5: g_log_level_rec fa_api_types.log_level_rec_type;
6:
7: FUNCTION valid_input(px_trans_rec IN OUT NOCOPY FA_API_TYPES.trans_rec_type,
8: p_asset_hdr_rec IN FA_API_TYPES.asset_hdr_rec_type,

Line 68: calling_fn => 'FA_UNIT_ADJ_PUB.do_unit_adjustment',

64: end if;
65:
66: if (px_asset_hdr_rec.asset_id is null) then
67: fa_srvr_msg.add_message(
68: calling_fn => 'FA_UNIT_ADJ_PUB.do_unit_adjustment',
69: name => 'FA_SHARED_ITEM_NULL',
70: token1 => 'ITEM',
71: value1 => 'Asset Id'
72: ,p_log_level_rec => g_log_level_rec);

Line 85: (calling_fn => 'FA_UNIT_ADJ_PUB.do_unit_adjustment',

81: close c_corp_book;
82:
83: if px_asset_hdr_rec.book_type_code is null then
84: fa_srvr_msg.add_message
85: (calling_fn => 'FA_UNIT_ADJ_PUB.do_unit_adjustment',
86: name => 'FA_EXP_GET_ASSET_INFO'
87: ,p_log_level_rec => g_log_level_rec);
88: raise FND_API.G_EXC_ERROR;
89: end if;

Line 104: p_calling_fn => 'FA_UNIT_ADJ_PUB.valid_input',

100: if not fa_asset_val_pvt.validate_asset_book
101: (p_transaction_type_code => 'UNIT ADJUSTMENT',
102: p_book_type_code => px_asset_hdr_rec.book_type_code,
103: p_asset_id => px_asset_hdr_rec.asset_id,
104: p_calling_fn => 'FA_UNIT_ADJ_PUB.valid_input',
105: p_log_level_rec => g_log_level_rec) then
106: raise FND_API.G_EXC_ERROR;
107: end if;
108:

Line 163: p_calling_function => 'FA_UNIT_ADJ_PUB.DO_UNIT_ADJUSTMENT') then

159: if not FA_IGI_EXT_PKG.Do_Unit_Adjustment(
160: p_trans_rec => px_trans_rec,
161: p_asset_hdr_rec => px_asset_hdr_rec,
162: p_asset_cat_rec => l_asset_cat_rec,
163: p_calling_function => 'FA_UNIT_ADJ_PUB.DO_UNIT_ADJUSTMENT') then
164: raise FND_API.G_EXC_ERROR;
165: end if;
166: end if; -- (FA_IGI_EXT_PKG.IAC_Enabled)
167:

Line 194: calling_fn => 'FA_UNIT_ADJ_PUB.do_unit_adjustment',

190:
191: EXCEPTION
192: WHEN FND_API.G_EXC_ERROR THEN
193: FA_SRVR_MSG.Add_Message(
194: calling_fn => 'FA_UNIT_ADJ_PUB.do_unit_adjustment',
195: p_log_level_rec => g_log_level_rec);
196:
197: FND_MSG_PUB.Count_And_Get(
198: p_count => x_msg_count,

Line 206: calling_fn => 'FA_UNIT_ADJ_PUB.do_unit_adjustment'

202: x_return_status := FND_API.G_RET_STS_ERROR;
203:
204: WHEN OTHERS THEN
205: FA_SRVR_MSG.Add_Sql_Error(
206: calling_fn => 'FA_UNIT_ADJ_PUB.do_unit_adjustment'
207: ,p_log_level_rec => g_log_level_rec);
208:
209: FND_MSG_PUB.Count_And_Get(
210: p_count => x_msg_count,

Line 246: calling_fn => 'FA_UNIT_ADJ_PUB.valid_input',

242: p_book_type_code => p_asset_hdr_rec.book_type_code,
243: p_asset_id => p_asset_hdr_rec.asset_id,
244: x_override_flag => l_override_flag)) then
245: fa_srvr_msg.add_message(
246: calling_fn => 'FA_UNIT_ADJ_PUB.valid_input',
247: p_log_level_rec => p_log_level_rec);
248: return FALSE;
249: end if;
250: -- if override flag is set to No, do not allow the unit adjustment

Line 253: calling_fn => 'FA_UNIT_ADJ_PUB.valid_input',

249: end if;
250: -- if override flag is set to No, do not allow the unit adjustment
251: if (l_override_flag = 'N') then
252: fa_srvr_msg.add_message(
253: calling_fn => 'FA_UNIT_ADJ_PUB.valid_input',
254: name => 'CUA_NO_DIST_CHANGE_ALLOWED',
255: p_log_level_rec => p_log_level_rec);
256: return FALSE;
257: end if;

Line 266: calling_fn => 'FA_UNIT_ADJ_PUB.valid_input',

262: if FA_ASSET_VAL_PVT.validate_fully_retired(p_asset_hdr_rec.asset_id,
263: p_asset_hdr_rec.book_type_code,
264: p_log_level_rec => p_log_level_rec) then
265: fa_srvr_msg.add_message(
266: calling_fn => 'FA_UNIT_ADJ_PUB.valid_input',
267: Name => 'FA_REC_RETIRED',
268: p_log_level_rec => p_log_level_rec);
269: return FALSE;
270: end if;

Line 289: fa_srvr_msg.add_message( calling_fn => 'FA_UNIT_ADJ_PUB.valid_input',

285: to_date(to_char(l_transaction_date,'DD/MM/YYYY'),'DD/MM/YYYY');
286: else
287: if not fa_cache_pkg.fazcbc (X_book => p_asset_hdr_rec.book_type_code,
288: p_log_level_rec => p_log_level_rec) then
289: fa_srvr_msg.add_message( calling_fn => 'FA_UNIT_ADJ_PUB.valid_input',
290: p_log_level_rec => p_log_level_rec);
291: return false;
292: else
293: l_fiscal_year_name := fa_cache_pkg.fazcbc_record.fiscal_year_name;

Line 303: if not FA_UTIL_PVT.get_latest_trans_date('FA_UNIT_ADJ_PUB.valid_input',

299: from fa_fiscal_year
300: where fiscal_year = l_fiscal_year
301: and fiscal_year_name = l_fiscal_year_name;
302:
303: if not FA_UTIL_PVT.get_latest_trans_date('FA_UNIT_ADJ_PUB.valid_input',
304: p_asset_hdr_rec.asset_id,
305: p_asset_hdr_rec.book_type_code,
306: l_max_transaction_date,
307: p_log_level_rec => p_log_level_rec) then

Line 314: calling_fn => 'FA_UNIT_ADJ_PUB.valid_input',

310:
311: if (px_trans_rec.transaction_date_entered < l_fy_start_date or
312: px_trans_rec.transaction_date_entered > l_fy_end_date) then
313: fa_srvr_msg.add_message(
314: calling_fn => 'FA_UNIT_ADJ_PUB.valid_input',
315: name => 'FA_RET_DATE_MUSTBE_IN_CUR_FY',
316: p_log_level_rec => p_log_level_rec);
317: return FALSE;
318: end if;

Line 322: calling_fn => 'FA_UNIT_ADJ_PUB.valid_input',

318: end if;
319:
320: if (px_trans_rec.transaction_date_entered > l_period_rec.calendar_period_close_date) then
321: fa_srvr_msg.add_message(
322: calling_fn => 'FA_UNIT_ADJ_PUB.valid_input',
323: name => 'FA_SHARED_CANNOT_FUTURE',
324: p_log_level_rec => p_log_level_rec);
325: return FALSE;
326: end if;

Line 330: calling_fn => 'FA_UNIT_ADJ_PUB.valid_input',

326: end if;
327:
328: if (px_trans_rec.transaction_date_entered < l_max_transaction_date) then
329: fa_srvr_msg.add_message(
330: calling_fn => 'FA_UNIT_ADJ_PUB.valid_input',
331: name => 'FA_SHARED_OTHER_TRX_FOLLOW',
332: p_log_level_rec => p_log_level_rec);
333: return FALSE;
334: end if;

Line 338: calling_fn => 'FA_UNIT_ADJ_PUB.valid_input',

334: end if;
335:
336: if (px_trans_rec.transaction_date_entered 337: fa_srvr_msg.add_message(
338: calling_fn => 'FA_UNIT_ADJ_PUB.valid_input',
339: name => 'FA_YEAR_GREATER_THAN',
340: p_log_level_rec => p_log_level_rec);
341: return FALSE;
342: end if;

Line 350: calling_fn => 'FA_UNIT_ADJ_PUB.valid_input'

346:
347: EXCEPTION
348: when others then
349: fa_srvr_msg.add_sql_error(
350: calling_fn => 'FA_UNIT_ADJ_PUB.valid_input'
351: ,p_log_level_rec => p_log_level_rec);
352: return FALSE;
353:
354: END;

Line 356: END FA_UNIT_ADJ_PUB;

352: return FALSE;
353:
354: END;
355:
356: END FA_UNIT_ADJ_PUB;