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

Table Control

Former Member
0 Likes
1,007

Dear all,

Pls explain in detail abt Table Control

Vikas

5 REPLIES 5
Read only

Former Member
Read only

sharadendu_agrawal
Active Participant
0 Likes
618

Hi Vikas,

Jus go thru the standard report RSDEMO02. It will solve many of ure queries.

REward if helpful

Cheers,

Sharadendu

Read only

Former Member
0 Likes
618

Hi,

Table Control is used in Module Pool Programming.

Table Control is used to display data of any internal table of ur program or the data from dictionary table directly ino a table format.

Using table control with the help of screen painter, data can be easily displayed.

It can be created manually through coding or using Table Control Wizard given in the screen painter.

Use

Table controls allow you to enter, display, and modify tabular data easily on the screen.

They provide the following functions:

  • On definition:

  • Fixed columns

  • Column headers

  • At runtime:

  • Vertical and horizontal scrolling.

  • Modifiable column width.

  • Row and column selection.

  • Movable columns

  • Settings can be saved.

TABLE CONTROL -

http://www.geekinterview.com/Interview-Questions/SAP-R-3

http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaa4735c111d1829f0000e829fbfe/content.htm

http://www.sapgenie.com/abap/example_code.htm

http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm

http://www.sapgenie.com/links/abap.htm

http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm

Eg of table Control:

http://members.aol.com/_ht_a/skarkada/sap/table_control/

table_control.htm

http://www.sapdesignguild.org/resources/MiniSG/3_Managing/3_Functions_Table_Control.htm

Table control in BDC

http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm

http://help.sap.com/saphelp_erp2005/helpdata/en/45/adee2396f711d1b46b0000e8a52bed/frameset.htm

Also, a table control wizard in Screen Painter(SE51) exists, which takes you step by step through the Table Control generation and also creates code, so you can start using the Table Control right away.

Regards,

Priyanka.

Read only

Former Member
0 Likes
618

A table control is a screen element capable of holding multiple records of data.

See demo programs

DEMO_DYNPRO_TABLE_CONTROL_1

DEMO_DYNPRO_TABLE_CONTROL_2

RSDEMO02

RSDEMO_TABLE_CONTROL

Regards,

Ravi

Read only

Former Member
0 Likes
618

hi,

A table can be created in transaction. These tables, when designed on the screen are called as SCREEN TABLES.

These are of two types.

Table Controls and Step loops

These tables are treated as Loops.

Features of Table Controls:

Data is displayed in the form of table.

Table control gives user the feeling of an actual table.

You can scroll through the table vertically as well as horizontally.

You can select rows and columns.

You can resize the with of columns.

You can have separator lines between rows and columns.

Automatic resizing of the table when the user resizes the window.

You can update information in the table control and it can be updated in the database table by writing code for it.

Steps for creating table control:

Declaration of table control in module pool program.

Designing of table controls on the screen.

Passing data to table control in flow logic.

syntax:

controls <name of table control> type tableview using screen <‘screen no.’>.

Designing Table control on screen:

Click on Table in Control bar and place it on the screen. You can adjust the length and width of the Table Control.

Name the table control.(same name as given in data declaration).

From dictionary object OR from program fields select the fields and place them in the table control.

Passing data to table control:

Usually transfer of data from program to screen is automatic.

In case of TC, you need to explicitly transfer the data to table control.

ABAP/4 provides Loop statement, which is associated with flow logic to transfer the data.

PBO.

Loop at <name of internal table> with control <name of table control> cursor <scroll variable>.

module…….

Endloop.

PAI.

Loop at < name of internal table>.Endloop.

Transfer of data from prg to TC.:

With ‘Loop at …’ statement, the first row is placed in the header of internal table.

If any module is specified between Loop and End loop, it will be executed. In this module, generally we will be assigning this internal table fields to table control screen fields.

The row in internal table is transferred to the TC as stated in the ‘Loop at…..’ statement.

The system encounters the ‘Endloop’ statement and control is passed back to the next line of internal table.

In the same way all the records of the internal table are passed to the TC.

here is a step by step example. you can learn by following the steps:

http://www.planetsap.com/online_pgm_main_page.htm