on 06-11-2007 10:42 AM
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.
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....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hai anzy,
thanks for the rely,
my requirement is u enter a value under material and press enter u need to read the value and get the remaining values based on the entered value.
sp here i want to retrieve the entered value.
i tried with on_click event but it works only for non-editable fields.
madhu.
Hi nitya,
I think u didnot get my requirement.
my requirement is i have an complete editable ALV with all fields as input fields.
now when i enter a value under material and press enter i need to capyure the
material value and based on the material value i need to get the details and populate all those values in the respective fields.
All i need to do is get the material number that is entered.
in the pdf of using ALV events it is such that editable cell editors trigger ON_DATA_CHANGED event and non-editable cell editors trigger ON_CLICK event.
But i couldnot find the ON_DATA_CHANGED event in the ALV events.
Help me out in finding the event.
Cheers,
Madhu
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
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.