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

SAP Scripts

ashok_kumar24
Contributor
0 Likes
797

Hi Experts,

We have developed a script which contains texts in different FONT SIZES.

I have created a paragraph format wiht COURIER and font size as 6 and applied it to the particular window.

Now my problem is we are not getting the output as required.

The output is getting displayed in a single font.

<b>How to change a font size for a particular line in SAP Script</b>

Thanks

AK

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
764

Hi,

You can have different font on the same line by defining a character format.

For example B for bold text and U for Underline.

In your SAPScript apply like this :

<U>Underline Text</> <B>Bold Text</>

Regards,

Bhaskar

6 REPLIES 6
Read only

Former Member
0 Likes
764

Hi,

Define different character formats & code for different lines.

e.g. <C1> line1....</>

<C2> line2.....</>

Hope this helps.

Reward if helpful.

Regards,

Sipra

Read only

Former Member
0 Likes
764

Hi,

In the Script Editor,

write like

/:P1 And the corresponding text here of P1 paragraph format.

/:P2 And the corresponding text here of P2 paragraph format.

.

.

.

That is in single window you can have as many paragraph formats as you needed.

Regards,

Rama chary.Pammi

Read only

former_member223446
Active Participant
0 Likes
764

hey kumar

if u want to display different font size for aline ,create a new paragraph with ur required font family and size for that clk on font button at paragraph formats.

give that paragraph name at text editor.

like

z1 :'type ur text '

reward points

kiran

Read only

Former Member
0 Likes
764

Hi Kumar,

goto t-code SMARTSTYLES

create a character format with font size and font name as per ur requirement.

in Scripts: character format tab use this character format.

and in command line editor

P1 <C1> &FLD1&</>

P1 <C2> &FLD2&</>

where P1, P2: paragraph format

and C1, C2 : Character format ( created in SMARTSTYLES)

Regards

SAB

Read only

Former Member
0 Likes
765

Hi,

You can have different font on the same line by defining a character format.

For example B for bold text and U for Underline.

In your SAPScript apply like this :

<U>Underline Text</> <B>Bold Text</>

Regards,

Bhaskar

Read only

Former Member
0 Likes
764

Look at Paragraph format and charcter format in se71 transaction code.

if they are using standard text in layout then se72 transaction