Invalid Cursor when I want to modify itab with READ TABLE ?

Following code causes a core dump and says invalid cursor.
What should I do if I want to change gt_itab .?
REPORT  ZEV_READ_TABLE.
data: begin of gt_itab occurs 0,
       key like vbrk-vbeln,
       name(10) type C,
       amount type i,
      end of gt_itab .
start-of-SELECTION.
      gt_itab-key = 1.
      gt_itab-name = 'erkan'.
      gt_itab-amount = 10.
      append gt_itab.
      gt_itab-key = 2.
      gt_itab-name = 'dilem'.
      gt_itab-amount = 20.
      append gt_itab.
      LOOP AT gt_itab.
        write:/ gt_itab-key,
                gt_itab-name,
                gt_itab-amount.
      ENDLOOP.
      Read table gt_itab with key Key = 1.
       if sy-subrc = 0.
          gt_itab-amount = 100.
          modify gt_itab.
       endif.
Kind Regards.
Erkan VAROL

Change the code this way & try
modify gt_itab index sy-tabix.

Similar Messages

  • It always ask me to fill my credit card number when I want to purchase just with my apple store gift card

    It always ask me to fill my credit card number when I want to purchase just with my apple store gift card. I chose 'none' for my billing address, and it always ask for my credit card Number, and ive actually redeemed $110 itunes gift card.

    Apple verifies your payment method with nearly every purchase now for your security.
    On an iOS device make sure to tap Done after selecting None.
    Same thing on a computer. Make sure to click Done if you select None for Payment Method.

  • Hello, the "sign" feature does not show when i open a pdf document with reader (MAC)

    Hello, the "sign" feature does not show when i open a pdf document with reader (MAC)

    Hi mentane,
    Thank you for posting on the Adobe forums, what is the version of Adobe Reader you are working with.
    Open Adobe Reader>Adobe Reader>about Adobe Reader.
    Thanks,
    Vikrantt Singh

  • HT204053 What is the best Appleid configuration when you want to share content with your children o n their ipad?

    What is the best AppleId cinfiguration when you want share content with other iPads owned in family?

    To share content you need to share an ID for the iTunes and App stores, however, I'd suggest seperate ID's for everything else.

  • How can I add a logo when I want to send files with Adobe Send?

    I have bought adobe send today. when I wanted to send the file in the pdf reader (after opening an account for adobe send), the system asked me whether I wanted to add a company logo / signature to the sent file. I confirmed, but then a pop-up window came and said I have to change some settings -----but WHERE? Cannot find a place in the menu to do this

    Hi Dirk6343,
    That feature isn't available directly through Adobe Reader. Please log in directly to your account at https://cloud.acrobat.com/send. On the right side, you'll see a box labeled Recipient Page. Select Add Your Logo & Color, and then click Edit. Click Add Logo, and then navigate to where your logo is stored on your hard disk.
    Please let us know how it goes!
    Best,
    Sara

  • Hard Reboot when launching a second pdf file with Reader 9

    Hi,
    One pdf file is open with Reader 9 under Win XP Pro SP3.
    Everything OK
    I want to open a second pdf file and sudenly the computer reboot !
    The computer is up to date.
    I have Office 2007 and a Norton Corporate as antivirus.
    I really don't know where to find a solution, I've browsed several forums and no answer...
    If U have any idea, thanks a lot.

    No blue screen error !
    And nothing in the event viewer either.
    I'uninstalled this version and back to version 8.1.2 and it rocks.
    Everything OK
    Thanks for the help !

  • BaseTableName blank when calling GetSchema on a query with multiple tables

    I am using ODP.NET 11.2.0.3.0 and when calling GetSchemaTable on a DataReader that contains a join the returned SchemaTable has the BaseTableName and BaseColumnName fields blank - this is different than what I see with the Oracle OLE DB Provider and with how SQL Server's native provider works. I can't find any discussion of this - is this on purpose or is it a bug? why does the available schema information vary so drastically between a single table query and a query with multiple tables joined?
    Thanks,
    Bryan Hinton

    Hi Bryan,
    I am also facing the same issue. Did u find any work around or any suggestions will be well appreciated.
    Thanks,
    Naresh.

  • Getting ORA-01001: invalid cursor when I try to parse my SQL statement with DBMS_SQL

    -- To modify this template, edit file PROC.TXT in TEMPLATE
    -- directory of SQL Navigator
    -- Purpose: Briefly explain the functionality of the procedure
    -- MODIFICATION HISTORY
    -- Person Date Comments
    TYPE column_find IS VARRAY(999) of VARCHAR2(4);
    v_client_column varchar2(4);
    v_errorcode NUMBER;
    v_errortext VARCHAR2(200);
    i number :=0;
    V_COLUMN_NAME varchar2(20);
    V_COLUMN_NAME2 varchar2(20);
    v_SQL_STMT varchar2(2000);
    v_c_hndl integer;
    v_Client_ID varchar2(200);
    column_name varchar2(20);
    execute_feedback integer;
    mal material_attribute_pre_load%
    ROWTYPE;
    local_var varchar2(200);
    clienttab DBMS_SQL.DATE_TABLE;
    client_column column_find := column_find();
    -- Declare program variables as shown above
    BEGIN
    --client_column := column_find();
    v_c_hndl := DBMS_SQL.OPEN_CURSOR;
    while i < 999
    LOOP
    i := i + 1;
    client_column.EXTEND;
    client_column(i) := CONCAT('c',i);
    dbms_output.put_line(client_column(i));
    BEGIN
    dbms_output.put_line('Starting SQL_STMT.');
    v_SQL_STMT := 'SELECT :column_name FROM
    MATERIAL_ATTRIBUTE_PRE_LOAD WHERE :column_name2 = :v_Client_ID';
    dbms_output.put_line('Starting DBMS_SQL.PARSE.');
    DBMS_SQL.PARSE(v_c_hndl,v_SQL_STMT,DBMS_SQL.NATIVE);
    dbms_output.put_line('Starting DBMS_SQL.BIND_VARIABLE.');
    DBMS_SQL.BIND_VARIABLE
    (v_c_hndl,'v_Client_ID','Client ID');
    DBMS_SQL.BIND_VARIABLE
    (v_c_hndl,'column_name',client_column(i));
    DBMS_SQL.BIND_VARIABLE
    (v_c_hndl,'column_name2',client_column(i));
    dbms_output.put_line('Starting DBMS_SQL.DEFINE_ARRAY.');
    DBMS_SQL.DEFINE_ARRAY(v_c_hndl,1,clienttab,999,1);
    execute_feedback := DBMS_SQL.EXECUTE_AND_FETCH
    (v_c_hndl);
    DBMS_SQL.CLOSE_CURSOR(v_c_hndl);
    dbms_output.put_line
    EXCEPTION
    WHEN OTHERS THEN
    v_errorcode := SQLCODE;
    v_errortext := SUBSTR(SQLERRM,1,200);
    dbms_output.put_line('DISPLAY_ERROR'||SUBSTR(TO_CHAR
    (v_errorcode)||v_errortext,1,30));
    END;
    END LOOP;
    EXCEPTION
    WHEN OTHERS THEN
    v_errorcode := SQLCODE;
    v_errortext := SUBSTR(SQLERRM,1,200);
    dbms_output.put_line('DISPLAY_ERROR'||SUBSTR(TO_CHAR
    (v_errorcode)||v_errortext,1,30));
    END; -- Procedure COLUMN_FIND

    I'm using Oracle Database Express edition (latest version from the website afaik), logging into the web interface (using unique account I created after setup[not System], gave it All rights), clicking on SQL > SQL Commands > Enter commands.
    I can't run each insert individually, that is only 1 table out of 8 tables, and I probably need to be able to run the entire script (which is actually headed by a sequence of Drop Table commands) sometimes, to refresh the data back to original values in case I stuff things up. The code was originally provided in a text file called bookscript.sql, but I haven't had any success importing or uploading that file into Oracle XE, if I use SQL > SQL Scripts > Upload, the file uploads, I then click on it and click on Run, but nothing seems to happen. (File is shared [read-only] here: https://docs.google.com/leaf?id=0B7IgBXIBNxw3OTY1ZTdmNGQtMjEwYi00YmRmLTkwZjItODZkYmYxODNkMTk4&hl=en_US).
    Would love any guidance as to how to modify my environment or how to input the code differently to get it running, it works fine in the hosted environment at Uni, it's an Oracle class (textbook is Guide to Oracle 10g). Lecturer doesn't seem to know much about setting up Oracle, only working in a functioning environment.

  • How do i change cursor when mouse over a Chart,Graph or Pivot table in 11g

    hello everyone...!!
    I wanted to change the cursor shape from that hand to an arrow .
    As we know whenever the mouse cursor rolls over any button or pivot table ,chart or graphs it changes to a Hand shape, i wanted it to remain in the default arrow shape.
    This is for obiee 11g.
    Please help.

    the above sol will only help you to see the cursor on the local machine
    to make it visible on every machine
    goto column properties >> additional CSS>>in css write cursor:default
    then save changes system wide for these data type
    Also make the same changes in the other datatypes also.......
    cheers
    Ankit

  • When i want to call somwhone with my i-phone, i only hear the other person, if i press the loud-speaker. does anywhone know, how i can solve this problem

    what can i do, when i call someone with mit i-phone, i only hear the other person, when i press the loud-speaker button, does anyone know, how to solve this problem

    Does hte iPhone say headphones when you adjust the volume, even when they aren't connected?
    If it does, there might be some lint or something in the jack. Take a look at this Apple document -> iPhone: Can't hear through the receiver or speakers

  • When I want to update my adobe reader it says to close internet explorer-what should I do?

    My computer will not download the updated adobe reader until I close internet explorer. I am a computer novice and am unsure what to do.

    How to close Internet Explorer and other programs running on Windows

  • Invalid Cursor Error when executing a form

    I am getting the following error
    "Error Executing Cursor
    ORA-01001: invalid cursor"
    when I try to "Submit" information in a form based on the procedure below. What's the problem?! The procedure compiles fine.
    create or replace procedure MARKETING_FORM_2_7
    (ToAdd in Varchar2,
    FromAdd in Varchar2,
    Subject in Varchar2,
    SenderName in Varchar2,
    Branch in Varchar2,
    Phone in Varchar2,
    Address in Varchar2,
    Suggestion in Varchar2,
    SalesPromo in Varchar2,
    TradeshowPrep in Varchar2,
    SalesMaterials in Varchar2,
    DirectMail in Varchar2,
    CounterDays in Varchar2,
    BranchCustData in Varchar2,
    Other in Varchar2,
    ProjectName in Varchar2,
    Purpose in Varchar2,
    Audience in Varchar2,
    WhoPay in Varchar2,
    Deadline in Varchar2,
    Progress in Varchar2,
    EmployeeUpdate in Varchar2,
    WESCOWin in Varchar2,
    DescribeWin in Varchar2,
    PotentialValue in Varchar2,
    PartBranches in Varchar2,
    SignifPeople in Varchar2,
    SpecialFactors in Varchar2)
    is
    mailhost Varchar2(15) :='CLAPTON';
    mail_conn utl_smtp.connection;
    crlf varchar2(2):=chr( 13 )||chr( 10 );
    mesg varchar2(5000);
    begin
    mail_conn := utl_smtp.open_connection(mailhost,25);
    mesg:= 'From: <'||FromAdd||'>' ||crlf ||
    'To: '||ToAdd || crlf ||
    'Subject: '||Subject || crlf ||
    '' ||crlf||
    'Name: '||SenderName || crlf ||
    'Branch: '||Branch || crlf ||
    'Phone: '||Phone || crlf ||
    'Address: '||Address || crlf ||
    'Comment or Suggestion: ' || Suggestion || crlf ||
    'Sales Promotion Assistance: '|| SalesPromo || crlf ||
    'Tradeshow Assistance: '|| TradeshowPrep || crlf ||
    'Sales Materials or Presentations Assistance: '|| SalesMaterials || crlf ||
    'Direct Mail Assistance: '|| DirectMail || crlf ||
    'Counter Days Assistance: '|| CounterDays || crlf ||
    'Customer Database Assistance: '|| BranchCustData || crlf ||
    'Other: '|| Other || crlf ||
    'Project Name: '|| ProjectName|| crlf ||
    'Purpose: '|| Purpose || crlf ||
    'Indended Audience: '|| Audience || crlf ||
    'Who Will Pay?: ' || WhoPay || crlf ||
    'Deadline: '|| Deadline || crlf ||
    'Progress Made: ' || Progress || crlf ||
    'Mailing List Update: ' || EmployeeUpdate || crlf ||
    'WESCO Win: '|| WESCOWin || crlf ||
    'Win Description: ' || DescribeWin || crlf ||
    'Contract Value/Potential Sales: '|| PotentialValue || crlf ||
    'Participating Branches: '|| PartBranches || crlf ||
    'Significant Contributors: '|| SignifPeople || crlf ||
    'Special Factors: '|| SpecialFactors;
    utl_smtp.helo(mail_conn, mailhost);
    utl_smtp.mail(mail_conn, FromAdd);
    utl_smtp.rcpt(mail_conn, ToAdd);
    utl_smtp.data(mail_conn, mesg);
    utl_smtp.quit(mail_conn);
    end;

    Try executing the procedure independently (say from sqlplus) to see whether the procedure works fine.
    Alternatively, try commenting out the calls to the utl_smtp packages to see whether the procedure works.

  • ORA-01001: invalid cursor (Inbound jdbc adapter XI 2.0)

    Hello, I get the error ORA-01001: invalid cursor when I try to delete the data in interface table in an ORACLE database. Has anybody an idea of what maybe the problem.
    here the text...
    14:41:59 (4225): Confirm with statement "delete * from sap_interface.aswaa00f"
    14:41:59 (4226): ERROR: Confirm action failed with error "java.sql.SQLException: ORA-01001: invalid cursor
    regards
    Ernesto Duran

    Hello Prasad, thank you for your response. The problem (limitation) was that the adapter (or the driver) can only update natives ORACLE tables and the table I wanted to update was a gateway table to an external program.
    regards
    Ernesto Duran

  • Photoshop 9 & 11 stops working when I want to edit a picture.

    Photoshop 9 & 11  stops working when I want to edit a picture.

    Photoshop 9 & 11  stops working when I want to edit a picture.

  • Itunes does not work when I want to play Mp4 videos with most recent versions

    When I want to play videos with mp4 format on itunes, it does not do anything and I have to close itunes with the windows system manager. Does any one know how to solve this problem? I did not have this isue with 10.5 and previous versions of itunes.

    I found the solution, the problem was the encoding of the configuration files.
    I put:
    => Encoding: UTF8 without signature
    => line endings: UNIX(LF)
    And now it works :)

Maybe you are looking for

  • Document number 1700000000  has already been assigned

    Dear all I create a credit memos but when I post I receive message "Document number 1700000000 in company code HDQC and fiscal year 2008 has already been assigned" I checked in IMG define number range but I don't know where to assign number range to

  • Best practice for using static methods

    When i want to call a static method, should i call: 1) classInstance.staticMethod() or should i call 2) ClassName.staticMethod()?? is the first style bad programming practice?

  • Target special G/L indicator

    Hi All, Can you give me cinfiguration document for how to create for target special G/L indicator. Regards, Thiru

  • Java.Lang.NullPoint.Exception in OWB Mapping

    Hello Everybody We are building Data Warehouse using OWB Repository 9.2.0.2.0. When we are validating or deploying the created map we are getting Java.Lang.NullPoint.Exception. This leads to blank screen. We are unable to recover the map. Sometimes,

  • Just got flobbed off by customer service

    ok, ranting - but kinda po'd with customer sevrice right now. For the past 3 days cell coverage has been dire too poor (at best) and I have forgotten just how many times my wife and I have reset our phones (battery pull) to try and get coverage.  Nor