2008 Feb 11 3:56 AM
hi! all
How to clear the data in table control.
i have a Table control which displays column A data from the previous screen and allows to enter column B and column C and i have a button CLEAR, when i click CLEAR button the Data displaying in table control has to be cleared. how to do it.
Regards,
Nagulan
hi! all
How to clear the data in table control.
i have a Table control which displays column A data from the previous screen and allows to enter column B and column C and i have a button CLEAR, when i click CLEAR button the Data displaying in table control has to be cleared. how to do it.
Regards,
Nagulan
2008 Feb 11 3:58 AM
Delete all the data in the itab that u r passing to table control............
2008 Feb 11 5:43 AM
hi! jose
i tried it but its not working can you give me other options plz,
i tried my loop . . . too its not working.
2008 Feb 11 6:04 AM
In a module in ur screen's PAI write like below..
case sy-ucomm.
when 'Func code for clear button'.
refresh itab. (itab is the int table u r passing to table control.)
endcase.
Cheers,
jose.
2008 Feb 11 3:59 AM
Hi,
Loop over the internal table of table control & clear data from table control.
loop at tctab.
clear tctab.
modify tctab.
endloop.
Best regards,
Prashant
2008 Feb 11 4:21 AM
2008 Feb 11 4:56 AM
2008 Feb 11 5:40 AM
2008 Feb 11 5:42 AM
hi! Kamini Rawat
Thanks for your reply, but that syntax is to clear the variable not for Table control.
can you give me other option.
2008 Feb 11 5:59 AM
it can initialize ur table control.
before this stmt.
free ur internal table used to pass data to table control.
u can also refer to f1 help abt refresh.
2008 Feb 11 5:53 AM
delete all the data in itab you are passing to tab ctrl in the pai module of the screen and check whether it is again updated by some select querry in any module called after the module for CLEAR push button in PAI or any module in PBO.
It mioght be that it again gets updated in PBO modules as PBO is always called after PAI
2008 Feb 11 6:07 AM
Hi,
use refresh
refresh it_tab.
Plzz reward points if it helps.
2008 Feb 11 6:24 AM
HI.
before clear ,we should select which row we need to delete.so
assign name for selection cell as "sel".
if sel = 'X'.
write delete logic here.
endif.
REgards.
JNJ
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |