‎2007 Jan 19 7:56 AM
Hi all,
Could i directly put my data from internal table to the table control in Module pool.
I am trying to do this but after entering the value it doesn't call another screen.
Is it necessary to take a work area to put data in table control.
Please help.
‎2007 Jan 19 9:22 AM
‎2007 Jan 19 8:22 AM
See ,
Your table control will have Fields from Data Dictionary table and you will drag those reqd fields You can change the name of fields as ur internal table field and u declare ur internal as occurs 0 with header line .
so u don't reqd a workarea.
But to populate data you should use the same field name what you set in table control .
For eg.IF ITAB IS declared with header line .
Tabcontrol tab has 5 fields.
if you have declare fields itab-a itab-b
then
Loop at itab with control tab.
endloop.
For eg.IF ITAB IS declared without header line .
Tabcontrol tab has 5 fields.
if you have declare fields wa-a wa-b
Loop at itab into wa with control tab.
endloop.
Please reward if useful.
‎2007 Jan 19 8:27 AM
Thanks for the solution ,
Is it necessary to use the
Loop at Screen
‎2007 Jan 19 8:32 AM
No you dont have to use loop at screen unless you want to make changes on screen fields themself.
Say if you got a edit button on screen and you want to enable, disable that button on basis of user authorizations, then you use loop at screen to change the edit button depending on user authorizations.
regards
‎2007 Jan 19 9:22 AM
‎2007 Mar 22 7:22 AM