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

press enter in table control

Former Member
0 Likes
787

Hello gurus.

I have problem with table Control.

I have put all Entries in Table control, but when I Press Enter or Vertical scroll bar.

The table Control Become blank.

I am waiting your reply.

Regards

Riten patel

Hello gurus.

I have problem with table Control.

I have put all Entries in Table control, but when I Press Enter or Vertical scroll bar.

The table Control Become blank.

I am waiting your reply.

Regards

Riten patel

5 REPLIES 5
Read only

Former Member
0 Likes
758

Hi,

clear the ok_code or SY-UCOMM value..When you press Enter or vertical scroll bar PAI event is triggering...In PAI again call PBO event to populate values.

Regrads,

Suvajit.

Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
758

Are you doing any processing the Enter command in PAI or refreshing the records by mistake ?

Read only

0 Likes
758

Hi Riten,

You might be refreshing the internal table which is used to update value in table control.

Hoping this helps.

Thanks & Regards,

Komal

Read only

Former Member
0 Likes
758

hi

first check if you have applied loop through the table in both PBO and PAI events.

it should be like:

process before output.

module status_9000.

loop at itab into wa_itab with control tab_cntrl.

endloop.

process after input.

module user_command_9000.

loop at itab ."WITH CONTROL TAB_CNTRL.

endloop.

the above code should be present in your flow logic of the screen.

Then in your driver program you should select the data in PBO and then capture the appropriate OKCODE in PAI event.

clear the okcode after the case or if endif statement.

it might be possible that you have not applied the loop through the table in PAI of the screen

that why when you press enter the data gets cleared.

Try this and let me know.

thanks

Lalit

Read only

Former Member
0 Likes
758

Hi,

In the PAI have you writen the code to modify the table control ?

Write this in the PAI flow logic --

Loop at it.
  module modify.
endloop.


MOdule modify.
    modify it index tc-current_line.
    if sy-subrc ne 0.
      apend it.
    Endif.
endmodule.

Regards,

Madhukar Shetty