cancel
Showing results for 
Search instead for 
Did you mean: 

Issue in smartform with Chinese logon

Former Member
0 Kudos

Hello all,

I'm facing a strange issue in smartform with chinese logon in Quality server.

In quality server mail generates JUNK values in place of chinese texts in SOST.

In development server its working fine.

I checked through debugging in OTFDATA structure its taking Courier font by default.

While in my development server in ZH logon its taking CNSONG font.

1 // |XSAPWIN 046C 00000000001 <

2 IN |041 form_name<

3 IN |05HDR_PAGE <

4 OP |DINA4 P 144 240 1683811906000010000100000 <

5 IN |06%WINDOW9 <

6 MT |0447102791 <

7 CP |840000001 <

8 FC |COURIER 095X 00114 SF001SF0118400001141 X <

9 UL | +0000000000000 <

10 CT |00000000 <

Can some please help me to solve this issue.

Thanks in advance.

regards,

Lokesh

Accepted Solutions (0)

Answers (3)

Answers (3)

aidan_black
Active Contributor
0 Kudos

Hi Lokesh,

In the OTF data you provided above, I see that device type SAPWIN is used to create the OTF data. the device type SAPWIN doesn't support the Chinese CNSONG font so it is substituted with Courier. You need to ensure that a Chinese device type like CNSAPWIN is used to create the OTF data. Then the correct font should be used and Chinese characters should look correct in SOST.

Regards,

Aidan

Former Member
0 Kudos

Issue got solved.

Reason :CNSONG font is not active in QA server.

Thanks for your replies

regards,

Lokesh

DavidLY
Advisor
Advisor
0 Kudos

Hello,

Also use CNSONG and CNHEI for the Chinese version of the form.

Please also have a look at the SAP note regarding the proper fonts

should be used:

776507 SAPscript/SmartForms: Which fonts for which languages?

Regards,

David

Former Member
0 Kudos

Hi David,

Thanks for replying.

I'm taking concern of all the above mentioned points but still im facing the issue.

regards,

Lokesh

DavidLY
Advisor
Advisor
0 Kudos

Hello,

Please follow the rules to output PDF correctly for ZF/ZH language:

(1) workprocess need run under

ZF/ZH language (logon with ZF/ZH or switch by set locale)

codepage 8300/8400 (or compatible codepages)

(2) SAPScript need include ZF/ZH version. Please verify by:

Go SE71->input SAPScript name, language key ZF/ZH -> display

(3) SAPScript need assign Chinese font for paragraph used to output

Chinese character

(4) SAPScript need open with ZF/ZH language(OPEN_FORM with ZF/ZH language)

Regards,

David