Application Development 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: 

table controlls in module pool programming

Former Member
0 Kudos

Hi all.

I have an issue in module pool program.

I created a table controll in the screen through table controll wizard.

In that if I enter the data for 10 records(more than 1),then I(pressed)clicked on ENTER . then only first record is staying in the table controll.all other recods are

going(disappering) from the table controll.

Can any body help me to solve this problem.

Thanks in Advance,

Regards.

Eswar

1 ACCEPTED SOLUTION

Former Member
0 Kudos

you are not storing the entries given in the table control.

i can give you an idea.

declare an internal table which has the same structure as of the table control.

in the PAI event, refresh the internal talbe.

loop at the table control. move all the entries of the table control to the internal table.

in the PBO event, refresh the table control. count the number of lines in table control. insert all the lines of internal table to the table control one after another.

hope this helps you.

thanks

pavan

3 REPLIES 3

Chaitanyat
Participant
0 Kudos

Hi,

The Internal table/Structure which holds the Table Control records data is getting refreshed in PAI of the screen. So please check the code and made changes such that the values are not refreshed in PAI.

Regards,

Chaitanya

Former Member
0 Kudos

you are not storing the entries given in the table control.

i can give you an idea.

declare an internal table which has the same structure as of the table control.

in the PAI event, refresh the internal talbe.

loop at the table control. move all the entries of the table control to the internal table.

in the PBO event, refresh the table control. count the number of lines in table control. insert all the lines of internal table to the table control one after another.

hope this helps you.

thanks

pavan

0 Kudos

Hi..

thanks for your reply.

Now i had seen in the debugging.

The data what I entered is not at all saving in the table controll.

with in the loop in PAI, the values are comming to the header but not moving to the body.

so i used Append itab.

but each time I clicked on ENTER they are appending.

Please give me an idea.

Thanks in advance,