2008 Sep 24 10:17 AM
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
2008 Sep 24 10:23 AM
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
2008 Sep 24 10:23 AM
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
2008 Sep 24 10:23 AM
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
2008 Sep 24 10:25 AM
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