DBA Data[Home] [Help]

APPS.PER_PAR_BUS dependencies on DBMS_SQL

Line 649: l_sql_cursor := dbms_sql.open_cursor; -- Step 1

645: -- 4. Define dynamic sql columns
646: -- 5. Execute and fetch dynamic sql
647: --
648: hr_Utility.Set_Location(l_proc, 6);
649: l_sql_cursor := dbms_sql.open_cursor; -- Step 1
650: --
651: hr_Utility.Set_Location(l_proc, 10);
652: dbms_sql.parse(l_sql_cursor, l_dynamic_sql, dbms_sql.v7); -- Step 2
653: --

Line 652: dbms_sql.parse(l_sql_cursor, l_dynamic_sql, dbms_sql.v7); -- Step 2

648: hr_Utility.Set_Location(l_proc, 6);
649: l_sql_cursor := dbms_sql.open_cursor; -- Step 1
650: --
651: hr_Utility.Set_Location(l_proc, 10);
652: dbms_sql.parse(l_sql_cursor, l_dynamic_sql, dbms_sql.v7); -- Step 2
653: --
654: hr_Utility.Set_Location(l_proc, 15);
655: dbms_sql.bind_variable(l_sql_cursor, -- Step 3
656: ':p_participation_in_id', p_participation_in_id);

Line 655: dbms_sql.bind_variable(l_sql_cursor, -- Step 3

651: hr_Utility.Set_Location(l_proc, 10);
652: dbms_sql.parse(l_sql_cursor, l_dynamic_sql, dbms_sql.v7); -- Step 2
653: --
654: hr_Utility.Set_Location(l_proc, 15);
655: dbms_sql.bind_variable(l_sql_cursor, -- Step 3
656: ':p_participation_in_id', p_participation_in_id);
657: --
658: hr_Utility.Set_Location(l_proc, 20);
659: dbms_sql.define_column(l_sql_cursor, 1, p_business_group_id); -- Step 4

Line 659: dbms_sql.define_column(l_sql_cursor, 1, p_business_group_id); -- Step 4

655: dbms_sql.bind_variable(l_sql_cursor, -- Step 3
656: ':p_participation_in_id', p_participation_in_id);
657: --
658: hr_Utility.Set_Location(l_proc, 20);
659: dbms_sql.define_column(l_sql_cursor, 1, p_business_group_id); -- Step 4
660: --
661: hr_Utility.Set_Location(l_proc, 30);
662: l_rows := dbms_sql.execute_and_fetch(l_sql_cursor, false); -- Step 5
663: If (l_rows = 0 ) then

Line 662: l_rows := dbms_sql.execute_and_fetch(l_sql_cursor, false); -- Step 5

658: hr_Utility.Set_Location(l_proc, 20);
659: dbms_sql.define_column(l_sql_cursor, 1, p_business_group_id); -- Step 4
660: --
661: hr_Utility.Set_Location(l_proc, 30);
662: l_rows := dbms_sql.execute_and_fetch(l_sql_cursor, false); -- Step 5
663: If (l_rows = 0 ) then
664: -- if no rows are returned that means the id does not exist
665: -- hence error
666: dbms_sql.close_cursor(l_sql_cursor);

Line 666: dbms_sql.close_cursor(l_sql_cursor);

662: l_rows := dbms_sql.execute_and_fetch(l_sql_cursor, false); -- Step 5
663: If (l_rows = 0 ) then
664: -- if no rows are returned that means the id does not exist
665: -- hence error
666: dbms_sql.close_cursor(l_sql_cursor);
667: hr_Utility.set_Location(l_proc, 35);
668: hr_utility.set_message(801,'HR_52069_PAR_INVALID_COLUMN_ID');
669: hr_utility.raise_error;
670: Else

Line 676: dbms_sql.column_value(l_sql_cursor, 1, l_business_group_id);

672: --
673: -- Get the column values and close the cursor
674: --
675: hr_Utility.set_Location(l_proc, 40);
676: dbms_sql.column_value(l_sql_cursor, 1, l_business_group_id);
677: dbms_sql.close_cursor(l_sql_cursor);
678:
679: -- bug 1980440 fix starts
680: -- do the validation if Cross Business Group profile is not enabled

Line 677: dbms_sql.close_cursor(l_sql_cursor);

673: -- Get the column values and close the cursor
674: --
675: hr_Utility.set_Location(l_proc, 40);
676: dbms_sql.column_value(l_sql_cursor, 1, l_business_group_id);
677: dbms_sql.close_cursor(l_sql_cursor);
678:
679: -- bug 1980440 fix starts
680: -- do the validation if Cross Business Group profile is not enabled
681: lv_cross_business_group := fnd_profile.value('HR_CROSS_BUSINESS_GROUP');

Line 710: If (dbms_sql.is_open(l_sql_cursor)) then

706: end if;
707:
708: When Others Then
709: Hr_Utility.Set_Location(l_proc, 50);
710: If (dbms_sql.is_open(l_sql_cursor)) then
711: hr_utility.Set_Location(l_proc, 55);
712: dbms_sql.close_cursor(l_sql_cursor);
713: End If;
714: Raise;

Line 712: dbms_sql.close_cursor(l_sql_cursor);

708: When Others Then
709: Hr_Utility.Set_Location(l_proc, 50);
710: If (dbms_sql.is_open(l_sql_cursor)) then
711: hr_utility.Set_Location(l_proc, 55);
712: dbms_sql.close_cursor(l_sql_cursor);
713: End If;
714: Raise;
715: --
716: hr_utility.set_location(l_proc, 55);