Application Development 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: 

To retrieve data and populate it into table control

Former Member
0 Kudos

Hi,

I have a table ZUP_EST_HEADER and a table control Report_details.

I want to reyrieve the data from the table ZUP_EST_HEADER and populate it into Table control Report_Details.Can anyone help me out.

Regards,

Anila

1 ACCEPTED SOLUTION

Lakshmant1
Active Contributor
0 Kudos

Hi Anila,

Have a look at demo programs,

DEMO_DYNPRO_TABCONT_LOOP

DEMO_DYNPRO_TABCONT_LOOP_AT

DEMO_DYNPRO_TABLE_CONTROL_1

DEMO_DYNPRO_TABLE_CONTROL_2

Thanks

Lakshman

3 REPLIES 3

Lakshmant1
Active Contributor
0 Kudos

Hi Anila,

Have a look at demo programs,

DEMO_DYNPRO_TABCONT_LOOP

DEMO_DYNPRO_TABCONT_LOOP_AT

DEMO_DYNPRO_TABLE_CONTROL_1

DEMO_DYNPRO_TABLE_CONTROL_2

Thanks

Lakshman

Former Member
0 Kudos

Hi

I hope when you created table contol you would have used internal table of type ZUP_EST_HEADER.

If yes,

than in PBO,

Write select * into table ITAB from ZUP_EST_HEADER where

condition

Regards

MD

Former Member
0 Kudos

hi,

you create a internal table like this.

data:itab1 like table of ZUP_EST_HEADER with heder line.

the fields of your table control should be like this

itab1-f1,

itab1-f2.

now when you will retrive data from your table to internal table itab1.

table control will be fill automatically.

In pbo you write.

loop at itab1 with control <controlname>.

endloop.

in PAI you write.

loop at itab1.

endloop.

you must define tablecontrol as

controls:<name> type tableview using screen <screen no.>

Edited by: swati gupta on Sep 24, 2008 11:31 AM