03-02-2012 10:32 AM
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.
03-02-2012 10:57 AM
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.
03-02-2012 10:57 AM
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.