‎2006 Sep 05 5:43 AM
I have given my code here, I dont know why the data from the table is not displayed in the table control.
table control name - TABLE_CONTROL
internal table name - TCTRL
Flow logic:
PROCESS BEFORE OUTPUT.
MODULE STATUS_0100.
LOOP at tctrl into zalvrg_cx_fcat WITH CONTROL TABLE_CONTROL.
LOOP AT tctrl with control table_control cursor
table_control-current_line.
ENDLOOP.
MODULE TAB_CONT.
PROCESS AFTER INPUT.
module exit_program at exit-command.
field rs38m-programm module check_programm.
module init_controls.
module pop_tblnam.
loop at tctrl.
MODULE PAI_TAB_CONT.
endloop.
MODULE USER_COMMAND_0100.
in module pai_tab_cont-
LOOP AT T_FIELDS.
MOVE: T_FIELDS-TABNAME TO TCTRL-TABNAM,
T_FIELDS-FIELDNAME TO TCTRL-FIELDNAME,
T_FIELDS-POSITION TO TCTRL-COLPOS,
T_FIELDS-OUTPUTLEN TO TCTRL-OUTLEN,
T_FIELDS-FIELDTEXT TO TCTRL-COLHEAD.
APPEND TCTRL.
ENDLOOP.
I have the data in t_fields internal table. I have to display in table control.
‎2006 Sep 05 5:51 AM
hi,
did u take the fields from program??
if not..
since u have ur internal table declared in the program..
select the table control fields by selecting GET FROM PROGRAM and put those fields in ur table control..
regards,
priya.
‎2006 Sep 05 5:51 AM
hi,
did u take the fields from program??
if not..
since u have ur internal table declared in the program..
select the table control fields by selecting GET FROM PROGRAM and put those fields in ur table control..
regards,
priya.
‎2006 Sep 05 6:31 AM
I believe you need to fill the table before you call your screen. The PBO bulds the table control from what's in the table to start with, i.e. before you have called the screen.
‎2006 Sep 05 6:38 AM
Hi,
Append the Contents to an Internal table and in PBO Module Move the Correponding values from the Internal table to the Table control.
Hope this would be helpful.
Cheers,
Prashanth
‎2006 Sep 05 6:45 AM
HI
GOOD
go through these links, which ll give you brief idea about the table control, that you can implement in your requirement,
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb381a358411d1829f0000e829fbfe/content.htm
http://abap4.tripod.com/SAP_Functions.html
thanks
mrutyun^