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

Module Pool : Table control

Former Member
0 Likes
719

Hi,

In a table control o/p, supose I have 5 records in the table.Now I want to add 2 new records in the same.So I have to add 2 new editable line in which anyone can enter data.

My problem is that in such condition, if I am giving 2 values in 2 rows, then the last one is always available.How can I get all the records?

It seems to be there must be any loop on table control.But I am unable to find it out.

Please advice me.

6 REPLIES 6
Read only

Former Member
0 Likes
695

can you clearify more you isuue is not understandable

Read only

0 Likes
695

I have a table control which is displaying 5 record from a database table ZTABLE.

Now if I press a 'ADD' buton in the same screen, then 2 blank EDITABLE row is inserted in the table control.

Now my requiremnet is that I may enter data in both 2 rows/or in 1st row/in 2nd row.

Now in the PAI of the screen, I am getting always the last row value in the workarea ZTABLthough I want all the edited records. How can I proceed?

Read only

0 Likes
695

Are you using table control wizard???

If yes it will be very helpful to you!first tell me using table control wizard?

Read only

0 Likes
695

No I am not using Table control wizard.

In the table ciontrol screen, I am giving 2 values in 2 row.s. That is my question that they must be stored in a table? But in PAI, I am getting the workarea value.How can I find the Table name and the Loop?

Read only

Former Member
0 Likes
695

are you updating this value in internal table or not?

how can any structure can get two value ?

means you will have to use interanl table to store value ,

and table conrol is using single work area ,

so during loop -endloop in pai it will pass this value to work area,

so but obvious you will get last value!!

so check with your internal table with both values

Regards,

Alpesh

Read only

Former Member
0 Likes
695