cancel
Showing results for 
Search instead for 
Did you mean: 

in sap script central allingment of variable's value.

Former Member
0 Kudos

hi gurus,

how to centrally alligned the variable's value in sap script. i am not geeting any idea in paragraph and character format .

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos
former_member196280
Active Contributor
0 Kudos

Let me give you few example how paragraph format and character format work in SAP script.

Paragraph format :

goto paragraph format and create a new paragraph for example,PR

Click on fonts button and give your desired font family and font size, if font family and font size are not specified here it will takes from the header data basic settings.

Now click on tabs and define all your tab spaces. for this example we define 2 tabs,

Tab poisition Alignment

1.2 CM Left

4.0 CM Left

Now we will use this paragraph for displaying few text symbol inside our window.

Ex:

PR &text1& ,, &text2& ,, &text3&

,, --> represents tab spaces.

Now in your form text1 will be printed from starting of your window from lefthand side and text 2 will print 1.2 CM from left handside of your window and text 3 will start printing from 4.0 CM from left handside of your window.

Note: you can have any number of tab spaces.

Now coming to charater formats.

Goto character format and create a new character format c1, goto font and if you want give your font family and on bold button select radio button under on

Now, in your form use character format like this

PR <C> &text4& </C>

Now text4 will be displayed in bold with the font family specified in character format, if no font family specified in character format it take the font family from paragraph format and display text4 in bold.

Close the thread once your question is answered.

Regards,

SaiRam

Former Member
0 Kudos

To achieve this you can use tab stops for the paragraph fromat you are using.

Instead of aligning put the tabstop where you want to print the variable.

before printing condense the variable as well.

eg. &varname(C)&

Hope this helps!

Former Member
0 Kudos

Hi,

In your paragraph formatting set the allignment as Center..

and use the same paragraph format while displaying the values

regards

padma

Former Member
0 Kudos

Hi

Regards,

Sravanthi