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: 

write statement

Former Member
0 Kudos
963

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

9 REPLIES 9

Former Member
0 Kudos
153

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.

0 Kudos
153

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.

former_member188685
Active Contributor
0 Kudos
153

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

Former Member
0 Kudos
153

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

0 Kudos
153

Hi

thanks fo rthe suggestions. i need the header text in bigger size.

0 Kudos
153

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

0 Kudos
153

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

0 Kudos
153

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

0 Kudos
153

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