If loop giving error???

Can anyone tell why is this throwing error??says Operator is undefined for String???
if (name.equalsIgnoreCase("RB_Smart" || "CRI_NRI1_468x60"))

Can anyone tell why is this throwing error??says
Operator is undefined for String???
if (name.equalsIgnoreCase("RB_Smart" ||
"CRI_NRI1_468x60"))
If you are using || as "OR", that is an undefined operator for a String and then what you need to do is what has already been suggested, but I was wondering if you are using it as a concatenation operator (since that is what it is in other languages or in SQL) in which case, you would need to use "+" instead....

Similar Messages

  • My ipad is stuck at logo and looping countinuesly. when i tried to restore it is giving error 3194.plz help

    I am having ipad mini wifi + cellular. and now it is stuck at logo and restarting countinuesly. when i tried restoring it through itunes it is giving error 3194.plz help me
    GIREESH KUMAR

    See if the troubleshooting for that error code on this page helps : http://support.apple.com/kb/ts4451

  • When i created procedure for error_log its giving errors:

    please give a solution for below procedure...
    just check the procedure its giving errors ... rec is not an identifier in loop in the procedure....
    Step 1:
    Create a table MAP_ERROR_LOG.
    Script:
    CREATE TABLE MAP_ERROR_LOG
    ERROR_SEQ NUMBER,
    MAPPING_NAME VARCHAR2(32 BYTE),
    TARGET_TABLE VARCHAR2(35 BYTE),
    TARGET_COLUMN VARCHAR2(35 BYTE),
    TARGET_VALUE VARCHAR2(100 BYTE),
    PRIMARY_TABLE VARCHAR2(100 BYTE),
    ERROR_ROWKEY NUMBER,
    ERROR_CODE VARCHAR2(12 BYTE),
    ERROR_MESSAGE VARCHAR2(2000 BYTE),
    ERROR_TIMESTAMP DATE
    TABLESPACE DW_OWNER_DATA
    PCTUSED 0
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 80K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    LOGGING
    NOCOMPRESS
    NOCACHE
    NOPARALLEL
    MONITORING;
    Step 2:
    Create a sequence MAP_ERROR_LOG_SEQ
    CREATE SEQUENCE MAP_ERROR_LOG_SEQ START WITH 1 INCREMENT BY 1
    Step 3:
    Create a procedure PROC_MAP_ERROR_LOG through OWB.
    In this i have used 3 cursor, first cursor is used to check the count of error messages for the corresponding table(WB_RT_ERROR_SOURCES).
    The second cursor is used to get the oracle error and the primary key values.
    The third cursor is used for get the ORACLE DBA errors such as "UNABLE TO EXTEND THE TABLESPACE" for this type errors.
    CREATE OR REPLACE PROCEDURE PROC_MAP_ERROR_LOG(MAP_ID VARCHAR2) IS
    --initialize variables here
    CURSOR C1 IS
    SELECT COUNT(RTA_IID) FROM OWB_REP.WB_RT_ERROR_SOURCES
    WHERE RTA_IID =( SELECT MAX(RTA_IID) FROM OWB_REP.WB_RT_AUDIT WHERE RTA_PRIMARY_TARGET ='"'||MAP_ID||'"');
    V_COUNT NUMBER;
    CURSOR C2 IS
    SELECT A.RTE_ROWKEY ERR_ROWKEY,SUBSTR(A.RTE_SQLERRM,1,INSTR(A.RTE_SQLERRM,':')-1) ERROR_CODE,
    SUBSTR(A.RTE_SQLERRM,INSTR(A.RTE_SQLERRM,':')+1) ERROR_MESSAGE,
    C.RTA_LOB_NAME MAPPING_NAME,SUBSTR(B.RTS_SOURCE_COLUMN,(INSTR(B.RTS_SOURCE_COLUMN,'.')+1)) TARGET_COLUMN,
    B.RTS_VALUE TARGET_VALUE,C.RTA_PRIMARY_SOURCE PRIMARY_SOURCE,C.RTA_PRIMARY_TARGET TARGET_TABLE,
    C.RTA_DATE ERROR_TIMESTAMP
    FROM OWB_REP.WB_RT_ERRORS A,OWB_REP.WB_RT_ERROR_SOURCES B, OWB_REP.WB_RT_AUDIT C
    WHERE C.RTA_IID = A.RTA_IID
    AND C.RTA_IID = B.RTA_IID
    AND A.RTA_IID = B.RTA_IID
    AND A.RTE_ROWKEY =B.RTE_ROWKEY
    --AND RTS_SEQ =1
    AND B.RTS_SEQ IN (SELECT POSITION FROM OWB_REP.ALL_CONS_COLUMNS A, OWB_REP.ALL_CONSTRAINTS B
    WHERE A.TABLE_NAME = B.TABLE_NAME
    AND A.CONSTRAINT_NAME = B.CONSTRAINT_NAME
    AND A.TABLE_NAME =MAP_ID
    AND CONSTRAINT_TYPE ='P')
    AND A.RTA_IID =(
    SELECT MAX(RTA_IID) FROM OWB_REP.WB_RT_AUDIT WHERE RTA_PRIMARY_TARGET ='"'||MAP_ID||'"');
    CURSOR C3 IS
    SELECT A.RTE_ROWKEY ERR_ROWKEY,SUBSTR(A.RTE_SQLERRM,1,INSTR(A.RTE_SQLERRM,':')-1) ERROR_CODE,
    SUBSTR(A.RTE_SQLERRM,INSTR(A.RTE_SQLERRM,':')+1) ERROR_MESSAGE,
    C.RTA_LOB_NAME MAPPING_NAME,SUBSTR(B.RTS_SOURCE_COLUMN,(INSTR(B.RTS_SOURCE_COLUMN,'.')+1)) TARGET_COLUMN,
    B.RTS_VALUE TARGET_VALUE,C.RTA_PRIMARY_SOURCE PRIMARY_SOURCE,C.RTA_PRIMARY_TARGET TARGET_TABLE,
    C.RTA_DATE ERROR_TIMESTAMP
    FROM OWB_REP.WB_RT_ERRORS A,OWB_REP.WB_RT_ERROR_SOURCES B, OWB_REP.WB_RT_AUDIT C
    WHERE C.RTA_IID = A.RTA_IID
    AND A.RTA_IID = B.RTA_IID
    AND A.RTE_ROWKEY =B.RTE_ROWKEY
    AND A.RTA_IID =(
    SELECT MAX(RTA_IID) FROM OWB_REP.WB_RT_AUDIT WHERE RTA_PRIMARY_TARGET ='"'||MAP_ID||'"');
    -- main body
    BEGIN
    DELETE DW_OWNER.MAP_ERROR_LOG WHERE TARGET_TABLE ='"'||MAP_ID||'"';
    COMMIT;
    OPEN C1;
    FETCH C1 INTO V_COUNT;
    IF V_COUNT >0 THEN
    FOR REC IN C2
    LOOP
    INSERT INTO DW_OWNER.MAP_ERROR_LOG
    (Error_seq ,
    Mapping_name,
    Target_table,
    Target_column ,
    Target_value ,
    Primary_table ,
    Error_rowkey ,
    Error_code ,
    Error_message ,
    Error_timestamp)
    VALUES(
    DW_OWNER.MAP_ERROR_LOG_SEQ.NEXTVAL,
    REC.MAPPING_NAME,
    REC.TARGET_TABLE,
    REC.TARGET_COLUMN,
    REC.TARGET_VALUE,
    REC.PRIMARY_SOURCE,
    REC.ERR_ROWKEY,
    REC.ERROR_CODE,
    REC.ERROR_MESSAGE,
    REC.ERROR_TIMESTAMP);
    END LOOP;
    ELSE
    FOR REC IN C3
    LOOP
    INSERT INTO DW_OWNER.MAP_ERROR_LOG
    (Error_seq ,
    Mapping_name,
    Target_table,
    Target_column ,
    Target_value ,
    Primary_table ,
    Error_rowkey ,
    Error_code ,
    Error_message ,
    Error_timestamp)
    VALUES(
    DW_OWNER.MAP_ERROR_LOG_SEQ.NEXTVAL,
    REC.MAPPING_NAME,
    REC.TARGET_TABLE,
    REC.TARGET_COLUMN,
    REC.TARGET_VALUE,
    REC.PRIMARY_SOURCE,
    REC.ERR_ROWKEY,
    REC.ERROR_CODE,
    REC.ERROR_MESSAGE,
    REC.ERROR_TIMESTAMP);
    END LOOP;
    END IF;
    CLOSE C1;
    COMMIT;
    -- NULL; -- allow compilation
    EXCEPTION
    WHEN OTHERS THEN
    NULL; -- enter any exception code here
    END;

    Yah i got the solution...
    scrip is
    Step 1:
    Create a table MAP_ERROR_LOG.
    Script:
    CREATE TABLE MAP_ERROR_LOG
    ERROR_SEQ NUMBER,
    MAPPING_NAME VARCHAR2(32 BYTE),
    TARGET_TABLE VARCHAR2(35 BYTE),
    TARGET_COLUMN VARCHAR2(35 BYTE),
    TARGET_VALUE VARCHAR2(100 BYTE),
    PRIMARY_TABLE VARCHAR2(100 BYTE),
    ERROR_ROWKEY NUMBER,
    ERROR_CODE VARCHAR2(12 BYTE),
    ERROR_MESSAGE VARCHAR2(2000 BYTE),
    ERROR_TIMESTAMP DATE
    TABLESPACE DW_OWNER_DATA
    PCTUSED 0
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 80K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    LOGGING
    NOCOMPRESS
    NOCACHE
    NOPARALLEL
    MONITORING;
    Step 2:
    Create a sequence MAP_ERROR_LOG_SEQ
    CREATE SEQUENCE MAP_ERROR_LOG_SEQ START WITH 1 INCREMENT BY 1
    Step 3:
    Create a procedure PROC_MAP_ERROR_LOG through OWB.
    In this i have used 3 cursor, first cursor is used to check the count of error messages for the corresponding table(WB_RT_ERROR_SOURCES).
    The second cursor is used to get the oracle error and the primary key values.
    The third cursor is used for get the ORACLE DBA errors such as "UNABLE TO EXTEND THE TABLESPACE" for this type errors.
    CREATE OR REPLACE PROCEDURE PROC_MAP_ERROR_LOG(MAP_ID VARCHAR2) IS
    --initialize variables here
    CURSOR C1 IS
    SELECT COUNT(RTA_IID) FROM OWB_REP.WB_RT_ERROR_SOURCES1
    WHERE RTA_IID =( SELECT MAX(RTA_IID) FROM OWB_REP.WB_RT_AUDIT1 WHERE RTA_PRIMARY_TARGET ='"'||MAP_ID||'"');
    V_COUNT NUMBER;
    CURSOR C2 IS
    SELECT A.RTE_ROWKEY ERR_ROWKEY,SUBSTR(A.RTE_SQLERRM,1,INSTR(A.RTE_SQLERRM,':')-1) ERROR_CODE,
    SUBSTR(A.RTE_SQLERRM,INSTR(A.RTE_SQLERRM,':')+1) ERROR_MESSAGE,
    C.RTA_LOB_NAME MAPPING_NAME,SUBSTR(B.RTS_SOURCE_COLUMN,(INSTR(B.RTS_SOURCE_COLUMN,'.')+1)) TARGET_COLUMN,
    B.RTS_VALUE TARGET_VALUE,C.RTA_PRIMARY_SOURCE PRIMARY_SOURCE,C.RTA_PRIMARY_TARGET TARGET_TABLE,
    C.RTA_DATE ERROR_TIMESTAMP
    FROM OWB_REP.WB_RT_ERRORS1 A,OWB_REP.WB_RT_ERROR_SOURCES1 B, OWB_REP.WB_RT_AUDIT1 C
    WHERE C.RTA_IID = A.RTA_IID
    AND C.RTA_IID = B.RTA_IID
    AND A.RTA_IID = B.RTA_IID
    AND A.RTE_ROWKEY =B.RTE_ROWKEY
    --AND RTS_SEQ =1
    AND B.RTS_SEQ IN (SELECT POSITION FROM ALL_CONS_COLUMNS A, ALL_CONSTRAINTS B
    WHERE A.TABLE_NAME = B.TABLE_NAME
    AND A.CONSTRAINT_NAME = B.CONSTRAINT_NAME
    AND A.TABLE_NAME =MAP_ID
    AND CONSTRAINT_TYPE ='P')
    AND A.RTA_IID =(
    SELECT MAX(RTA_IID) FROM OWB_REP.WB_RT_AUDIT1 WHERE RTA_PRIMARY_TARGET ='"'||MAP_ID||'"');
    CURSOR C3 IS
    SELECT A.RTE_ROWKEY ERR_ROWKEY,SUBSTR(A.RTE_SQLERRM,1,INSTR(A.RTE_SQLERRM,':')-1) ERROR_CODE,
    SUBSTR(A.RTE_SQLERRM,INSTR(A.RTE_SQLERRM,':')+1) ERROR_MESSAGE,
    C.RTA_LOB_NAME MAPPING_NAME,SUBSTR(B.RTS_SOURCE_COLUMN,(INSTR(B.RTS_SOURCE_COLUMN,'.')+1)) TARGET_COLUMN,
    B.RTS_VALUE TARGET_VALUE,C.RTA_PRIMARY_SOURCE PRIMARY_SOURCE,C.RTA_PRIMARY_TARGET TARGET_TABLE,
    C.RTA_DATE ERROR_TIMESTAMP
    FROM OWB_REP.WB_RT_ERRORS A,OWB_REP.WB_RT_ERROR_SOURCES1 B, OWB_REP.WB_RT_AUDIT C
    WHERE C.RTA_IID = A.RTA_IID
    AND A.RTA_IID = B.RTA_IID
    AND A.RTE_ROWKEY =B.RTE_ROWKEY
    AND A.RTA_IID =(
    SELECT MAX(RTA_IID) FROM OWB_REP.WB_RT_AUDIT WHERE RTA_PRIMARY_TARGET ='"'||MAP_ID||'"');
    -- main body
    BEGIN
    DELETE DW_OWNER.MAP_ERROR_LOG WHERE TARGET_TABLE ='"'||MAP_ID||'"';
    COMMIT;
    OPEN C1;
    FETCH C1 INTO V_COUNT;
    IF V_COUNT >0 THEN
    FOR REC IN C2
    LOOP
    INSERT INTO DW_OWNER.MAP_ERROR_LOG
    (Error_seq ,
    Mapping_name,
    Target_table,
    Target_column ,
    Target_value ,
    Primary_table ,
    Error_rowkey ,
    Error_code ,
    Error_message ,
    Error_timestamp)
    VALUES(
    DW_OWNER.MAP_ERROR_LOG_SEQ.NEXTVAL,
    REC.MAPPING_NAME,
    REC.TARGET_TABLE,
    REC.TARGET_COLUMN,
    REC.TARGET_VALUE,
    REC.PRIMARY_SOURCE,
    REC.ERR_ROWKEY,
    REC.ERROR_CODE,
    REC.ERROR_MESSAGE,
    REC.ERROR_TIMESTAMP);
    END LOOP;
    ELSE
    FOR REC IN C3
    LOOP
    INSERT INTO DW_OWNER.MAP_ERROR_LOG
    (Error_seq ,
    Mapping_name,
    Target_table,
    Target_column ,
    Target_value ,
    Primary_table ,
    Error_rowkey ,
    Error_code ,
    Error_message ,
    Error_timestamp)
    VALUES(
    DW_OWNER.MAP_ERROR_LOG_SEQ.NEXTVAL,
    REC.MAPPING_NAME,
    REC.TARGET_TABLE,
    REC.TARGET_COLUMN,
    REC.TARGET_VALUE,
    REC.PRIMARY_SOURCE,
    REC.ERR_ROWKEY,
    REC.ERROR_CODE,
    REC.ERROR_MESSAGE,
    REC.ERROR_TIMESTAMP);
    END LOOP;
    END IF;
    CLOSE C1;
    COMMIT;
    -- NULL; -- allow compilation
    EXCEPTION
    WHEN OTHERS THEN
    NULL; -- enter any exception code here
    END;

  • Procedure giving error with collections

    H, i wrote a procedure in which i am using collections to out a some data.Its giving error. Below is format of procedure:
    Create or replace procabc(a in type_a, b in number, c out type_b)
    begin
    for i in 1....a.count loop
    for j in (select num from abc) loop
    if (num = 'condition1') then
    c(i) := num;
    elsif (num = 'condition2') then
    c(i) := num;
    elsif (num = 'condition3') then
    c(i) := num;
    else
    dbms_output.put_line('not matching');
    end if;
    end loop;
    end loop;
    end;
    In above code input a and output c are type which i had created.
    how to out my values in out parameter c...its executing ..i am getting print but its not storing in out parameter c which is type. what i need to do..even i had initialised the collection also tried c.event before storing..still wont work..can anyone help me???

    Megha Verma wrote:
    version is oracle 10g...i dont want to use cursors....You already are.
    for j in (select num from abc) loop
    1 loop is there because i am passing a array as input and i need all values from query whose output depends on that.You're passing an array, but you aren't using it anywhere!!!
    for i in 1....a.count loopa is not referenced in any subsequent code.
    second loop is to execute the query and get the data and store it in a collection. and return it to ut parameter...what i need to add values to my collection....Yes, and it's extremely inefficient (if it's even correct, seeing my previous comment about not using the collection you pass in anywhere).
    >
    c is out parameter and is a type(i had created).
    simply i want to know how to add values to it while i get my data when loop executes....it prints my valus...just tell how to add it to collections and return it as out parameter.Sadly it's not that simple. Simple to correct technically yes, but your entire process seems to be flawed so i really think you should revisit that. Or post sufficient information to have us help you in an actually helpful manner.

  • PL/SQL Block working fine but same code procedure is giving error.

    Hi Experts,
    I am executing  procedure getting error ORA-27486: insufficient privileges
    If It's PL/SQL block it's creating job classes.
    Both the cases same user.
    CREATE OR REPLACE PROCEDURE JOB_CLASS_PROC
    AS
       V_SQL   VARCHAR2 (4000);
       V_JOB_STEP VARCHAR2 (50);
    BEGIN
    -- Create Job Class if not exist
       BEGIN
       FOR i
          IN (SELECT SNS.OWNER_NAME OWNER_NAME,
                     VDB.NAME
                        SNAME
                FROM SCHEMA_NAMES SNS,
                     V$DATABASE VDB
               WHERE OWNER_NAME NOT IN ('')
                AND (OWNER_NAME || '_JOB_CLASS')
                     NOT IN
                    (SELECT JOB_CLASS_NAME FROM DBA_SCHEDULER_JOB_CLASSES))
       LOOP
          V_SQL :=
                'BEGIN
                  DBMS_SCHEDULER.CREATE_JOB_CLASS
                   job_class_name => ''' || i.owner_name || '_JOB_CLASS'',
                   service           => ''' || i.SNAME || ''',
                   comments       => ''Job class for ' || i.owner_name || '''
                EXCEPTION
                 WHEN OTHERS THEN
                  RAISE;                 
                END;';
          EXECUTE IMMEDIATE V_SQL;
       END LOOP;
    END;
    EXCEPTION
       WHEN OTHERS
       THEN
       RAISE_APPLICATION_ERROR(-20001, V_JOB_STEP||' SQLERRM: ' || SQLERRM || ' SQLCODE: '|| SQLCODE);
    END JOB_CLASS_PROC;
    DECLARE
       V_SQL   VARCHAR2 (4000);
       V_JOB_STEP VARCHAR2 (50);
    BEGIN
    -- Create Job Class if not exist
       BEGIN
       FOR i
          IN (SELECT SNS.OWNER_NAME OWNER_NAME,
                     VDB.NAME
                        SNAME
                FROM SCHEMA_NAMES SNS,
                     V$DATABASE VDB
               WHERE OWNER_NAME NOT IN ('')
                AND (OWNER_NAME || '_JOB_CLASS')
                     NOT IN
                    (SELECT JOB_CLASS_NAME FROM DBA_SCHEDULER_JOB_CLASSES))
       LOOP
          V_SQL :=
                'BEGIN
                  DBMS_SCHEDULER.CREATE_JOB_CLASS
                   job_class_name => ''' || i.owner_name || '_JOB_CLASS'',
                   service           => ''' || i.SNAME || ''',
                   comments       => ''Job class for ' || i.owner_name || '''
                EXCEPTION
                 WHEN OTHERS THEN
                  RAISE;                 
                END;';
          EXECUTE IMMEDIATE V_SQL;
       END LOOP;
    END;
    EXCEPTION
       WHEN OTHERS
       THEN
       RAISE_APPLICATION_ERROR(-20001, V_JOB_STEP||' SQLERRM: ' || SQLERRM || ' SQLCODE: '|| SQLCODE);
    END;
    Why for same code procedure is giving error.
    Please help me.
    Thanks.

    Hi,
    Then with the same grants how the below script is working.
    If I put the below same script in Procedure it's not working.
    DECLARE
       V_SQL   VARCHAR2 (4000);
       V_JOB_STEP VARCHAR2 (50);
    BEGIN
    -- Create Job Class if not exist
       BEGIN
       FOR i
          IN (SELECT SNS.OWNER_NAME OWNER_NAME,
                     VDB.NAME
                        SNAME
                FROM SCHEMA_NAMES SNS,
                     V$DATABASE VDB
               WHERE OWNER_NAME NOT IN ('')
                AND (OWNER_NAME || '_JOB_CLASS')
                     NOT IN
                    (SELECT JOB_CLASS_NAME FROM DBA_SCHEDULER_JOB_CLASSES))
       LOOP
          V_SQL :=
                'BEGIN
                  DBMS_SCHEDULER.CREATE_JOB_CLASS
                   job_class_name => ''' || i.owner_name || '_JOB_CLASS'',
                   service           => ''' || i.SNAME || ''',
                   comments       => ''Job class for ' || i.owner_name || '''
                EXCEPTION
                 WHEN OTHERS THEN
                  RAISE;               
                END;';
          EXECUTE IMMEDIATE V_SQL;
       END LOOP;
    END;
    EXCEPTION
       WHEN OTHERS
       THEN
       RAISE_APPLICATION_ERROR(-20001, V_JOB_STEP||' SQLERRM: ' || SQLERRM || ' SQLCODE: '|| SQLCODE);
    END;
    Please help me.
    Thanks.

  • WHILE expression giving Error 306, wrong number or types of args in call to

    WHILE expression giving Error 306, wrong number or types of args in call to '='
    declare
         block_id block;
         item_id item;     
    begin
         block_id := find_block(:system.cursor_block);
         item_id := find_item(:system.cursor_item);
         message('Current Block: ' || :system.cursor_block || '  Current Item: ' || :system.cursor_item);
         next_block;
         while find_block(:system.cursor_block) = block_id
         loop
              message('Current Block: ' || :system.cursor_block || '  Current Item: ' || :system.cursor_item);
              next_block;
         end loop;
    exception
         when others then
         message(sqlerrm);
    end;I don't see what the problem is?
    Gus

    other than that there are logical errors in this
    u hav to use here != with the while loop.
    Again loop willl never return to first block.It will stuck at last block and will show error.
    For ur question u can use as
    declare
         --block_id block;
         --item_id item;     
         vc_first_block varchar2(65);
    begin
         vc_first_block := :system.cursor_block;
         --block_id := find_block(:system.cursor_block);
         --item_id := find_item(:system.cursor_item);
         message('Current Block: ' || :system.cursor_block || ' Current Item: ' || :system.cursor_item);
         next_block;
         while :system.cursor_block != vc_first_block
         loop
    Message was edited by:
    jeneesh

  • Pay_element_entry_api_delete_elemeny_entry giving error

    HI,
    Iam trying to end date of the several employees but api giving error as
    ORA-20001: HR_xxxx_INVALID_EVENT_TYPE:
    mY CODE IS:
    DECLARE
    ld_effective_start_date DATE;
    ld_effective_end_date DATE;
    lb_delete_warning BOOLEAN;
    ln_object_version_number PAY_ELEMENT_ENTRIES_F.OBJECT_VERSION_NUMBER%TYPE := 1;
    l_payroll_id NUMBER;
    l_claim_master_id NUMBER;
    l_pay_name VARCHAR2(240);
    l_assign_no VARCHAR2(240);
    l_element_name VARCHAR2(240);
    l_err VARCHAR2(1000);
    l_suc NUMBER;
    l_erc NUMBER;
    l_total NUMBER;
    l_srno NUMBER;
    CURSOR ele_name_cur
    IS
    select distinct c.element_name
    from xxc_mod_ex_014_mile_master_tab a,
    per_all_assignments_f b, xxc_mod_ex_014_mile_detail_tab c,
    pay_all_payrolls_f p
    where a.claim_master_id = c.claim_master_id
    ----and upper(c.element_name) IN (SELECT distinct element_name from xxc_mod_ex_014_mile_detail_tab )
    and c.status_flag = 'P'
    and to_char(payroll_eff_date,'MON') = 'SEP'
    and a.assignment_id = b.assignment_id
    and c.payroll_id = p.payroll_id
    and sysdate between b.effective_start_date and b.effective_end_date
    and sysdate between p.effective_start_date and p.effective_end_date
    and c.element_entry_id IN (
    select element_entry_id from PAY_ELEMENT_ENTRIES_F --element_entry_id
    where element_entry_id in (
    select c.element_entry_id
    from xxc_mod_ex_014_mile_master_tab a,
    per_all_assignments_f b, xxc_mod_ex_014_mile_detail_tab c
    where a.claim_master_id = c.claim_master_id
    ----and upper(c.element_name) IN (SELECT distinct element_name from xxc_mod_ex_014_mile_detail_tab )
    and c.status_flag = 'P'
    and to_char(payroll_eff_date,'MON') = 'SEP'
    and a.assignment_id = b.assignment_id
    and sysdate between b.effective_start_date and b.effective_end_date
    and to_char(effective_end_date,'MON') != 'SEP');
    CURSOR ele_link_cur(p_element_name VARCHAR2)
    IS
    SELECT A.element_entry_id, max(peef.object_version_number) object_version_number
    FROM PAY_ELEMENT_ENTRIES_F peef,
    (SELECT element_entry_id
    FROM PAY_ELEMENT_ENTRIES_F
    WHERE element_entry_id IN
    (SELECT c.element_entry_id
    FROM xxc_mod_ex_014_mile_master_tab a,
    per_all_assignments_f b,
    xxc_mod_ex_014_mile_detail_tab c
    WHERE a.claim_master_id = c.claim_master_id
    AND upper(c.element_name) = upper(nvl(p_element_name,c.element_name))
    AND c.status_flag = 'P'
    AND TO_CHAR(payroll_eff_date,'MON') = 'AUG'
    AND a.assignment_id = b.assignment_id
    ---AND c.payroll_id = 67
    AND sysdate BETWEEN b.effective_start_date AND b.effective_end_date
    AND TO_CHAR(effective_end_date,'MON') != 'AUG'
    GROUP BY element_entry_id)A
    WHERE A.element_entry_id = peef.element_entry_id
    GROUP BY A.element_entry_id;
    BEGIN
    l_suc := 0;
    l_erc := 0;
    l_total := 0;
    l_srno := 0;
    FOR ele_link_rec IN ele_link_cur(null)
    LOOP
    l_total := ele_link_cur%ROWCOUNT;
    END LOOP;
    dbms_output.put_line('-----------------------------------------------------------------------------------------');
    dbms_output.put_line('Sr No Assignment No Element Name Payroll Name Element Entry Id');
    dbms_output.put_line('-----------------------------------------------------------------------------------------');
    FOR ele_name_rec IN ele_name_cur
    LOOP
    FOR ele_link_rec IN ele_link_cur(ele_name_rec.element_name)
    LOOP
    l_srno := l_srno + 1;
    ln_object_version_number := ele_link_rec.object_version_number;
    BEGIN
    -- Delete Element Entry
    pay_element_entry_api.delete_element_entry (
    -- Input data elements
    p_validate => TRUE,
    p_datetrack_delete_mode => 'DELETE',
    p_effective_date => '30-SEP-2012',
    p_element_entry_id => ele_link_rec.element_entry_id,
    -- Output data elements
    p_object_version_number => ln_object_version_number,
    p_effective_start_date => ld_effective_start_date,
    p_effective_end_date => ld_effective_end_date,
    p_delete_warning => lb_delete_warning );
    BEGIN
    SELECT DISTINCT payroll_id,
    claim_master_id,
    element_name
    INTO l_payroll_id,
    l_claim_master_id,
    l_element_name
    FROM xxc_mod_ex_014_mile_detail_tab
    WHERE element_entry_id = ele_link_rec.element_entry_id;
    SELECT payroll_name
    INTO l_pay_name
    FROM pay_all_payrolls_f
    WHERE payroll_id = l_payroll_id
    AND TRUNC(sysdate) BETWEEN effective_start_date AND effective_end_date;
    SELECT b.assignment_number
    INTO l_assign_no
    FROM xxc_mod_ex_014_mile_master_tab a,
    per_all_assignments_f b
    WHERE a.assignment_id = b.assignment_id
    AND a.claim_master_id = l_claim_master_id
    AND TRUNC(sysdate) BETWEEN b.effective_start_date AND b.effective_end_date;
    EXCEPTION
    WHEN OTHERS THEN
    dbms_output.put_line('Error to Fetch Payroll Details -');
    END;
    ------dbms_output.put_line(TO_CHAR(l_srno)||' '||l_assign_no||' '||l_element_name||' '||l_pay_name||' '|| ele_link_rec.element_entry_id );
    insert into xxc_element_entry_delete
    values(l_srno,
    l_assign_no,
    l_element_name,
    l_pay_name,
    ele_link_rec.element_entry_id ,
    'S');
    l_suc := l_suc + 1;
    -------COMMIT;
    EXCEPTION
    WHEN OTHERS THEN
    l_err := SQLERRM;
    dbms_output.put_line('Error to Process Element Entry Id -'||ele_link_rec.element_entry_id||l_err);
    l_erc := l_erc + 1;
    BEGIN
    SELECT DISTINCT payroll_id,
    claim_master_id,
    element_name
    INTO l_payroll_id,
    l_claim_master_id,
    l_element_name
    FROM xxc_mod_ex_014_mile_detail_tab
    WHERE element_entry_id = ele_link_rec.element_entry_id;
    SELECT payroll_name
    INTO l_pay_name
    FROM pay_all_payrolls_f
    WHERE payroll_id = l_payroll_id
    AND TRUNC(sysdate) BETWEEN effective_start_date AND effective_end_date;
    SELECT b.assignment_number
    INTO l_assign_no
    FROM xxc_mod_ex_014_mile_master_tab a,
    per_all_assignments_f b
    WHERE a.assignment_id = b.assignment_id
    AND a.claim_master_id = l_claim_master_id
    AND TRUNC(sysdate) BETWEEN b.effective_start_date AND b.effective_end_date;
    EXCEPTION
    WHEN OTHERS THEN
    dbms_output.put_line('Error to Fetch Payroll Details -');
    END;
    dbms_output.put_line('Assignment No - '||l_assign_no||' Element Name '||l_element_name);
    END;
    END LOOP;
    END LOOP;
    dbms_output.put_line('-----------------------------------------------------------------------------------------');
    dbms_output.put_line(' Total Records - '||l_total);
    dbms_output.put_line(' Success Records - '||l_suc);
    dbms_output.put_line(' Error Records - '||l_erc);
    EXCEPTION
    WHEN OTHERS THEN
    ROLLBACK;
    dbms_output.put_line('Error');
    dbms_output.put_line(SQLERRM);
    END;
    ERROS IS SHOWING AS;
    set serveroutput on
    Sr No Assignment No Element Name Payroll Name Element Entry Id
    Error to Process Element Entry Id -2810829ORA-20001: HR_xxxx_INVALID_EVENT_TYPE:
    Assignment No - 492175 Element Name Cornwall Care Casual
    Error to Process Element Entry Id -2810810ORA-20001: HR_xxxx_INVALID_EVENT_TYPE:
    Assignment No - 031732 Element Name Cornwall Care Casual
    Error to Process Element Entry Id -2810883ORA-20001: HR_xxxx_INVALID_EVENT_TYPE:
    Assignment No - 492175 Element Name Cornwall Care Casual
    Error to Process Element Entry Id -2810830ORA-20001: HR_xxxx_INVALID_EVENT_TYPE:
    Assignment No - 031732 Element Name Cornwall Care Casual
    Error to Process Element Entry Id -2897456ORA-20001: HR_xxxx_INVALID_EVENT_TYPE:
    Assignment No - 018793 Element Name C Care Casual FPCS Rates
    Error to Process Element Entry Id -2897455ORA-20001: HR_xxxx_INVALID_EVENT_TYPE:
    Assignment No - 018793 Element Name C Care Casual FPCS Rates
    Error to Process Element Entry Id -2810699ORA-20001: HR_xxxx_INVALID_EVENT_TYPE:
    Assignment No - 680575 Element Name PETROC Scheme 1
    Error to Process Element Entry Id -2810657ORA-20001: HR_xxxx_INVALID_EVENT_TYPE:
    Assignment No - 680155 Element Name PETROC Scheme 1
    Error to Process Element Entry Id -2810680ORA-20001: HR_xxxx_INVALID_EVENT_TYPE:
    Assignment No - 680045 Element Name PETROC Scheme 1
    Error to Process Element Entry Id -2810683ORA-20001: HR_xxxx_INVALID_EVENT_TYPE:
    Assignment No - 681071 Element Name PETROC Scheme 1
    Error to Process Element Entry Id -2810685ORA-20001: HR_xxxx_INVALID_EVENT_TYPE:
    Assignment No - 681763 Element Name PETROC Scheme 1
    Error to Process Element Entry Id -2810705ORA-20001: HR_xxxx_INVALID_EVENT_TYPE:
    Assignment No - 681610 Element Name PETROC Scheme 1
    Error to Process Element Entry Id -2810628ORA-20001: HR_xxxx_INVALID_EVENT_TYPE:
    Assignment No - 681714 Element Name PETROC Scheme 1
    Error to Process Element Entry Id -2810698ORA-20001: HR_xxxx_INVALID_EVENT_TYPE:
    Assignment No - 680024 Element Name PETROC Scheme 1
    Error to Process Element Entry Id -2810702ORA-20001: HR_xxxx_INVALID_EVENT_TYPE:
    Assignment No - 680084 Element Name PETROC Scheme 1
    Error to Process Element Entry Id -2810706ORA-20001: HR_xxxx_INVALID_EVENT_TYPE:
    Assignment No - 681610 Element Name PETROC Scheme 1
    Error to Process Element Entry Id -2810629ORA-20001: HR_xxxx_INVALID_EVENT_TYPE:
    Assignment No - 682877 Element Name PETROC Scheme 1
    Error to Process Element Entry Id -2810704ORA-20001: HR_xxxx_INVALID_EVENT_TYPE:
    Assignment No - 682388 Element Name PETROC Scheme 1
    Error to Process Element Entry Id -2810684ORA-20001: HR_xxxx_INVALID_EVENT_TYPE:
    Assignment No - 681763 Element Name PETROC Scheme 1
    Error to Process Element Entry Id -2810630ORA-20001: HR_xxxx_INVALID_EVENT_TYPE:
    Assignment No - 683005 Element Name PETROC Scheme 1
    Error to Process Element Entry Id -2810700ORA-20001: HR_xxxx_INVALID_EVENT_TYPE:
    Assignment No - 680038 Element Name PETROC Scheme 1
    Error to Process Element Entry Id -2810701ORA-20001: HR_xxxx_INVALID_EVENT_TYPE:
    Assignment No - 682872 Element Name PETROC Scheme 1
    Error to Process Element Entry Id -2810686ORA-20001: HR_xxxx_INVALID_EVENT_TYPE:
    Assignment No - 682290 Element Name PETROC Scheme 1
    Error to Process Element Entry Id -2810703ORA-20001: HR_xxxx_INVALID_EVENT_TYPE:
    Assignment No - 681156 Element Name PETROC Scheme 1
    Total Records - 24
    Success Records - 0
    Error Records - 24
    pLEASE ANYONE PROVIDE SOLUTION:::
    tHANKS,
    RAKESH

    Sharath Gajula wrote:
    Yes I agree with Vinayak. This could be because of the issue with the Custom Process that creates the BEE Entries. Avoiding Zero entries from the custom process should also resolve the issue.Hi there
    You guys are right, I am avoiding when Zero value comes from the other system and not creating Batch Line.
    BUT When I have already a Element Entry with the Employee and I have to End Date that one, how could I End Date that Entry, unless and untill i create a record with the Zero.
    It looks like I am missing some thing, Am I?
    I am using pay_batch_element_entry_api.create_batch_line to create Batch Line, DO I have to use pay_batch_element_entry_api.update_batch_line to End Date the Existing Entry?
    Thanks for Participating this thread.
    Regards.

  • Item Open Interface giving error for Org Assignment

    We ran the MTL_SYSTEMS_ITEMS_INTERFACE & loaded all the items at master level.
    We are having issues in setting at Org level. Cant figure out what the issue as only few records gets assigned & then garbage sets in for remaining records. An SR has been raised & the tech support representative was saying that UOM's are different at master & org levels. Never heard of this issue earlier. I have worked with UOM's different at Master/Org levels.
    The UOM's are different at Master & Org Level and in some cases the UOM are different for different Orgs. Attribute Control for Primary/Sec UOM is at Org level. The UOM's belong to the same UOM Class. There are standard conversions defined for all these UOMs.
    Any pointers for quick resolution ?

    Pl do not post duplicates - Item Open Interface giving error for Org Assignment

  • Top N query giving error for oracle 8.0.6

    Dear All,
    We are executing this query SELECT XBLNR, WERKS, MATNR, MDV01, BACKFLQUANT, STATUS, SAPTIMESTAMP, PITSTIMESTAMP, PMTIMESTAMP, BATCH FROM (SELECT XBLNR, WERKS, MATNR, MDV01, BACKFLQUANT, STATUS, SAPTIMESTAMP, PITSTIMESTAMP, PMTIMESTAMP, BATCH FROM PMBPITS.PITS_UNITY WHERE STATUS = '01' ORDER BY PMTIMESTAMP) WHERE ROWNUM < 20
    on oracle 8.0.6 but this is giving the following error
    ora - 00907 missing right parenthesis error
    1. Is it that in the inner select we cannot use order by and where clause together.
    2. We also found that if we remove order by from inner select then the query is not giving error
    pls help . points will be awarded

    Hi,
    what ever the Aman said is correct. You check this is supported in 8.1.5, SQL allows you to embed the ORDER BY clause in a subquery and place the ROWNUM condition in the top-level query;
    'Top-N query' is a ORACLE 8i feature which is supported in SQL. However,
    Bug:855720 states the following:
    "PL/SQL does not support top-N queries (ORDER BY in SUBSELECT/SUBQUERY
    or VIEW. Since this feature is available in SQL, but not in PL/SQL,
    it has been logged as a Bug that will be fixed in 8.1.6."
    - Pavan Kumar N

  • Giving error while creating a sales contact for the previous year (2008)

    Hi Friends,
    We are currently with SP12. When we try to create a sales contract for the previous year it is giving error like "Schedule line is for the item 100 cannot be after the order's latest delivery date".
    i tried debugging and found that that there is a rule created for this (in SP12). I commented the rule and tried to create a contract but, again got an error "Error while saving". This error I can't catch while debugging.
    I even didn't find where the schedule line date and header cancel dates are set so that I can change the dates manually.
    If any one has any idea, kindly help me.
    Best regards,
    Swarna Seeta

    Hi Wolfhard,
    Thanks for the reply.
    You are right and I have uncommented the line which assigns true to the return value and the contract got saved now.
    Thank you so much.
    I just want to know whether commeting this rule effects any of the functionalities of the sales contract.
    Best regards,
    Swarna Seeta

  • FM SSF_CLOSE failing and giving error message while printing a smartform

    Hi,
    for language spanish the smartform is not getting printed for output type SG11 but for english it is getting printed? What could be the reason? I debugged and found that SSF_CLOSE is failing and giving error message.
    Thanks and regards,
    AP.

    Hi Aparajita,
    for changing from one languages to another translations in SE63 is to be done, either search on SCN for using SE63 , or atleast see these wiki help .
    Transaction SE63 - Translation Tools for Translators (BC-DOC-TTL) - SAP Library
    Transaction SE63 (SAP Library - Translation Tools for Translators (BC-DOC-TTL))

  • Task Manager Not loading Properly. Giving Error No more threads can be created in the System.NAPStatus UI and Some other Task related Errors

    I have a problem with the Task Scheduler. It is not opening properly it is giving Error Message box at this time i am unable to post. The Tasks Scheduler is starts with a error alert "No more threads can be created in the System.NAPStatus UI".
     I am unable to view the history of the tasks schecduled.It is giving message as 
    "The user account does not have permission to Access the Task History."
    How to fix it. It is frustrating as can't able to track my Tasks and Create new Tasks. Any Suggestions helpful.
    Thanks in Advance.
    RehaanKhan. M

    Hi,
    Thanks for your post.
    Please check event viewer if there are some error logs?
    Meanwhile, there is a similar thread has been discussed:
    Receiving error about "no more threads"
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/9a9e22e4-d947-4d19-b06c-aaadda624dbc/receiving-error-about-no-more-threads?forum=winservergen
    Regards.
    Vivian Wang

  • WebdynproJava Components giving error while migrating from NWDS SP03 toSP09

    Hi,
    The original DC's were developed in lower NWDS patch level, currently i have upgraded the patch level of NWDS to 09 and importing the Wed Dynpro components from NWDI; but some of the DC's are proper but some are giving error.
    I tried Project build, DC build and Repairing the DC's but nothing worked.

    Hi Siarhei,
    Error:
    The constructor WSTypedModel(String, String, QName, String, Map, String, IWSTypedModelInfo, Map<String,QName>) is undefined
    Warnings:
    Versions of 'com.sap.dictionary.runtime' are different.
    Versions of 'com.sap.dictionary.services' are different.
    Versions of 'com.sap.tc_.wd_.rtgen' are different.
    Forgot to mention i am working on CE7.1
    Regards
    Jagan

  • Giving Error while generating the Data mart to Infocube.

    Hi Gurus,
    I need to  extract the APO infocube data in to the BW infocube. For that iam trying to generate the data mart to APO infocube .
    So, that i can use that data mart as a data source to extract that APO Infocube data in to  BW infocube.
    In that process iam trying to generate the datamart for APO Infocube . But while generating it is giving errors like below:
    Creation of InfoSource 8ZEXTFCST for target system BW 1.2 failed
    The InfoCube cannot be used as a data mart for a BW 1.2 target system.
    Failed to create InfoSource &v1& for target system BW 1.2.
    PLease suggest me what to do for this Error problem.
    Thanks alot in Advance.

    Hi,
    Point No : 1
    What is Planning Area :
    http://help.sap.com/saphelp_scm41/helpdata/en/70/1b7539d6d1c93be10000000a114084/content.htm
    Point No : 2
    Creation Steps for Planning Area :
    http://www.sap-img.com/apo/creation-of-planning-area-in-apo.htm
    Note : We will not create Planning Area.This will be done by APO team.
    Point No 3  : Afetr opening the T-Code : /n/SAPAPO/MSDP_ADMIN in APO you will be able to see all the planning areas.
    Point No 4 : Select your planning area and Goto Extras menu and Click on Generate DS
    Point No 5. System automaticall generate the DS in APO (Naming Convention start with 9) and Replicate the DS in BI Map to your cube and load the data.
    Regards
    Ram.

  • Giving error message when saving the Query

    Hello,
    I have added a new calculated key figure to the structure in a Query but when I try to save the Query it is giving error message is below.
    Error Message:
    u201CThis internal error is an intended termination resulting from a program state that is not permitted.
    Procedure
    Analyze the situation and inform SAP.
    If the termination occurred when you executed a query or Web template, or during interaction in the planning modeler, and if you can reproduce this termination, record a trace (transaction RSTT).
    For more information about recording a trace, see the documentation for the trace tool environment as well as SAP Note 899572u201D.
    Could any one please suggest me how can I over come with this problem.
    Thanks
    Prathap.

    Hi Prathap,
    There is some problem in the definition of the Query.
    Please click on the check button before saving the query, it gives where the problem exists in it.
    Hope it helps.
    Veeerendra.

Maybe you are looking for