Skip to Content
avatar image
Former Member

how to get the value of a cell if it is an input field in alv

Hai experts,

I have a requirement as follows:I have an ALV table with 3 values as materilno,description,quantity.

I need to make the the complete ALV Editable and when i enter a value in material frield and press enter remaining 2 fields u shud get popultaeed.i have the method to populate the values but how to get th evalue of that cell.'

i am not able get using ON_CLICK EVENT.

Kindly help me as soon as possible.

Cheers ,

Madhu.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jun 11, 2007 at 09:45 AM

    ON_CLICK_EVENT...You will getting a parameter WDEVENT...from that you will be getting the current context element...The element wwhere you have performed the operation....

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Madhu,

      To get the event handler to detect the data changes (i.e. the inputs you provide in a particular field), do the following:

      1. In the methods tab, create a new method (say on_input) and change the method type to 'Event handler'.

      2. Place your cursor in the event field and press F4. You will get a popup displaying the possible events.

      3. In that popup, choose the line which has 'ON_DATA_CHANGE' or 'ON_DATA_CHECK'. Inside this event handler, you can read the value you have entered and do further processing.

      Regards,

      Ram