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: 

how to Hold data after PAI..

Former Member
0 Kudos

Hi,

I m Using a table control in a screen and some fields are Input field.

when i enter the values and give "enter" key then the values got disappear....

So how do i do display the enterd values after pressing "enter". that is after PAI.

Thanx.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi ,

you r using the table control .In this PAI will maintain an empty loop. y because how many record r maintained in this table control. it doesnt know. so it is using this empty loop.

i think it is useful some what .

please reward points if it is useful.

regards,

satish.

3 REPLIES 3

Former Member
0 Kudos

Hi ,

you r using the table control .In this PAI will maintain an empty loop. y because how many record r maintained in this table control. it doesnt know. so it is using this empty loop.

i think it is useful some what .

please reward points if it is useful.

regards,

satish.

Former Member
0 Kudos

Hi Ram,

Since u r using the table control.. there will be a loop in PAI. inside that loop u create a module and inside that.. u move all the screen fields to a work area (which is of the same structure of the internal table which u are looping). after moving to work area.. u write a modify command as given below

MODIFY internal table name FROM workarea INDEX table control name-current_line

TRANSPORTING ur fields(which u wants to modify).

Mail me if are not clear.

Regards

Maneesh Chandran.

Former Member
0 Kudos

Hi,

while using table control it is necessary to use loop at statements at both PBO and PAI.

because on loop at statement i.e

loop at itab.

***it reads data from internal table.

now we want to move this data to table control.

so

we have to write another loop at statement.

loop at itab with control vcontrol using screen 100.

with this statement the contents in internal table will pass to table control.

here we are loop statement. so multiple records can be displayed in the table control.

if u want to activate vertical scroll bar.

code as

vcontrol-lines = sy-dbcnt.

with this you can activate vertical scroll bar.

regards,

swami