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

Display Data in an Table control

Former Member
0 Likes
629

Hi,

In a module pool program I am having data in an internal table.

But I am not able to display the data when the <b>table control</b> is called.

Please any one give me code or explain clearly how to display data in the table control.

promise to reward points

mac

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
602

hi

in d layout editor u should click get data from table which will der on the right hand side of the layout...hope it will b helpful...please reward

vijay

Hi,

In a module pool program I am having data in an internal table.

But I am not able to display the data when the <b>table control</b> is called.

Please any one give me code or explain clearly how to display data in the table control.

promise to reward points

mac

5 REPLIES 5
Read only

Former Member
0 Likes
603

hi

in d layout editor u should click get data from table which will der on the right hand side of the layout...hope it will b helpful...please reward

vijay

Read only

Former Member
0 Likes
602

Hi,

In PBO: in the Loop, write a module and

Assign all the Internal table fields(which you fetch from database) to the Screen fields(which you kept on the screen) of that table control.

This will display the data.

Regards,

Anji

Read only

0 Likes
602

Can you please give me the code how to do it.

Read only

Former Member
0 Likes
602

Refer these programs

RSDEMO_TABLE_CONTROL

DEMO_DYNPRO_TABLE_CONTROL_1

DEMO_DYNPRO_TABLE_CONTROL_2

RSDEMO02

Regards,

Santosh

Read only

Former Member
0 Likes
602

Hi,

Plz go through the code-

PROCESS BEFORE OUTPUT.

MODULE populateUser.

LOOP AT itab

WITH CONTROL t300

CURSOR t300-current_line.

ENDLOOP.

PROCESS AFTER INPUT.

LOOP AT itab.

MODULE modify_internal_table.

ENDLOOP.

MODULE modify_internal_table INPUT.

MODIFY itab index t300-current_line.

ENDMODULE. "

MODULE populateUser output.

select * from mara into table itab.

ENDMODULE. " populateUser OUTPUT

This is basically the syntax we follow for the table control.

t300 is the name of the table control and itab is the internal

table. Also if u hv any doubt just create a table control with

wizard all the coding for table control will get displayed

automatically in ur prog.

Hope this helps.

Regds,

Seema