Tableview - get changed data event???

Hello all,
I have defined a popup with a tableview inside. Table is getting populated and has the folowing structure:
FLAG - checkbox - editable
DESCRIPTION - char50 - noneditable
DATE - date - noneditable
Is there a way of defining an event that would get triggered when the user has changed 1 row (clicked on the checkbox)? I need to update the field DATE when that happends.
I'm not using row selection at all.
Please let me know of any ideas,
Thanks
Alin Moigradeanu.

Hi Alin,
When a check box is checked Get_V_XXXX method is triggered. Put below code in Get_V_XXXX so that server round trip would be triggered. And then you can write your code in appropriate method (may be DO_PREPARE_OUTPUT) to set date or else create an event handler method EN_ONROW_SELECTED and set date there.
  CASE iv_property.
  Set the field type
    WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
      rv_value = cl_bsp_dlc_view_descriptor=>field_type_checkbox.
    when if_bsp_wd_model_setter_getter=>fp_server_event.
      rv_value = 'ROW_SELECTED'.
  ENDCASE.
Please let me know if this helps.
Regards,
Bhushan

Similar Messages

  • How to get changed data in ALV in Web Dynpro for ABAP

    METHOD on_data_check .
    DATA:
        node_spfli                          TYPE REF TO if_wd_context_node,
        node_sflight                        TYPE REF TO if_wd_context_node,
        itab_sflight2                        TYPE if_display_view=>elements_sflight.
      node_spfli = wd_context->get_child_node( name = if_display_view=>wdctx_spfli ).
      node_sflight = node_spfli->get_child_node( name = if_display_view=>wdctx_sflight ).
      CALL METHOD node_sflight->get_static_attributes_table
        IMPORTING
          table = itab_sflight2.
    this code is ..get all data(changed and not changed)
    but i want get changed data only, not all data.
    how to get changed data?
    Edited by: Ki-Joon Seo on Dec 27, 2007 6:04 AM

    Hi,
    To get only the changed data in the ALV grid of a WD, you need to capture the "ON_DATA_CHECK" of the ALV grid.
    To this please do the following in the ALV initialization of the ALV table settings :
        lr_table_settings->set_data_check(
                IF_SALV_WD_C_TABLE_SETTINGS=>DATA_CHECK_ON_CELL_EVENT ).
    You may also do this:
        lr_table_settings->set_data_check(            IF_SALV_WD_C_TABLE_SETTINGS=>DATA_CHECK_ON_CHECK_EVENT)
    The above two ways would depend on when do you need to check for the changed data. If you want to check the data as soon as it is entered, then use the first method. Else, use the second method.
    You need to register an EVENT HANDLER for this event.(You may do this in your VIEW or Component Controller).
    In this Event handler, you would find an importing parameter R_PARAM which is a ref type of      IF_SALV_WD_TABLE_DATA_CHECK.
    The attribute T_MODIFIED_CELLS of this interface IF_SALV_WD_TABLE_DATA_CHECK will contain the modified cells of the ALV with the old & new values.

  • How to get change date in Production Order ?

    Dear Friends,
    I want to know it, how to get change date in Production Order "Administration-TAB".
    F1-Help, It is displayed with "Change date for Order Master". and Structure table "CAUFVD".
    But, CAUFVD is not Transp. Table.
    Which table should I read ?
    Thanks in advance
    Yamazaki-H

    Dear Friend
    Thank you for an answer.
    It was settled.
    Best regards.

  • How to get changed data in SAP HR !

    Hi Gurus,
       I got a new project of HR and now I am  stuck at one place. Please help me where I can find out the change history of HR master records.I have done all my research and I found CDHDR / CDPOS which didn't maintained these data.I got PCL4 table which is HR cluster table but it also didn't show me the changed data. Is there any specific table / report where I can get old and new records or so.
    Each reply is appreciated.
    Thanks,
    Digamber

    Check program RPUAUD00 .
    Change pointers log data only on selected infotypes in order not to overload system. PCL4 is also selective in this respect but I am not sure about that, so you need to look for futher info in this regard.
    Regards
    Marcin

  • Getting changed data back from editable ALV...

    Hello Gurus,
    I am working on ALV using standard ALV function module REUSE_ALV_GRID_DISPLAY. Now, To make the fields editale, I am using flag EDIT = 'X' in field catalog. This working fine.
    Now, when the data is changed in ALV grid and user clicks on SAVE button that I have programmed in i_callback_usercommand, how can I get the changed data back from editable ALV so that I can change data in custom table ?
    Please help.
    Regards,
    Rajesh.

    I see that the method CHECK_CHANGED_DATA is used. I am also doing it as follows. But how do I get the changed data back in table. There are no table parameters in
    CALL METHOD REF_GRID->CHECK_CHANGED_DATA .
    DATA: REF_GRID TYPE REF TO CL_GUI_ALV_GRID.
    IF REF_GRID IS INITIAL.
    CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
    IMPORTING
    E_GRID = REF_GRID.
    ENDIF.
    IF NOT REF_GRID IS INITIAL.
    CALL METHOD REF_GRID->CHECK_CHANGED_DATA .
    ENDIF.
    Please guide

  • Job Publication doesnt get changed data in Job Posting through workflow.

    Job Publication is not picking up the changed data in the Job Posting/Requisition through workflow.
    When I am changing the data in Job Posting and release it manually the changed data gets reflected in Job Publication but if I am releasing the Job Posting trough WF(automatically) then the Publication doesnt pick up the data.The workflows are working fine in the system still the problem exists.
    Thanks in advance for the reply.

    1-Log in portal with user id and pwd.
    2-Create a requisition initially.
    3-Create and release the Job posting(manually)
    4-Create and release the Job Publication(manually).
    5.Try editing the previous Job Posting and save it bu dont release the Job Posting manually.Now come to the personal page,when we again enter the same Job Posting ,the status of the Job Posting is set to "released" automatically by a Workflow.
    6.Now if we proceed for the Job Publication and try Displaying it,the edited changes in the Job POsting is not displayed.
    But if we have "released" the job posting manually then the changes are reflected in the Publication.
    The user wants to use the Workflow scenario and also wants the edited changes to be taken up by the Publication.
    Hope the following description helps out !
    thanks in advance.

  • Get change date of purchnage requesition item

    Dear All,
    I am using CDPOS and CDHDR tables to track the approval change date.
    CDPOS returns the  same change no for any chnages in same fields at diffrent dates.
    When i pass same change to CDHDR , Iam getting same date for all purch Req.
    Please help me to get Purch Req appproval date.

    hi!
      Have u created the change document properly and is the changes getting logged in the table or not.........
    in transaction SCDO you need to create a change object and according to that...
    check the change document in table from where the date if coming in its further characteristics of that table where the date is there.so that changes are logged for that date.
    and then where you are changing u need to call the function module name generated in scdo transaction in your program after the changed make to logg the changes and then chek in cpos and cdhdr tables and use them to use changes.
    example is....
    wa-yh1316_name   = 'Fff
    wa-yh1316_age = '16'.
    INSERT into ztest01 values wa.
    IF sy-subrc = 0.
    objectid = 'yh1316_name'.
          CALL FUNCTION 'Z_TABLE_WRITE_DOCUMENT'
            EXPORTING
              objectid                      = OBJECTID
              tcode                         = 'SE38'
              utime                         = SY-UZEIT
              udate                         = SY-DATUM
              username                      = 'SAPDEV02'
    *         PLANNED_CHANGE_NUMBER         = ' '
             OBJECT_CHANGE_INDICATOR       = 'I'
    *         PLANNED_OR_REAL_CHANGES       = ' '
    *         NO_CHANGE_POINTERS            = ' '
             UPD_ICDTXT_Z_TABLE            = 'I'
              n_ztest01                     = WA
              o_ztest01                     = WA
             UPD_ZTEST01                   = 'I'
            tables
              icdtxt_z_table                = ICDTXT_Z_TABLE
    ENDIF.

  • How to get microphone data/events?

    Hello,
    I'm sorry for my english, I hope you will understand.
    I'm programming a timer. It works very well but I need to add a new feature:
    my timer should be able to start/stop using an external device (that is not meant for computer, it's a timer itself) that can be plugged into a computer using the microphone "door".
    I guess the signal generated by the external device should look like this:
    [http://gnehzr.net/cct/signal.jpg]
    (A timer that can do what I want to do already exists, but I need to do it on my timer)
    My problem is:
    1) how can I get the "microphone" input?
    2) how can I catch some "events" of the "microphone" input?
    I guess I'll have to use a "microphone listener" or something like that, but I need to know what is happening (I mean how the signal is changing) in real time to make my timer start/stop when the signal changes in some way (I'll manage to understand the signal meanings on my own).
    Thank you very much in advance.
    If you need to know any other thing I'll be happy to answer.

    Zyker wrote:
    I hope someone will be able to direct me to a few specified classes meant for what I need.youll have to research how to get the sound from a source (with targetdataline).
    then you have to analyze the sound data. there are no magic classes to do that for you.

  • ALV - Maybe a NEW problem to get changed data, after input from ALV

    Hi all,
    I have tried to search an existing post to solve this ALV problem, with key words 'ALV' and 'refresh', but I don't find the good one... so sorry if the problem have already been solved.
    <u>An example of the problem and process should be more clear than words :</u>
    1) CALL ALV
    CALL METHOD grid1->set_table_for_first_display
         EXPORTING
                   is_layout        = gs_layout
                   is_variant       = gs_variant "&see below
                   i_save           = x_save     "&see below
                   I_BYPASSING_BUFFER = 'X'
         CHANGING
                   it_outtab        = t_zppegam[]
                   it_fieldcatalog  = GT_field_cat_entete[].
    2) User edit values from cells from ALV.
    For example, insert a new line with '+' button, and <u>fills each cells</u>.
    3) The problem is that at the beginning of the PAI
    there is a blank line into internal table t_zppegam,
    instead of the line with the data filled into cells ALV by user
    3') Internal table t_zppegam have the good data only if user clik on the button refresh of ALV, before go throw PAI.
    Have any suggestions? Thank you for your help.
    Best Regards,
    Tony.

    Hi all,
    I have just solved my problem...
    I have found this one into SE38 / BCALV_GRID_EDIT fifth program.
    data: l_valid(1) type c.
    call method grid1->check_changed_data importing e_valid = l_valid.
    Tony

  • What is the best way to get/change data in R/3 from external interface?

    Hi SAP gurus,
    I have a problem to know what is the best technology to access and maintenance all SAP functionality and data too in R/3 systems.
    Anyone know if connectors (.NET or JCO) are the only solution to manipulate all SAP system data or exist other way?
    One thing more, what is the best connector, with more functionality?
    E.g. The screen painter was made in C++ and is executed by user event in R/3 system, so would like to know if it's exist any way to do the same but replace the screen painter to another custom application?
    Regards

    Hello Vitor
    Not all functions and data are externally accessible. Only those business objects (e.g. like sales order, customer, material) for which BAPIs are available (transaction BAPI ) can be accessed via RFC.
    Regards,
        Uwe

  • Tableview getting refreshed when changing data in the rows

    Hi Gurus,
    Iu2019m doing a BSP with MVC. The requirement is as below.
    In the main page there is a button u2018Create Orderu2019, to create a sales order, once I click this button, another screen (pop up) comes up and within that I have a Tableview display with the below fields with the data of 20 records.
    Material no
    Quantity
    Delivery Date
    Here user is allowed to choose the quantity and delivery date by selecting each row.(with MULTISELECT option in BSP)
    The issue is after I select first row and change the quantity and date, and if I click on second row, the Tableview gets refreshed to enable the second row to be editable and the changes what I did on the first row are also refreshed.
    So i want the Tableview not to be refreshed when selecting the multiple rows. So that I can keep the changes I make to the quantity and date fields Can you please suggest any method.
    Cheers,
    Srini.

    Hi Srinivas,
    You need to capture the value entered by user in Quantity and date field and update the internal table with these values for the current selected row.
    For ex.
    The tableView code is like:
                          <htmlb:tableView id                  = "material"
                                     headerText          = "<%= otr(Z_SUS/HEADER_TEXT_MATERIALS) %>"
                                     headerVisible       = "true"
                                     design              = "alternating"
                                     onRowSelection      = "MyEventRowSelection"
                                     selectionMode       = "MULTILINEEDIT"
                                     width               = "880"
                                     filter              = "SERVER"
                                     emptyTableText      = "<%= otr(Z_SUS/EMPTYTABLE_MATERIALS) %>"
                                     iterator            = "<%= iterator %>"
                                     table               = "<%= gt_materials %>" />
    In eventhandler OnInputProcessing :
    DATA: lt_fields type tihttpnvp ,
               ls_fields like line of lt_fields.
    call method request->get_form_fields
                changing
                  fields = lt_fields
    Now the internal table lt_fields contains all the editable cell values , just update the internal table of your tableview with these values.
    You can try these threads
    [Thread-I.|Re: Retrieve changes made in tableView]
    [Thread-II|https://forums.sdn.sap.com/click.jspa?searchID=24460585&messageID=5516977]
    Search the forum for more information on this.
    Regards,
    Anubhav

  • Changing date (and sequence) of events by changing dates of photos no longer seems to work. Any idea what to do?

    I am scanning in old slides and negatives (from the 1960s and 70s), and I want to get the resulting "events" in sequence from when the photos were taken, rather than when they were scanned. So I have been changing the dates of the photos, and previously this resulted in the associated event moving to the proper sequence. This definitely worked a month or so ago, both with prints scanned in on a flat-bed scanner, and also with slides and negatives scanned with a Veho scanner. That was faulty, however, and so it has been replaced with a Plustek 7500i scanner, using SilverFast scanning software, and importing the resulting images into iPhoto. I have recently tried to change the dates of the resulting events, and it doesn't seem to work as it used to. There has been an update to iPhoto 9.1.3 since my earlier success.
    Take for example one event, CS73A. Hovering over the event in the "All events" display gives dates of 1 Apr 2011 to 2 Apr 2011; these are the dates the slides were scanned in. If I open the event and choose the Info tab, it gives the event date as 02/03/1973 (which is the approximate date that I changed it to). I had done a batch change on the event this time, so the date and time on the first slide is 2 March 1973 09:30:48. Each successive slide is 1 minute later, and the last is 2 March 1973 10:08:48 (38 slides). I asked for the dates in the files to be changed as well.
    I don't know what I'm doing that's different from before. The only things I can think of are (a) something has changed in the iPhoto update, or (b) the SilverFast software stores the scanning date in some part of the EXIF that iPhoto can read but not change. I don't have tools to examine the EXIF unfortunately.
    What to do?

    Chris, I have run into the same problem.
    Try this:
    Open an event with more than one photo in it.
    Adjust the date of one or more photos. The event date does not update.
    Delete any one photo. The event date now updates to match the above date change.
    Undo the delete photo. The event date stays matching.
    Change the date of any photo again. The event date updates now every time.
    If you close the event and reopen it, you have to start over with the delete one photo thing.
    I don't understand it but it works here.
    I also have had the problem of events not sorting themselves in order of the dates when VIEW, SORT, BY DATE is selected. This seems to affect only the events were photo date changes had been made. Using the delete thing seems to keep the events in order.
    Another funny thing: When I put photos into iMovie the times in iMovie show as 7 hours off the photo time.
    I think Apple owes us an update to iLife!

  • Get change document data

    How do we get the change document data to be used in a workflow,
    I have made entry in swec , there i associated the change object and my zbo delegeted from standard bo and specified the event as "on change". now i want to send a mail using this changed data.
    I have two options either i use an exit fm to trigger the mail or use a workflow to trigger tha mail, but how do i use the changed data that i get from cdhdr, i need to specify these fields in tha mail body.
    or if i choose to use an exit fm how to do it.
    regards,
    кu03B1ятu03B9к

    Hello,
    Create a new background method in the ZBO to get all the required details from CDHDR and CDPOS tables. Export them from the method as separate variables or as an internal table.
    Create a task in the workflow to execute this method before the sendmail step. Once the data is exported from the method, it is going to be available in the workflow container and so you can use the same in the SENDMAIL step.
    Hope this will help.
    Thanks,
    Samson

  • Event Library-how to change date set at 2005 ?

    Hi,
    The as yet empty Event library shows 2005. (top left in FCP X) I can't figure out on how to change that. I assume it's a date ?
    thank you

    Hi Ram,
    We will  load delta Intial with data transfer every weekend , and we run delta everyday , because we do delta init with data transfer with selections say ( 01.20011 to 12.2003 ) every weekend , hope I need to create new delta infopack  with new data selections say ( 01.2004 to 12.9999) only  to get update data in Infocube.
    Please correct me if I am wrong .
    Regards
    hari

  • If someone has wiped my ipad and changed passwords on icloud how do i get my data back

    if someone has wiped my ipad and changed passwords on icloud how do i get my data back? please could someone help me out thanks

    How did they wipe it?  By using Find My iPad and performing a wipe?  If so, that means they have your icloud ID and password, not a good thing.
    You could try connecting it to iTunes and performing a restore from iCloud.  But if they changed password, then you are out of the loop.  How did they get your password in order to change it?

Maybe you are looking for

  • How to print a text file with long lines?

    I am trying to print a text file which contains many long lines. I find that the long lines are truncated on the printouts. How do I wrap up these long lines? Could you give me some examples? Thank you very much!

  • Hp photosmart unable to print in color from computer

    My printer has been working fine. But the other day I had my son change the colored copying to a black and white. How do I change it back to printing in color?

  • Yellow startup screen!

    ok so I just installed Windows 7 on bootcamp (on Macbook pro) , installed drivers and all good ... then I went back to my loved OS Lion and.... the starup screen turned yellowish... :S then my intener wasnt working, wireless was on but just didnt wor

  • Reading iview personalization language in Web Dynpro java

    HI How can i read Iview personalization language in webdynpro java netweaver 7 enviroement? WDWebContextAdapter.getWebContextAdapter().getRequestParameter("sap-locale") is deprecated it seems. regards PG

  • Firefox downloaded 29, I don't want it, How do I prevent update??

    I have FF28, I'm very happy with it. I got the 29 in my office. I hate it! It's really awful - it reaked mayhem on ALL my setting :( Now my home computer informed me that it will install 29. How do I prevent it? Also: How do I, a non-tech, revert to