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 I coul delete the empty lines of a table control

adrian_mejido
Contributor
0 Kudos

Hi,

I have a table control where I put the registries of an internal table. But in the internal table I have only four entries. But when I go to see the result on the Table control, The table control has these four registers and some lines empty behind these four.

How I could delete those empty lines?

Thanks for all.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi You can delete the empty lines by writing following code in PBO of table control screen:



PROCESS BEFORE OUTPUT.
MODULE lines.

MODULE lines OUTPUT.
DESCRIBE TABLE gt_z9cmsmilehist LINES lv_line.           
  IF lv_line IS NOT INITIAL.                               
    t_z9cmsmilehist-lines = lv_line.                   
  ENDIF.       
ENDMODULE.

Here gt_z9cmsmilehist is internal table containing data and t_z9cmsmilehist is the table control.

Hope this helps.

Regards,

Gaurav.

1 REPLY 1

Former Member
0 Kudos

Hi You can delete the empty lines by writing following code in PBO of table control screen:



PROCESS BEFORE OUTPUT.
MODULE lines.

MODULE lines OUTPUT.
DESCRIBE TABLE gt_z9cmsmilehist LINES lv_line.           
  IF lv_line IS NOT INITIAL.                               
    t_z9cmsmilehist-lines = lv_line.                   
  ENDIF.       
ENDMODULE.

Here gt_z9cmsmilehist is internal table containing data and t_z9cmsmilehist is the table control.

Hope this helps.

Regards,

Gaurav.