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: 

Styles in SO10 in SAP

former_member219737
Participant
0 Kudos

Hi experts,

I have to use different styles in the single line in so10 text.

Can i know , how to use it .

<B1>&w_inv& &w_vbeln&,,,,,,,,,,&w_head_txt&,,,,,,,,,,&w_copy&</> </>

  &w_inv& &w_vbeln& ----left aligned

  &w_head_txt&   ----Centered

  &w_copy& ----right aligned


But, in my case ...based on text , its going to the next line, where i need to print only in single line .



Regards,

Karthik S

5 REPLIES 5

Former Member
0 Kudos

Hi

A standard text is like a sapscript:

<A1>TEXT 1</>   <A2>TEXT 2</>

Where A1 and A2 are your characters with different styles

The problem is to understand where you've defined them, I mean in which Style

The standard text uses the style of form SYSTEM by defaul, but you can change it and assign an your own style, or you can use paragraph or character of the form where the standard text is used

Max

0 Kudos

Hi All,

I have used the code like below , but it didnt work .

Can anyone suggest an idea for it .

C2 - Centered & 10 char

R2 - Right align & 10 char

Regards,

Karthik S

0 Kudos

Hi,

you are using tab(ulator) positioning in your text (double comma moves to next tab position).

Tab positions are attributes of a paragraph definition, they are NOT attributes of character formats (the B1 and R2 tags you are using are character formats). Tab positions can have different alignment attributes.

So ensure that you use a dedicated paragraph definition for your text - it can come from the SAPscript style associated with the SO10 text, or, if no style is specified, it comes from the SAPscript form.

* means "default paragraph" which also maps to a certain paragraph in style or form.

Regards,

  Alex

0 Kudos

Thanks for your reply .

I am using this in smartform, how can i use it .

I want to display like below

Invoice No : XXXXX                 Invoice                                Date

where, Invoice No(text) is dynamic text

Regadrs,

Karthik S

0 Kudos

Hi

Your code has to be:

<B1>&w_inv& &w_vbeln&</><C2>&w_head_txt&</><R2>&w_copy&</>

Max