CL_GUI_ALV_GRID Problems when using enter and f4 in one ALV

Hi guys,
i have the following problem:
I Use a ALV, which has a column MATNR. The ALV provides the standard search help for this field automatically. so far so good. BUT i also need to read additional data, such as GLD, Material shortext etc, when the users presses the Enter Key.
Here is my coding:
      CLASS lcl_events DEFINITION
CLASS lcl_events_0300 DEFINITION.
  PUBLIC SECTION.
    METHODS:
      handle_data_changed
            FOR EVENT data_changed OF  cl_gui_alv_grid
            IMPORTING er_data_changed sender.
ENDCLASS.                    "lcl_events DEFINITION
The problem that occurs: if i select a material via f4, i just can add one material to the alv. if i place the cursor into the second line, press f4 again, the alv overwrites the MATNR in the first line
i think the problem has to do with the fact, that the alv runs throug my enter event, when pressing f4.
thats how i registered my event:
  g_o_alv_grid_bart_0300->register_edit_event(
  EXPORTING
   " i_event_id = g_o_alv_grid->MC_EVT_MODIFIED ).
     i_event_id = g_o_alv_grid->mc_evt_enter ).
...und EventHandler zuweisen
  CREATE OBJECT g_o_alv_events_0300.
  SET HANDLER g_o_alv_events_0300->handle_data_changed FOR g_o_alv_grid_bart_0300.
kind regards, mark
Edited by: Mark Wagener on Aug 19, 2010 11:39 AM
Edited by: Mark Wagener on Aug 19, 2010 11:40 AM

Sorry for forgetting the impl. part of the class!
      CLASS lcl_events_0300 IMPLEMENTATION
CLASS lcl_events_0300 IMPLEMENTATION.
  METHOD handle_data_changed.
HandleDataChanged                  ***
    DATA: ls_good                TYPE lvc_s_modi.
     FIELD-SYMBOLS: .
alle Inhalte der geänderten Zellen in die interne Tabelle schreiben
    LOOP AT er_data_changed->mt_good_cells INTO ls_good.
Dazu auf die richtige Zeile in der ITAB positionieren:
      READ TABLE  INDEX ls_good-row_id.
      IF sy-subrc = 0.
Und das geänderte Feld dem Feldsymbol zuweisen
        ASSIGN COMPONENT ls_good-fieldname OF STRUCTURE .
        IF sy-subrc = 0.
Feldwert zuweisen
          -matnr
        AND bwkey = werks.
  ENDLOOP.
Und neu ausgeben
    g_o_alv_grid_bart_0300->refresh_table_display( ).
  ENDMETHOD.                    "handle_data_changed

Similar Messages

  • Problems when using outlook and outlook express, cannot send more than app 100 KB.

    Since app 6 weeks ago we have problems when sending pictures etc, we cannot send more than app 100KB. If we send more there is error code
      Socket Error 10053, Error number 0x800CCC0F. Your server has unexpectedly terminated the connection.
    I have made no changes to either computer. Restoring the laptop to Nov 2011 made no difference.We use Outlook Exlorer and Outlook.
    When I take my laptop to my neighbors house, who has Time Warner, I can send 10MB files without any problems, using the EXACT same settings.
    Spending over 2 hours with a very informed Verizon technician on the phone did nothing.
    I first blamed our server, turns out the culprit is Verizon. 
    Any ideas?
    Eugene

    Good Morning,
    Are you able to send attachments on webmail.verizon.net?
    Shamika_Vz
    Verizon Support
    Notice: Content posted by Verizon employees is meant to be informational and does not supersede or change the Verizon Forums User Guidelines or Terms or Service, or your Customer Agreement Terms and Conditions or Plan.

  • Facing problem when using SYNC and ASYNC bridge in ID

    Hi all,
    In BPM i am using SYNC/ASYNC bridge for that Outbound Interface and BPM Sync Interface has the same structure is it mapping necessary for that intercaces.
    In interface determination it is showing error duplicate interfaces in ID test configuration , when i loading the Interface mapping for the same.
    In the Receiver determination i am sending the message based on the conditions to the particular receives through different receivers Business Systems from the Sync interface showing error.
    Give me solution how should i do the Interface determination and receiver determination.
    Please help me any one .
    Thanks in advance,
    Manohar.
    Edited by: Manohar S on Feb 28, 2008 9:50 AM

    Sorry for delay.
    Tough question.
    Oracle® Database High Availability Best Practices 11g Release 2 (11.2) E10803-01 August 2011
    Under "5.1.8 Set LOG_BUFFER Initialization Parameter to a Minimum 8 MB"
    States :
    "If you are using Oracle Data Guard with asynchronous redo transport, you may need to increase the value of the
    LOG_BUFFER parameter to avoid disk I/Os to online redo logs."
    Nothing about "Synchronous".
    I agree with you on Oracle Support Note 951152.1, its vague.
    Additional links on the subject
    This also seems to imply :
    http://joordsblog.vandenoord.eu/2010/08/data-guard-optimizing-async-redo.html
    So does this ( With ASYNC, increase log buffer size if necessary )
    http://www.oracle.com/technetwork/database/features/availability/316925-175283.pdf
    This one has a very nice Synchronous and Asynchronous compare.
    http://www.datadisk.co.uk/html_docs/oracle_dg/architecture.htm
    New Zealand, Someday I may have to travel there.
    Best Regards
    mseberg

  • Problem when using IF and ENDIF in SAPScript

    Hi everyone,
        I'm still new at using sapscript. I want to use IF....ENDIF but i confused how to use it in my sapscript. Here is the logic that i get from my functional designer :
    IF t8jvb03-ceind = 'C' THEN
      <E>JIBCL_N     /* Element JIBCL_N */
        &t8jvb11-jibcl& &t8jv11-cltext&
      IF t8jvb11-jibsa <> '99999' THEN
         <E>JIBSA_N
            &t8jvb11-jibsa& &t8jvb11-satext&
      ENDIF
      <E>COBJT_E
            &t8jvb11-cotype&  &t8jvb11-cobject&    &t8jvb11-fcmamt&     &t8jvb11-fydamt&     &t8jvb11-fidamt&
      <E>JIBCL_E
         Total: &t8jvb11-jibcl&   &t8jvb11-cltext&            &t8jvb11-fcmamt&      &t8jvb11-fydamt&     &t8jvb11-fidamt&
    ELSEIF t8jvb03-ceind = 'O' THEN
        IF t8jvb11-jibsa <> '99999' THEN
          <E>JIBCL_N
              &t8jvb11-jibcl& &t8jv11-cltext&
          <E>JIBSA_N
              &t8jvb11-jibsa&   &t8jvb11-satext&          &t8jvb11-fcmamt&     &t8jvb11-fydamt&     &t8jvb11-fidamt&
        ENDIF
        <E>JIBCL_E
           Total : :  &t8jvb11-jibcl&   &t8jvb11-cltext&     &t8jvb11-fcmamt&     &t8jvb11-fydamt&     &t8jvb11-fidamt&
    ELSEIF t8jvb03-ceind = 'W' THEN
    When i activate this logic, it's said that there is double element written(example JIBCL_N in IF t8jvb03-ceind = 'C' and in ELSEIF t8jvb03-ceind = 'O' THEN). Is this ok ? or is there any better way to do this ? For your information i copy the form from standard form ''JV_IN_EXP_JIB". Thank you.

    Hi
    have to use the commands before the lines as below
    /: IF t8jvb03-ceind = 'C' THEN
    /E  JIBCL_N /* Element JIBCL_N */
    /   &t8jvb11-jibcl& &t8jv11-cltext&
    /:  IF t8jvb11-jibsa <> '99999' THEN
    /E  JIBSA_N
    /    &t8jvb11-jibsa& &t8jvb11-satext&
    /:   ENDIF
    /E  COBJT_E
    /  &t8jvb11-cotype& &t8jvb11-cobject& &t8jvb11-fcmamt& &t8jvb11-fydamt&
    =  &t8jvb11-fidamt&
    /E  JIBCL_E
    /    Total: &t8jvb11-jibcl& &t8jvb11-cltext& &t8jvb11-fcmamt& &t8jvb11-fydamt& 
    =   &t8jvb11-fidamt&
    /:  ELSEIF t8jvb03-ceind = 'O' THEN
    /:  IF t8jvb11-jibsa <> '99999' THEN
    /E   JIBCL_N
    /    &t8jvb11-jibcl& &t8jv11-cltext&
    /E   JIBSA_N
    /   &t8jvb11-jibsa& &t8jvb11-satext& &t8jvb11-fcmamt& &t8jvb11-fydamt&
    =  &t8jvb11-fidamt&
    /:  ENDIF
    /E  JIBCL_E
    /   Total : : &t8jvb11-jibcl& &t8jvb11-cltext& &t8jvb11-fcmamt& &t8jvb11-fydamt&  =  &t8jvb11-fidamt&
    /:  ELSEIF t8jvb03-ceind = 'W' THEN
    Regards
    Anji

  • Anyone having this problem when using iPhoto and iMovie?

    I've posted this question in the iMovie forum without much luck. I hope someone here may have some ideas.
    I make iMovies that are largely composed of still photos. Recently I'm having trouble with the preview screen in iMovie. When I click on a photo in the media browser it will not show up in the Preview pane but the little scrubber runs across the bottom anyway. If I click "apply" the photo will import into the iMovie timeline and I can then see it in the preview pane...sometimes. Sometimes not. It is the erratic nature of this problem that is driving me buggy (pardon the pun).
    Sometimes the picture will do exactly what it supposed to -- pop up in Preview and I can make adjustments. Other times, no. Sometimes it is pictures right next to one another -- one works the other doesn't.
    Is anyone else having a problem like this. My thought now is that it may be related to the size of the library since the problem seems to be on large libraries whereas projects that I do with 100 pictures or so (in a seperate project library) don't give me any grief but my large travel libraries do.
    Thanks.
    iMac G5   Mac OS X (10.4.8)   iLife '06

    Another possibility might be the color profile bug that was introduced with iPhoto 6.0.5 and, maybe, Quicktime 7.1.3. It's a long shot but if Terence's suggestion doesn't help you can try the following:
    1 - download the "Embed sRGB Profile" Automator application from Toad's Cellar.
    2 - unzip it and drop the files that are giving you problems onto it.
    3 - import those newly embedded files into iPhoto and see if they work.
    As I said it's a long shot but worth a try if other attempts fail.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application, iPhoto dB file backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Utf-16 problems when using writeUTFBytes and readUTFBytes

    I'm really confused about the 'unicode' chatset as it does not seem to do what I would think it would do.
    Every utf16 character is represented by 2 bytes. So a "C" would have 2 bytes [67,0], a chinese character would have 2 bytes also.
    var testStr:String = '漢語';
    var testBA:ByteArray = new ByteArray();
    testBA.writeMultiByte(testStr,'unicode');
    testBA.position = 0;
    for(var a=0;a<testBA.length;a++)
        trace(testBA[a]);
    var str:String = testBA.readMultiByte(testBA.length,'unicode');
    trace(str);
    OUTPUT:
    63
    63
    The testBA should have 4 bytes shouldnt it?
    Can anyone show an example of how to convert my test String to and then back from UTF-16?

    Surely there is a simply answer to this? Why have the string conversions if they dont work?

  • Building executables when using LV and MATRIXx

    Hi!
    With respect to Building executables when using LV and MATRIXx, I need clarification on following:
    1) Pre-requisites to use MATRIXx? We have LV 7.1 FDS with application builder.
    2) Licensing scheme? We would like to have MATRIX on 3 development stations.
    3) Can we build stand alone executables when using MATRIXx with LV?
    4) Do we need to purchase any addon to achieve (3) ?
    Thanks,
    Gurdas
    Gurdas Singh
    PhD. Candidate | Civil Engineering | NCSU.edu

    Hello Gurdas,
    Before I answer your questions, I am curious to know what you have in mind for the stand alone executables you are interested in building. It may help me to know a little more detail about your plans. Depending on your application, some of these answers may or may not be applicable. In any case, here are answers to your questions:
    1) There are no prerequisites for using MATRIXx. LabVIEW is not required. However, with LabVIEW FDS, you do have an Xmath Script node located in the Functions > All Functions > Analyze > Mathematics > Formula palette. This node can be used to call Xmath scripts from LabVIEW.
    Note: To use the Xmath Script node successfully, you will want to install LabVIEW 7.1.1 Maintenance Release. Refer to KnowledgeBase 300A6NDT: How Can I Resolve MATLAB and Xmath Script Node Issues in LabVIEW?
    2) There are two licensing options for MATRIXx: node-locked and floating (concurrent). A node-locked license is restricted to a specific node and can be installed and used on that single computer. A floating (concurrent) license allows use of the product by a specified number of concurrent users on any computer on a local area network that includes a server running a single license manager. For more information, follow the link to the MATRIXx Price List from Products and Services: MATRIXx.
    3) There are two ways you might build executables when using MATRIXx and LabVIEW. One way uses a component of MATRIXx to automatically generate C code. AutoCode is a component of MATRIXx that allows the user to turn system models into C code. This C code can then be compiled into an EXE or DLL. If built into a DLL, LabVIEW can be used to call the DLL. A more thorough explanation of this is provided in Developer Zone Tutorial: Running MATRIXx SystemBuild Models in LabVIEW/LabVIEW Real-Time.
    Another way that may work is to build an executable from a LabVIEW VI that uses an Xmath Script Node. Any target machine running this executable would need to have Xmath and the LabVIEW Run-Time Engine installed.
    4) No other add-ons are needed for (3). Do be sure to refer to the note following the answer to (1).
    Regards,
    Eric M.

  • TS2755 Hi all, I bought one iphone and 3 ipads, i set up all on one apple ID. Now i have a problem when using messages: when sending message from one device it appears again on screen from the other 3 devices. I need help of how to set up messages on each

    Hi all, I bought one iphone and 3 ipads, i set up all on one apple ID. Now i have a problem when using messages: when sending message from one device it appears again on screen from the other 3 devices. I need help on how to set up messages on each device separately and to start using messages app on each device independently. Thanks

    search google for "iphone remove picture from contact"

  • Guys i have a problem, I used to download apps from one of my friends apple id, now i created my new account, but when i was about to update my apps its asks for my friends id and password. now how could i update my old apps from my new apple id?

    Guys i have a problem, I used to download apps from one of my friends apple id, now i created my new account, but when i was about to update my apps its asks for my friends id and password. now how could i update my old apps from my new apple id?

    The_Tonmoy wrote:
    I have no communication with my that friend :/ So it means i need to delete those apps? There's no other solution to update those apps?
    No.  purchases are forever tied to the apple ID used to buy them.  Delete them and buy your own copies.

  • I have problems when using the camera on my iPhone 4S (the same for my daughter with a iPhone4) A veil around the blurred photo, a development impossible and completely unable to read the bar code or QR code. What to do?

    I have problems when using the camera on my iPhone 4S (the same for my daughter with a iPhone4)
    A veil around the blurred photo, a development impossible and completely unable to read the bar code or QR code. What to do?

    Sounds kind of stupid, but check to make sure that your iphone case cover is not blocking the edge of the camera lens.  I had a silicone case on my 3S and when it got older, it started tot slip and the edges of my pictures were blurred.

  • I upgraded to Lion and then all video clips on for instance Youtube freeze every tenth second to buffer more data. I have a MacBook Pro and never had any problems when using Snow Leopard. Ulf Magnusson, Sweden

    I upgraded to Lion and then all video clips on for instance Youtube freeze every tenth second to buffer more data. I have a MacBook Pro and never had any problems when using Snow Leopard. Has Lion problems with this?
    Ulf, Sweden

    Use the trackpad to scroll, thats what it was designed for. The scroll bars automatically disappear when not being used and will appear if you scroll up or down using the trackpad.
    This is a user-to-user forum and most people will post on here if they have problems. You very rarely get people posting to say there update went smooth. The fact is the vast majority of Mountain Lion users will not be experiencing any major problems with the OS, or maybe with apps which are not compatible, but thats hardly Apple's fault if developers don't update their apps.

  • ORA-01403: no data found Problem when using AUTOMATIC ROW FETCH to populate

    ORA-01403: no data found Problem when using AUTOMATIC ROW FETCH to populate a form.
    1) Created a FORM on EMP using the wizards. This creates an AUTOMATIC ROW FETCH
    TABLE NAME - EMP
    Item Containing PRIMARY KEY - P2099_EMPNO
    Primary key column - EMPNO
    By default the automatic fetch has a ‘Process Error Message’ of ‘Unable to fetch row.’
    2) Created a HTML region. Within this region add
    text item P2099_FIND_EMPNO
    Button GET_EMP to submit
    Branch Modified the conditional branch created during button creation to set P2099_EMPNO with &P2099_FIND_EMPNO.
    If I then run the page, enter an existing employee number into P2099_EMPNO and press the GET_EMP button the form is populated correctly. But if I enter an employee that does not exist then I get the oracle error ORA-01403: no data found and no form displayed but a message at the top of the page ‘Action Processed’.I was expecting a blank form to be displayed with the message ‘Unable to fetch row.’
    I can work around this by making the automated fetch conditional so that it checks the row exists first. Modify the Fetch row from EMP automated fetch so that it is conditional
    EXIST (SQL query returns at least one row)
    select 'x'
    from EMP
    where EMPNO = :P2099_EMPNO
    But this means that when the employee exists I must be fetching from the DB twice, once for the condition and then again for the actual row fetch.
    Rather than the above work around is there something I can change so I don’t get the Oracle error? I’m now wondering if the automatic row fetch is only supposed to be used when linking a report to a form and that I should be writing the fetch process manually. The reason I haven’t at the moment is I’m trying to stick with the automatic wizard generation as much as I can.
    Any ideas?
    Thanks Pete

    Hi Mike,
    I've tried doing that but it doesn't seem to make any difference. If I turn debug on it shows below.
    0.05: Computation point: AFTER_HEADER
    0.05: Processing point: AFTER_HEADER
    0.05: ...Process "Fetch Row from EMP": DML_FETCH_ROW (AFTER_HEADER) F|#OWNER#:EMP:P2099_EMPNO:EMPNO
    0.05: Show ERROR page...
    0.05: Performing rollback...
    0.05: Processing point: AFTER_ERROR_HEADER
    I don't really wan't the error page, either nothing with the form not being populated or a message at the top of the page.
    Thanks Pete

  • TS2570 doesn't work, still the same problem when using Rapidweaver software. NOT with other software.

    i tried everything in this article, but still have the same problem when using Rapidweaver software. NOT with other software. I am converting my iWeb site  to Rapidweaver, whenever there is a calmer period in my office. I have 16 Gb RAM on my NEW iMac and have Parallels desktop, mail, safari, iWeb and Rapidweaver running simultanious.
    I never have the problem if i don't use Rapidweaver, but after i have added several pages to Rapidweaver, the problem begins. my iMac won't start up. the only thing that works is re-installing Macos OS X 10.8. i tried even whiping the completeharddrive, and reinstalling with a complete new user, the same problem.
    I had it on my previous iMac also, and bought a new one because i thought the problem was in the iMac first. i hadn't noticed it only happens with using rapidweaver.
    i sent my complete rapidweaver project to the programmers from rapidweaver at Realmacsoftware, but they couldnt reproduce my problem, there macs started up without any problem.
    i deleted all the rapidweaver addons and extra stacks, and started a complete new project.
    saterday i had the problem again, after adding about 5 new pages to my rapidweaver site.
    i think i have reinstalled Macos OS X 10.8.2 20 or 30 times by now
    does anyone have a sollution?

    Type '''about:support''' in the URL bar and hit Enter.
    Scroll down almost to the bottom of that listing and see if you have '''user.js Preferences''' just above the '''''Graphics''''' category.
    If you do have that, click on '''user.js file''' in this sentence. <br />
    ''Your profile folder contains a user.js file, which includes preferences that were not created by Firefox.''
    Does that "different homepage" appear in that user.js file?

  • Problem when using IE9

    We use IE9.
    I enter in https://gwserver.
    Compose New mail (in Plain Text mode) with body:
    Line-1
    Line-2
    Line-3
    And send this mail , for example to itself.
    the received letter will look like:
    Line-1Line-2Line-3
    Someone has the same problem?
    Serg

    Are you guys still on the shipping code of GW 12? Novell had a fix for this within a couple weeks of GW 12 being released from what I remember. Open an SR and get the latest code.
    Or simply tell your users to user HTML.
    Todd Bowman
    Todd Bowman
    Senior Network Analyst
    University of Minnesota Physicians
    612-884-0744
    [email protected]
    >>>
    From: MarkDissington<[email protected]>
    To:novell.support.groupwise.2012.web-access
    Date: 5/24/2012 6:46 AM
    Subject: Re: Problem when using IE9
    skoltogyan;2197344 Wrote:
    > The solution is?
    >
    > Serg
    I would guess don't use IE9 until a fix is released? :-)
    M.
    MarkDissington
    MarkDissington's Profile: http://forums.novell.com/member.php?userid=27611
    View this thread: http://forums.novell.com/showthread.php?t=455634

  • How can I check my passcode I updated today and when I am going to reset all content and setting my iPhone 4S they asked me for passcode when I entered the passcode the one I just update too is doesn't want to accept it

    how can I check my passcode I updated today and when I am going to reset all content and setting my iPhone 4S they asked me for passcode when I entered the passcode the one I just update too is doesn't want to accept it

    I have had the same problem with iPad recently not too sure why it happened but if you are completing a full reset anyway the easiest way is the restore via itunes on your computer and then set up a new passcode again. Resetting via itunes doesnt require a passcode so it should go straight through.
    Hope this helps

Maybe you are looking for

  • Delete the content of a file

    Hi, I have an data file in which I want to write my new data. The problem is how to overwrite the old data in this file or to delete first the content of this file. Thanks

  • Due date problem.

    Hi folks, This is a problem pertaining to the due dates. How to post an invoice doc with due date (say 31/05/2008) while posting the document on say 24/01/2008, when the due date range for the posting period is from 01/04/2007 to 31/03/2008. The syst

  • ATV3 not appearing in iTunes

    I have 2 ATVs.  An ATV2 and ATV3.  I have the latest iTunes sw on my MBPro and on the ATV3.  I can see the ATV2 in iTunes and it works perfectly.  I can't see the ATV3 in iTunes.  I can see iTunes from the ATV3.  Both ATVs and the MBPro are on the sa

  • E4200 guest access won't ask for pasword

    Hi whenever i enable guest access, when connecting though any device it doesn't ask for password but allows access straight away. I've tried changing the password, but no luck. Any ideas?

  • Search does not work until you open folder

    I tried to search for a keyword on drive F (all pictures). I had the correct drive in the "look in" box, and had the boxes checked for "search indexed and non-indexed files". I got the dreaded "No Items to display" on the screen. I then opened the fo