Skip to Content
0
Former Member
Aug 13, 2008 at 07:27 PM

How to display table in report in proper format

152 Views

Hi,

How can I display table in report?

Can anyone provide me a sample code for it?

For example I have table named my_table. It has three column and three entries.

Data: name TYPE SYUNAME,

start_date TYPE SYDATE,

end_date TYPE SYDATE.

name start_date end_date

MBOORE 01.07.2008 31.07.2008

JDUFFY 15.07.2008 10.08.2008

JVNSOLD 01.06.2008 20.07.2008

DATA my_table TYPE TABLE OF my_table WITH HEADER LINE.

LOOP AT my_table INTO my_table.

WRITE:/ sy-vline,

my_table-name,

10 sy-vline,

my_table-start_date,

20 sy-vline,

my_table-end_date,

20 sy-vline.

uline.

ENDLOOP.

How can I display the colomn name(name, start_date, end_date) also in report?

Thanks,

Anup