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: 

I want to display content of internal table using table control.Please help

Former Member
0 Kudos

I want to display content of internal table using table control.Please give directions on how to do this from start and step by step.

Thanks in Advance,

Saket.

1 ACCEPTED SOLUTION

harimanjesh_an
Active Participant
0 Kudos

hi saket,

ABAP offers two mechanisms for displaying and using table data in a screen. These mechanisms are table controls and step loops. Table controls and step loops are types of screen tables you can add to a screen in the Screen Painter.

check these links, it may be helpful to u.

this link contains information about :

1)Table Controls in ABAP Programs

2)Looping Through an Internal Table

3)Table Controls: Examples with Scrolling

http://help.sap.com/saphelp_47x200/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/frameset.htm

reward me if useful,

Harimanjesh AN

Message was edited by:

Harimanjesh AN

5 REPLIES 5

Former Member
0 Kudos

Hi,

We have good examples in the SAP itself, look at the example programs

DEMO_DYNPRO_TABCONT_LOOP

DEMO_DYNPRO_TABCONT_LOOP_AT

DEMO_DYNPRO_TABLE_CONTROL_1

DEMO_DYNPRO_TABLE_CONTROL_2

Regards

Sudheer

0 Kudos

Hi

In the fow logic of screen you need to write below PBO

process before output.

loop at itab with control table_control_name.

endloop.

module status_0110.

It will copy the contents of ABAP fields (Internal table) into Screen fields (Table control)

Regards.

Aditya

Former Member
0 Kudos

Hii

In PBo you have to write

LOOP AT Internaltable_name

INTO workarea_name

WITH CONTROL tablecontrol_name

CURSOR tablecontrol_name-current_line.

MODULE tablecontrol_move.

ENDLOOP.

double click on this module you have to write

MOVE-CORRESPONDING workarea_name TO table_name.

      • the table_name should be screen fields table name.

Former Member
0 Kudos

Hi,

At SE38 program declare-

data : <table control name from SE51> type table view using screen <number of screen>.

AT SE51

at flow logic of screen with table control

PBO.

LOOP AT itab INTO workarea WITH CONTROL <table control name>.

MODULE MODULE_TO_ITAB_TO_TABLECONTROL.

ENDLOOP.

PAI.

Module MODULE_TO_SELECT_DATA_TO_ITAB.(select dta to ITAB)

logic-

MOVE-CORRESPONDING workarea_name TO table_name.

harimanjesh_an
Active Participant
0 Kudos

hi saket,

ABAP offers two mechanisms for displaying and using table data in a screen. These mechanisms are table controls and step loops. Table controls and step loops are types of screen tables you can add to a screen in the Screen Painter.

check these links, it may be helpful to u.

this link contains information about :

1)Table Controls in ABAP Programs

2)Looping Through an Internal Table

3)Table Controls: Examples with Scrolling

http://help.sap.com/saphelp_47x200/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/frameset.htm

reward me if useful,

Harimanjesh AN

Message was edited by:

Harimanjesh AN