2007 Jul 26 2:59 PM
hi
what is the difference between table controls and step loops
hi
what is the difference between table controls and step loops
2007 Jul 26 3:07 PM
What are the differences between TABLE CONTROLS and STEP LOOPS?
TABLE CONTROLS are simply enhanced STEP LOOPS that display with the look and feel of a table widget in a desktop application. But from a programming standpoint, TABLE CONTROLS and STEP LOOPS are almost exactly the same. One major difference between STEP LOOPS and TABLE CONTROLS is in STEP LOOPS their table rows can span more than one time on the screen. By contrast the rows in a TABLE CONTROLS are always single lines, but can be very long. (Table control rows are scrollable). The structure of table control is different from step loops. A step loop, as a screen object, is simply a series of field rows that appear as a repeating block. A table control, as a screen object consists of: I) table fields (displayed in the screen ) ii) a control structure that governs the table display and what the user can do with it.
What is the difference between Table Controls and Step Loops?
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.
Steploops:
Step loops are type of screen tables.
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.
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.
Step loops are the predecessors of table controls.table controls and step loops are almost identical. Table controls 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, step loops do not have individual names.
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 only one variable step loop. 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.
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
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 dont 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 doesnt make any difference.
Only attribute, which you fix during designing of step loop, is type Fix for SSL and Variable for DSL.
table controls:
regards,
srinivas
<b>*reward for useful answers*</b>
2007 Jul 26 3:17 PM
hi
<b>Table controls</b> and step loops are objects for screen table display that you add to a screen in the Screen Painter. From a programming standpoint, table controls and step loops are almost exactly the same. Table controls are simply improved step loops that display data with the look and feel associated with tables in desktop applications. With table controls, the user can:
-scroll through the table vertically and horizontally
-re-size the width of a column
-scroll within a field (when field contents are wider than the field)
-select table rows or columns
-re-order the sequence of columns
-save the current display settings for future use
Table controls also offer special formatting features (some automatic, some optional) that make tables easier to look at and use. These are for example:
-automatic table resizing (vertical and horizontal) when the user resizes the window
-separator lines between rows and between columns (vertical and horizontal)
column header fields for all columns
One feature of <b>step loops</b> is that their table rows can span more than one line on the screen.
A row of a table control, on the other hand, must always be contained in a single line (although scrolling is possible).
In general, many of the features provided by the table control are handled locally by your systems SAPgui frontend, so you do not need to program them yourself. The only notable exception to this is vertical scrolling.
<b>reward points for useful ans</b>
Regards
Aarti
2007 Jul 26 3:18 PM
Hi,
STEP LOOPS
Step Loops are type of screen table . Step loops are repeated blocks of field in a screen. Each block contains one or more fields and these blocks are repeated. Step loops arent like actual table. You can scroll vertically but not horizontally. Three steps are associated with creation of step loops:
Creation of step loops on screen, which includes declaring fields on the screen and then defining the step, loops for these fields.
Passing data to the step loop is exactly similar to the passing of data to table controls.
In step loop, you dont need to define the step loop as such in the module pool program but the cursor needs to be defined in the program.
Types of Step Loops
Static Static Step Loop (SSL) have fixed size that cannot be changed during the runtime. If user resizes the window, the size of the static step loop is not changed.
Dynamic Dynamic Step Loop (DSL) is variable in size. When the user resizes the window, the system increases or decreases the number of the step loop blocks.
You can have only one dynamic step loop and can have as many static loops in your transaction.
Programming with the Static and dynamic step loop is exactly same. For the system or for the user it doesnt make any difference whether it is static or dynamic step loop. Only attribute, which you fix during designing of the step loop, is type attribute for step loop F for fixed i.e static and V for variable i.e. dynamic.
Writing code for Step Loop in the flow logic.
PBO.
Loop at itab cursor cl.
Module set.
Endloop.
PAI.
Loop at itab.
Endloop.
Empty loop is must for both table control and step loop
LOOP AT statement for step loops and Table controls is similar. Loop At statement transfers the data to screen table. You need to have the Module to assign the values for the screen table.
In module pool program you need to define the cursor.
Date: CL TYPE i.
Cursor parameter tells which line of step loop display should start.
Module Set in module pool program assigns the values to step loop fields, which is similar to table controls.
Refer to this program DEMO_DYNPRO_STEP_LOOP
Table controls:
Used to display multiple records, with vertical and horizontal scroll bars and the facility for selecting the records.
reward if useful
regards,
ASHOK KUMAR
2007 Jul 26 3:27 PM
table control start with alph <b>t</b>
where as steps loops satart with <b>s</b>
waiting for reward points...
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |