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

Add row in table control

Former Member
0 Likes
1,769

HI Gurus,

I am using table control with lines items refer directly from table.

Now i want to know how to add new row in table control?

While choose add button I want 1 row should enavle in table control.

Regards,

Bhuvana.

HI Gurus,

I am using table control with lines items refer directly from table.

Now i want to know how to add new row in table control?

While choose add button I want 1 row should enavle in table control.

Regards,

Bhuvana.

4 REPLIES 4
Read only

Former Member
0 Likes
1,602

In the Add button append a blank row to your internal table.

It will show in your TC.

Read only

Former Member
0 Likes
1,602

Hi,

If you use table control wizard then SAP provides adding, deleting, select all, deselect all functionality.

So,I suggest you to use Table control wizard.

There are lot of examples on internet to achieve this.

Thanks & Regards,

Abdul.

Read only

Former Member
0 Likes
1,602

Hi,

Table Control with Wizard will be the easiest option to achieve this.

But if you insist on continuing with the existing table control, you could follow the below steps,

1. Add an icon in the application toolbar.(Under GUI Status)

2. In the USER_COMMAND module of your screen, write the code to append an empty row into the table control internal table.

Hope this helps.

Read only

Former Member
0 Likes
1,602

Use the statement,

INSERT tb_table FROM wa index 1.

keep the wa work area blank. in the next PBO you can see a blank line at the beginning of your table control. Make sure that your table is editable.