Dml_data_target_type with procedures

when i have a datablock based on a stored procedure and i want to see what the type is of the block(dml_data_target_type) then i get the value NONE.
code:
get_block_property(block_id,dml_data_target_type) => NONE
but should be procedure
what is the problem?

did you set that property at design time? you suppose to do so if you have dml procedures on that block.

Similar Messages

  • Problem with procedure in package

    Problem with procedure in package:
    create table accounts
    (acno number(10),
    name varchar2(20),
    balance number(10,2));
    create package banking is
    procedure new_acct(acno NUMBER, name IN VARCHAR);
    procedure acct_dep(acno IN NUMBER, amount IN NUMBER);
    procedure acc_wdr(acno IN NUMBER, amount IN NUMBER);
    procedure acc_bal(acno IN NUMBER, bal OUT NUMBER);
    function acc_drwn(acno IN NUMBER) RETURN BOOLEAN;
    end banking;
    create or replace package body banking is
    procedure new_acct ( acno IN number,
    name IN varchar) is
    begin
    insert into accounts
    (acno, name, balance)
    values
    (acno, name,0);
    end;
    procedure acct_dep(acno IN NUMBER,
    amount IN NUMBER) is
    begin
    update accounts
    set balance = balance + amount
    where acno = acno;
    end;
    procedure acc_wdr(acno IN NUMBER,
    amount IN NUMBER) is
    begin
    update accounts
    set balance = balance - amount
    where acno = acno;
    end;
    procedure acc_bal(acno IN NUMBER,
    bal OUT NUMBER) is
    begin
    declare cursor c_balance(i_acno IN accounts.acno%type) is
    select balance
    from accounts
    where acno = i_acno;
    acc_bal accounts.balance%type;
    begin
    if c_balance%isopen then
    close c_balance;
    end if;
    open c_balance(acno);
    fetch c_balance into acc_bal;
    close c_balance;
    end;
    end;
    function acc_drwn(acno IN NUMBER) RETURN BOOLEAN is
    begin
    declare cursor c_balance(i_acno IN accounts.acno%type) is
    select balance
    from accounts
    where acno = i_acno;
    bal accounts.balance%type;
    begin
    if c_balance%isopen then
    close c_balance;
    end if;
    open c_balance(acno);
    fetch c_balance into bal;
    close c_balance;
    if bal < 0 then
    return true;
    else
    return false;
    end if;
    end;
    end;
    end banking;
    begin
    banking.new_acct(123,'FRANKS');
    end;
    execute banking.acct_dep(123,100);
    execute banking.acc_wdr(123,50);
    Works fine up to this point, however when running the balance check the balance amount is not visible?
    SQL> set serveroutput on
    SQL> begin
    2 declare
    3 bal accounts.balance%type;
    4 begin
    5 banking.acc_bal(123,bal);
    6 dbms_output.put_line('Franks balance is '||bal);
    7 end;
    8 end;
    9 /

    procedure acc_bal(acno IN NUMBER,
       bal OUT NUMBER)
    is
    cursor c_balance(i_acno IN accounts.acno%type) is
       select balance
       from accounts
       where acno = i_acno;
       l_acc_bal accounts.balance%type;
    begin
       open c_balance(acno);
       fetch c_balance into l_acc_bal;
       close c_balance;
       bal := l_acc_bal;
    end;

  • How to create production version & Explain with procedure

    how to create production version & Explain with procedure
    Madan

    Hi Madan,
    Production Versions are used to describe the production process to be used for planned / production order.
    Why is it required?
    Suppose you have 2/3 production lines and 2/3 alternative BOMs to produce one Finished Goods.
    How system will come to know which BOM and Routing to be used. This is done thru Prod.Version.
    In production version we maintain the combination of BOM and routing.
    Also it can be designed with lot size or validity period.
    Go to MM02--->MRP4 / Work scheduling view -
    > Prod.Version.
    Enter the validity period and lot size. and the production version should be unlocked.
    After entering the reqd. routing no. and BOM alternative , carry a check.
    After getting the Green signals ,Continue.
    Thus you have saved the prod. version.
    Mass processing TCode- C223.
    Hope it would clarify you the basic of production version.

  • Settle the QM order with procedure

    Dear all
    How the settle the QM order with procedure  ? and wht prerequisite is required for the same.?
    plz guide me
    thx

    Dear Patil
    Please check the below link and then give your feedback
    Link: [QM order]
    Regards
    Gajesh

  • Automatic batch classification with procedure on goods receipt does not wor

    Hi,
    I have a material with batch classification.
    The material has two characteristics.
    One is a number called VALUE.
    The other is also a number (called CONVERSION) and shall be deived from the first.
    A procedure is created and assigned to the second characteristic.
    $SET_DEFAULT ($SELF, CONVERSION , $SELF.VALUE / 6000)
    When I post a goods receive (movement Type 501) the characteristics can be filled . The field VALUE is set with 12000.
    I was expecting the characteristic CONVERSION to be calculated as '2' and filled by the procedure.
    This is not the case.
    If however, I try to fill it manually, the system accepts only the calculated value '2'. Otherwise an error is shown.
    How can I force the system to calculate and fill the second characteristic when insserting a value in the first ?
    Thanks for any help.

    Hi Marcus,
    i have the same problem with movement type 101.
    How did you solve this issue?
    Can you help me.
    Thank you.
    CM

  • Problem with procedures...

    hi all, I am creating a Times Tables (1 x 1, 3 x 5 etc...).
    I am having trouble with the setting up the procedures. In this case the user must select between 1 - 4.
    1 = multiplication
    2 = divide
    3 = add
    4 = subtract
    I am using If / else statemtents to direct to the appropriate procedure but am having errors as follows:
    .java:67: 'else' without 'if'
    else
    Here is the code I am using up to now:
    class assign2{
         public static void main(String[]args){
              int table;
              int lines;
              int type;
              do
                   System.out.println("Please enter the times tables required (1 - 12)");
                   Keyboard.skipLine();
                   table = Keyboard.readInt();
                   if (table < 1 || table > 12)
                   System.out.print("INVALID ENTRY - Please try again and enter between 1 and 12"); // (C) Error msg if invalid
                   System.out.println();
    }while (table < 1 || table > 12);
    do
         System.out.println("Please enter the number of lines required (1 - 12)");
         Keyboard.skipLine();
         lines = Keyboard.readInt();
                   if (lines < 1 || lines > 12)
                   System.out.print("INVALID ENTRY - Please try again and enter between 1 and 12"); // (C) Error msg if invalid
                   System.out.println();
    }while (lines < 1 || lines > 12);
              do
                   System.out.println("Please select the table type from one of the following (1 - 4): ");
                   System.out.println();
                   System.out.println("1 = Multiplication");
                   System.out.println("2 = Division");
                   System.out.println("3 = Addition");
                   System.out.println("4 = Subtraction");
                   Keyboard.skipLine();
                   type = Keyboard.readInt();
                   if (type != 1 && type != 2 && type != 3 && type != 4)
                   System.out.print("INVALID ENTRY - Please try again and select between 1 and 4 "); // (C) Error msg if invalid
                   System.out.println();
              }while (type != 1 && type != 2 && type != 3 && type != 4);
              if (type == 1)
                   getMultiply();
              else
              if (type == 2)
                   getDivide();
              else
              if (type == 3);
                   getAdd();
              else
              if (type == 4);
                   getSubtract();
              static void getMultiply(){
                   System.out.println("This is mulitply!!!");
              static void getDivide(){
                   System.out.println("This is divide!!!");
              static void getAdd(){
                   System.out.println("This is Add!!!");
              static void getSubtract(){
                   System.out.println("This is Subtract!!!");

    Multi-Post:
    http://forum.java.sun.com/thread.jspa?threadID=5122115&tstart=0

  • How to call a script with procedure parameter

    I have a script my_script.sql in sqlplus and that script calls a procedure with one in parameter my_procedure (my_parameter IN VARCHAR2).
    I need to pass the parameter in the script call.
    sqlplus>@my_script my_parameter
    How can I do that?

    SQL> set serveroutput on
    SQL> create or replace procedure testpass (par1 in varchar2)
      2  is
      3  begin
      4     dbms_output.put_line(par1);
      5* end;
    SQL> get my_script
      1* exec testpass ('&1');
    SQL> @my_script 'This is the parameter'
    This is the parameter
    PL/SQL procedure successfully completed.
    SQL>                                                                                        

  • UsingTKPFOF with procedures

    hello,
    I am trying to track what parameter values are exactly passed to a procedure. When I enabled Trace using dbms_system.set_sql_trace_in_session and analyzing output using TKPROF, it's NOT giving REAL parameters values. Instead, it's giving something like :b1, :b2 etc. can someone advise me how to see the parameter values.
    Thanks
    M:

    What you are looking for is a 10046 event trace with bind variables.
    Another simple option would be to just echo the input variables when you can execute the procedure.

  • Demantra - problem with procedure EP_BUILD_MODEL

    Hi,
    We have installed Demantra 7.3.1 Then create new model with Data Model Wizard. After clicking Build model we got the following error:
    Error - ORA-20001: Error in Procedure REBUILD_DATABASE ORA-1400: can not insert null in (DEAMANTRA.LOC_LEVELS.ENGINE_PROFILES_ID)
    I found out that reason of this problem is procedure Data_Model.rebuild_database
    Statements like this:
    INSERT INTO LOC_LEVELS (loc_level,loc_field_name,loc_field) VALUES (1,'Lowest Location Level',1);
    INSERT INTO LOC_LEVELS (loc_level,loc_field_name,loc_field) VALUES (2,'Highest Fictive Level',0);
    INSERT INTO ITEMS_LEVELS (item_level,item_field_name,item_field) VALUES (1,'Lowest Item Level',2);
    INSERT INTO ITEMS_LEVELS (item_level,item_field_name,item_field) VALUES (2,'Highest Fictive Level',0);
    INSERT INTO FORECAST_TREE (forecast_level,item_level,loc_level) VALUES (1,1,1);
    INSERT INTO FORECAST_TREE (forecast_level,item_level,loc_level) VALUES (2,1,2);
    INSERT INTO FORECAST_TREE (forecast_level,item_level,loc_level) VALUES (3,2,2);
    gives error due to a fact that all this tables (LOC_LEVELS, ITEMS_LEVELS, FORECAST_TREE) has column ENGINE_PROFILES_ID with nullable set to no.

    Hi,
    The problem is solved it was a constraint violation when creating the data model on the location levels.
    Thank you

  • Render text item with procedure call

    I have made several custom item types with custom attributes, and I use a procedure calls to render them in my region.
    For example, the pl/sql call from the item can look like: portal.write_text and I use p_id and p_text as attribute parameters.
    When I render the Text attribute it shows with no new lines (no <p>) although it is written with it in the item wizard.
    How can I render the text attribute exactly as it supposed to be? (with <p>'s)
    /Malin

    Even simpler:
    procedure showTextItem (p_itemid IN INTEGER, p_siteid IN INTEGER, p_language IN VARCHAR2) is
       theText varchar2(32767);
       begin
          select i.text
             into theText
             from portal.wwsbr_all_items i
             where i.id = p_itemid
             and   i.caid = p_siteid
             and   i.is_current_version = 1
             and   i.active = 1
             and    (i.language = p_language
                        or ( exists -- a row for the item in the page group default language            
                              (select pg.id             
                               from  wwsbr_all_content_areas pg             
                               where pg.id = i.caid             
                               and   pg.default_language = i.language             
                             and not exists -- a row for the item in the current language            
                              (select i2.id             
                               from  wwsbr_all_items i2             
                               where i2.id = i.id             
                               and   i2.language = p_language
                               and   i2.is_current_version = 1
                               and   i2.active = 1             
          htp.p(theText);
       exception
          when others then htp.p(sqlerrm);
       end;Note the conditions on language, active status, and current version - you should include these conditions
    whenever you query from wwsbr_all_items.
    Please refer to the content repository view documentation in the PDK.
    Regards,
    Jerry
    PortalPM

  • To compile views with procedures

    I want to compile a list of views with a procedures or functions what can I do ?

    In the future be sure when you post to state version number to three decimal places and the reason for asking the question.
    Had you done so you might have been quickly referred to UTLRP.SQL or the built in package UTL_RECOMP.
    When looking for dependencies ... join with DBA_DEPENDENCIES.

  • Issues with procedures on ODI 11g

    Hello Gurus,
    We have an ODI environment, where we have migrated from ODI 10g to ODI 11g (11.1.1.6) using Upgrade Assistant.
    Issue is that, the Procedures in our migrated packages show executed in Operator (by Green tickmark), but they are actually NOT executing the code. Means we are not able to see Code for the procedure steps, when that step is opened from operator. It does not even show Rows updated or other statistics. It shows 0 for all.
    We do not see any error in ODI studio for those steps. Thats why unable to figure out whats happening.
    Note: There is no issue with the SQL code. Its been tested on SQL Server.
    What could be cause behind this ?
    Please help.
    Thanks,
    Santy

    The issue here is that there is Always Execute option which belongs to each procedure. It must be enabled/checked(need to check manually going through each procedure) in order to have the procedure run after migration to 11g. This was not mandatory in 10g & unfortunately, Upgrade Assistant does not take care on this.
    Regards,
    Santy

  • Record Builtins with Procedure Block?

    Hello,
    My block was created with the Forms 9i Data Block Wizard. It is based on stored procedures. The query method result set is a PL/SQL Table type. The block is tabular and it has a scroll bar.
    EXECUTE_QUERY works fine. It displays all records matching the criteria.
    However...
    I have a button whose BUTTON-PRESSED trigger is supposed to iterate over each record and change the value of a checkbox item. The record Built-Ins below behave as if the current record is the ONLY record in the block!
    FIRST_RECORD
    NEXT_RECORD
    GO_RECORD
    SYSTEM.LAST_RECORD
    So if I have say 5 records displayed in my tabular layout and the cursor is in record 2, then these functions behave as follows.
    FIRST_RECORD - Stays at record 2. You'd think it would go to record 1.
    GO_RECORD(1) - Stays at record 2. You'd think it would go to record 1.
    SYSTE.LAST_RECORD - Returns 'TRUE'. You'd think it would return 'FALSE'.
    It doesn't matter which record I have the cursor in. The behavior is always as if that record is the only one in the data block.
    Any ideas about this strange behavior?

    not quite sure if i get your requirements. I understood the following:
    You have a block based on table emp, containing a column DateOfJoin and the user should be able to enter a "complex" where condtition.
    For that you do not have to base the block one a procedure or ref_cursor. Two possibilities:
    add two more fields directly in the block which are non-database-items of type date set query-allowed to yes and let the user enter his date-range in these columns. In the PRE-QUERY-trigger build-up a WHERE-condition using the value in this fields:
    something like:
    DECLARE
      vcMin VARCHAR2(10):='01.01.1700';
      vcMax VARCHAR2(10):='01.01.2999';
    BEGIN
      IF :BLOCK.DATE_FROM_JOIN IS NOT NULL THEN
        vcMin:=TO_CHAR(:BLOCK.DATE_FROM_JOIN, 'DD.MM.YYYY');
      END IF;
      IF :BLOCK.DATE_TO_JOIN IS NOT NULL THEN
        vcMax:=TO_CHAR(:BLOCK.DATE_TO_JOIN, 'DD.MM.YYYY');
      END IF;
      SET_BLOCK_PROPERTY('BLOCK', ONETIME_WHERE, 'DATEOFJOIN BETWEEN TO_DATE(''' || vcMin || ''', ''DD.MM.YYYY'') AND TO_DATE(''' || vcMax || ''', ''DD.MM.YYYY'')');
    END;other option:
    set the query length of field DATEOFJOIN to lets say 255, then the user can enter #BETWEEN fromdate AND fodate into the field directly.

  • Error message with procedure

    Hello,
    I am totally stuk.
    I have research and read but I just can't figure it out.
    I tried to follow examples and i thought i had it right. I guess not...
    I am useing oracle10g 10.2.0.3
    this is a transaction procedure that I have been working on all day.
    I thought I was close.
    The exercise that I am doing is practicing with the rollback and savepoint.
    The exercise said not to use parameters.
    can someone please help me to understand this error and maybe suggest an idea?
    The number below "56", appeared when i enter the execution. i don't know why it displayed.
    My procedure won't run enough to show the warning. I had to enter a "/" to show the warning.
    On top of that I totally don't understand the error message. I understand that the begin and the end is required in a procedure.
    so can someone help me !!
    the error messaage:
    SQL> @c:\cmis\proc_5\exc_3.sql
    56 /
    Warning: Procedure created with compilation errors.
    SQL> show error;
    Errors for PROCEDURE WEEK11_PROC:
    LINE/COL ERROR
    2/1 PLS-00103: Encountered the symbol "BEGIN" when expecting one of
    the following:
    ( ; is with authid as cluster compress order using compiled
    wrapped external deterministic parallel_enable pipelined
    my procedure:
    will perform transactions of inserting values into the catalog table while useing the rollback and savepoint.
    the table is empty at this point.
    set serveroutput on
    CREATE OR REPLACE PROCEDURE week11_proc
    begin
         set transaction transac 1;
              insert into catalog1
                   VALUES ('cmis420', 'Advance Relational Database', 'Bill Warren', sysdate, 'Jean Todd', sysdate);
              insert into catalog1
                   VALUES ('CMST385', 'Introduction To XHTML', 'Terry Woods', sysdate, 'john Miller', sysdate);
              EXCEPTION
                   WHEN OTHERS THEN
              DBMS_OUTPUT.PUT_LINE('error inserting class: '|| substr(SQLERRM,1,75));
                   ROLLBACK;
         set transaction transact 2;     
              insert into catalog1
                   VALUES ('cmst170', 'Introduction To XML', 'richard Jones', sysdate, 'Mary Smith', sysdate);
              insert into catalog1
                   values ('CMIS315', 'Programming in C++', 'richard Jones', sysdate, 'Paul Todd', sysdate);
                   savepoint transact2;
              EXCEPTION
                   WHEN OTHERS THEN
                   DBMS_OUTPUT.PUT_LINE('error inserting class: '|| substr(SQLERRM,1,75));
              rollback to transact 1;
         set transaction transact 3;
              insert into catalog1
                   values ('CMIS111', 'Social Networking and Cybersecurity Best Practices', 'Terry Woods', sysdate, 'john Miller', sysdate);'
              insert into catalog1
                   values ('CMIS125', Programming in', sysdate, C#', 'richard Jones', sysdate, Peter Greenburg', sysdate);
                   savepoint trans3;
              EXCEPTION
                   WHEN OTHERS THEN
              DBMS_OUTPUT.PUT_LINE('error inserting class: '|| substr(SQLERRM,1,75));
              rollback to savepoint transact2;
         set transaction transact4;
              insert into catalog1
                   values ('CMIS225', 'Developing Windows Presentation Foundation (WPF)', 'George Allen', sysdate, 'Richard Jones', sysdate);
              insert into catalog1
                   values ('CMIS465', 'Software Verification and Validation', 'Bill Warren', sysdate, 'Jean Todd', sysdate);
                   savepoint transact4;
              EXCEPTION
              WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('error inserting class: '|| substr(SQLERRM,1,75));
         rollback to savepoint transact1;
         end;
    kabrajo

    CREATE OR REPLACE PROCEDURE week11_proc is
    begin
    set transaction transac 1;
    insert into catalog1
    VALUES ('cmis420', 'Advance Relational Database', 'Bill Warren', sysdate, 'Jean Todd', sysdate);
    insert into catalog1
    VALUES ('CMST385', 'Introduction To XHTML', 'Terry Woods', sysdate, 'john Miller', sysdate);
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('error inserting class: '|| substr(SQLERRM,1,75));
    ROLLBACK;
    set transaction transact 2;
    insert into catalog1
    VALUES ('cmst170', 'Introduction To XML', 'richard Jones', sysdate, 'Mary Smith', sysdate);
    insert into catalog1
    values ('CMIS315', 'Programming in C++', 'richard Jones', sysdate, 'Paul Todd', sysdate);
    savepoint transact2;
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('error inserting class: '|| substr(SQLERRM,1,75));
    rollback to transact 1;
    set transaction transact 3;
    insert into catalog1
    values ('CMIS111', 'Social Networking and Cybersecurity Best Practices', 'Terry Woods', sysdate, 'john Miller', sysdate);'
    insert into catalog1
    values ('CMIS125', Programming in', sysdate, C#', 'richard Jones', sysdate, Peter Greenburg', sysdate);
    savepoint trans3;
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('error inserting class: '|| substr(SQLERRM,1,75));
    rollback to savepoint transact2;
    set transaction transact4;
    insert into catalog1
    values ('CMIS225', 'Developing Windows Presentation Foundation (WPF)', 'George Allen', sysdate, 'Richard Jones', sysdate);
    insert into catalog1
    values ('CMIS465', 'Software Verification and Validation', 'Bill Warren', sysdate, 'Jean Todd', sysdate);
    savepoint transact4;
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('error inserting class: '|| substr(SQLERRM,1,75));
    rollback to savepoint transact1;
    end;

  • Issue with procedure

    Hello,
    I get the first DBMS output statement but nothing else. What is the deal?
    create or replace
    PACKAGE BODY XXGHX_SUCESS_FACTORS
    AS
    * TYPE : PACKAGE BODY
    * NAME : XXGHX_SUCESS_FACTORS
    * PURPOSE : To load Performance Review, Element Entry and Salary componet data. The procedure will atuomate a manual process for HR.
    * Author Date Ver Description
    * Kendell Ellington 05/23/2011 1.0 Created
    /************************* Globals *********************************/
    g_user_id NUMBER(15) := fnd_global.user_id;
    PROCEDURE LOAD_SF_DATA(
    retcode OUT NUMBER,
    errbuf OUT VARCHAR2,
    p_business_group_id IN number)
    AS
    -- DEFINE VAB
    x_performance_review_id NUMBER;
    x_object_version_number_PR NUMBER;
    x_next_review_date_warning BOOLEAN;
    v_status_flag VARCHAR2(1);
    v_error_message VARCHAR2(2000);
    x_critical_error EXCEPTION;
    --- Element Entry Variables
    x_eff_start_date_out DATE;
    x_eff_end_date_out DATE;
    x_element_entry_id_out NUMBER;
    x_ele_object_version_number NUMBER;
    x_create_warn_out BOOLEAN;
    x_eff_start_date_out_award DATE;
    x_eff_end_date_out_award DATE;
    x_element_entry_id_out_award NUMBER;
    x_ele_object_version_number_aw NUMBER;
    x_create_warn_out_award BOOLEAN;
    x_element_link_id_mgr NUMBER;
    x_element_link_id_awd NUMBER;
    x_error_text VARCHAR2(100);
    x_input_value_mgr NUMBER;
    x_input_value_award NUMBER;
    -- DEFINE CURSOR
    -- Salary component varibles
    x_element_entry_id NUMBER;
    x_pay_propsal_id NUMBER;
    x_inv_next_sal_date_warning BOOLEAN;
    x_proposed_salary_warning BOOLEAN;
    x_approved_warning BOOLEAN;
    x_payroll_warning BOOLEAN;
    x_proposal_reason VARCHAR2(100);
    x_object_version_number NUMBER;
    v_component_id NUMBER;
    v_object_version_number1 NUMBER;
    x_proposed_salary NUMBER;
    x_input_value_award_date NUMBER;
    x_input_value_paid_date NUMBER;
    CURSOR C_SF_MAIN
    IS
    SELECT paaf.assignment_id,
    paaf.business_group_id,
    papf.person_id,
    xsf.employee_number,
    xsf.ROWID,
    xsf.FULL_NAME,
    xsf.REVIEW_DATE,
    xsf.REVIEW_RATING,
    xsf.EFFECTIVE_DATE,
    xsf.MANAGER_REC_PERCENT,
    xsf.EFFECTIVE_DATE_MERIT,
    xsf.MERIT_PERCENT,
    xsf.EFFECTIVE_DATE_MKT,
    xsf.MARKET_ADJUSTMENT_PERCENT,
    xsf.EFFECTIVE_DATE_PROMO,
    xsf.PROMOTION_PERCENT,
    xsf.EP_EFFECTIVE_DATE,
    xsf.EP_AWARD_DATE,
    xsf.EP_DATE_PAID,
    xsf.EXCEP_PERF_BONUS
    FROM XXGHX_SUCCESS_FACTORS xsf,
    PER_ALL_PEOPLE_F papf,
    per_all_assignments_f paaf
    WHERE xsf.full_name = papf.full_name
    AND papf.person_id = paaf.person_id
    AND sysdate BETWEEN papf.effective_start_date AND papf.effective_end_date
    AND sysdate BETWEEN papf.effective_start_date AND paaf.effective_end_date;
    ---DEFINE CURSOR FOR ERROR REPORTING
    CURSOR c_iface_after
    IS
    SELECT * FROM XXGHX_SUCCESS_FACTORS XXSF WHERE PROCESS_FLAG = 'E';
    -- Counter Initalization
    v_rec_cnt NUMBER := 0;
    v_err_cnt NUMBER := 0;
    v_suc_cnt NUMBER := 0;
    r_gla c_iface_after %rowtype;
    BEGIN
    DBMS_OUTPUT.PUT_LINE('hr_perf_review_api.create_perf_review');
    --Start of Loop
    FOR c_staging IN c_sf_main
    LOOP
    BEGIN
    DBMS_OUTPUT.PUT_LINE('hr_perf_review_api.create_perf_review');
    -- Parameter Init
    x_performance_review_id := NULL;
    x_object_version_number_PR := NULL;
    x_next_review_date_warning := NULL;
    v_error_message := NULL;
    x_eff_start_date_out := NULL;
    x_eff_end_date_out := NULL;
    x_element_entry_id_out := NULL;
    x_ele_object_version_number := NULL;
    x_create_warn_out := NULL;
    x_element_link_id_mgr := NULL;
    x_element_link_id_awd := NULL;
    x_eff_start_date_out_award := NULL;
    x_eff_end_date_out_award := NULL;
    x_element_entry_id_out_award := NULL;
    x_ele_object_version_number_aw:= NULL;
    x_create_warn_out_award := NULL;
    x_element_entry_id := NULL;
    x_pay_propsal_id := NULL;
    x_inv_next_sal_date_warning := NULL;
    x_proposed_salary_warning := NULL;
    x_approved_warning := NULL;
    x_payroll_warning :=NULL;
    x_proposal_reason :=NULL;
    x_object_version_number :=NULL;
    v_component_id :=NULL;
    v_object_version_number1 :=NULL;
    x_proposed_salary :=NULL;
    x_error_text :=NULL;
    x_input_value_mgr :=NULL;
    x_input_value_award :=NULL;
    x_input_value_award_date :=NULL;
    x_input_value_paid_date :=NULL;
    v_rec_cnt := v_rec_cnt + 1;
    SAVEPOINT s1;
    DBMS_OUTPUT.PUT_LINE('hr_perf_review_api.create_perf_review');
    BEGIN
    DBMS_OUTPUT.PUT_LINE('hr_perf_review_api.create_perf_review');
    hr_perf_review_api.create_perf_review ( p_validate => TRUE,
    p_performance_review_id => x_performance_review_id,
    p_person_id => c_staging.PERSON_ID,
    p_event_id => NULL,
    p_review_date =>c_staging.REVIEW_DATE,
    p_performance_rating => c_staging.REVIEW_RATING,
    p_next_perf_review_date => NULL,
    p_attribute_category => NULL,
    p_attribute1 => NULL,
    p_attribute2 => NULL,
    p_attribute3 => NULL,
    p_attribute4 => NULL,
    p_attribute5 => NULL,
    p_attribute6 => NULL,
    p_attribute7 => NULL,
    p_attribute8 => NULL,
    p_attribute9 => NULL,
    p_attribute10 => NULL,
    p_attribute11 => NULL,
    p_attribute12 => NULL,
    p_attribute13 => NULL,
    p_attribute14 => NULL,
    p_attribute15 => NULL,
    p_attribute16 => NULL,
    p_attribute17 => NULL,
    p_attribute18 => NULL,
    p_attribute19 => NULL,
    p_attribute20 => NULL,
    p_attribute21 => NULL,
    p_attribute22 => NULL,
    p_attribute23 => NULL,
    p_attribute24 => NULL,
    p_attribute25 => NULL,
    p_attribute26 => NULL,
    p_attribute27 => NULL,
    p_attribute28 => NULL,
    p_attribute29 => NULL,
    p_attribute30 => NULL,
    p_object_version_number => x_object_version_number_PR,
    p_next_review_date_warning => x_next_review_date_warning);
    DBMS_OUTPUT.PUT_LINE('record created for : ' ||c_staging.person_id|| 'ID '|| x_performance_review_id);
    EXCEPTION
    WHEN OTHERS THEN
    --ROLLBACK TO s1;
    v_error_message := ' Error in hr_perf_review_api.insert_perf_review ' || SUBSTR(sqlerrm, 1, 2000);
    DBMS_OUTPUT.PUT_LINE('Error occurred : ' || v_error_message);
    RAISE x_critical_error;
    END;
    -- If an error has occurred then put 'E' in status flag and insert error message into table.
    ----------End of Profromance review processing
    if v_error_message is NULL THEN
    UPDATE XXGHX_SUCCESS_FACTORS
    SET process_flag = 'S',
    LAST_UPDATED_BY = fnd_global.user_id,
    LAST_UPDATE_DATE = sysdate,
    ERROR_MESSAGE = SUBSTR(v_error_message, 1, 2000)
    WHERE rowid = c_staging.rowid;
    v_suc_cnt := v_suc_cnt + 1;
    COMMIT;
    end if;
    -- If an error has occurred then put 'E' in status flag and insert error message into table.
    EXCEPTION
    WHEN x_critical_error THEN
    ROLLBACK TO s1;
    UPDATE XXGHX_SUCCESS_FACTORS
    SET process_flag = 'E',
    LAST_UPDATED_BY = fnd_global.user_id,
    LAST_UPDATE_DATE = sysdate,
    ERROR_MESSAGE = SUBSTR(v_error_message, 1, 2000)
    WHERE rowid = c_staging.rowid;
    v_err_cnt := v_err_cnt + 1;
    COMMIT;
    END;
    END LOOP;
    -- Display summary report for
    fnd_file.PUT_LINE(fnd_file.OUTPUT, ' Success Factors Load Program Summary');
    fnd_file.PUT_LINE(fnd_file.OUTPUT, '');
    fnd_file.PUT_LINE(fnd_file.OUTPUT, '*************************************************************************************** ');
    fnd_file.PUT_LINE(fnd_file.OUTPUT, 'The Number of total records process is : ' || v_rec_cnt);
    fnd_file.PUT_LINE(fnd_file.OUTPUT, 'The Number of error records is : ' || v_err_cnt);
    fnd_file.PUT_LINE(fnd_file.OUTPUT, 'The Number of successful records is : ' || v_suc_cnt);
    fnd_file.PUT_LINE(fnd_file.OUTPUT, '***************************************************************************************** ');
    fnd_file.PUT_LINE(fnd_file.OUTPUT, '');
    fnd_file.PUT_LINE(fnd_file.OUTPUT, '');
    fnd_file.PUT_LINE(fnd_file.OUTPUT, '');
    fnd_file.PUT_LINE(fnd_file.OUTPUT, '***************************************************************************************** ');
    fnd_file.PUT_LINE(fnd_file.OUTPUT, ' Below is a list of records that erorred and why :');
    fnd_file.PUT_LINE(fnd_file.OUTPUT, '***************************************************************************************** ');
    fnd_file.PUT_LINE(fnd_file.OUTPUT, 'Employee Number Error message ');
    FOR r_gla IN c_iface_after
    LOOP
    BEGIN
    fnd_file.PUT_LINE(fnd_file.OUTPUT, r_gla.employee_number||' '||r_gla.error_message); -- Waiting for employee ID or some kind of ID for the file.
    END;
    END LOOP;
    fnd_file.PUT_LINE(fnd_file.OUTPUT, '***************************************************************************************** ');
    IF v_err_cnt > 0 THEN
    ROLLBACK;
    errbuf := 'Errors have occured!';
    retcode := -2;
    ELSE
    errbuf := ' ';
    retcode := 0;
    END IF;
    END LOAD_SF_DATA;
    END XXGHX_SUCESS_FACTORS;

    If your cursor c_sf_main is not finding any data, you will not enter loop, and the other print statements will not be reached. Check your SQL statement.
    Your query appears to be an eBS query - be sure that your context is set appropriately, sometimes data is not returned (even if it exists) if you're environment is not right.

Maybe you are looking for