Getting error in a cursor

12/1 error :sql statement ignored
12/145 error: column not allowed here.
15/1 error: sql statement ignored
15/145 error: column not allowed here
create or replace procedure pps is
ccsal number;
cursor comm is
select salary+nvl(commission_pct,0)from employees;
begin
open comm;
loop
exit when comm%notfound;
fetch comm into ccsal;
if ccsal>=3000 then
ccsal:=ccsal*10/100;
insert into emp(employee_id,last_name,salary,commission_pct,totsal) values(employees.employee_id,employees.last_name,employees.salary,employees.commission_pct,ccsal);
elsif ccsal between 10000 and 20000 then
ccsal:=ccsal*5/100;
insert into emp(employee_id,last_name,salary,commission_pct,totsal) values(employees.employee_id,employees.last_name,employees.salary,employees.commission_pct,ccsal);
end if;
end loop;
close comm;
end;
/

You try this and let me know if it helped you .. I have made some changes ..
CREATE OR REPLACE PROCEDURE pps
IS
-- ccsal NUMBER;
-- empid employees.employee_id%TYPE;
-- lname employees.last_name%TYPE;
-- sal employees.salary%TYPE;
-- cpt employees.commission_pct%TYPE;
BEGIN
FOR i IN (SELECT employee_id, last_name, salary, commission_pct,
salary + NVL (commission_pct, 0) ccsal
FROM employees)
LOOP
IF i.ccsal >= 3000
THEN
i.ccsal := i.ccsal * 10 / 100;
INSERT INTO emp
(employee_id, last_name, salary,
commission_pct, totsal
VALUES (i.employee_id, i.last_name, i.salary,
i.commission_pct, i.ccsal
ELSIF i.ccsal BETWEEN 10000 AND 20000
THEN
i.ccsal := i.ccsal * 5 / 100;
INSERT INTO emp
(employee_id, last_name, salary,
commission_pct, totsal
VALUES (i.employee_id, i.last_name, i.salary,
i.commission_pct, i.ccsal
END IF;
END LOOP;
END;
Regards..
Edited by: 180589 on May 4, 2013 12:28 PM

Similar Messages

  • Getting errors in  a cursor

    The errors are:
    7/1- sql statement ignored
    7/6 item c11 is not a cursor
    15/1 : statement ignored
    15/11:cursor attribute not applied to non-cursor 'c22'
    requirement: i have to retrieve the top 3 salaries into one table and bottom two salaries into another table
    create or replace procedure eds is
    cursor c1 is select e.last_name,e.salary from employees e where 3>(select count(*) from employees where e.salary<salary);
    cursor c2 is select e.last_name,e.salary from employees e where 3>(select count(*) from employees where e.salary>salary);
    c11 c1%rowtype;
    c22 c2%rowtype;
    begin
    open c11;
    loop
    fetch c1 into c11;
    exit when c1%notfound;
    insert into empp(ename,salary) values(c11.last_name,c11.salary);
    open c2;
    loop
    fetch c2 into c22;
    exit when c22%notfound;
    insert into empp(ename,salary) values(c22.last_name,c22.salary);
    end loop;
    close c1;
    end loop;
    close c2;
    end;
    /

    Hi,
    your mixing up syntax. You have to open the cursors ( so the line : open c11; is wrong, should be changed to open c1; ) and also check the cursor for notfound ( so change c22%notfound into c2%notfound ). Total should probably look something like this to be able to compile :
    create or replace procedure eds is
    cursor c1 is select e.last_name,e.salary from employees e where 3>(select count(*) from employees where e.salary<salary);
    cursor c2 is select e.last_name,e.salary from employees e where 3>(select count(*) from employees where e.salary>salary);
    c11 c1%rowtype;
    c22 c2%rowtype;
    begin
    open c1;
    loop
    fetch c1 into c11;
    exit when c1%notfound;
    insert into empp(ename,salary) values(c11.last_name,c11.salary);
    open c2;
    loop
    fetch c2 into c22;
    exit when c2%notfound;
    insert into empp(ename,salary) values(c22.last_name,c22.salary);
    end loop;
    close c1;
    end loop;
    close c2;
    end;
    /Regards
    Bas

  • Getting error in cursor variable in CallableStatement

    Hi,
    I am trying to retrieve result set from PL/SQL procedure using cursor variable.
    but I getting error sometime.
    this is code in my program...
    CallableStatement pstmt=null;
    pstmt = con.prepareCall("{call Crms2.SearchRNameTime(?,?,?,?,?,?)}");
    pstmt.setString(1, uid);
    pstmt.setString(2, strBookingDate);
    pstmt.setInt(3, roomid);
    pstmt.setInt(4, lngStartTime);
    pstmt.setInt(5, lngEndTime);
    pstmt.registerOutParameter(6, oracle.jdbc.driver.OracleTypes.CURSOR ); // error accured in this line
    pstmt.execute();
    rs = (ResultSet)pstmt.getObject(6);
    error was accrued at line : pstmt.registerOutParameter(6, oracle.jdbc.driver.OracleTypes.CURSOR );
    error is: orable.jdbc.driver can not resolve tha symbol..
    but it some time executing , some time giving error.
    it is require any package to import?
    please help me on this problem.
    regards
    Narru

    990187 wrote:
    i have created a cursor to return only 5th row from a table .
    declare
    cursor cur is select * From(select last_name,salary,rownum rn from employees where rownum<=50)) where rn=5;
    just a side note, (others have helped with the actual error already), using "rownum" like you do isn't very consistent. Not really sure about the requirment of "5th row", but no matter. Just keep in mind that the way Oracle assigns a rownum, and the fact you have no sorting/order ... you are - effectively - getting a random row. That is, with no data changing, Oracle may very well retrieve things in a different order due to index, new oracle version, whatever.
    If you do actually need the 5th row where you have some sorting (ie 5th largest salary, or 5th record by last name, etc. ), then you may want to consider something like:
    select * from (select last_name, salary, row_number() over (order by salary desc) rn from employees) where rn = 5;
    or whatever your sort criteria is. Do a search for "Top N" queries if you need more info.
    It'll work a bit more consistently.

  • Getting errors while comipling the cursor

    Hi,
    Currently I am trying to take the output of the query in a cursor.
    Once receving the data. I want to perform the delete operation on the fetched rows.
    For this I have built Package containing :-
    1. Procedure Spefification :-
    CREATE OR REPALCE
    PACKAGE MAIN_1 AS
    PROCEDURE MAIN_2
    CHILD_ID VARCHAR2,
    DMN VARCHAR2,
    PARENT_ID OUT VARCHAR2,
    PARENT_ID OUT VARCHAR2,
    C_CR OUT VARCHAR2
    END MAIN_1;
    2. Procedure Body
    create or replace
    PACKAGE BODY MAIN_1 AS
    PROCEDURE MAIN_2
    CHILD_ID VARCHAR2,
    DMN VARCHAR2,
    PARENT_ID OUT VARCHAR2,
    C_CR OUT VARCHAR2
    IS
    CURSOR C1 IS
    SELECT H.CHILD_ID,CONNECT_BY_ISLEAF AS NO_CHILDREN_EXIST
    FROM MY_EX_TBL H
    START WITH PRNT_ID = CHILD_ID
    CONNECT BY PRNT_ID = CHILD_ID ;
    C_ROW C1%ROWTYPE;
    BEGIN
    IF (
    CHILD_ID IS NULL
    OR
    DMN IS NULL
    THEN
    DBMS_OUTPUT.PUT_LINE ('NO DATA');
    ELSE
    --few lines of code
    END IF;
    OPEN C1;
    LOOP
    FETCH C1 INTO C_ROW;
    EXIT WHEN C1%NOTFOUND;
    FOR C_ROW IN C1
    LOOP
    DELETE FROM MY_EX_TBL WHERE CURRENT OF C1;
    END LOOP;
    END LOOP;
    CLOSE C1;
    END MAIN_2;
    END MAIN_1;
    But when i try to compile it i am getting the following errors:-
    1. Error(): PL/SQL: SQL Statement ignored
    2. Error(): PLS-00404: cursor 'C1' must be declared with FOR UPDATE to use with CURRENT OF
    3. Error(): PL/SQL: ORA-00904: : invalid identifier
    I tried to debug it but not able to... :(
    can anyone would plz. mind to provide a helping hand in this ....plz.
    Thnks

    Woah... take a step back.
    You've essentially put every SQL I posted into your code. I was just demonstrating things in stages to try and help you understand. The conclusion I came to was that you just needed the DELETE statement, based on the information you had given.
    Let's look back at what you said:
    I have the following data in my Main table
    CHILD_ID     PARENT_ID
    ASD0l12eds   ASD0l12edn
    ASD0l58ppo   ASD0l16uui
    ASD0l17jji   ASD0l19nnk
    ASD0l12edm   ASD0l12edn
    ASD0l19dds   ASD0l12edn
    ASD0l16tdp   ASD0l16uui
    ASD0l10kko   ASD0l16uui Expected Result :-
    CHILD_ID     PARENT_ID
    ASD0l12eds   ASD0l12edn
    ASD0l12edm   ASD0l12edn
    ASD0l19dds   ASD0l12edn
    ASD0l17jji   ASD0l19nnk
    ASD0l58ppo   ASD0l16uui
    ASD0l16tdp   ASD0l16uui
    ASD0l10kko   ASD0l16uui Here, your expected result is the same as your main table, just with the rows showing in a different order, so there's no useful information in that.
    You then say...
    WHAT I GOT (ACTUAL RESULT) :-
    CHILD_ID     PARENT_ID     NO_CHILDREN_EXIST
    ASD0l17jji   ASD0l19nnk    0
    ASD0l17jji   ASD0l19nnk    0
    ASD0l17jji   ASD0l19nnk    0
    ASD0l17jji   ASD0l19nnk    0
    ASD0l17jji   ASD0l19nnk    0
    ASD0l17jji   ASD0l19nnk    0
    ASD0l17jji   ASD0l19nnk    0NOTE:-
    NO_CHILDREN_EXIST = 0 WHEN CHILD Record is present
    NO_CHILDREN_EXIST = 1 WHEN CHILD Record is not presentThe fact you're getting an output like that is because your writing a hierarchical query against data which has no hierarchy, and at the same time, your "CONNECT BY" clause is not appropriate as it does not reference any PRIOR row. A Hierarchical query has different levels to it (like folders/directories in your MS Windows file system). In the data you've shown you just have a list of records where non of the child_id's exist as parent_id's so there is only the one level, and hence why all your records show no children.
    You then say:
    EXPECTED RESULT :-
    CHILD_ID     PARENT_ID     NO_CHILDREN_EXIST
    ASD0l17jji   ASD0l19nnk    0
    which doesn't make any sense. Why do you expect that 1 record as the result? Is that the record you expect after you've deleted other records, or is that the record you expect to delete? What is the logic that determines that record over other records?
    As you can see (hopefully), you haven't actually explained what the problem is so that we can help properly. The code you've tried, and the fact you've got data with "child_id" and "parent_id" seems to indicate that you want some sort of hierarchical query, but the data you've provided doesn't actually have any hierarchy to it, so none of the records (based on these facts) have any children.
    So, if I create a few other records in the data, just to demonstrate to you what a hierarchical query looks like...
    SQL> col tree_view format a30
    SQL>
    SQL> with t as (select 'ASD0l12eds' as child_id, 'ASD0l12edn' as parent_id from dual union all
      2             select 'ASD0l58ppo','ASD0l16uui' from dual union all
      3             select 'ASD0l17jji','ASD0l19nnk' from dual union all
      4             select 'ASD0l12edm','ASD0l12edn' from dual union all
      5             select 'ASD0l19dds','ASD0l12edn' from dual union all
      6             select 'ASD0l16tdp','ASD0l16uui' from dual union all
      7             select 'ASD0l10kko','ASD0l16uui' from dual union all
      8             select 'ASD0l18ggg','ASD0l58ppo' from dual union all -- new record
      9             select 'ASD0l11aaa','ASD0l18ggg' from dual union all -- new record
    10             select 'ASD0l13abc','ASD0l19dds' from dual           -- new record
    11            )
    12  --
    13  -- end of example data
    14  --
    15  select level as lvl
    16        ,parent_id
    17        ,child_id
    18        ,connect_by_isleaf as leaf_record
    19        ,lpad(' ',(level-1)*2,' ')||child_id as tree_view
    20  from   t
    21  connect by parent_id = prior child_id
    22  start with parent_id not in (select child_id from t)
    23  /
           LVL PARENT_ID  CHILD_ID   LEAF_RECORD TREE_VIEW
             1 ASD0l12edn ASD0l12edm           1 ASD0l12edm
             1 ASD0l12edn ASD0l12eds           1 ASD0l12eds
             1 ASD0l12edn ASD0l19dds           0 ASD0l19dds
             2 ASD0l19dds ASD0l13abc           1   ASD0l13abc
             1 ASD0l16uui ASD0l10kko           1 ASD0l10kko
             1 ASD0l16uui ASD0l16tdp           1 ASD0l16tdp
             1 ASD0l16uui ASD0l58ppo           0 ASD0l58ppo
             2 ASD0l58ppo ASD0l18ggg           0   ASD0l18ggg
             3 ASD0l18ggg ASD0l11aaa           1     ASD0l11aaa
             1 ASD0l19nnk ASD0l17jji           1 ASD0l17jji
    10 rows selected.Here you can see that the new records I've added have parent_id's that are also child_id's of other records, so that means that they are child records of those other records.
    The "level" can be used to see which records are top level parents of the hierarchical tree, and the connect_by_isleaf can be used to see which records have no children underneath them.
    So, either your data is not truly hierarchical or, it is but you have not provided a good example of data for us to work with.
    You also need to explain which 'child' records you want to delete. Are you just talking of removing leaf nodes from the tree? or are you talking of removing any children records (those which are not level 1 records)?

  • Getting error --- ORA-06511: PL/SQL: cursor already open

    I have the following code for a Apex(Application Express) project I am developing.
    declare
    mail_id varchar2(100);
    min_skill_cnt number;
    skill_cde varchar2(30);
    total_leave number;
    toal_emp number;
    cursor cur is
    select S_EMP_EMAIL
    from EMP_SKILLS_INFO where SKILLCODE='MGR' and S_EMP_EMAIL = lower(:APP_USER) ;
    cursor minskill is
    select skill_code,MINRQMT_AM
    from skills_code_info
    where skill_code in (select skillcode from emp_skills_info where S_EMP_EMAIL = lower(:APP_USER));
    cursor leavecnt(v_skill IN VARCHAR2) is
    select count(*) from emp_leave_info
    where leave_date = :P24_LEAVE_DATE
    and emp_email IN (select S_EMP_EMAIL from EMP_SKILLS_INFO where SKILLCODE = v_skill);
    cursor empcnt(v_skills IN VARCHAR2) is
    select count(*) from EMP_SKILLS_INFO
    where SKILLCODE = v_skills;
    begin
    open cur;
    open minskill;
    LOOP
    fetch minskill into skill_cde,min_skill_cnt;
    exit when minskill%NOTFOUND;
    open leavecnt(skill_cde);
    fetch leavecnt into total_leave;
    open empcnt(skill_cde);
    fetch empcnt into toal_emp;
    IF toal_emp-total_leave < min_skill_cnt
    then
    apex_mail.send(
    p_to => :APP_USER ,
    p_from => '[email protected]',
    p_cc => NULL,
    p_body => '***** This is a system generated message, please do not reply to this *****'||
    chr(10) || utl_tcp.crlf || 'Please review the current skill as '||:APP_USER||' is on leave'||
    chr(10) || utl_tcp.crlf ||'Thanks',
    p_subj => 'Skill code alert' );
    end if;
    END LOOP;
    close empcnt;
    close leavecnt;
    close minskill;
    close cur;
    end;
    =======================
    Ideally this should send email to managers when a particular skill is running short when employee applies for leave.
    I am getting error that cursor is already open when I run this code. I am not sure which cursor or where it is picking open cursor command.
    Any inputs will be appreciated.

    LOOP
          FETCH minskill
          INTO skill_cde, min_skill_cnt;
          EXIT WHEN minskill%NOTFOUND;
          OPEN leavecnt (skill_cde); --- here you open.. in a loop and not close inside loop
          FETCH leavecnt INTO total_leave;
          OPEN empcnt (skill_cde);--- here you open.. in a loop and not close inside loop
          FETCH empcnt INTO toal_emp;
          IF toal_emp - total_leave < min_skill_cnt
          THEN
             apex_mail.
             send (
                p_to     => :APP_USER,
                p_from   => '[email protected]',
                p_cc     => NULL,
                p_body   => '***** This is a system generated message, please do not reply to this *****'
                           || CHR (10)
                           || UTL_TCP.crlf
                           || 'Please review the current skill as '
                           || :APP_USER
                           || ' is on leave'
                           || CHR (10)
                           || UTL_TCP.crlf
                           || 'Thanks',
                p_subj   => 'Skill code alert');
          END IF;
       END LOOP;

  • Error while declaring cursor

    Hi all,when i am trying to declare a cursor in a procedure i am getting errors.Kindly correct me where i am going wrong
      1  CREATE OR REPLACE PROCEDURE xxc_lc_rcv_interface_prc IS
      2      v_a    NUMBER;
      3      v_b    NUMBER;
      4      v_c    NUMBER;
      5      v_d    NUMBER;
      6      v_e    NUMBER;
      7      v_f    NUMBER;
      8      v_g    NUMBER;
      9   CURSOR rcv_interface_cur
    10   IS
    11   SELECT shipment_header_id INTO v_c
    12   FROM RCV_SHIPMENT_HEADERS
    13   WHERE SHIPMENT_NUM = 'NOV1124';
    14   SELECT shipment_line_id INTO v_d
    15   FROM RCV_SHIPMENT_LINES
    16   WHERE SHIPMENT_HEADER_ID = v_c;
    17   BEGIN
    18     SELECT rcv_headers_interface_s.nextval INTO v_a FROM dual ;
    19     SELECT rcv_interface_group_s.nextval INTO v_b FROM dual;
    20     SELECT rcv_headers_interface_s.currval INTO v_e FROM dual ;
    21     SELECT rcv_interface_groups_s.currval  INTO v_f FROM dual;
    22     SELECT rcv_transactions_interface_s.nextval INTO v_g FROM dual;
    23  BEGIN
    24  INSERT INTO rcv_headers_interface
    25  (
    26  HEADER_INTERFACE_ID,
    27  GROUP_ID,
    28  PROCESSING_STATUS_CODE,
    29  RECEIPT_SOURCE_CODE,
    30  TRANSACTION_TYPE,
    31  AUTO_TRANSACT_CODE,
    32  LAST_UPDATE_DATE,
    33  LAST_UPDATE_LOGIN,
    34  LAST_UPDATED_BY,
    35  CREATION_DATE,
    36  CREATED_BY,
    37  VALIDATION_FLAG,
    38  COMMENTS,
    39  SHIPMENT_NUM,
    40  FROM_ORGANIZATION_ID,
    41  SHIP_TO_ORGANIZATION_ID,
    42  EXPECTED_RECEIPT_DATE
    43  --RECEIPT_HEADER_ID
    44  )
    45  VALUES
    46   (v_a,                                         --Header Interface ID
    47   v_b,                                          --Group ID
    48   'PENDING',                                    --Processing Status Code
    49   'INVENTORY',                                  --Receipt source Code
    50   'RECEIVE',                                    --Transaction Type
    51   'DELIVER'  ,                                   --AUT Transact Code
    52   sysdate,                                       --last update date
    53   1053,                                         --last updated by
    54   1053,                                        --Last Update Login
    55   sysdate,                                      --creation date
    56   1053,                                         --created by
    57   'Y',                                          --Validation Flag
    58   'Receiving Through Interface',                --Comments
    59   'NOV1124' ,                                --Shipment Number
    60   81,                                           --From Org
    61   82,                                           --To org
    62   sysdate                                     --Expected Receipt Date
    63  );
    64  END;
    65   BEGIN
    66  FOR crec IN rcv_interface_cur loop
    67  INSERT INTO rcv_transactions_interface
    68  (
    69               HEADER_INTERFACE_ID,
    70               GROUP_ID,
    71               INTERFACE_TRANSACTION_ID,
    72               TRANSACTION_TYPE,
    73               TRANSACTION_DATE,
    74               PROCESSING_STATUS_CODE,
    75               PROCESSING_MODE_CODE,
    76               TRANSACTION_STATUS_CODE,
    77               CATEGORY_ID,
    78               QUANTITY,
    79               LAST_UPDATE_DATE,
    80               LAST_UPDATED_BY,
    81               CREATION_DATE,
    82               CREATED_BY,
    83               RECEIPT_SOURCE_CODE,
    84               DESTINATION_TYPE_CODE,
    85               AUTO_TRANSACT_CODE,
    86               SOURCE_DOCUMENT_CODE,
    87               UNIT_OF_MEASURE,
    88               INTERFACE_SOURCE_CODE,
    89               ITEM_ID,
    90               --ITEM_DESCRIPTION,
    91               UOM_CODE,
    92               EMPLOYEE_ID,
    93               SHIPMENT_HEADER_ID,
    94               TO_ORGANIZATION_ID,
    95               SUBINVENTORY,
    96               FROM_ORGANIZATION_ID,
    97               FROM_SUBINVENTORY,
    98               EXPECTED_RECEIPT_DATE,
    99               SHIPPED_DATE,
    100               VALIDATION_FLAG
    101  )
    102  VALUES
    103       (v_e,                                          --Header Interface ID
    104       v_f,                                          --Group ID
    105       v_g,                                           --Interface_transaction_id
    106       'RECEIVE',                                       --Transaction Type
    107       sysdate,                                      --Transaction Date
    108       'PENDING',                                    --Processing Status Code
    109       'BATCH',                                      --Processing Mode Code
    110       'PENDING',                                    --Transaction Status Code
    111       120,                                          --Category ID
    112       2,                                           --Quantity
    113       sysdate,                                     --last update date
    114       1053,                                        --last updated by
    115       sysdate,                                      --creation date
    116       1053,                                           --created by
    117       'INVENTORY',                                  --Receipt source Code
    118       'INVENTORY',                                  --Destination Type Code
    119       'DELIVER' ,                                    --AUTO Transact Code
    120       'INVENTORY',                                  --Source Document Code
    121        'Each',                                     --Unit Of Measure
    122        'RCV',                                       --Interface Source Code
    123        2492,                                        --Item ID
    124        --'ABBY KITCHEN CURTAIN SET BEIGE/BURGUNDY',   --Item Description
    125        'EA',                                       --UOM COde
    126        1053,                                       --User
    127       v_c,                                         --Shipment Header ID
    128        v_d,                                        --SHipment Line ID
    129        82,                                           --To Organization ID
    130        'Brooklyn',                                     --Sub Inventory ID
    131        81,                                            --From Organization
    132        'Vessel',                                      --From Subinventory
    133        sysdate,                                       --Expected Receipt Date
    134        sysdate,                                      --Shipped Date
    135        'Y'                                           --Validation Flag
    136      );
    137  --END IF;
    138  END LOOP;
    139  END;
    140*     END xxc_lc_rcv_interface_prc;
    SQL> /
    Warning: Procedure created with compilation errors.
    SQL> sho err
    Errors for PROCEDURE XXC_LC_RCV_INTERFACE_PRC:
    LINE/COL ERROR
    14/2     PLS-00103: Encountered the symbol "SELECT" when expecting one of
             the following:
             begin function pragma procedure subtype type <an identifier>
             <a double-quoted delimited-identifier> current cursor delete
             exists prior
             The symbol "begin" was substituted for "SELECT" to continue.
    141/0    PLS-00103: Encountered the symbol "end-of-file" when expecting
             one of the following:
             ( begin case declare end exception exit for goto if loop mod
             null pragma raise return select update while with
             <an identifier> <a double-quoted delimited-identifier>
             <a bind variable> << continue close current delete fetch lock
             insert open rollback savepoint set sql execute commit forall
             merge pipe purge

    hi,
    I have corrected your code
    CREATE OR REPLACE PROCEDURE xxc_lc_rcv_interface_prc
    IS
       v_a   NUMBER;
       v_b   NUMBER;
       v_c   NUMBER;
       v_d   NUMBER;
       v_e   NUMBER;
       v_f   NUMBER;
       v_g   NUMBER;
       CURSOR rcv_interface_cur
       IS
          SELECT shipment_header_id
            INTO v_c
            FROM rcv_shipment_headers
           WHERE shipment_num = 'NOV';
    BEGIN
       SELECT shipment_line_id
         INTO v_d
         FROM rcv_shipment_lines
        WHERE shipment_header_id = v_c;
       SELECT rcv_headers_interface_s.NEXTVAL
         INTO v_a
         FROM DUAL;
       SELECT rcv_interface_group_s.NEXTVAL
         INTO v_b
         FROM DUAL;
       SELECT rcv_headers_interface_s.CURRVAL
         INTO v_e
         FROM DUAL;
       SELECT rcv_interface_groups_s.CURRVAL
         INTO v_f
         FROM DUAL;
       SELECT rcv_transactions_interface_s.NEXTVAL
         INTO v_g
         FROM DUAL;
       BEGIN
          INSERT INTO rcv_headers_interface
                      (header_interface_id, GROUP_ID, processing_status_code,
                       receipt_source_code, transaction_type,
                       auto_transact_code, last_update_date, last_update_login,
                       last_updated_by, creation_date, created_by,
                       validation_flag, comments, shipment_num, from_organization_id, ship_to_organization_id, expected_receipt_date
                      --RECEIPT_HEADER_ID
               VALUES (v_a,                                  --Header Interface ID
                           v_b,                                         --Group ID
                               'PENDING',                 --Processing Status Code
                       'INVENTORY',                          --Receipt source Code
                                   'RECEIVE',                   --Transaction Type
                       'DELIVER',                              --AUT Transact Code
                                 SYSDATE,                       --last update date
                                         --,                                         --last updated by
                                         --,                                        --Last Update Login
                                         SYSDATE,                  --creation date
    --    ,                                         --created by
                       'Y',                                      --Validation Flag
                           'Receiving Through Interface',               --Comments
                                                         'NOV',  --Shipment Number
    --    ,                                           --From Org
    --    ,                                           --To org
                       SYSDATE                             --Expected Receipt Date
       END;
       BEGIN
          FOR crec IN rcv_interface_cur
          LOOP
             INSERT INTO rcv_transactions_interface
                         (header_interface_id, GROUP_ID,
                          interface_transaction_id, transaction_type,
                          transaction_date, processing_status_code,
                          processing_mode_code, transaction_status_code,
                          category_id, quantity, last_update_date,
                          last_updated_by, creation_date, created_by,
                          receipt_source_code, destination_type_code,
                          auto_transact_code, source_document_code,
                          unit_of_measure, interface_source_code, item_id,
                          --ITEM_DESCRIPTION,
                          uom_code, employee_id, shipment_header_id, to_organization_id, subinventory, from_organization_id, from_subinventory, expected_receipt_date, shipped_date, validation_flag
                  VALUES (v_e,                               --Header Interface ID
                              v_f,                                      --Group ID
                          v_g,                          --Interface_transaction_id
                              'RECEIVE',                        --Transaction Type
                          SYSDATE,                              --Transaction Date
                                  'PENDING',              --Processing Status Code
                          'BATCH',                          --Processing Mode Code
                                  'PENDING',             --Transaction Status Code
    --       ,                                          --Category ID
    --       ,                                           --Quantity
                          SYSDATE,                              --last update date
    --       ,                                        --last updated by
                                  SYSDATE,                         --creation date
    --       ,                                           --created by
                          'INVENTORY',                       --Receipt source Code
                          'INVENTORY',                     --Destination Type Code
                                      'DELIVER',              --AUTO Transact Code
                                                'INVENTORY',
                                                            --Source Document Code
                          'Each',                                --Unit Of Measure
                                 'RCV',                    --Interface Source Code
    --        ,                                        --Item ID
            --'ABBY KITCHEN CURTAIN SET BEIGE/BURGUNDY',   --Item Description
                          'EA',                                         --UOM COde
    --        ,                                       --User
                               v_c,                           --Shipment Header ID
                          v_d,                                  --SHipment Line ID
    --        ,                                           --To Organization ID
                          'Brooklyn',                           --Sub Inventory ID
    --        ,                                            --From Organization
                          'Vessel',                            --From Subinventory
                          SYSDATE,                         --Expected Receipt Date
                                  SYSDATE,                          --Shipped Date
                                          'Y'                    --Validation Flag
          --END IF;
          END LOOP;
       END;
    END xxc_lc_rcv_interface_prc;
    there are many syntax errors i have corrected .
    Note : code is not compiled or tested .Thanks,
    P Prakash
    Edited by: prakash on Nov 21, 2011 4:00 AM

  • Getting error while loading Flat File

    Hello All,
    I am getting error while loading flat file. Flat file is a CSV file.
    Value ',,,,,,,,' of characteristic 0DATE is not a number with 000008 spaces
    Data seprator  |
    Escape sign    ;
    It has 23708 entries , it s loading successfully till 23 665 entries
    Besides when checked in PSA
    for record having entries >23667 has calender day as ,,,,,, where as rest entries are  having date
    Besides when i checked in Flat file ,the total number of rows is 23,667 is there but i wonder why it has got 23,708 in
    RSMO
    Could you please let me know how to correct.
    regards
    path

    Hi,
    For date column you should maintain YYYYMMDD formate Eg: 20090601, kepp cursor on date column and right click and Formate >Custome>make it 00000000 then save teh file as .CSV . First type values on column and do like this formate and save it and without opening it load it. Once you open it you losw 00000000 formate you need to give again the same formate.
    Settings in Infopackage:
    Data Format  = CSV
    Data Separator = ,
    Escape Sign = ;
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/01ed2fe3811a77e10000000a422035/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/80/1a6567e07211d2acb80000e829fbfe/content.htm
    Thanks
    Reddy

  • I am getting error "ORA-12899: value too large for column".

    I am getting error "ORA-12899: value too large for column" after upgrading to 10.2.0.4.0
    Field is updating only through trigger with hard coded value.
    This happens randomly not everytime.
    select * from v$version
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE     10.2.0.4.0     Production
    TNS for Linux: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    Table Structure
    desc customer
    Name Null? Type
    CTRY_CODE NOT NULL CHAR(3 Byte)
    CO_CODE NOT NULL CHAR(3 Byte)
    CUST_NBR NOT NULL NUMBER(10)
    CUST_NAME CHAR(40 Byte)
    RECORD_STATUS CHAR(1 Byte)
    Trigger on the table
    CREATE OR REPLACE TRIGGER CUST_INSUPD
    BEFORE INSERT OR UPDATE
    ON CUSTOMER FOR EACH ROW
    BEGIN
    IF INSERTING THEN
    :NEW.RECORD_STATUS := 'I';
    ELSIF UPDATING THEN
    :NEW.RECORD_STATUS := 'U';
    END IF;
    END;
    ERROR at line 1:
    ORA-01001: invalid cursor
    ORA-06512: at "UPDATE_CUSTOMER", line 1320
    ORA-12899: value too large for column "CUSTOMER"."RECORD_STATUS" (actual: 3,
    maximum: 1)
    ORA-06512: at line 1
    Edited by: user4211491 on Nov 25, 2009 9:30 PM
    Edited by: user4211491 on Nov 25, 2009 9:32 PM

    SQL> create table customer(
      2  CTRY_CODE  CHAR(3 Byte) not null,
      3  CO_CODE  CHAR(3 Byte) not null,
      4  CUST_NBR NUMBER(10) not null,
      5  CUST_NAME CHAR(40 Byte) ,
      6  RECORD_STATUS CHAR(1 Byte)
      7  );
    Table created.
    SQL> CREATE OR REPLACE TRIGGER CUST_INSUPD
      2  BEFORE INSERT OR UPDATE
      3  ON CUSTOMER FOR EACH ROW
      4  BEGIN
      5  IF INSERTING THEN
      6  :NEW.RECORD_STATUS := 'I';
      7  ELSIF UPDATING THEN
      8  :NEW.RECORD_STATUS := 'U';
      9  END IF;
    10  END;
    11  /
    Trigger created.
    SQL> insert into customer(CTRY_CODE,CO_CODE,CUST_NBR,CUST_NAME,RECORD_STATUS)
      2                values('12','13','1','Mahesh Kaila','UPD');
                  values('12','13','1','Mahesh Kaila','UPD')
    ERROR at line 2:
    ORA-12899: value too large for column "HPVPPM"."CUSTOMER"."RECORD_STATUS"
    (actual: 3, maximum: 1)
    SQL> insert into customer(CTRY_CODE,CO_CODE,CUST_NBR,CUST_NAME)
      2                values('12','13','1','Mahesh Kaila');
    1 row created.
    SQL> set linesize 200
    SQL> select * from customer;
    CTR CO_   CUST_NBR CUST_NAME                                R
    12  13           1 Mahesh Kaila                             I
    SQL> update customer set cust_name='tst';
    1 row updated.
    SQL> select * from customer;
    CTR CO_   CUST_NBR CUST_NAME                                R
    12  13           1 tst                                      Urecheck your code once again..somewhere you are using record_status column for insertion or updation.
    Ravi Kumar

  • Getting Error in Master Repo creation in ODI 10.1.3.5

    Hi All,
    I am creating Master repo with MS SQL Server 2000 and using two approches but getting error.
    In first approch -
    I am using Driver --->>> com.microsoft.sqlserver.jdbc.SQLServerDriver and
    URL---->>> jdbc:sqlserver://localhost:1433;selectMethod=cursor;database=Master_ODI;integratedSecurity=false
    Master repo starts but in between getting error "*connection closed*" and some time "*Not delete permission for user on SNP_LICENSE.*
    Second Approch -
    Using Driver -->> sun.jdbc.odbc.JdbcOdbcDriver
    Url-->> jdbc:odbc: <DSN name with master database in SQl Server>
    in this approch I am able to create Mater repo but in topology I am not able to see Master repo in Repository window.
    Please help me out if Iam doing somthing wrong or missed some steps.
    Regards,
    Vibhav

    Just follow the below steps to create master repository in MS SQL Server, you can find these steps in odi installation folder.
    Creating Repository Storage Spaces
    Create a database db_snpm to host the Master repository and a database db_snpw to host the work repository. Create two logins snpm and snpw which have these databases by default.
    Use Enterprise Manager to create the two databases db_snpm and db_snpw (allow about 40 Mb for Data and 20 Mb for Log for each of them)
    Use Query Analyzer or I-SQL to launch the following commands:
    CREATE LOGIN <mylogin>
            WITH PASSWORD = '<mypass>',
            DEFAULT_DATABASE = <defaultbase>,
            DEFAULT_LANGUAGE = us_english;
    USE <defautbase>;
    CREATE USER dbo FOR LOGIN <mylogin>;
    GO
    Where: <mylogin> corresponds to snpm or snpw <mypass> corresponds to a password for these logins <defaultbase> corresponds to db_snpm and db_snpw respectively
    Creating the Master Repository
    Creating the master repository consists of creating the tables and the automatic importing of definitions for the different technologies.
    To create the master repository:
    In the Start Menu , select Programs > Oracle Data Integrator > Repository Management > Master Repository Creation , or Launch bin/repcreate.bat or bin/repcreate.sh.
    Complete the fields:
    Driver : the driver used to access the technology which will host the repository. For more information, refer to the section JDBC URL Sample.
    URL : The complete path for the data server to host the repository. For more information, refer to the section JDBC URL Sample.
    User : The user id / login of the owner of the tables (previously created under the name snpm).
    Password : This user's password.
    ID : A specific ID for the new repository, rather than the default 0. This will affect imports and exports between repositories.
    Technologies : From the list, select the technology your repository will be based on.
    Language: Select the language of your master repository.
    Validate by OK.
    Creating the dictionary begins. You can follow the procedure on your console. To test your master repository, refer to the section Connecting to the master repository.

  • Getting Error 150:30 in Photoshop CS4

    Had a HD crash and reinstalled CS4 on the new HD and get error 150:30.
    Does anyone know how to correct and activate PS, thank you?

    Are you running LicenseRecoveryLauncher.app? That's for 10.6.8
    If you type in the password, the cursor will not move or show dots. So you ignore that, simply type the password and press enter.

  • Error Returning REF CURSOR

    I'm trying to return a REF CURSOR from a function and get the following error:
    ORA-00932: inconsistent datatypes: expected CURSER got NUMBER
    ORA-06512: at "CERTS.JIMMY", line 17
    ORA-06512: at line 10
    Here is my function:
    CREATE OR REPLACE PACKAGE jimmy
    AS
    TYPE refc IS REF CURSOR
    RETURN equipment%rowtype;
    FUNCTION getresults(p_ssan_in IN equipment.ssan%TYPE,
                             p_type_in IN equipment.equip_type%TYPE)
         RETURN refc;
    END jimmy;
    CREATE OR REPLACE PACKAGE BODY jimmy
    AS
    FUNCTION getresults( p_ssan_in IN equipment.ssan%TYPE,
                                  p_type_in IN equipment.equip_type%TYPE)
    RETURN refc
    IS
    l_cursor refc;
    isretired equipment.retired%TYPE := 'N';
    qry varchar2(100) := 'SELECT * ' ||
                                  'FROM equipment ' ||
                                  'WHERE ssan = :b1 ' ||
                                  'AND equip_type = :b2 ' ||
                                  'AND retired = :b3';
    BEGIN
    EXECUTE IMMEDIATE qry
         INTO l_cursor
         USING p_ssan_in, p_type_in, isretired;
    RETURN l_cursor;
    END getresults;
    END jimmy;
    The data types for the parameters are all varchar2. I don't know why it says it is returning a number.

    I tried your suggestion:
    BEGIN
    OPEN l_cursor
         FOR qry
         USING p_ssan_in, p_type_in, isretired;
    RETURN l_cursor;
    END getresults;
    But I get an error:
    PLS-00455: cursor 'L_CURSOR' cannot be used in dynamic SQL OPEN statement

  • Getting error in this code

    Hi,
    please dont consider about the performence in this case.
    i have a delete statement DELETE FROM GSM_ITEM_INFO WHERE EXPIRE_TIME<SYSDATE-1;
    this delete statement may delete millions of records,i should not delete all the records at a time.
    i have to run a loop so that each time it deletes 10000 records for each commit. if the count of records less than 10000 records then i have to come out of the loop without deleting it.  i have written code like this. getting errors.
    CREATE OR REPLACE PROCEDURE TEST_ITEM_CLEAN (limit_in IN NUMBER DEFAULT 10000)
    IS
        type ITEM_CUR IS REF CURSOR;
        L_ITEM_CUR ITEM_CUR;
        TYPE ITEM_TYPE IS TABLE OF NUMBER
            INDEX BY PLS_INTEGER;
        L_ITEM ITEM_TYPE;
    BEGIN
    for i in 1..10
    loop
        OPEN L_ITEM_CUR FOR SELECT ITEM_ID FROM GSM_ITEM_INFO;
            FETCH L_ITEM_CUR
                BULK COLLECT INTO L_ITEM LIMIT limit_in;
            FORALL indx IN L_ITEM.FIRST .. L_ITEM.LAST
              DELETE FROM GSM_ITEM_INFO WHERE ITEM_ID=L_ITEM(indx).ITEM_ID;   
       CLOSE L_ITEM_CUR;  
    end loop;  
    END TEST_ITEM_CLEAN;
    errors:
    LINE/COL ERROR
    24/11    PL/SQL: SQL Statement ignored
    24/61    PL/SQL: ORA-22806: not an object or REF
    24/61    PLS-00487: Invalid reference to variable 'NUMBER'

    Your procedure might contain just  NOT TESTED !
    begin
      loop
        delete from gsm_item_info
         where expire_time < sysdate - 1
           and rownum <= p_limit;  /* never used rownum in update like this */
         delete from gsm_item_info
         where some_key in (select some_key
                              from gsm_item_info
                             where expire_time < sysdate - 1
                                and rownum <= p_limit
        if sql%rowcount = p_limit then
          commit;
        else
          rollback;
          exit;
        end if;
      end loop;
    end;
    Regards
    Etbin

  • Getting error wrong number or type of parameters for EAM_PROCESS_WO_PUB

    Hi All,
    I am Getting error wrong number or type of parameters for EAM_WO_PROCESS_PUB.PROCESS_WO API, pls any body can help me,pls send code for
    EAM_WO_PROCESS_PUB.PROCESS_WO API.
    Thanks&Reagrds,
    Hanimi Reddy.

    Hi srini,
    I developed code for work order api EAM_PROCESS_WO_PUB.PROCESS_MASTER_CHILD_WO following and i am getting error wrong number or types of arguments in call to 'PROCESS_MASTER_CHILD_WO, pls see the code and help me
    CREATE OR REPLACE PROCEDURE SANG_WR_TO_WO_API/*(ERRBUF OUT VARCHAR2, RETCODE OUT VARCHAR2)*/ IS
    v_created_by number;
    v_updated_by number;
    v_updated_name varchar2(30);
    V_ENTITY_ID VARCHAR2(30);
    l_EAM_WO_RELATIONS_TBL EAM_PROCESS_WO_PUB.EAM_WO_RELATIONS_TBL_type ;
    --:= EAM_PROCESS_WO_PUB.g_miss_EAM_WO_RELATIONS_rec;
    l_eam_wo_tbl EAM_PROCESS_WO_PUB.eam_wo_rec_type; --:= EAM_PROCESS_WO_PUB.G_MISS_EAM_WO_rec;
    l_eam_op_tbl EAM_PROCESS_WO_PUB.eam_op_tbl_type ;--:= EAM_PROCESS_WO_PUB.G_MISS_eam_op_tbl;
    l_eam_op_network_tbl EAM_PROCESS_WO_PUB.eam_op_network_tbl_type; --:= EAM_PROCESS_WO_PUB.G_MISS_eam_op_network_tbl;
    l_eam_res_tbl EAM_PROCESS_WO_PUB.eam_res_tbl_type;--:= EAM_PROCESS_WO_PUB.G_MISS_eam_res_tbl;
    l_eam_res_inst_tbl EAM_PROCESS_WO_PUB.eam_res_inst_tbl_type; --:= EAM_PROCESS_WO_PUB.G_MISS_eam_res_inst_tbl;
    l_eam_sub_res_tbl EAM_PROCESS_WO_PUB.eam_sub_res_tbl_type; --:= EAM_PROCESS_WO_PUB.G_MISS_eam_sub_res_tbl ;
    -- l_eam_res_usage_tbl EAM_PROCESS_WO_PUB.eam_res_usage_tbl_type := EAM_PROCESS_WO_PUB.G_MISS_eam_res_usage_tbl;
    l_eam_mat_req_tbl EAM_PROCESS_WO_PUB.eam_mat_req_tbl_type; --:= EAM_PROCESS_WO_PUB.G_MISS_eam_mat_req_tbl ;
    l_eam_direct_items_tbl EAM_PROCESS_WO_PUB.eam_direct_items_tbl_type; --:= EAM_PROCESS_WO_PUB.G_MISS_eam_direct_items_tbl ;
    l_x_eam_wo_tbl EAM_PROCESS_WO_PUB.eam_wo_rec_type; --:= EAM_PROCESS_WO_PUB.G_MISS_eam_wo_rec;
    l__x_EAM_WO_RELATIONS_TBL EAM_PROCESS_WO_PUB.EAM_WO_RELATIONS_TBL_type ;--:= EAM_PROCESS_WO_PUB.g_miss_EAM_WO_RELATIONS_TBL;
    l_x_eam_op_tbl EAM_PROCESS_WO_PUB.eam_op_rec_type; --:= EAM_PROCESS_WO_PUB.G_MISS_eam_op_rec ;
    l_x_eam_op_network_tbl EAM_PROCESS_WO_PUB.eam_op_network_tbl_type; --:= EAM_PROCESS_WO_PUB.G_MISS_eam_op_network_tbl;
    l_x_eam_res_tbl EAM_PROCESS_WO_PUB.eam_res_tbl_type; --:= EAM_PROCESS_WO_PUB.G_MISS_eam_res_tbl;
    l_x_eam_res_inst_tbl EAM_PROCESS_WO_PUB.eam_res_inst_tbl_type; --:= EAM_PROCESS_WO_PUB.G_MISS_eam_res_inst_tbl ;
    l_x_eam_sub_res_tbl EAM_PROCESS_WO_PUB.eam_sub_res_tbl_type; --:= EAM_PROCESS_WO_PUB.G_MISS_eam_sub_res_tbl;
    -- l_x_eam_res_usage_tbl EAM_PROCESS_WO_PUB.eam_res_usage_tbl_type := EAM_PROCESS_WO_PUB.G_MISS_eam_res_usage_tbl ;
    l_x_eam_mat_req_tbl EAM_PROCESS_WO_PUB.eam_mat_req_tbl_type; --:= EAM_PROCESS_WO_PUB.G_MISS_eam_mat_req_tbl;
    l_x_eam_direct_items_tbl EAM_PROCESS_WO_PUB.eam_direct_items_tbl_type; --:= EAM_PROCESS_WO_PUB.G_MISS_eam_direct_items_tbl ;
    l_x_return_status VARCHAR2(30);
    l_x_msg_count NUMBER;
    l_x_debug VARCHAR2(30);
    l_output_dir VARCHAR2(30);
    l_debug_filename VARCHAR2(30) ;
    l_debug_file_mode VARCHAR2(30) ;
    CURSOR CUR_WTW IS
    SELECT
    EWR.WIP_ENTITY_ID
    ,EWR.WIP_ENTITY_NAME
    ,EWR.ORGANIZATION_ID
    ,WAC.ORGANIZATION_CODE
    ,EWR.DESCRIPTION
    ,EWR.ASSET_GROUP_ID
    ,EWR.ASSET_NUMBER
    ,EWR.ASSET_NUMBER_DESCRIPTION
    ,WAC.ACCOUNTING_CLASS
    ,WAC.MATERIAL_ACCOUNT
    ,WAC.MATERIAL_OVERHEAD_ACCOUNT
    ,WAC.RESOURCE_ACCOUNT
    ,WAC.OUTSIDE_PROCESSING_ACCOUNT
    ,WAC.MATERIAL_VARIANCE_ACCOUNT
    ,WAC.RESOURCE_VARIANCE_ACCOUNT
    ,WAC.OUTSIDE_PROC_VARIANCE_ACCOUNT
    ,WAC.STD_COST_ADJUSTMENT_ACCOUNT
    ,WAC.OVERHEAD_ACCOUNT
    ,WAC.OVERHEAD_VARIANCE_ACCOUNT
    ,EWR.WORK_REQUEST_OWNING_DEPT_ID
    ,EWR.WORK_REQUEST_OWNING_DEPT
    ,EWR.WORK_REQUEST_PRIORITY_ID
    ,EWR.WORK_REQUEST_PRIORITY
    ,EWR.WORK_REQUEST_STATUS_ID
    ,WAC.ORGANIZATION_NAME
    FROM
    WIP_EAM_WORK_REQUESTS_V EWR
    ,WIPFV_ACCOUNTING_CLASSES WAC
    ,WIP_EAM_PARAMETERS WAP
    WHERE
    EWR.ORGANIZATION_ID = WAC.ORGANIZATION_ID
    AND WAC.ORGANIZATION_ID = WAP.ORGANIZATION_ID
    AND WAC.ACCOUNTING_CLASS = WAP.DEFAULT_EAM_CLASS
    AND EWR.WORK_REQUEST_STATUS = 'Awaiting Work Order';
    BEGIN
    --i number := 1;
    FND_GLOBAL.apps_initialize (1001255, 50326, 700, 0);
    V_CREATED_BY := FND_GLOBAL.USER_ID;
    V_UPDATED_BY := FND_GLOBAL.USER_ID;
    v_updated_name := FND_GLOBAL.USER_name;
    for rec in cur_wtw loop
    l_eam_wo_tbl.WIP_ENTITY_ID := rec.wip_entity_id;
    l_eam_wo_tbl.ORGANIZATION_ID := rec.ORGANIZATION_ID ;
    l_eam_wo_tbl.ASSET_NUMBER := rec.ASSET_NUMBER;
    l_eam_wo_tbl.ASSET_GROUP_ID := rec.ASSET_GROUP_ID ;
    l_eam_wo_tbl.DESCRIPTION := rec.DESCRIPTION ;
    --SELECT WIP_ENTITIES_S.NEXTval INTO V_ENTITY_ID FROM DUAL;
    EAM_PROCESS_WO_PUB.PROCESS_MASTER_CHILD_WO
    (P_PO_IDENTIFIER => 'EAM'
    ,P_API_VERSION_NUMBER => 1.0
    ,P_INIT_MSG_LIST => FALSE
    ,P_EAM_WO_RELATIONS_TBL => l_EAM_WO_RELATIONS_TBL
    ,P_EAM_WO_tbl => l_eam_wo_tbl
    , p_eam_op_tbl => l_eam_op_tbl
    , p_eam_op_network_tbl => l_eam_op_network_tbl
    , p_eam_res_tbl => l_eam_res_tbl
    , p_eam_res_inst_tbl => l_eam_res_inst_tbl
    , p_eam_sub_res_tbl => l_eam_sub_res_tbl
    --, p_eam_res_usage_tbl => l_eam_res_usage_tbl
    , p_eam_mat_req_tbl => l_eam_mat_req_tbl
    , p_eam_direct_items_tbl => l_eam_direct_items_tbl
    , x_eam_wo_tbl => l_x_eam_wo_tbl
    , X_EAM_WO_RELATIONS_TBL => l__x_EAM_WO_RELATIONS_TBL
    , x_eam_op_tbl => l_x_eam_op_tbl
    , x_eam_op_network_tbl => l_x_eam_op_network_tbl
    , x_eam_res_tbl => l_x_eam_res_tbl
    , x_eam_res_inst_tbl => l_x_eam_res_inst_tbl
    , x_eam_sub_res_tbl => l_x_eam_sub_res_tbl
    -- , x_eam_res_usage_tbl =>l_x_eam_res_usage_tbl
    , x_eam_mat_req_tbl => l_x_eam_mat_req_tbl
    , x_eam_direct_items_tbl => l_x_eam_direct_items_tbl
    , x_return_status => l_x_return_status
    , x_msg_count => l_x_msg_count
    ,p_commit =>'N'
    , p_debug => 'N'
    , p_output_dir => NULL
    , p_debug_filename => 'EAM_WO_DEBUG.log'
    , p_debug_file_mode => 'w'
    END LOOP;
    END SANG_WR_TO_WO_API;
    COMMIT;
    Thanks ,
    Hanimi

  • Getting error as Memory full

    hi
    I am frequentky getting error as Memory full delete some datas ecen i have "sufficient memory", so i not Receive sms, once i swith off and then on i am able to receive. give me a suggesition what to i do.Please help me ASAP

    First use an [OPEN CURSOR|http://help.sap.com/abapdocu/en/ABAPOPEN_CURSOR.htm] like
          OPEN CURSOR WITH HOLD s_cursor FOR
          SELECT aufnr ingpr addat
            FROM afih
            WHERE addat in s-addat.
    Then in a DO/ENDDO loop [FETCH|http://help.sap.com/abapdocu/en/ABAPFETCH.htm] the data
        FETCH NEXT CURSOR s_cursor
                   INTO TABLE t_afih
                   PACKAGE SIZE s_s_if-maxsize.
        IF sy-subrc NE 0.
          CLOSE CURSOR s_cursor.
          EXIT.
        ENDIF.
    Don't hesitate to click on the links provided.
    Regards,
    Raymond

  • TS3212 I uninstalled iTunes because I have not bben able to update it or my iphone. I was told the program was infected. I am reinsatlling and getting error code 2203. Any ideas?

    I uninstalled my iTunes because it would not update and I have not been able to update my phone. I was told my program was infected and to uninstall and then reinstall it. I am now getting error code 2203 when I try to reinstall it. This is the second time trying to reinstall. The first time it was reinstalled with the same problems I orginally had. I am running Windows 7. Any ideas? Thanks for any help.

    Or....
    For Mac OS X:
    Step 1. Go to your “Applications” folder
    Step 2. Go to your “Utilities” folder
    Step 3. Launch “Terminal”
    Step 4. Type “sudo nano /etc/hosts” (without quotes) and hit return
    Step 5. Enter your password
    Step 6. Use the down arrow key to find the “gs.apple.com” entries. Once the cursor is in front, make sure you comment out the line(s) by entering “#” (no quotes) in front of the text
    Step 7. Save the file by pressing CONTROL+O on the keyboard
    Step 8. Exit the nano editor by pressing CONTROL+X on the keyboard
    Step 9. Restore your iDevice
    Try that

Maybe you are looking for

  • R12 Format Payment Instructions - new field required in report output

    Hi I need to add a new field in the report "Format Payment Instructions " output. How can I add the logic to pick this field and then add to the layout. As per note 562806.1, it gives instructions on how to re-arrange the layout of the format payment

  • Swing n xml

    Hello Techies, I am using reading xml file by using DOM in java. My problem is i have to read the xml file n the values b/w the tags <name> n < value> i have to take. Here is the my xml file <kk> <name>PRICE</name> <value>6</value> </kk> <kk> <name>S

  • Pb of if and end if

    I have this code and i receive always this message even if i have done my possible to correct what is not correct 'LOOP met instead 'if' I don't understand where there is a problem Here is the code DECLARE /*déclaration du curseur qui récupère les do

  • How to change in English?

    好哦

  • HT3819 more than 5 computers on homesharing

    We are a family of 6 members + 1 au pair and a student from another country. Are there any possibility to  share between this amount of PCs?