Skip to Content
avatar image
Former Member

Regarding passing of the modified data back to internal table form alv

Hi,

My requirement is i hav a fld in my alv grid checkbox which iam checking when i output the list on the alv grid and I hav to execute an action on all the checked rows the poblem is even iam checking the checkbox it is not being passed back to internal table.I hav used methods to create and display alv grid.This is really urgent can anyone provide any inf on this .

Thanks and Regards,

Rajashree

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Jul 30, 2004 at 05:11 PM

    Hi,

    In the PAI of your screen, in the module user command try calling the method CHECK_CHANGED_DATA of CL_GUI_ALV_GRID.

    This will get the changed data to your internal table and you can then execute the subsequent checks.

    Regards,

    Tathagata

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 02, 2004 at 04:15 AM

    Hi,

    Iam unable to understand what parameters shud i pass to CHECK_CHANGED_DATA FM??.Any inputs on this issue???

    Regards,

    Rajashree

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 02, 2004 at 04:25 AM

    Hi,

    There is only one exporting parameter which you need to take back. It is E_VALID.

    I hope that solves your problem.

    Regards,

    Tathagata

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Tathagata,

      I have a similar problem.

      I need to react on a change of an input-field of the

      grid-control.

      When i call the method "->check_changed_data"

      i allways get e_valid == 'X'.

      The problem is, i have to react in any case, when the

      user presses <ENTER> and if the user has changed

      a field-entry, i have to read additional data

      and store it into the internal datarow of

      the grid-table.

      I have'nt found an event like "ON DATA CHANGED" ...

      How can i solve this problem.

      Thank You very much in advance

      Michael

  • Aug 16, 2004 at 07:58 AM

    Hi Michael,

    you can register for the event DATA_CHANGED of your ALV-Grid. This event gets thrown if the user presses for example <ENTER> and has changed some data in the grid.

    With input-parameter er_data_changed of this method you can get access to the changed data; e.g. er_data_changed->mt_good_cells contains the syntactically correct fields that have been changed.

    Hope that helps ...

    regards,

    Michael

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hallo Michael,

      Thank You for Your prompt answer.

      I have solved the problem by registering the DTA_CHANGED event. it works fine!

      BR

      Michael