‎2007 Sep 28 9:39 AM
Hi all
How to create a table with no limited of row for user to enter the record.
Any code?
‎2007 Sep 28 9:43 AM
When ever you append a record into the table control, increase the table control rows by a particluar number.
Then the user can always have a fixed number of empty rows to be entered in the table control
for ex : you have a table control and the user enters one records and press enter or saves it.
then in the PBO of the screen do this
itab is the internal table that is contained in the table control.
itab lines type I (integer)
tabctrl is the name of the table control placed on your screen.
describe table itab lines itab_lines.
tabctrl-lines = itab_lines + 10. " 10 or some big numberRegards
Gopi
‎2007 Sep 28 9:57 AM
‎2007 Sep 28 10:00 AM
I would suggest you the best option to check the programs under ABAPDOCU & DWDM tcodes
demo_dynpro_tabcont_loop
demo_dynpro_tabcont_loop_at
RSDEMO_TABLE_CONTROL
Regards
Gopi
‎2007 Sep 28 10:01 AM
‎2007 Sep 28 10:09 AM
My program need similar function of a table control
1) go to /ose11
2) select the view
3) Enter any view name
4) click display
5) select the selection conditions tab
I need this selection condition tab of the table for my program.
All the function in this table for my program.
Somehow i want to mock this table out. Anyway can i do it?
‎2007 Sep 28 9:48 AM
hi
good
go through this link which ll give you detail idea about the table control,and code
http://www.sapdesignguild.org/resources/MiniSG/3_Managing/3_Functions_Table_Control.htm
thanks
mrutyun^
‎2007 Sep 28 9:49 AM
We have to use LOOP ... ENDLOOP in PAI so that data can transfer fro table control to ABAP program. If we want to write changes to the data we should
call a module between the LOOP ... ENDLOOP. The MODULE call to process user commands (SY-UCOM) should be called after the ENDLOOP statement.
e.g.
PROCESS AFTER INPUT
MODULE mod AT EXIT-COMMAND.
LOOP AT itab_table or LOOP "depending on whether we are using AT int_table
MODULE modify_int_table.
ENDLOOP.
MODULE user_command.
In the MODULE call modify_int_table we can use
MODIFY int_table FROM workarea INDEX tab_con-CURRENT_LINE
or we can use
int_table-field_name = screen_field_name.
go through this link
http://sap.niraj.tripod.com/id29.html
***************
In table control if some rows disabled, after pressing the insert button , they are enabled.Just check the link.
Regards
Vasu