cancel
Showing results for 
Search instead for 
Did you mean: 

Printing Trademark symbol using SAPScript

DipeshKothari
Explorer
0 Kudos

Hi,

We need to print trademark symbol (u2122) using SAP Script. Right now it is not printing and coming as #. Any solution. I am working on ECC6.00

Thanks,

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Dipesh

Are you using SUPERSCRIPT to print TM ?

Define a character format with SUPERSCRIPT turned ON and use that for printing TM

Pushpraj

DipeshKothari
Explorer
0 Kudos

Hi Pushpraj,

The trademark symbol is in a string variable (e.g. Material Description) - So I can not use character format to print this. (As will not be knowing exact location where it appears.)

Thanks,

Dipesh

Former Member
0 Kudos

Hi

you could split the variable at 'TM'. like


SPLIT maktx AT 'TM' INTO var1 var2.
PF &var1&<sup>TM</>&var2&

* sup being the SUPERSCRIPT enabled character format.

Pushpraj

Former Member
0 Kudos

Hi

you need to make a function which analyse your variable.

The function has to be made in abap (an easy one).

What it has to do.

Lets it look for (TM).

if found then let it split in 2 strings. var1 var2

Var1 is the part before (TM)

var2 is the part behind (TM)

print &VAR1(C)&(<sp>TM,/>)&VAR2(C)&

*sp must be a characterformat with superscripts format

function call can bedone with:

/: PERFORM xxxxxx IN PROGRAM yyyyy

/: ENDPERFORM

Need any info. Let me know

Gr., Frank

Former Member
0 Kudos

sorry a little mistyping

Hi

you need to make a function which analyse your variable.

The function has to be made in abap (an easy one).

What it has to do.

Lets it look for (TM).

if found then let it split in 2 strings. var1 var2

Var1 is the part before (TM)

var2 is the part behind (TM)

Then print in sapscript:

&VAR1(C)&(<sp>TM</>)&VAR2(C)&

  • 'sp' must be a characterformat with superscripts format

function call can bedone with:

/: PERFORM xxxxxx IN PROGRAM yyyyy

/: ENDPERFORM

Need any info. Let me know

Gr., Frank

Former Member
0 Kudos

the editor of SDN giving me problems.

again

sorry a little mistyping

Hi

you need to make a function which analyse your variable.

The function has to be made in abap (an easy one).

What it has to do.

Lets it look for (TM).

if found then let it split in 2 strings. var1 var2

Var1 is the part before (TM)

var2 is the part behind (TM)

Then print in sapscript:

&VAR1(C)&(<sp>TM</>)&VAR2(C)&

between TM and )

i typed lesser then sign <

slash /

and greater then sign >

but it is remioved when i post this.

'sp' must be a characterformat with superscripts format

function call can bedone with:

/: PERFORM xxxxxx IN PROGRAM yyyyy

/: ENDPERFORM

Need any info. Let me know

Gr., Frank

Answers (3)

Answers (3)

jennie_chen
Discoverer
0 Kudos

In SAPscript, please create a new Character format named - K1 - for example.  Use 'ANDALE_T' in the Family of the font attributes.  In the window where you like to print the text which includes trademark, specify it like this <K1>&MATER_TEXT&</></>

Former Member
0 Kudos

Hi Jennie,

Using the font 'ANDALE_T' , i am able to view the trademark symbol in the superscript form. However,

when i try to print a hard copy of the same, The issue still exists, the trademark is again printed as '#'.

i have created a new character format for that particular variable to print it and the font used there is ANDALE_T.


please help on this.  

Many Thanks,

Sumanth Pyaraka

alexander_bolloni
Contributor
0 Kudos

Hello,

first,  which device type + printer do you want to use for printing?

This is important, because the standard device types for printing from SCR/SF use printer-resident fonts, and normally the character sets used for printers do not contain TM symbol (U+2122 in Unicode).

With SWINCF (Windows printing via SAPSPrint or SAPgui) you should be able to print the U+2122 char directly !

With all non-SAPWIN device types, you need to either use the UPE solution

(see note 1812076) or, if you do not have UPE; upload a custom TrueType font in SE73 which contains TM symbol and switch to that font just for that symbol ...

Regards,

  Alex
,

Former Member
0 Kudos

Hi Alex,

I have tried with printer setting SWINCF and it has worked.

Thanks as lot.

Regards

Sumanth

Former Member
0 Kudos

Hi,

we can achieve this with superscript.

Declare character format with super script.

In form write it as <c1> TM

Regards,

Rajani

Former Member
0 Kudos

Hello Dipesh,

Can you please elaborate your requirement with an example..

Former Member
0 Kudos

Hi,

Create a character format c1 with superscript option on.

and in the page window ->goto change editor

there you write <c1>TM</>.

It will definitely works.