How to clear data on ENTER from keyboard?

I have an editable ALV .
When I input the material number and press ENTER button on keyboard, it populates some more fields in the row.
using    
CALL METHOD lo_grid->register_edit_event
      EXPORTING
        i_event_id = cl_gui_alv_grid=>mc_evt_enter.
I am able to trigger this in the event data_changed.
Now:;
I clear the material number and press ENTER again - it does not wipe out the fields that are filled in as above.
[This however works fine in debug mode..]
How to resolve this:
Here is my code:
In top-of-page event:
CALL METHOD lo_grid->register_edit_event
      EXPORTING
        i_event_id = cl_gui_alv_grid=>mc_evt_enter.
Then in
*       METHOD data_changed                                           *
  METHOD data_changed.
    PERFORM d0100_event_data_changed USING er_data_changed
                                           e_onf4
                                           e_onf4_before
                                           e_onf4_after.
  ENDMETHOD.                    "data_changed
FORM d0100_event_data_changed USING er_data_changed TYPE REF
                                        TO cl_alv_changed_data_protocol
                                          e_onf4        TYPE char1
                                          e_onf4_before TYPE char1
                                          e_onf4_after  TYPE char1.
                                                            "#EC *
  LOOP AT er_data_changed->mt_good_cells INTO ls_good_cells.
    IF NOT ls_good_cells IS INITIAL.
CASE ls_good_cells-fieldname.
when 'MATNR'.
            ls_delta_cells-row_id = ls_good_cells-row_id.
            ls_delta_cells-fieldname = 'WERKS'.
            ls_delta_cells-value = '1111'.  "I am passign space when MATNR is initial
            APPEND ls_delta_cells TO lt_delta_cells.
endif.
          IF NOT lt_delta_cells[] IS INITIAL.
            l_frontend_only = 'X'.
            CALL METHOD lo_grid->set_delta_cells
              EXPORTING
                it_delta_cells  = lt_delta_cells
                i_modified      = 'X'
                i_frontend_only = l_frontend_only.
          ENDIF.
endcase.
LOOP AT er_data_changed->mt_good_cells INTO ls_good_cells.
Edited by: Julius Bussche on Jan 26, 2009 9:34 AM
Code tags added.

I found a work around for this - when MATNR is initial, I did a clear in the alv output table for that row and then did a refresh_table_display.
it worked.
I am leaving this open for sometime to see if any better solutions can be proposed..

Similar Messages

  • How to view data in Xcelsius from an external Excel file

    Hi Everyone,
    i wonder if you know How to view data in Xcelsius from external Excel file and not depend only on the emebded excel sheet.

    Hi,
    As per my understanding, excel has to be imported in Xcelsius to draw up the dashboard. Your aggregated data sits in the xlf file. Using an external excel file will not be possible (I guess).
    One of the ways to connect to an external excel, is the use XML Maps but then your data has to be in the form of XML which will be pulled into excel first and then needs to be brought in Xcelsius using Data Manager.
    You can explore XML Maps in xcelsius in SDN.
    Regards
    Nikhil

  • Help: How can I read an integer from keyboard

    Hi,
    I am new to java, and I know how to declare integer variable,
    but how can read an integer input from keyboard and assign it
    to the variable.
    Can anyone help me on this.
    Thanks
    Studentfj

    the easiest way is to
    import javax.swing.*
    and use the methods and functions in there
    otherwise from command line i think as far as i remember it is System.in

  • How to download data in excel from web report in sap ?

    how to download data in excel from web report made  in sap abap?
    through tcode smw0.

    for exemple using
    MS_EXCEL_OLE_STANDARD_DAT

  • How-to extract data in chunks from one R3 to another R3 system

    Does anybody know how to extract data in chunks from one system to another? Imagine you would like to extract 1M records in chunks of 10K records, how would you do it between 2 different R3 systems? A cursor (even with hold) doesn't work
    Any suggestion appreciated
    Thanks
    Ioan

    Hi Ioan,
    I'd do it with fm : TABLE_ENTRIES_GET_VIA_RFC (with where clause-tab)
    or fm GET_TABLE_RFC (get all items)
    regards Andreas

  • How to Extract data and reports from the SAP BW warehouse

    Hi to All Guru's
    I am new to SAP BW. Can any one help me to know, How to Extract data and reports from SAP BW. Do we use any tools.  After Extracting the data from SAP BW how can we move all the data to Cognos.  It would be kind enough to provide me with any documentation or links.  Step by step procedure would be very much helpfull to me.
    Thanks
    Venu

    Hi Voodi
    Thanks for the quick response. I think Open hub is to extract the data from SAP BW, but what about sending this data into Cognos.  Can you please let me know in detail regarding answer. If possible send me any documentation or links regarding this.  Thanks for your concern.
    Venu

  • How to clear data from XY graph for another trial

    I have a XY graph of motor counts versus  intensity. I used shift registers for building Array VI. After terminating the program once using stop terminal. And I cleared the graph. When I start taking measurement second time, same data repeats before the first one. So how can  clear it. Please reply 
    Solved!
    Go to Solution.

    That's one very quick way of doing it : initialize your shift registers.
    What happens in your VI is that after the VI stops (when you clic the stop button) the data that is in the shift registers (your X and Y arrays) stays in memory, so if you run again the VI it will add data into those arrays.
    To initialize your shift registers you need to connect en empty array to them before the while loop. Like this :
    hope this helps
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

  • How to clear data in Table Control.

    hi! all
    How to clear the data in table control.
    i have a Table control which displays column A data from the previous screen and allows to enter column B and column C and i have a button CLEAR, when i click CLEAR button the Data displaying in table control has to be cleared. how to do it.
    Regards,
    Nagulan

    Hi,
    Loop over the internal table of table control & clear data from table control.
    loop at tctab.
    clear tctab.
    modify tctab.
    endloop.
    Best regards,
    Prashant

  • How to clear data string on cRead multi

    Hi i was wondering if anyone knows how to clear the data from ncRead multi? I'm using PCI-CAN Frame API and when I use the ncRead multi VI it reads thru all of my received data frames and I'm getting overlapping data until it is cleared from my indicator. Attahced is my VI:
    Attachments:
    Application Part Number level suffix.vi ‏152 KB

    See the "Receive" example which ships with NI-CAN 2.4 or later. It uses a different but better way to print the Frame strings to UI.
    DirkW

  • Can anyone explain how the LO data source flows from ECC to BI up to cubes?

    Dear all,
    Can anyone explain step by step (HOW THE DATA FLOWS)....By taking 2LIS_11_VAHDR  from SD , starting from Activate Data source in ECC  to Info Cube in BI7.0. Please this will be helpful -
    Thanks for the advance answers...
    Edited by: harishk.225 on Dec 23, 2011 9:56 AM

    Hi Harish,
    First go to RSA5 in ECC  select your datasource 2LIS_11_VAHDR and activate it.
    After activatin check in RSA6 whether the datasoure activated properly or not.
    Then log on  to BI sytem Select datasource and click on replicate.
    Then Create Infocube infopackage ,Transformation, DTP ...entire flow. But dont schedule it because there is no data in SETUP Tables.For full load first we need to run statistical set up , so that data should come to SETUP Table.
    Now go to ECC  enter T.CODE OLI7BW to filled up the SETUP Table  for datasource 2LIS_11_VAHDR.
    It will ask  you for Run Name etc give the run name and time limit and execute it.
    If you get some error then first delete the SETUP Table by using Transaction Code LBWG.
    In LBWG it will ask you for applicatiion number , give 11 i.e for sales datasourc and execute it.
    Data will get deleted from SETUP Table. To check data is deleted or not  in SET UP Tabe go to database table MC11VA0HDRSETUP. Always remember the name of SETUP Table will be Extract Structure followed by SETUP.
    EX : If extract structure name is MC11VA0HDR then name of the SETUP Table will MC11VA0HDRSETUP.
    If data gets deleted then again go to 0LI7BW and run the Statistical Setup then agan check in MC1VAOHDRSETUP table contains data or not.
    Then trigger the Infopackage and DTP in BI.  Above steps was for full load.
    Now to Load deltas follow below steps.
    First Create INIT at BI side which enable delta at ECC Side.
    Then go to ECC and execute T.CODE LBWE.
    LBWE is LO Cockpit Work Bench. There we have folowng functions 1.Maintan Datasource. 2.Maintain Extract Structure. 3. Job  Control.  4.Delta Type 5.. Activate/deactivate.
    If you want to add any new field to your datasource then to to Maintain Extract Strucutere remeber before adding or modififying datasource first we should deactivate datasource by using 5th function  Activate/Deactivate.
    Then select DELTA TYPE in delta type we have four types of delta. 1. Delta Queue (RSA7) 2. Queued Delta (LBWQ)
    3. Unserialized (SM13) , 4. Seriaized (SM13)
    If you select Delta queue then deltas drectly come to RSAT.
    if you select Queued Delta  deltas goes to LBWQ then you have perform V3 job by using Job Control  function to move data from LBWQ to RSA7. Remeber to BI  data  always goes from RSA7 only.
    If you select Unserealized then delta goes to SM13 again you have to perorm V3 Job to move deltas in RSA7.
    Serialize update is not in used in Lo-cockpit.
    There is a differerence between  DELTA QUEUE , QUEUED DELTA, UNSERIALIZE UPDATE. Pls find the differences on net.
    Then select your delta type and create deltas dtp in BI and start loading .
    Hope this help you.
    In RSA7 we have two tables delta and repeat delta, to know the functionality of this please search for the documents on  net.
    Regards,
    Asim

  • How to populate data in TargetCube from SourceCube for a particular product/currency dimension selected in form1.

    Hi,
    Need help regarding Business rule scenario "How to populate data in "Target Form (plantype2)" from "Source Form(plantype1)" for a particular product/currency dimension combination selected in form1"
    Scenario 1) :  I have data for Product(Computer)/Currency(USD) dimension combination in Source Form
                        When i open Target Form and then select a Product(Computer)/Currency(USD) combination and then right click on form to invoke a Business rule to get data for this same                     product/currency combination from Source Form.
    Scenario 2) : If there isnt any data in Source Form for product(Computer)/Currency(USD) combination, then the data for product(computer)/Currency(Default Currency) to be populated into Target                     Form.
    The members in Currency Dimension (Shared Dimension) are USD & Default Currency.
    Can anyone please help.
    Thanks,
    Rajkumar

    Adding to what Celvin Kattookaran has said
    You can either write a Business Rule / Calculation script with @XREF function and also you can check condition if there is data in USD then populate USD else "Default currency"
    If you want that data in source to be available in target, then you can use @XWRITE in a rule from source cube to push the data to Target.
    Amarnath
    ORACLE | Essbase

  • How to merge data in BW from R3 and a legacy source

    Hi
    I would like to combine data from R3 and from a legacy system in BW as follows: I have two similar info objects:
    One info object contains the stuff from R3 (which contains some history but basically the data is just really well maintained starting from Jan 1st 2008.
    The other info object contains data from a legacy HR data warehouse which contains data back to 2001 and up to Dec 31st 2007.
    I would like to combine in BW the two info objects in a multiprovider such that if I make a query before Jan 2008 then the data is taken from the 'legacy' infoobject and when I run a query as of Jan 2008 or later then the data should be taken from the 'R3' info object. (Note that if I specify a range e.g. Dec 2007 - Jan 2008 then data from both info objects are to be taken).
    A problem I see is that the DATEFROM of rows in the time dependent tables of the 'R3' info object is not as of Jan 1st 2008 but can be any date before. Thus I wonder how an overlap between the 2 sources can be avoided.
    Is there a way to acomplish this?
    Regards and thanks for your help, Felix

    The how to at following url shows how to store, retrieve and display characters of different languages from Oracle database onto a JSP page.
    http://otn.oracle.com/sample_code/tech/java/codesnippet/jdbc/nls/Globalization.html
    HTH
    Chandar

  • How to see data in BAM from sensor on BPEL activity?

    Hello, I 'am working with BPEL on Jdeveloper (last version).
    I have putted sensors on some activity of my process. On an other machine I have putted the BAM server (last version) which is ON and I have the BAM connection on Jdevlepper. Now I try to see data on BAM from sensor but I can't.
    Can someone explain me how to do?
    (I just can build some data just like in a data base with BAM architect but I can't read and put to graphics the ones from the sensors)
    Thank's much
    JAck

    Hello,
    To answer your question, I have install BAM on the same machine where BPEL server is running.
    Now I steel can't get sensor's data from BPEL:
    With BAM architect I can build data, with BAM studio I can use that data to design graphics but when I try to feed data from BPEL it doesn't work because I just can't press the OK button!!
    In BPEL : When I try to Create BAM sensor action (from structure panel), I can't generate the xsl map file no action is done when pressing OK, create mapping or edit mapping button!

  • How to store data in ipad from computer

    please explain me how to store data (music video & pictures) in  ipad from any personal computer...kindly explain me in simple steps...

    The iPad can only sync with one computer.  To do this you need to have iTunes installed on the computer and have it associated with your Apple ID.  you can then use iTunes to transfer music, movies and pictures from that computer, and that computer only.
    iOS: Syncing your data with iTunes
    http://support.apple.com/kb/ht1386
    If you need to get files from other computers, you would need a 3rd party App that can handle the formats you wish to transfer, and possibly transfer them either through iTunes file sharing or Wifi transfer depending on what the App supports.
    iOS: About File Sharing
    http://support.apple.com/kb/ht4094

  • How to handle data that got from SAP by Webservice?

    Hi, Gurus.
    I am working on IFbA with ABAP and Adobe LiveCycle Designer.
    I've developed a function module in R/3 system and created webservice, connected the WSDL address to the form. The problem is how can i handle data that got from SAP by Webservice?
    It's Ok if i bind the dataconnection node to the form element, but how can i handle data without binding to the form element? I mean that how can i use the data retrieved from Webserivce in the Javascript, please give me some sample code or script method.
    Thanks.

    Hi Yang,
    If you are using Web Service, then the binding will be done automatically.
    It can't grow automatically, what else should i do to achieve this?
    1.Select the table(make sure you are not selecting subform) in Hierarchy view
    2. Under table select the Row which is having the required fileds for data
    3. In the Binding of that row, check the checkbox "Repeat Row for each item data" and under that check the Min Count which will set the default row **** to 1
    Regards,
    Sachin

Maybe you are looking for

  • Table maintenance view problem

    Hi. I'm trying to generate a table maintenance view for a custom table, and I keep getting an error message.  I go into the table maintenance view generator and fill out the fields.  I'm selecting a function group that has ZHR0 as the development cla

  • Another CS6 build questions thread

    Hi guys, My first post here, I've been reading lots on here today thanks for all the info!, I'm building a new edit of, mainly for pp & ae cs6. I think I'm there with components but would love to hear your opinions and experiences before I click the

  • BAPI for purchase requisition

    Hi all,          I would like to know if there is any BAPI present to create purchase requisiton. The fileds that I would like to give are Item Category ,Material no,        Quantity       Delivery date Plant           Storage Location       Supplyin

  • I have imovie 10.0.4 and FCPX 10.1.2

    I have imovie 10.0.4 and FCPX 10.1.2 and I cannot get iMovie project sent to FCPX.  I see a very brief progress bar, but then nothing and no transfer to FCPX. Any thoughts? Thanks David

  • Introduction to java class program assignment help

    We are susposed to be writing a program that calculates the best angle for firing a cannon ball to get the best distance through different substances. My teacher and i could not see why the program was not working and i was wondering if anyone could