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

Populating Value In Table Control

Former Member
0 Likes
1,154

Hi All,

I have designed a table control on a z-screen. I have a z-table which is corresponding to the table control . I need to populate the values from the z-table to the table control . Plz give me the sequence of logic or steps of how to do it .

Thanks in Advance,

Paul.

6 REPLIES 6
Read only

Manohar2u
Active Contributor
0 Likes
687

Here is the step by step guide as required to you

<a href="http://www.sappoint.com/abap/dptc1.pdf">http://www.sappoint.com/abap/dptc1.pdf</a>

Regds

Manohar

Read only

Former Member
0 Likes
687

<b>complete refrence step by step just go through it...</b>

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/abap-code-sam... control in abap.pdf

and also...

This is quite simple.

Go thru the transaction ABAPDOCU.

There are lots of examples available for almost all the topics.

The demo transaction BIBS contains examples for all module pool programs.

After entering transaction BIBS, go to menu path and you choose diffrent types of table control examples.

YOu need to write code in the PBO, if you want to display the details when screen is displayed.

Read only

Former Member
0 Likes
687

declare one internal table with the fields that u want them to be displayed in table table control.

give the same names in table control , eg itab-fld1 ...

then u can write ur select statement in PBO of that screen

select fld1 fld2 .. from ztable into itab where ...

this will populate ur table control

Read only

Former Member
0 Likes
687

Hi,

Check these Demo programs.

DEMO_DYNPRO_TABLE_CONTROL_1  
DEMO_DYNPRO_TABLE_CONTROL_2  
DEMO_DYNPRO_TABCONT_LOOP     
DEMO_DYNPRO_TABCONT_LOOP_AT  
RSDEMO_TABLE_CONTROL

Regards

vijay

Read only

former_member404244
Active Contributor
0 Likes
687

Hi paul,

in the pbo module.

Declaration

data : zintab type standard table of ztable,

wa_intab type ztable.

1>MODULE fetch_data.

in the above module get the data from the ztable and fill the values into an internal table say zintab.

2>LOOP AT zintab

INTO wa_zintab

WITH CONTROL table control name

CURSOR table control name-current_line.

ENDLOOP.

Hoping this gives some idea.

Regards,

Nagaraj