2006 Aug 24 9:09 AM
hi,
does anyone know how to write the write statement for the Header with bigger text and the values in boxes using sy-vline sy-uline.
if anyone got the sample of the same is helpfull
thanks
2006 Aug 24 9:11 AM
in precise,
in normal output i need to show the title with
"this is the output"
and
the list in boxes...
i need to do it without using ALV.
2006 Aug 24 9:16 AM
As I can understand from you requirement you can do the needful using write and concatenate statements as shown in the below example.
concatenate 'Material' 'Quantity' 'Text' into ltitle
separated by sy-vline.
uline.
write : / ltitle.
uline.
loop at idata.
concatenate idata-f1 idata-f2 idata-f3 into ldata
separated by sy-vline.
write : / ldata.
endloop.
uline.
2006 Aug 24 9:13 AM
Hi,
Check this sample...
use the event top-of-page
report zreport line-count 30.
TOP-OF-PAGE.
*-To display the headers for main list
FORMAT COLOR COL_HEADING.
WRITE: / SY-ULINE(103).
WRITE: / SY-VLINE,
(8) ' ' ,
SY-VLINE,
(8) ' ' ,
SY-VLINE,
(19) 'SEX'(015) centered,
sy-vline.
WRITE: / SY-VLINE,
(8) 'VBELN'(013) ,
SY-VLINE,
(8) 'POSNR'(014) ,
SY-VLINE,
(8) 'MALE'(016) ,
sy-vline,
(8) 'FMALE'(017) ,
sy-vline.
FORMAT COLOR OFF.
end-of-selection.
write:/ 'test'.
[/code]
Regards
vijay
2006 Aug 24 9:16 AM
you can pass your title to the system field SY-TITLE field.
sy-title = 'new headings'.
write 😕 sy-uline(80). "you wil get 80 characters of underline.
write 😕 1(1) sy-vline,
3(10) 'text',
11(1) sy-vline,
12(1) 'text2',
*----like this add your fields with the VLINE in between.
Regards
srikanth
Message was edited by: Srikanth Kidambi
2006 Aug 24 9:20 AM
Hi
thanks fo rthe suggestions. i need the header text in bigger size.
2006 Aug 24 9:25 AM
FORMAT COLOR COL_HEADING.
WRITE: 'Date', 20 'Seats Occupied', 50 'Seats Available'.
this will give you bit different appearing.I am not sure we can change the font size with WRITE statement.its not possible i guess.
Regards
srikanth
Message was edited by: Srikanth Kidambi
2006 Aug 24 9:30 AM
hi srikanth,
i nearly got my answers from all and especiallyu. so i am awarding 6 points to you.
thanks once aain for all the experts.
i remain
2006 Aug 24 9:30 AM
Hi,
in normal way it is not possible.
But Using the Class <b>CL_DD_DOCUMENT</b> it is possible. Check the sample program <b>DD_STYLE_TABLE</b>
the above program explaing very well.
Regards
vijay
2006 Aug 24 9:33 AM
Hi,
to put the write sentence in bigger size, don´t know if it is possible, in a standard report (look at the sap help of write sentence)...
If you want this, maybe you have to consider an ALV output (with a header), or to do a sap form (smartform or sapscript).
Another alternative, is what the other people said, to put the message you want at sy-title.
Carles