cancel
Showing results for 
Search instead for 
Did you mean: 

SAPSCRIPT: I want BOLD only the first part of an output field/string?

Former Member
0 Kudos

I have a 20 character field/string for output in my SAPSCRIPT. Is it possible to display the first 5 characters bold and the rest regular?

Thank-You.

Accepted Solutions (1)

Accepted Solutions (1)

naimesh_patel
Active Contributor
0 Kudos

Yes.

Create a Character Format for Bold.

Print it like this:


AA  <B>FIELD+0(5)</ >FIELD+5

Regards,

Naimesh Patel

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello,

Declare a character format which displays bold characters and use it to display the first 5 characters in bold.

Ex:

If w_abc is string of length 20,

declare a character format c and write the statement in sap script,

<c> w_abc+0(5) </>

Former Member
0 Kudos

Hi,

Yes it is possible by creating a Character format with Bold . Before displaying the text split into two parts.Assign Bold character format to first part and leave the rest as usual. Then it display as per Paragraph format.