‎2005 Oct 17 1:23 PM
i have two table controls in my screen, one up TC-1 and another down TC-2,
i want that if i select any row in the TC-1 then on the basis of the selected row the data will be shown in TC-2, i am able to do that if i select row in TC-1 and then press ENTER, but without pressing enter it doesn't refresh my TC-2....
wat shud be done....
abhishek suppal
‎2005 Oct 17 1:42 PM
Hi,
You could you double click ! which F-Key of the status is F2...
This will fire the PAI...
‎2005 Oct 17 1:38 PM
‎2005 Oct 17 1:42 PM
Hi,
You could you double click ! which F-Key of the status is F2...
This will fire the PAI...
‎2005 Oct 17 3:08 PM
can't i do it on single click or while selecting a row, i want it on line selection which event is fired while selecting the row...
abhishek suppal
‎2005 Oct 17 3:54 PM
Hi
As first field of your table control, you should insert a field as pushbutton instead of selection field.
If you give a code like this SELE% as functional code, at runtime the system replace the number of the row at %, so if user push the pushbotton of third row, the functional code'll be SELE3.
Now when user push the button the PAI is fired, so you can find out the row from OK_CODE:
DATA READ_INDEX TYPE SY-TABIX,
SELE_INDEX TYPE SY-TABIX.
IF OK_CODE(4) = 'SELE'.
MOVE OK_CODE+4 TO SELE_INDEX.
READ_INDEX = TABLECONTROL1-TOP_LINE + SELE_INDEX - 1.
......
Now READ_INDEX is number of selected record in ITAB1 that'll be moved to ITAB2.
Max
Message was edited by: max bianchi
‎2005 Oct 18 6:12 AM
‎2005 Oct 19 7:11 AM
Max i am able to solve this but there is one problem highlighting of row is not possible means one cannot know which row is selected....i ahve tried this for highlighting but no....
abhishek suppal
‎2005 Oct 17 3:08 PM
Hi
I think it depen on what you really want to do.
Becausae if you want to allow a single selection, you should insert a pushbutton instead of selection field.
But if you want to allow a multiply selection this solution isn't good and I think there is only one solution: before user selects the rows and after push enter.
Max
‎2006 Dec 20 8:59 PM
Hi Abhishek,
I have the same requirement. Can you please put your code.
Thanks,
Das