DBA Data[Home] [Help]

APPS.FA_UNPLANNED_PUB dependencies on FA_CACHE_PKG

Line 11: g_release number := fa_cache_pkg.fazarel_release;

7: G_API_NAME CONSTANT varchar2(30) := 'Unplanned API';
8: G_API_VERSION CONSTANT number := 1.0;
9:
10: g_log_level_rec fa_api_types.log_level_rec_type;
11: g_release number := fa_cache_pkg.fazarel_release;
12:
13: --*********************** Private functions ******************************--
14:
15: -- private declaration for books (mrc) wrapper

Line 73: g_release := fa_cache_pkg.fazarel_release;

69: fa_debug_pkg.initialize;
70: end if;
71:
72: -- reset after above cache initialization
73: g_release := fa_cache_pkg.fazarel_release;
74:
75: -- Check version of the API
76: -- Standard call to check for API call compatibility.
77: if NOT fnd_api.compatible_api_call (

Line 89: if (NOT fa_cache_pkg.fazcbc(X_book => px_asset_hdr_rec.book_type_code, p_log_level_rec => g_log_level_rec)) then

85: end if;
86:
87: -- set up sob/mrc info
88: -- call the cache for the primary transaction book
89: if (NOT fa_cache_pkg.fazcbc(X_book => px_asset_hdr_rec.book_type_code, p_log_level_rec => g_log_level_rec)) then
90: raise unp_err;
91: end if;
92:
93: px_asset_hdr_rec.set_of_books_id := fa_cache_pkg.fazcbc_record.set_of_books_id;

Line 93: px_asset_hdr_rec.set_of_books_id := fa_cache_pkg.fazcbc_record.set_of_books_id;

89: if (NOT fa_cache_pkg.fazcbc(X_book => px_asset_hdr_rec.book_type_code, p_log_level_rec => g_log_level_rec)) then
90: raise unp_err;
91: end if;
92:
93: px_asset_hdr_rec.set_of_books_id := fa_cache_pkg.fazcbc_record.set_of_books_id;
94:
95: if not (FA_ASSET_VAL_PVT.validate_asset_book
96: (p_transaction_type_code => 'ADJUSTMENT',
97: p_book_type_code => px_asset_hdr_rec.book_type_code,

Line 108: if not fa_cache_pkg.fazcsob

104: -- that is not tied to a SOB_ID by getting the value from
105: -- the book struct
106:
107: -- Get the book type code P,R or N
108: if not fa_cache_pkg.fazcsob
109: (X_set_of_books_id => px_asset_hdr_rec.set_of_books_id,
110: X_mrc_sob_type_code => l_reporting_flag, p_log_level_rec => g_log_level_rec) then
111: raise unp_err;
112: end if;

Line 248: if (fa_cache_pkg.fazcbc_record.amortize_flag = 'NO') then

244: , p_log_level_rec => g_log_level_rec) then
245: raise unp_err;
246: end if;
247: else
248: if (fa_cache_pkg.fazcbc_record.amortize_flag = 'NO') then
249: fa_srvr_msg.add_message(
250: calling_fn => l_calling_fn,
251: name => 'FA_BOOK_AMORTIZED_NOT_ALLOW', p_log_level_rec => g_log_level_rec);
252: raise unp_err;

Line 350: l_sob_tbl FA_CACHE_PKG.fazcrsob_sob_tbl_type;

346: l_unplanned_deprn_rec FA_API_TYPES.unplanned_deprn_rec_type;
347:
348: l_reporting_flag varchar2(1);
349: l_period_rec FA_API_TYPES.period_rec_type;
350: l_sob_tbl FA_CACHE_PKG.fazcrsob_sob_tbl_type;
351:
352: -- used for local runs
353: l_responsibility_id number;
354: l_application_id number;

Line 439: p_gl_chart_id => fa_cache_pkg.fazcbc_record.accounting_flex_structure,

435: /*Bug#13861504 - Validate ccid */
436: if not FA_ASSET_VAL_PVT.validate_ccid
437: (p_book_type_code => px_asset_hdr_rec.book_type_code,
438: p_ccid => p_unplanned_deprn_rec.code_combination_id,
439: p_gl_chart_id => fa_cache_pkg.fazcbc_record.accounting_flex_structure,
440: p_ledger_id => fa_cache_pkg.fazcbc_record.set_of_books_id,
441: p_validation_date => l_transaction_date,
442: p_calling_fn => l_calling_fn,
443: p_log_level_rec => p_log_level_rec

Line 440: p_ledger_id => fa_cache_pkg.fazcbc_record.set_of_books_id,

436: if not FA_ASSET_VAL_PVT.validate_ccid
437: (p_book_type_code => px_asset_hdr_rec.book_type_code,
438: p_ccid => p_unplanned_deprn_rec.code_combination_id,
439: p_gl_chart_id => fa_cache_pkg.fazcbc_record.accounting_flex_structure,
440: p_ledger_id => fa_cache_pkg.fazcbc_record.set_of_books_id,
441: p_validation_date => l_transaction_date,
442: p_calling_fn => l_calling_fn,
443: p_log_level_rec => p_log_level_rec
444: ) then

Line 496: l_flex_structure_num := fa_cache_pkg.fazcbc_record.accounting_flex_structure;

492: calling_fn => l_calling_fn, p_log_level_rec => p_log_level_rec);
493: raise unp_err;
494: end if;
495:
496: l_flex_structure_num := fa_cache_pkg.fazcbc_record.accounting_flex_structure;
497:
498: -- check the ccid / set up flex info
499: if not fnd_flex_apis.get_qualifier_segnum
500: (appl_id => 101,

Line 546: if not FA_CACHE_PKG.fazcrsob

542: end if;
543:
544:
545: -- call the sob cache to get the table of sob_ids
546: if not FA_CACHE_PKG.fazcrsob
547: (x_book_type_code => px_asset_hdr_rec.book_type_code,
548: x_sob_tbl => l_sob_tbl, p_log_level_rec => p_log_level_rec) then
549: raise unp_err;
550: end if;

Line 572: if NOT fa_cache_pkg.fazcbcs(X_book => px_asset_hdr_rec.book_type_code,

568:
569:
570: -- call the cache to set the sob_id used for rounding and other lower
571: -- level code for each book.
572: if NOT fa_cache_pkg.fazcbcs(X_book => px_asset_hdr_rec.book_type_code,
573: X_set_of_books_id => l_asset_hdr_rec.set_of_books_id,
574: p_log_level_rec => p_log_level_rec) then
575: raise unp_err;
576: end if;

Line 701: fa_cache_pkg.fazcdrd_record.rule_name = 'ENERGY PERIOD END BALANCE')) then

697: -- basis rule is ENERGY PERIOD END BALANCE'.
698: -- if (px_trans_rec.calling_interface <> 'FAXASSET') then
699:
700: if (not (px_trans_rec.calling_interface = 'FAXASSET' and
701: fa_cache_pkg.fazcdrd_record.rule_name = 'ENERGY PERIOD END BALANCE')) then
702:
703: -- Calcualte Group Assets to which the processed member asset belongs
704: -- This is only when the Tracking Method is ALLOCATE.
705:

Line 716: if not fa_cache_pkg.fazccmt (l_asset_fin_rec.deprn_method_code,l_asset_fin_rec.life_in_months, p_log_level_rec => p_log_level_rec) then

712:
713: if l_asset_fin_rec.group_asset_id is null and
714: nvl(l_asset_fin_rec.tracking_method,'OTHER') = 'ALLOCATE' then
715:
716: if not fa_cache_pkg.fazccmt (l_asset_fin_rec.deprn_method_code,l_asset_fin_rec.life_in_months, p_log_level_rec => p_log_level_rec) then
717: fa_srvr_msg.add_message (calling_fn => l_calling_fn, p_log_level_rec => p_log_level_rec);
718: raise unp_err;
719: end if;
720:

Line 727: P_group_deprn_basis => fa_cache_pkg.fazccmt_record.deprn_basis_rule,

723: (P_book_type_code => px_asset_hdr_rec.book_type_code,
724: P_group_asset_id => px_asset_hdr_rec.asset_id,
725: P_period_counter => l_period_rec.period_num,
726: P_fiscal_year => l_period_rec.fiscal_year,
727: P_group_deprn_basis => fa_cache_pkg.fazccmt_record.deprn_basis_rule,
728: P_group_exclude_salvage => fa_cache_pkg.fazccmt_record.exclude_salvage_value_flag,
729: P_group_bonus_rule => l_asset_fin_rec.bonus_rule,
730: P_group_deprn_amount => l_unplanned_deprn_rec.unplanned_amount,
731: P_group_bonus_amount => 0,

Line 728: P_group_exclude_salvage => fa_cache_pkg.fazccmt_record.exclude_salvage_value_flag,

724: P_group_asset_id => px_asset_hdr_rec.asset_id,
725: P_period_counter => l_period_rec.period_num,
726: P_fiscal_year => l_period_rec.fiscal_year,
727: P_group_deprn_basis => fa_cache_pkg.fazccmt_record.deprn_basis_rule,
728: P_group_exclude_salvage => fa_cache_pkg.fazccmt_record.exclude_salvage_value_flag,
729: P_group_bonus_rule => l_asset_fin_rec.bonus_rule,
730: P_group_deprn_amount => l_unplanned_deprn_rec.unplanned_amount,
731: P_group_bonus_amount => 0,
732: P_tracking_method => l_asset_fin_rec.tracking_method,