Application Development and Automation 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: 
Read only

Underline Text

Former Member
0 Likes
2,936

How to show underline text in list display?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,645

Hi,

Check the following link:

http://sap-img.com/ab027.htm

Regards,

Bhaskar

4 REPLIES 4
Read only

Former Member
0 Likes
1,646

Hi,

Check the following link:

http://sap-img.com/ab027.htm

Regards,

Bhaskar

Read only

Former Member
0 Likes
1,645

You cannot exactly underline a text in ABAP, but there is other way round, check the code below

parameters w type text15 default 'India'.

data count type i.

write: w.

skip.

count = strlen( w ).

do count times.

write: '_' no-gap.

enddo.

Reward points if useful, get back in case of query...

Cheers!!!

Read only

Former Member
0 Likes
1,645

Hi VIkas,

DD_STYLE_TABLE is the sample program to print text in reports with fonts and colors and this report is based on class CL_DD_DOCUMENT with its methods and this class is avialable from 4.7 onwards.

Check method UNDERLINE under class CL_DD_DOCUMENT to have underline.

Thanks,

Vinay

Read only

Former Member
0 Likes
1,645

Hi Vikas,

The following might help.

REPORT ZCZTEST.

INCLUDE <ICON>.

ULINE.

WRITE: /'USER ADDRESS INFORMATION'.

ULINE.

SKIP 2.

ULINE 10(60).

WRITE: /15 ICON_DATE AS ICON, SY-DATUM,

/15 ICON_TIME AS ICON, SY-UZEIT,

/15 ICON_REPORT AS ICON, 'ABAP48', 30 TEXT-001,

/ TEXT-002 UNDER TEXT-001,

/ TEXT-003 UNDER TEXT-001.

ULINE /10(60).

regards,

Karen

[reward if useful]