11-25-2007 10:18 AM
hi experts,
what is the best and easiest way to format a non-alv report it is time consuming by using under, text,sy-vline,screen offsets,positions in write statement .please send me a sample code for this
11-25-2007 10:25 AM
hi,
in classic reports you must foramt report with sy-vline only...no other way..
but instead of using fixed column positions you can use variable lenghts...easy to format..
for example..
WRITE 😕 sy-vline,
2 itab-matnr, "fixed column positions
19 sy-vline,
20 itab-menge ,
33 sy-vline.
you can write above code like this,
WRITE 😕 sy-vline,
(18) itab-matnr, sy-vline,
(13) itab-menge , sy-vline.
11-25-2007 10:25 AM
hi,
in classic reports you must foramt report with sy-vline only...no other way..
but instead of using fixed column positions you can use variable lenghts...easy to format..
for example..
WRITE 😕 sy-vline,
2 itab-matnr, "fixed column positions
19 sy-vline,
20 itab-menge ,
33 sy-vline.
you can write above code like this,
WRITE 😕 sy-vline,
(18) itab-matnr, sy-vline,
(13) itab-menge , sy-vline.
11-25-2007 10:33 AM
hi perez,
WRITE 😕 sy-vline,
2 itab-matnr, "fixed column positions
19 sy-vline,
20 itab-menge ,
33 sy-vline.
you can write above code like this,
WRITE 😕 sy-vline,
(18) itab-matnr, sy-vline,
(13) itab-menge , sy-vline.
can u please explain a little bit more
11-25-2007 10:32 AM
Hi,
No other simply ways.
You can go ALV List Display instead of Grid Display.
for Placeholders, you can create constants like l_pos10 for position 10...
So that you can change the pos at definition level instead of changing eveywhere.
For Example:
data: l_10 type i value 10,
l_25 type i value 25.
write: /l_10 'Baburaj ',
AT l_25 'Manickam'.
Regards,
Baburaj
11-25-2007 11:17 AM