‎2006 Jun 24 8:03 PM
Hi,
What is table control? Can you show me a simple program (with instructions) of how to implement a table control in a program?
Thank you very much.
‎2006 Jun 24 8:29 PM
Hi Nuren,
Table control is used in DYNPROS (Module pool screens) to display or edit data in table format.
You can also create a standard, executable report program and use a CALL SCREEN to display a screen (that was created in SE51) containing the table control.
For more information, please check this link.
http://help.sap.com/saphelp_47x200/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/frameset.htm
This example shows how to build a table control using ABAP.
http://members.aol.com/_ht_a/skarkada/sap/table_control/table_control.htm
Hope this will help.
Regards,
Ferry Lianto
Please reward points if helpful.
‎2006 Jun 24 8:14 PM
Hi
TABLE CONTROL is a screen table to display several records in a dialog program (module pool).
U can find goods sample using trx ABAPDOCU or DWDM
Max
‎2006 Jun 24 8:29 PM
Hi Nuren,
Table control is used in DYNPROS (Module pool screens) to display or edit data in table format.
You can also create a standard, executable report program and use a CALL SCREEN to display a screen (that was created in SE51) containing the table control.
For more information, please check this link.
http://help.sap.com/saphelp_47x200/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/frameset.htm
This example shows how to build a table control using ABAP.
http://members.aol.com/_ht_a/skarkada/sap/table_control/table_control.htm
Hope this will help.
Regards,
Ferry Lianto
Please reward points if helpful.
‎2006 Jun 24 10:04 PM
hi Nuren,
1) 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.
2)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.
3)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.
4)Declaration of TC in MPP
syntax:
controls <name of table control> type tableview using screen <screen no.>.
5)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
6)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.
7)Passing of data contd.
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.
8)Scroll variables
Top_line : the row of table where the screen display starts.
Current_line : the row currently being processed inside a loop.
9)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.
-
I think Both of the above post had already made you clear with the concept of Table Control
Here is a link which contains an example of Creating Table Control
This example shows how to build a table control using ABAP. The program builds a simple phone list. The code and accompanying screen shots describe the entire procedure. If there is demand, I'll be glad to describe the procedure.
http://members.aol.com/_ht_a/skarkada/sap/table_control/table_control.htm
Here are some other useful links.....
Check it out.......
This link Contain full fledge tutorial of Dialogue Programming..you Will be Able to understabd a lot from this.....
http://sap.ittoolbox.com/documents/document.asp?i=752
if u find it useful award some points
Regards,
Naveen
‎2006 Jun 24 10:30 PM
Here is the step by step guide for dialog programming - table control
<a href="http://www.sappoint.com/abap/dptc1.pdf">http://www.sappoint.com/abap/dptc1.pdf</a>
Regds
Manohar
‎2006 Jun 25 5:55 AM
DEMO_DYNPRO_TABLE_CONTROL_1 Table Control with LOOP Statement
DEMO_DYNPRO_TABLE_CONTROL_2 Table Control with LOOP AT ITAB
reward points if it helps
regards
gunjan