Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 16, 2008 at 02:36 AM

    HI,

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

    regds,

    Madan....

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 16, 2008 at 03:31 AM

    use the method cl_gui_alv_grid=>refresh_table_display

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.