DBA Data[Home] [Help]

APPS.IGI_IAC_WEBADI_PKG dependencies on IGI_IAC_UPLOAD_HEADERS

Line 13: cp_file_name IN igi_iac_upload_headers.file_name%type) Is

9: l_error_level number:=FND_LOG.LEVEL_ERROR;
10: l_unexp_level number:=FND_LOG.LEVEL_UNEXPECTED;
11:
12: Cursor C_File_Transferred(
13: cp_file_name IN igi_iac_upload_headers.file_name%type) Is
14: Select 'X'
15: From igi_iac_upload_headers
16: Where file_name = cp_file_name
17: and status_flag = 'T';

Line 15: From igi_iac_upload_headers

11:
12: Cursor C_File_Transferred(
13: cp_file_name IN igi_iac_upload_headers.file_name%type) Is
14: Select 'X'
15: From igi_iac_upload_headers
16: Where file_name = cp_file_name
17: and status_flag = 'T';
18:
19: Cursor C_Asset_Exists(cp_file_name IN igi_iac_upload_headers.file_name%type,

Line 19: Cursor C_Asset_Exists(cp_file_name IN igi_iac_upload_headers.file_name%type,

15: From igi_iac_upload_headers
16: Where file_name = cp_file_name
17: and status_flag = 'T';
18:
19: Cursor C_Asset_Exists(cp_file_name IN igi_iac_upload_headers.file_name%type,
20: cp_asset_number IN fa_additions.asset_number%type) Is
21: Select hd.Book_Type_Code,
22: hd.Period_Counter,
23: hd.Currency_Code,

Line 40: From igi_iac_upload_headers hd,

36: ln.Percentage_Diff,
37: ln.Amount_Diff,
38: ln.Exception_Message,
39: ln.Comments
40: From igi_iac_upload_headers hd,
41: igi_iac_upload_lines ln,
42: fa_additions fa
43: Where fa.asset_number = cp_asset_number
44: and hd.file_name = cp_file_name

Line 48: Cursor C_Excpt_Asset(cp_file_name IN igi_iac_upload_headers.file_name%type,

44: and hd.file_name = cp_file_name
45: and ln.file_name = hd.file_name
46: and ln.asset_id = fa.asset_id;
47:
48: Cursor C_Excpt_Asset(cp_file_name IN igi_iac_upload_headers.file_name%type,
49: cp_asset_number IN fa_additions.asset_number%type,
50: cp_line_num IN igi_iac_upload_lines.line_num%type) Is
51: Select hd.Book_Type_Code,
52: hd.Period_Counter,

Line 70: From igi_iac_upload_headers hd,

66: ln.Percentage_Diff,
67: ln.Amount_Diff,
68: ln.Exception_Message,
69: ln.Comments
70: From igi_iac_upload_headers hd,
71: igi_iac_upload_lines ln,
72: fa_additions fa
73: Where fa.asset_number = cp_asset_number
74: and hd.file_name = cp_file_name

Line 81: cp_book_type_code in igi_iac_upload_headers.book_type_code%type,

77: and ln.line_num = cp_line_num;
78:
79: -- Bug 3413035 Start
80: Cursor C_Full_Ret_Counter(
81: cp_book_type_code in igi_iac_upload_headers.book_type_code%type,
82: cp_asset_id in fa_books.asset_id%type) Is
83: Select bk.period_counter_fully_retired
84: From fa_books bk
85: Where bk.book_type_code = cp_book_type_code

Line 107: p_book_type_code IN igi_iac_upload_headers.book_type_code%type,

103: End;
104: */
105: Function Last_Period_Counter(
106: p_asset_id IN fa_books.asset_id%type,
107: p_book_type_code IN igi_iac_upload_headers.book_type_code%type,
108: p_dpis_period_counter IN number,
109: p_last_period_counter OUT NOCOPY number) Return Boolean Is
110: l_calendar_type varchar2(40);
111: l_number_per_fiscal_year number;

Line 134: p_file_name IN igi_iac_upload_headers.file_name%type,

130: End;
131:
132: Procedure Assign_Values_To_Rec(
133: p_upload_record IN out nocopy upload_record,
134: p_file_name IN igi_iac_upload_headers.file_name%type,
135: p_asset_number IN fa_additions.asset_number%type) Is
136: Begin
137: For C_Asset_Exists_Rec in C_Asset_Exists(p_file_Name, p_asset_number) Loop
138: p_upload_record.File_Name := p_file_name;

Line 161: Procedure Delete_Line(p_file_name IN igi_iac_upload_headers.file_name%type,

157: p_upload_record.Comments := C_Asset_Exists_Rec.Comments;
158: End Loop;
159: End;
160:
161: Procedure Delete_Line(p_file_name IN igi_iac_upload_headers.file_name%type,
162: p_asset_id IN igi_iac_upload_lines.asset_id%type,
163: p_line_num IN igi_iac_upload_lines.line_num%type) Is
164: Begin
165: Delete from igi_iac_upload_lines

Line 173: Insert into igi_iac_upload_headers(

169: End;
170:
171: Procedure Insert_Header(p_upload_record IN upload_record) Is
172: Begin
173: Insert into igi_iac_upload_headers(
174: File_Name,
175: Book_Type_Code,
176: Period_Counter,
177: Currency_Code,

Line 247: Update igi_iac_upload_headers set

243: End Insert_Line;
244:
245: Procedure Update_Header(p_upload_record IN upload_record) Is
246: Begin
247: Update igi_iac_upload_headers set
248: Tolerance_Flag = p_upload_record.tolerance_flag,
249: Tolerance_Amount = p_upload_record.tolerance_amount,
250: Tolerance_Percent = p_upload_record.tolerance_percent,
251: Revaluation_Id = p_upload_record.revaluation_id,

Line 260: cp_book_type_code IN igi_iac_upload_headers.book_type_code%type,

256: End Update_Header;
257:
258: Procedure Gross_Up(p_upload_record IN OUT nocopy upload_record) Is
259: Cursor C_Dpis(
260: cp_book_type_code IN igi_iac_upload_headers.book_type_code%type,
261: cp_asset_id IN igi_iac_upload_lines.asset_id%type) Is
262: Select date_placed_in_service, life_in_months
263: From fa_books
264: Where book_type_code = cp_book_type_code

Line 304: p_book_type_code IN igi_iac_upload_headers.book_type_code%type,

300: End Gross_Up;
301:
302: Procedure Update_Duplicate_Assets(
303: p_file_name IN igi_iac_upload_lines.file_name%type,
304: p_book_type_code IN igi_iac_upload_headers.book_type_code%type,
305: p_period_counter IN igi_iac_upload_headers.period_counter%type,
306: p_asset_id IN igi_iac_upload_lines.asset_id%type,
307: p_line_num IN igi_iac_upload_lines.line_num%type,
308: p_message IN igi_iac_upload_lines.exception_message%type) Is

Line 305: p_period_counter IN igi_iac_upload_headers.period_counter%type,

301:
302: Procedure Update_Duplicate_Assets(
303: p_file_name IN igi_iac_upload_lines.file_name%type,
304: p_book_type_code IN igi_iac_upload_headers.book_type_code%type,
305: p_period_counter IN igi_iac_upload_headers.period_counter%type,
306: p_asset_id IN igi_iac_upload_lines.asset_id%type,
307: p_line_num IN igi_iac_upload_lines.line_num%type,
308: p_message IN igi_iac_upload_lines.exception_message%type) Is
309: Cursor C_Dup_Asset_Info(

Line 320: cp_book_type_code IN igi_iac_upload_headers.book_type_code%type,

316: and asset_id = cp_asset_id
317: and line_num <> cp_line_num;
318:
319: Cursor C_Dpis(
320: cp_book_type_code IN igi_iac_upload_headers.book_type_code%type,
321: cp_asset_id IN igi_iac_upload_lines.asset_id%type) Is
322: Select date_placed_in_service, life_in_months
323: From fa_books
324: Where book_type_code = cp_book_type_code

Line 433: Cursor C_Dup_Assets(cp_file_name IN igi_iac_upload_headers.file_name%type,

429: End Check_Tolerances;
430:
431: Procedure Check_Exceptions(p_upload_record IN OUT nocopy upload_record)Is
432:
433: Cursor C_Dup_Assets(cp_file_name IN igi_iac_upload_headers.file_name%type,
434: cp_asset_id IN igi_iac_upload_lines.asset_id%type) Is
435: Select count(*)
436: From igi_iac_upload_lines
437: Where file_name = cp_file_name

Line 441: cp_book_type_code in igi_iac_upload_headers.book_type_code%type,

437: Where file_name = cp_file_name
438: and asset_id = cp_asset_id;
439:
440: Cursor C_Valid_Iac_Cat(
441: cp_book_type_code in igi_iac_upload_headers.book_type_code%type,
442: cp_category_id in igi_iac_upload_lines.category_id%type) Is
443: Select allow_prof_reval_flag
444: From igi_iac_category_books
445: Where book_type_code = cp_book_type_code

Line 449: cp_book_type_code in igi_iac_upload_headers.book_type_code%type) Is

445: Where book_type_code = cp_book_type_code
446: and category_id = cp_category_id;
447:
448: Cursor C_Max_Period_counter(
449: cp_book_type_code in igi_iac_upload_headers.book_type_code%type) Is
450: Select max(period_counter)
451: From fa_deprn_summary
452: Where book_type_code = cp_book_type_code;
453:

Line 455: cp_book_type_code in igi_iac_upload_headers.book_type_code%type) Is

451: From fa_deprn_summary
452: Where book_type_code = cp_book_type_code;
453:
454: Cursor C_Last_Closed_Period(
455: cp_book_type_code in igi_iac_upload_headers.book_type_code%type) Is
456: Select last_period_counter
457: From fa_book_controls
458: Where book_type_code = cp_book_type_code;
459:

Line 585: p_file_name IN igi_iac_upload_headers.file_name%type) Is

581: and line_num = p_upload_record.line_num;
582: End Update_Line;
583:
584: Procedure Update_Header_Status(
585: p_file_name IN igi_iac_upload_headers.file_name%type) Is
586: Cursor C_Lines(cp_file_name IN igi_iac_upload_headers.file_name%type) Is
587: Select count(*) line_cnt
588: From igi_iac_upload_lines
589: Where file_name = cp_file_name;

Line 586: Cursor C_Lines(cp_file_name IN igi_iac_upload_headers.file_name%type) Is

582: End Update_Line;
583:
584: Procedure Update_Header_Status(
585: p_file_name IN igi_iac_upload_headers.file_name%type) Is
586: Cursor C_Lines(cp_file_name IN igi_iac_upload_headers.file_name%type) Is
587: Select count(*) line_cnt
588: From igi_iac_upload_lines
589: Where file_name = cp_file_name;
590:

Line 591: Cursor C_Errors(cp_file_name IN igi_iac_upload_headers.file_name%type,

587: Select count(*) line_cnt
588: From igi_iac_upload_lines
589: Where file_name = cp_file_name;
590:
591: Cursor C_Errors(cp_file_name IN igi_iac_upload_headers.file_name%type,
592: cp_status_flag IN varchar2) Is
593: Select count(*) exp_cnt
594: From igi_iac_upload_lines
595: Where file_name = cp_file_name

Line 604: Delete from igi_iac_upload_headers where file_name = p_file_name;

600: Open C_Lines(p_file_name);
601: Fetch C_Lines into l_lines;
602: Close C_Lines;
603: If l_lines = 0 Then
604: Delete from igi_iac_upload_headers where file_name = p_file_name;
605: Else
606: Open C_Errors(p_file_name, 'E');
607: Fetch C_Errors into l_errors;
608: Close C_Errors;

Line 610: Update igi_iac_upload_headers

606: Open C_Errors(p_file_name, 'E');
607: Fetch C_Errors into l_errors;
608: Close C_Errors;
609: If l_errors > 0 Then
610: Update igi_iac_upload_headers
611: Set status_flag = 'E'
612: Where file_name = p_file_name;
613: Else
614: l_errors := 0;

Line 619: Update igi_iac_upload_headers

615: Open C_Errors(p_file_name, 'L');
616: Fetch C_Errors into l_errors;
617: Close C_Errors;
618: If l_errors > 0 Then
619: Update igi_iac_upload_headers
620: Set status_flag = 'L'
621: Where file_name = p_file_name;
622: Else
623: Update igi_iac_upload_headers

Line 623: Update igi_iac_upload_headers

619: Update igi_iac_upload_headers
620: Set status_flag = 'L'
621: Where file_name = p_file_name;
622: Else
623: Update igi_iac_upload_headers
624: Set status_flag = 'A'
625: Where file_name = p_file_name;
626: End If;
627: End If;

Line 641: p_file_name IN igi_iac_upload_headers.file_name%type,

637: Raise;
638: End Update_Header_Status;
639:
640: Procedure Final_Dup_Asset_Check(
641: p_file_name IN igi_iac_upload_headers.file_name%type,
642: p_asset_id IN igi_iac_upload_lines.asset_id%type,
643: p_line_num IN igi_iac_upload_lines.line_num%type,
644: p_asset_number IN fa_additions.asset_number%type) Is
645: Cursor C_Dup_Count(cp_file_name IN igi_iac_upload_headers.file_name%type,

Line 645: Cursor C_Dup_Count(cp_file_name IN igi_iac_upload_headers.file_name%type,

641: p_file_name IN igi_iac_upload_headers.file_name%type,
642: p_asset_id IN igi_iac_upload_lines.asset_id%type,
643: p_line_num IN igi_iac_upload_lines.line_num%type,
644: p_asset_number IN fa_additions.asset_number%type) Is
645: Cursor C_Dup_Count(cp_file_name IN igi_iac_upload_headers.file_name%type,
646: cp_asset_id IN igi_iac_upload_lines.asset_id%type,
647: cp_line_num IN igi_iac_upload_lines.line_num%type) Is
648: Select count(*)
649: From igi_iac_upload_lines

Line 689: P_File_Name IN igi_iac_upload_headers.file_name%type,

685: Raise;
686: End Final_Dup_Asset_Check;
687:
688: Procedure New_File(
689: P_File_Name IN igi_iac_upload_headers.file_name%type,
690: P_Book_Type_Code IN igi_iac_upload_headers.book_type_code%type,
691: P_Tolerance_Flag IN igi_iac_upload_headers.tolerance_flag%type,
692: P_Tolerance_Amount IN igi_iac_upload_headers.tolerance_amount%type,
693: P_Tolerance_Percent IN igi_iac_upload_headers.tolerance_percent%type,

Line 690: P_Book_Type_Code IN igi_iac_upload_headers.book_type_code%type,

686: End Final_Dup_Asset_Check;
687:
688: Procedure New_File(
689: P_File_Name IN igi_iac_upload_headers.file_name%type,
690: P_Book_Type_Code IN igi_iac_upload_headers.book_type_code%type,
691: P_Tolerance_Flag IN igi_iac_upload_headers.tolerance_flag%type,
692: P_Tolerance_Amount IN igi_iac_upload_headers.tolerance_amount%type,
693: P_Tolerance_Percent IN igi_iac_upload_headers.tolerance_percent%type,
694: P_Asset_Number IN fa_additions.asset_number%type,

Line 691: P_Tolerance_Flag IN igi_iac_upload_headers.tolerance_flag%type,

687:
688: Procedure New_File(
689: P_File_Name IN igi_iac_upload_headers.file_name%type,
690: P_Book_Type_Code IN igi_iac_upload_headers.book_type_code%type,
691: P_Tolerance_Flag IN igi_iac_upload_headers.tolerance_flag%type,
692: P_Tolerance_Amount IN igi_iac_upload_headers.tolerance_amount%type,
693: P_Tolerance_Percent IN igi_iac_upload_headers.tolerance_percent%type,
694: P_Asset_Number IN fa_additions.asset_number%type,
695: P_New_Cost IN igi_iac_upload_lines.new_cost%type,

Line 692: P_Tolerance_Amount IN igi_iac_upload_headers.tolerance_amount%type,

688: Procedure New_File(
689: P_File_Name IN igi_iac_upload_headers.file_name%type,
690: P_Book_Type_Code IN igi_iac_upload_headers.book_type_code%type,
691: P_Tolerance_Flag IN igi_iac_upload_headers.tolerance_flag%type,
692: P_Tolerance_Amount IN igi_iac_upload_headers.tolerance_amount%type,
693: P_Tolerance_Percent IN igi_iac_upload_headers.tolerance_percent%type,
694: P_Asset_Number IN fa_additions.asset_number%type,
695: P_New_Cost IN igi_iac_upload_lines.new_cost%type,
696: P_Gross_Flag IN igi_iac_upload_lines.gross_flag%type) Is

Line 693: P_Tolerance_Percent IN igi_iac_upload_headers.tolerance_percent%type,

689: P_File_Name IN igi_iac_upload_headers.file_name%type,
690: P_Book_Type_Code IN igi_iac_upload_headers.book_type_code%type,
691: P_Tolerance_Flag IN igi_iac_upload_headers.tolerance_flag%type,
692: P_Tolerance_Amount IN igi_iac_upload_headers.tolerance_amount%type,
693: P_Tolerance_Percent IN igi_iac_upload_headers.tolerance_percent%type,
694: P_Asset_Number IN fa_additions.asset_number%type,
695: P_New_Cost IN igi_iac_upload_lines.new_cost%type,
696: P_Gross_Flag IN igi_iac_upload_lines.gross_flag%type) Is
697:

Line 699: cp_book_type_code in igi_iac_upload_headers.book_type_code%type) Is

695: P_New_Cost IN igi_iac_upload_lines.new_cost%type,
696: P_Gross_Flag IN igi_iac_upload_lines.gross_flag%type) Is
697:
698: Cursor C_Book_Defaults(
699: cp_book_type_code in igi_iac_upload_headers.book_type_code%type) Is
700: Select fa.last_period_counter, gl.currency_code
701: From fa_book_controls fa, gl_sets_of_books gl
702: Where book_type_code = cp_book_type_code
703: and gl.set_of_books_id = fa.set_of_books_id;

Line 706: cp_book_type_code in igi_iac_upload_headers.book_type_code%type,

702: Where book_type_code = cp_book_type_code
703: and gl.set_of_books_id = fa.set_of_books_id;
704:
705: Cursor C_Asset_Details(
706: cp_book_type_code in igi_iac_upload_headers.book_type_code%type,
707: cp_asset_number in fa_additions.asset_number%type) Is
708: Select bk.cost,
709: bk.period_counter_fully_retired,
710: ad.asset_id,

Line 719: cp_book_type_code in igi_iac_upload_headers.book_type_code%type,

715: and ad.asset_id = bk.asset_id
716: and ad.asset_number = cp_asset_number;
717:
718: Cursor C_Get_Adjustments(
719: cp_book_type_code in igi_iac_upload_headers.book_type_code%type,
720: cp_asset_id in igi_iac_upload_lines.asset_id%type,
721: cp_period_counter in igi_iac_upload_headers.period_counter%type) Is
722: Select nvl(adjusted_cost,0)adjusted_cost
723: From igi_iac_asset_balances

Line 721: cp_period_counter in igi_iac_upload_headers.period_counter%type) Is

717:
718: Cursor C_Get_Adjustments(
719: cp_book_type_code in igi_iac_upload_headers.book_type_code%type,
720: cp_asset_id in igi_iac_upload_lines.asset_id%type,
721: cp_period_counter in igi_iac_upload_headers.period_counter%type) Is
722: Select nvl(adjusted_cost,0)adjusted_cost
723: From igi_iac_asset_balances
724: Where book_type_code = cp_book_type_code
725: and asset_id = cp_asset_id

Line 732: cp_file_name in igi_iac_upload_headers.status_flag%type) Is

728: where book_type_code = cp_book_type_code
729: and asset_id = cp_asset_id); -- Bug 8484461
730:
731: Cursor C_File_Status(
732: cp_file_name in igi_iac_upload_headers.status_flag%type) Is
733: Select status_flag, period_counter, currency_code
734: From igi_iac_upload_headers
735: Where file_name = cp_file_name;
736:

Line 734: From igi_iac_upload_headers

730:
731: Cursor C_File_Status(
732: cp_file_name in igi_iac_upload_headers.status_flag%type) Is
733: Select status_flag, period_counter, currency_code
734: From igi_iac_upload_headers
735: Where file_name = cp_file_name;
736:
737: Cursor C_Line_Num(
738: cp_file_name in igi_iac_upload_headers.file_name%type) Is

Line 738: cp_file_name in igi_iac_upload_headers.file_name%type) Is

734: From igi_iac_upload_headers
735: Where file_name = cp_file_name;
736:
737: Cursor C_Line_Num(
738: cp_file_name in igi_iac_upload_headers.file_name%type) Is
739: Select nvl(max(line_num),0) + 1 Line_Num
740: From igi_iac_upload_lines
741: Where file_name = cp_file_name;
742:

Line 743: l_status_flag igi_iac_upload_headers.status_flag%type;

739: Select nvl(max(line_num),0) + 1 Line_Num
740: From igi_iac_upload_lines
741: Where file_name = cp_file_name;
742:
743: l_status_flag igi_iac_upload_headers.status_flag%type;
744: l_period_counter igi_iac_upload_headers.period_counter%type;
745: l_currency_code igi_iac_upload_headers.currency_code%type;
746: l_upload_record Upload_Record;
747: E_Non_Iac_Book exception;

Line 744: l_period_counter igi_iac_upload_headers.period_counter%type;

740: From igi_iac_upload_lines
741: Where file_name = cp_file_name;
742:
743: l_status_flag igi_iac_upload_headers.status_flag%type;
744: l_period_counter igi_iac_upload_headers.period_counter%type;
745: l_currency_code igi_iac_upload_headers.currency_code%type;
746: l_upload_record Upload_Record;
747: E_Non_Iac_Book exception;
748: E_Igi_Tol_Yes exception;

Line 745: l_currency_code igi_iac_upload_headers.currency_code%type;

741: Where file_name = cp_file_name;
742:
743: l_status_flag igi_iac_upload_headers.status_flag%type;
744: l_period_counter igi_iac_upload_headers.period_counter%type;
745: l_currency_code igi_iac_upload_headers.currency_code%type;
746: l_upload_record Upload_Record;
747: E_Non_Iac_Book exception;
748: E_Igi_Tol_Yes exception;
749: E_Igi_Tol_No exception;

Line 872: P_File_Name IN igi_iac_upload_headers.file_name%type,

868: Fnd_Message.Raise_Error;
869: End New_File;
870:
871: Procedure Tol_Errors(
872: P_File_Name IN igi_iac_upload_headers.file_name%type,
873: P_Book_Type_Code IN igi_iac_upload_headers.book_type_code%type,
874: P_Period IN fa_deprn_periods.period_name%type,
875: P_Currency IN igi_iac_upload_headers.currency_code%type,
876: P_Status IN igi_iac_upload_headers.status_flag%type,

Line 873: P_Book_Type_Code IN igi_iac_upload_headers.book_type_code%type,

869: End New_File;
870:
871: Procedure Tol_Errors(
872: P_File_Name IN igi_iac_upload_headers.file_name%type,
873: P_Book_Type_Code IN igi_iac_upload_headers.book_type_code%type,
874: P_Period IN fa_deprn_periods.period_name%type,
875: P_Currency IN igi_iac_upload_headers.currency_code%type,
876: P_Status IN igi_iac_upload_headers.status_flag%type,
877: P_Hdr_Action IN fnd_lookup_values.lookup_code%type,

Line 875: P_Currency IN igi_iac_upload_headers.currency_code%type,

871: Procedure Tol_Errors(
872: P_File_Name IN igi_iac_upload_headers.file_name%type,
873: P_Book_Type_Code IN igi_iac_upload_headers.book_type_code%type,
874: P_Period IN fa_deprn_periods.period_name%type,
875: P_Currency IN igi_iac_upload_headers.currency_code%type,
876: P_Status IN igi_iac_upload_headers.status_flag%type,
877: P_Hdr_Action IN fnd_lookup_values.lookup_code%type,
878: P_Asset_Number IN fa_additions.asset_number%type,
879: P_Asset_Desc IN fa_additions.description%type,

Line 876: P_Status IN igi_iac_upload_headers.status_flag%type,

872: P_File_Name IN igi_iac_upload_headers.file_name%type,
873: P_Book_Type_Code IN igi_iac_upload_headers.book_type_code%type,
874: P_Period IN fa_deprn_periods.period_name%type,
875: P_Currency IN igi_iac_upload_headers.currency_code%type,
876: P_Status IN igi_iac_upload_headers.status_flag%type,
877: P_Hdr_Action IN fnd_lookup_values.lookup_code%type,
878: P_Asset_Number IN fa_additions.asset_number%type,
879: P_Asset_Desc IN fa_additions.description%type,
880: P_Cat_Desc IN fa_categories.description%type,

Line 976: P_File_Name IN igi_iac_upload_headers.file_name%type,

972: Fnd_Message.Raise_Error;
973: End Tol_Errors;
974:
975: Procedure Excpt_Errors(
976: P_File_Name IN igi_iac_upload_headers.file_name%type,
977: P_Book_Type_Code IN igi_iac_upload_headers.book_type_code%type,
978: P_Period IN fa_deprn_periods.period_name%type,
979: P_Currency IN igi_iac_upload_headers.currency_code%type,
980: P_Status IN igi_iac_upload_headers.status_flag%type,

Line 977: P_Book_Type_Code IN igi_iac_upload_headers.book_type_code%type,

973: End Tol_Errors;
974:
975: Procedure Excpt_Errors(
976: P_File_Name IN igi_iac_upload_headers.file_name%type,
977: P_Book_Type_Code IN igi_iac_upload_headers.book_type_code%type,
978: P_Period IN fa_deprn_periods.period_name%type,
979: P_Currency IN igi_iac_upload_headers.currency_code%type,
980: P_Status IN igi_iac_upload_headers.status_flag%type,
981: P_Hdr_Action IN fnd_lookup_values.lookup_code%type,

Line 979: P_Currency IN igi_iac_upload_headers.currency_code%type,

975: Procedure Excpt_Errors(
976: P_File_Name IN igi_iac_upload_headers.file_name%type,
977: P_Book_Type_Code IN igi_iac_upload_headers.book_type_code%type,
978: P_Period IN fa_deprn_periods.period_name%type,
979: P_Currency IN igi_iac_upload_headers.currency_code%type,
980: P_Status IN igi_iac_upload_headers.status_flag%type,
981: P_Hdr_Action IN fnd_lookup_values.lookup_code%type,
982: P_Asset_Number IN fa_additions.asset_number%type,
983: P_Line_Num IN igi_iac_upload_lines.line_num%type,

Line 980: P_Status IN igi_iac_upload_headers.status_flag%type,

976: P_File_Name IN igi_iac_upload_headers.file_name%type,
977: P_Book_Type_Code IN igi_iac_upload_headers.book_type_code%type,
978: P_Period IN fa_deprn_periods.period_name%type,
979: P_Currency IN igi_iac_upload_headers.currency_code%type,
980: P_Status IN igi_iac_upload_headers.status_flag%type,
981: P_Hdr_Action IN fnd_lookup_values.lookup_code%type,
982: P_Asset_Number IN fa_additions.asset_number%type,
983: P_Line_Num IN igi_iac_upload_lines.line_num%type,
984: P_Asset_Desc IN fa_additions.description%type,

Line 993: l_dummy igi_iac_upload_headers.status_flag%type;

989: -- Bug 3391921 Start
990: P_Gross_Flag IN igi_iac_upload_lines.gross_flag%type) Is
991: -- Bug 3391921 End
992:
993: l_dummy igi_iac_upload_headers.status_flag%type;
994: l_upload_record upload_record;
995: l_upd_line_flag varchar2(1) := 'Y';
996: Begin
997: If not igi_gen.is_req_installed('IAC') Then

Line 1104: P_File_Name IN igi_iac_upload_headers.file_name%type,

1100: Fnd_Message.Raise_Error;
1101: End Excpt_Errors;
1102:
1103: Procedure Valid_Assets(
1104: P_File_Name IN igi_iac_upload_headers.file_name%type,
1105: P_Book_Type_Code IN igi_iac_upload_headers.book_type_code%type,
1106: P_Period IN fa_deprn_periods.period_name%type,
1107: P_Currency IN igi_iac_upload_headers.currency_code%type,
1108: P_Status IN igi_iac_upload_headers.status_flag%type,

Line 1105: P_Book_Type_Code IN igi_iac_upload_headers.book_type_code%type,

1101: End Excpt_Errors;
1102:
1103: Procedure Valid_Assets(
1104: P_File_Name IN igi_iac_upload_headers.file_name%type,
1105: P_Book_Type_Code IN igi_iac_upload_headers.book_type_code%type,
1106: P_Period IN fa_deprn_periods.period_name%type,
1107: P_Currency IN igi_iac_upload_headers.currency_code%type,
1108: P_Status IN igi_iac_upload_headers.status_flag%type,
1109: P_Hdr_Action IN fnd_lookup_values.lookup_code%type,

Line 1107: P_Currency IN igi_iac_upload_headers.currency_code%type,

1103: Procedure Valid_Assets(
1104: P_File_Name IN igi_iac_upload_headers.file_name%type,
1105: P_Book_Type_Code IN igi_iac_upload_headers.book_type_code%type,
1106: P_Period IN fa_deprn_periods.period_name%type,
1107: P_Currency IN igi_iac_upload_headers.currency_code%type,
1108: P_Status IN igi_iac_upload_headers.status_flag%type,
1109: P_Hdr_Action IN fnd_lookup_values.lookup_code%type,
1110: P_Asset_Number IN fa_additions.asset_number%type,
1111: P_Asset_Desc IN fa_additions.description%type,

Line 1108: P_Status IN igi_iac_upload_headers.status_flag%type,

1104: P_File_Name IN igi_iac_upload_headers.file_name%type,
1105: P_Book_Type_Code IN igi_iac_upload_headers.book_type_code%type,
1106: P_Period IN fa_deprn_periods.period_name%type,
1107: P_Currency IN igi_iac_upload_headers.currency_code%type,
1108: P_Status IN igi_iac_upload_headers.status_flag%type,
1109: P_Hdr_Action IN fnd_lookup_values.lookup_code%type,
1110: P_Asset_Number IN fa_additions.asset_number%type,
1111: P_Asset_Desc IN fa_additions.description%type,
1112: P_Cat_Desc IN fa_categories.description%type,

Line 1136: Delete from igi_iac_upload_headers where file_name = p_file_name;

1132: End If;
1133: Close C_File_Transferred;
1134:
1135: If p_hdr_action = 'Y' Then
1136: Delete from igi_iac_upload_headers where file_name = p_file_name;
1137: Delete from igi_iac_upload_lines where file_name = p_file_name;
1138: Else -- N
1139: Assign_Values_To_Rec(l_upload_record, p_file_name, p_asset_number);
1140: -- Bug 3391921 Start

Line 1182: p_file_name IN igi_iac_upload_headers.file_name%type,

1178:
1179: Procedure Transfer_Data(
1180: errbuf OUT NOCOPY varchar2,
1181: retcode OUT NOCOPY number,
1182: p_file_name IN igi_iac_upload_headers.file_name%type,
1183: p_preview_flag IN varchar2) Is
1184:
1185: Cursor C_Upload_Hdr(
1186: cp_file_name in igi_iac_upload_headers.file_name%type) Is

Line 1186: cp_file_name in igi_iac_upload_headers.file_name%type) Is

1182: p_file_name IN igi_iac_upload_headers.file_name%type,
1183: p_preview_flag IN varchar2) Is
1184:
1185: Cursor C_Upload_Hdr(
1186: cp_file_name in igi_iac_upload_headers.file_name%type) Is
1187: Select * from igi_iac_upload_headers
1188: Where file_name = cp_file_name;
1189:
1190: Cursor C_Upload_Lines(

Line 1187: Select * from igi_iac_upload_headers

1183: p_preview_flag IN varchar2) Is
1184:
1185: Cursor C_Upload_Hdr(
1186: cp_file_name in igi_iac_upload_headers.file_name%type) Is
1187: Select * from igi_iac_upload_headers
1188: Where file_name = cp_file_name;
1189:
1190: Cursor C_Upload_Lines(
1191: cp_file_name in igi_iac_upload_headers.file_name%type) Is

Line 1191: cp_file_name in igi_iac_upload_headers.file_name%type) Is

1187: Select * from igi_iac_upload_headers
1188: Where file_name = cp_file_name;
1189:
1190: Cursor C_Upload_Lines(
1191: cp_file_name in igi_iac_upload_headers.file_name%type) Is
1192: Select * from igi_iac_upload_lines
1193: Where file_name = cp_file_name;
1194:
1195: Cursor C_Categories(

Line 1196: cp_file_name in igi_iac_upload_headers.file_name%type) Is

1192: Select * from igi_iac_upload_lines
1193: Where file_name = cp_file_name;
1194:
1195: Cursor C_Categories(
1196: cp_file_name in igi_iac_upload_headers.file_name%type) Is
1197: Select distinct category_id from igi_iac_upload_lines
1198: where file_name = cp_file_name;
1199:
1200: Cursor C_Max_Period_counter(

Line 1201: cp_book_type_code in igi_iac_upload_headers.book_type_code%type) Is

1197: Select distinct category_id from igi_iac_upload_lines
1198: where file_name = cp_file_name;
1199:
1200: Cursor C_Max_Period_counter(
1201: cp_book_type_code in igi_iac_upload_headers.book_type_code%type) Is
1202: Select max(period_counter) max_period_counter
1203: From fa_deprn_summary
1204: Where book_type_code = cp_book_type_code;
1205:

Line 1207: cp_book_type_code in igi_iac_upload_headers.book_type_code%type) Is

1203: From fa_deprn_summary
1204: Where book_type_code = cp_book_type_code;
1205:
1206: Cursor C_Last_Closed_Period(
1207: cp_book_type_code in igi_iac_upload_headers.book_type_code%type) Is
1208: Select last_period_counter
1209: From fa_book_controls
1210: Where book_type_code = cp_book_type_code;
1211:

Line 1213: CURSOR c_preview_exists(cp_book_type_code igi_iac_upload_headers.book_type_code%TYPE)

1209: From fa_book_controls
1210: Where book_type_code = cp_book_type_code;
1211:
1212: -- bug 3443410, start 1
1213: CURSOR c_preview_exists(cp_book_type_code igi_iac_upload_headers.book_type_code%TYPE)
1214: IS
1215: SELECT irar.asset_id,
1216: fa.asset_number,
1217: irar.selected_for_reval_flag,

Line 1238: CURSOR C_FA_Asset_Cost(cp_book_type_code IN igi_iac_upload_headers.book_type_code%TYPE,

1234: -- bug 3443410, end 1
1235:
1236: -- bug 3536362, start 1
1237: -- cursor to retrieve the historic portion of the cost of an asset
1238: CURSOR C_FA_Asset_Cost(cp_book_type_code IN igi_iac_upload_headers.book_type_code%TYPE,
1239: cp_asset_id IN fa_additions.asset_id%TYPE
1240: )
1241: IS
1242: SELECT bk.cost

Line 1251: CURSOR C_IAC_Asset_Cost(cp_book_type_code IN igi_iac_upload_headers.book_type_code%TYPE,

1247: AND ad.asset_id = bk.asset_id
1248: AND ad.asset_id = cp_asset_id;
1249:
1250: -- cursor to retrieve the iac portion of the cost of an asset
1251: CURSOR C_IAC_Asset_Cost(cp_book_type_code IN igi_iac_upload_headers.book_type_code%TYPE,
1252: cp_asset_id IN igi_iac_upload_lines.asset_id%TYPE,
1253: cp_period_counter IN igi_iac_upload_headers.period_counter%TYPE
1254: )
1255: IS

Line 1253: cp_period_counter IN igi_iac_upload_headers.period_counter%TYPE

1249:
1250: -- cursor to retrieve the iac portion of the cost of an asset
1251: CURSOR C_IAC_Asset_Cost(cp_book_type_code IN igi_iac_upload_headers.book_type_code%TYPE,
1252: cp_asset_id IN igi_iac_upload_lines.asset_id%TYPE,
1253: cp_period_counter IN igi_iac_upload_headers.period_counter%TYPE
1254: )
1255: IS
1256: SELECT nvl(adjusted_cost,0) adjusted_cost
1257: FROM igi_iac_asset_balances

Line 1476: Update igi_iac_upload_headers

1472: l_asset_count := l_asset_count + 1;
1473: End If;
1474: End Loop ;
1475:
1476: Update igi_iac_upload_headers
1477: Set status_flag = 'T', revaluation_id = l_reval_id
1478: Where file_name = p_file_name;
1479:
1480: If sql%notfound then