Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Table control - doubt?

Former Member
0 Likes
623

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
584

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.

4 REPLIES 4
Read only

Former Member
0 Likes
585

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.

Read only

former_member186741
Active Contributor
0 Likes
584

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.

Read only

Former Member
0 Likes
584

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

Read only

Former Member
0 Likes
584

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^