12-20-2006 11:56 AM
Hi all.
I'm trying to fill a table control with data coming from an internal table.
I'm doing things just like I've done thousands times before (and in other screen in same program), and it doesn't work!!!
the problem is: There is a loop to fill the table control
loop with control tc_acoes_adm.
module fill_acoes_adm.
endloop.
and, the module that fills it:
MODULE fill_acoes_adm OUTPUT.
READ TABLE gi_acoes_adm INDEX tc_acoes_adm-current_line.
ENDMODULE. " fill_acoes_adm OUTPUT
but, inside the module, the "tc_acoes_adm-current_line" is always 0. Thus, the table control is never filled with data from internal table gi_acoes.
any idea will be welcome!!
thanks in advance,
Hermes.
12-20-2006 1:50 PM
Do you have more than one table control in your screen?
If yes, you should loop the table controls in the same order they appear in the screen. left to right, top to bottom.
Hope it helps.
Thanks.
12-20-2006 12:03 PM
Hi ,
Give like this .
loop <b>at itab</b> with control tc_acoes_adm .
module fill_acoes_adm.
endloop.
Regards ,
Senthil
12-20-2006 1:06 PM
it didn't work...
and it should not be needed, since I use the same logic in other screens, and it is working...
I'm getting crazy with this. SAP is playing jokes on me...
12-20-2006 1:12 PM
Try this
LOOP AT gi_acoes_adm
with control tc_acoes_adm
cursor tc_acoes_adm-current_line.
ENDLOOP.
Regards.
12-20-2006 1:50 PM
Do you have more than one table control in your screen?
If yes, you should loop the table controls in the same order they appear in the screen. left to right, top to bottom.
Hope it helps.
Thanks.