09-20-2008 2:49 PM
Hi all,
I have a problem while displaying table ctrl.
i have a transaction where the input for the table ctrl is given(subscreen a)
i see the output in a table ctrl (subscreen b).
If i execute the transaction for the first time with a n entry which has 3 records in the dbase table it is shown correctly. I have a option in subscreen b to go back to subscreen a , now if i make another entry removing the first one which has 15 records in dbase table only 3 of them are shown in the table ctrl of subscreen b.
if i make an entry which has 15 records in dbase table after restarting the transaction i can see all the 15 records in table ctrl of subscreen b. if i nce again go back and overwrite the entry which has 3 entries in the dbase table i can see all the 3 entries and also scroll bar to drag down upto 15 entries.
the code is
LOOP AT IT_COMPCTRL WITH CONTROL COMPCTRL
CURSOR COMPCTRL-CURRENT_LINE.
ENDLOOP.
Please help me in this issue.
tks & reg
-Pavan
09-20-2008 9:13 PM
Hi,
Your query is bit confusing can it be more precise so that we can get back to you quickly.
Thks
09-21-2008 10:22 AM
Hi
i have a situtaion where i need to populate the table ctrl in a subscreen.
if i execute the transaction for the first time with an entry for whoch 3 rec are fetched from dbase, they were populated correctly in tabctrl, if i go back and enter another value for which it fetches 15 rec from the dbase, unfortunately only 3 of them are shown in tab ctrl.
if i once again restart the transaction with an entry that has 15 rec in dbase, they were displayed correctly in tabctrl, if i go back and overwrite the entry with another entry that has only 3 recs in dbase , 3 recs are shown but with a scroll bar that can be dragged up to 15 rows in tabctrl.
code is simple
loop at itab with control tabctrl
cursor tabctrl- current_line.
endloop.
in the above code itab is filled with correct records for their respective entries in the selscreen. but it is not looped for all the records in the tabctrl tab(itab).
case 1: entry 1 : recs->3 tabctrl disp-> 3 itab has 3 records
entry 2 : recs->15 tabctrl disp->3 itab has 15 recs
case 2: entry 1: recs->15 tabctrl disp ->15 itab has 15 recs
entry 2: recs-> 3 tabctrl disp -> 3 itab has 3 recs
but we can see scroll bar that can be dragged upto 15 lines.
in both cases sy-loopc is 14.
Hope this is clear
tks & regs
Pavan
09-22-2008 5:07 AM
Hi,
use
clear tabctrl_lines.
before or at the end of calling table control.
Regards,
Sathish reddy.
09-22-2008 11:07 AM
Hi all,
tks for the inputs
issue is solved
refresh control '<tabctrl>' from screen <scr>