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: 

table control & steploops

Former Member
0 Kudos

what is table control & steploops? diff between explian plzzzz?

3 REPLIES 3

Former Member
0 Kudos

hi,

Screen tables:

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.

Declaration of TC in MPP

syntax:

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

steploops:

Step loops are type of screen tables as already mentioned.

Step loops are nothing but repeated blocks of fields in a screen.

Each block contains one or more fields.

Step loops don’t give you feeling of actual table.

You can scroll vertically but not horizontally.

Steps for creating step loops:

Define a cursor in module pool program.

Creation of step loops on screen.

Transfering data to the step loops.

Types of Step loops:

Static : SSL has fixed size that can not be changed during run time, in the sense that if user resizes the window, the size of static step loop is not changed.

Dynamic : DSL are variable in size. When the user resizes window, the system increases or decreases the number of the step loop blocks.

Programming with the SSL and DSL is exactly same.

For the system or user, it doesn’t make any difference.

Only attribute, which you fix during designing of step loop, is type ‘Fix’ for SSL and ‘Variable’ for DSL.

table controls:

Former Member
0 Kudos

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

<b>Step loops</b> are the predecessors of table controls.table controls and step loops are almost identical. <b>Table controls</b> are ultimately an improvement of step loops, in terms of usability by the end user.

A step loop is defined in the Screen Painter. Screen elements, which unlike table controls can be spread over a number of lines, are combined into one group that repeats itself several times within the step loop. The attributes of the screen elements of the first group define the attributes of the whole step loop. The fields of a group only appear once in the field list of the corresponding screen. Therefore, you only have to create them once in ABAP programs. A screen can have more than one step loop. However, as screen elements, <u>step loops do not have individual names.</u>

In the Screen Painter, you can define whether the size of a step loop is fixed or variable. The vertical size of variable step loops changes if the user changes the vertical size of the window. For every screen, you can define any number of fixed step loops but <u>only one variable step loop</u>. Every vertical size change triggers PAI if a variable step loop is defined on the screen. For fixed step loops the number of repetition groups is predefined.

Former Member
0 Kudos

hi,

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.

<b>STEP-LOOPS:</b>

A step loop is a repeated series of field-blocks in a screen. Each block can contain one or more fields, and can extend over more than one line on the screen.

If you have a step loop in your screen, you can place the cursor on a particular element in the step loop block. Use the LINE parameter, entering the line of the loop block where you want to place the cursor:

SET CURSOR FIELD <fieldname> LINE <line>.

If you want, you can use the OFFSET and LINE parameters together

for step-loops follow this link.......

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

the major difference between table control and step loops is, we didn't get horizontal scroll facility in step loops.

follow this link for table control and step-loops

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

http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/contro02.htm

follow this link for sample program

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

regards,

Ashok Reddy