Application Development and Automation 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: 
Read only

Table control

Former Member
0 Likes
730

Hi all

How to create a table with no limited of row for user to enter the record.

Any code?

7 REPLIES 7
Read only

gopi_narendra
Active Contributor
0 Likes
695

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 number

Regards

Gopi

Read only

0 Likes
695

Do u hav a full sample code to create a simple table control?

Read only

0 Likes
695

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

Read only

0 Likes
695

hi,

what do u want to do exactly?

Read only

0 Likes
695

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?

Read only

Former Member
0 Likes
695

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^

Read only

Former Member
0 Likes
695

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.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/table%20c...

Regards

Vasu