Skip to Content
avatar image
Former Member

How to get changed data (Call FM ALV)


changed before:

itab[] data

FieldA FieldB

123 abc

124 xyz

-


changed after:

itab[] data

FieldA FieldB

123 amn

124 abm

-


how to get changed data.

Regards,

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    Oct 16, 2008 at 03:34 AM

    you need to call the function 'GET_GLOBALS_FROM_SLVC_FULLSCR' and from this you get the grid reference, using that you need to call the method check_changed_data. then only you can get the modified content.

    form user_command using p_ucomm type sy-ucomm
    p_selfld type slis_selfield.
     
    data ref1 type ref to cl_gui_alv_grid.
    "For capturing the selected data
    call function 'GET_GLOBALS_FROM_SLVC_FULLSCR'
    importing
    e_grid = ref1.
    call method ref1->check_changed_data.
     
    case p_ucomm.
    when '&DATA_SAVE'.  "based on your action
     
    "Now you see/check here internal table will have changed 
    "values
    p_selfld-refresh = 'X'.
    endcase.
    endform. "user_command

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 16, 2008 at 02:36 AM

    HI,

    Use this CALL METHOD pr_data_changed->get_cell_value.....

    regds,

    Madan....

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 16, 2008 at 03:31 AM

    use the method cl_gui_alv_grid=>refresh_table_display

    Add comment
    10|10000 characters needed characters exceeded