2010 Nov 06 5:30 PM
Hi all,
I need to know hoe=w to catch the event of selecting a row in a table control using the selection button which comes at the beginning of every row.
2010 Nov 06 5:41 PM
Thank u for ur reply.
I have used the value of that variable for select all and deselect all push button functions,
Those are working fine. All I wanna know is if I select a row using that button, a message should be displayed. Where should I write the code that message display..
I tried writing in PAI. But PAI is not triggered if that selection button alone is clicked.
2010 Nov 06 5:33 PM
Hi all,
I need to know how to catch the event of selecting a row in a table control using the selection button which comes at the beginning of every row.
My requirement is like, I have atable control inside my first tab. I can allow the user to traverse to the second tab only after selecting a line. If not we have to display a message asking him to select a line.
2010 Nov 06 5:37 PM
Hi
The buttom for the selection is assigned to an input field and its value is equal to X if it's selected else it's blank.
This field can be alone or belong to the internal table with the record displayed in table control
There isn't an event, just only to check the value of the field above:
LOOP AT ITAB WHERE MARK = 'X'.
EXIT.
ENDLOOP.
IF SY-SUBRC <> 0.
MESSAGE I208(00) WITH 'Select at least onr row'.
ELSE.
-------> abap code to go to next screen
ENDIF.
Max
Edited by: max bianchi on Nov 6, 2010 6:37 PM
2010 Nov 06 5:41 PM
Thank u for ur reply.
I have used the value of that variable for select all and deselect all push button functions,
Those are working fine. All I wanna know is if I select a row using that button, a message should be displayed. Where should I write the code that message display..
I tried writing in PAI. But PAI is not triggered if that selection button alone is clicked.
2010 Nov 06 6:32 PM
Hi
The field for selection is a normal input/output field, so it can't trigger the PAI because the pushbutton or the menu function can triggered it.
So the message can be shown after user presses enter or an other ffunctionality
Max
2010 Nov 06 6:45 PM