‎2009 Jun 06 10:49 AM
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.
‎2009 Jun 06 11:17 AM
‎2009 Jun 06 12:15 PM
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?
‎2009 Jun 06 12:25 PM
Are you using table control wizard???
If yes it will be very helpful to you!first tell me using table control wizard?
‎2009 Jun 06 12:49 PM
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?
‎2009 Jun 06 12:24 PM
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
‎2009 Jun 06 12:55 PM