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

in smartforms superscript is converting into an # in text

deepa22_
Explorer
0 Likes
2,453

HI,

In smartforms, to display a particular window they were using an text element,in that when we give any value in superscript it is converting and printing as #.Please help me out of this.

thanks in advance!!

1 ACCEPTED SOLUTION
Read only

michael_piesche
Active Contributor
1,819

When # is displayed instead of an expected character, number or symbol, it means that the character code could not be interpreted.

Please be more specific on what you have done so far and provide screenshots.

Are you aware of Smart Styles for Smart Forms where you can define paragraph formats as well as character formats?

1) Define Character Format in Smart Style for superscript:

In order to display Superscript and Subscript properly, you will need to define/use a charater format that has the effects for Superscript and/or Subscripts activated:

  • [ ] Superscript: This attribute of a character string causes the text included in the character string to be output as superscript.
  • [ ] Supscript: This attribute of a character string causes the text included in the character string to be output as subscript.

2) Assign Smart Style in Smart Form

  • a) You can either assign your Smart Style as the default Smart Style for the Smart Form in "Global Settings->Form Attributs->Output Options".
  • b) Or you can set a specific Smart Style in the "Output Options" of your Smart Form object (e.g. text object with Text Type "Text Element").

3) Use the Character Format tag around the text that needs to be converted

  • Use the SAPScript editor to enter your character format tag, in the case of a text object with Text Type "Text Element" in tab "General Attributes"
  • if it is not a "Text Element" you will have to edit the SAPScript where it is normally maintained, eg. SMARTFORM "Text Module" or SO10 "Include Text"

Example:

|Format|Row Text                                     |
------------------------------------------------------
|*     |<SS>&YOUR_VARIABLE_CONTAINING_SUBSCRIPT&</>  |
  • In this example the <SS> tag referst to the character format SS that has Superscript effect enabled and in the tag you would set your variable containing superscript text values
  • * is a default paragraph format
2 REPLIES 2
Read only

michael_piesche
Active Contributor
1,820

When # is displayed instead of an expected character, number or symbol, it means that the character code could not be interpreted.

Please be more specific on what you have done so far and provide screenshots.

Are you aware of Smart Styles for Smart Forms where you can define paragraph formats as well as character formats?

1) Define Character Format in Smart Style for superscript:

In order to display Superscript and Subscript properly, you will need to define/use a charater format that has the effects for Superscript and/or Subscripts activated:

  • [ ] Superscript: This attribute of a character string causes the text included in the character string to be output as superscript.
  • [ ] Supscript: This attribute of a character string causes the text included in the character string to be output as subscript.

2) Assign Smart Style in Smart Form

  • a) You can either assign your Smart Style as the default Smart Style for the Smart Form in "Global Settings->Form Attributs->Output Options".
  • b) Or you can set a specific Smart Style in the "Output Options" of your Smart Form object (e.g. text object with Text Type "Text Element").

3) Use the Character Format tag around the text that needs to be converted

  • Use the SAPScript editor to enter your character format tag, in the case of a text object with Text Type "Text Element" in tab "General Attributes"
  • if it is not a "Text Element" you will have to edit the SAPScript where it is normally maintained, eg. SMARTFORM "Text Module" or SO10 "Include Text"

Example:

|Format|Row Text                                     |
------------------------------------------------------
|*     |<SS>&YOUR_VARIABLE_CONTAINING_SUBSCRIPT&</>  |
  • In this example the <SS> tag referst to the character format SS that has Superscript effect enabled and in the tag you would set your variable containing superscript text values
  • * is a default paragraph format
Read only

Sandra_Rossi
Active Contributor
1,819

# is the default SAP character for any character which does not exist in the code page assigned to the printer.

Can you be more specific about how you defined the "superscript" text? Did you use a special superscript character like ¹²³, or did you define a normal character with superscript style? (see Michael answer)