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

Table Control after Scrolling Problem

muhammad_sohail
Participant
0 Likes
692

Dear All,

I m working on table control, it is working quite fine before scrolling, , expect after scrolling it adds extra lines and spaces. the line table control add again and again after some blank entries is the last line which we enter before scrolling.

Will anyone pls. guide me what can be the problem.

Thanks and Regards,

Sohail

6 REPLIES 6
Read only

Former Member
0 Likes
659

Hi Sohail,

IN TC, Scrolling also goes to PAI Event.

Set you TC lines according to Internal table lines in PAI Module.

Reply, if other details are required.

Read only

0 Likes
659

Dear Thx.

My Pai and Pbo codes r as follows, will u pls. guide me which code I have to add. and where.

PAI and PBO code

PROCESS BEFORE OUTPUT.
MODULE STATUS_1000.
Loop at itab_tc WITH CONTROL tc CURSOR tc-current_line.
ENDLOOP.
 MODULE MODIFY_IT_D1.
 MODULE radio_selection.


PROCESS AFTER INPUT.
MODULE fill_data.
LOOP AT itab_tc.
  Field itab_tc-matnr MODULE matnr.
  Field itab_tc-maktx MODULE maktx.
  Field itab_tc-meins MODULE meins.
  Field itab_tc-menge MODULE menge.
  Field itab_tc-kbetr MODULE kbetr.
  Field itab_tc-total MODULE total.
  module modify_tc.
ENDLOOP.
 MODULE get_texts.
 MODULE USER_COMMAND_1000.

Regards,

Sohail

Read only

0 Likes
659

Clear ok_code or sy-ucomm.

It will solve your problem

Read only

Former Member
0 Likes
659

Hi,

Might be you have not handled the USER COMMAND (ok_code or sy-ucomm) properly.. Please check while debugging, whether blank lines are appending to the Table control internal table..

Read only

Former Member
0 Likes
659

Hi,

perhaps its a problem of sapgui? which release and patchlevel do you have for sapgui?

Regards, Dieter

Read only

Former Member
0 Likes
659

Hi,

Check the

module modify_tc.

wats the code in this module ?