10-12-2007 2:26 PM
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.
10-16-2007 1:17 PM
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
10-12-2007 2:34 PM
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
10-15-2007 7:46 AM
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
10-15-2007 8:54 AM
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.
10-15-2007 10:53 AM
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.
10-16-2007 1:17 PM
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