‎2006 Jul 03 11:43 AM
Hi Friends,
In the table control, i am getting all the records from the database table automatically. (The table control is made through wizard)
But, I would like to know the following :
1. How to enter the additional records. (The system takes all the rows from the database table and displays them in the rows automatically. After the last row is displayed, it is not allowing to extend the rows further for any new entries).
2. How to save the new entries.
Kindly provide a complete document on the above, as I am new to this topic.
Thanks in advance,
Mark K.
‎2006 Jul 03 11:45 AM
Hi Mark you can refer the programs:
RSDEMO_TABLE_CONTROL
DEMO_DYNPRO_TABLE_CONTROL_2
DEMO_DYNPRO_TABLE_CONTROL_1
Regards,
Ravi
‎2006 Jul 03 12:09 PM
Hi Ravi,
Not clear with these two programs. They are not allowing to make any new entries.
Kindly give some other document.
Regards,
‎2006 Jul 03 12:12 PM
hi
why dont u try with table control wizards in se51...that will help u i guess!!
reward points if it helps
regards
Gunjan
‎2006 Jul 03 1:00 PM
Hi Mark
The field <TABLE CONTROLS>-LINES defines the number of rows can be listed in table control.
If you've designed the tc by wizard, probably you should have a piece of code sets the value in that field.
There are many ways to do what you need, but perhaps the easier ways is to add pushbutton in status GUI to insert an empty row:
CASE OK_CODE.
WHEN 'NEW'.
APPEND INITIAL LINE TO ITAB.
<TABLE CONTROLS>-LINES = <TABLE CONTROLS>-LINES + 1.
Max