cancel
Showing results for 
Search instead for 
Did you mean: 

Sapscript: Print different languages

0 Kudos

Dear all,

We have the following issue I need your help on:

We have an offer, which has to be printed in Chinese and English. For printing we use the Sapscript forms ...

Here is the current coding for printing (SE71):

- Chinese: Printout is in Chinese and correct

/:         ADDRESS PARAGRAPH T2 LINES 8

/:           ADDRESSNUMBER &VBDKA-ADRNR(K)&

/:           COUNTRY 'CN' LANGUAGE 'C'

/:           LANG_FOR_COUNTRY 'X'

/:           FROMCOUNTRY &VBDKA-SLAND&

/:         ENDADDRESS

- Englisch: Printout of customer address is shown as ##### even we print the output type in English and there is an English language maintained in SD and customer master data

/:         ADDRESS PARAGRAPH T2 LINES 8

/:           ADDRESSNUMBER &VBDKA-ADRNR(K)&

/:           FROMCOUNTRY &VBDKA-SLAND&

/:         ENDADDRESS

The customer master data in VD03 is in English and Chinese as "Internat. Version".

Please can you help us how the coding should look like, so the same output type can be printed in Chinese with Chinese letters and English with Latin letters.

I've read through some other related topics and it seems like the device type is also relevant if the printing of different languages is supported or not!?

Does someone know the correct device type? We currently use the following: PDFUC.

By the way: In our user exit we also have implemented an user exit with the following function ....

* China:

  ELSEIF destination_country_fields-intca = 'CN'.

     IF sender_country_fields-intca = 'CN'.

* China -> China: Version C (if maintained, otherwise version SPACE)

      version_key = 'C'.

     ELSE.

* from elsewhere -> China: International (if maintained)

       version_key = 'I'.

     ENDIF.

--> This user exit shows, that we can't print the English characters since it's always pulls the Chinese ADRNR.

Do you have an idea how we can adapt the program or user exit so we also can print the form in English, even parts goes CN to CN.

Thanks in advance.

Accepted Solutions (0)

Answers (3)

Answers (3)

peng_wen
Active Participant
0 Kudos

Hello,

You can use the cascading font device type SWINCF, with this the restriction in note 776507
is no more important, please see note 812821.

BR,

Wen Peng

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

Check also the fonts. Please, see SAP Note 776507 - SAPscript/SmartForms: Which fonts for which languages?

I hope this helps you

Regards

Eduardo

Florian
Active Contributor
0 Kudos

Hi Andreas,

you just have to make sure, that the device-type support the character-set. This is located in TA SPAD and there you go to the device-type.

but that is a basis-thing.

Additional to that it necessary to call the form in the correct language in such specific cases.

To solve this issue go to SE63 and translate it to chinese.

Now, if you got a chinese customer, call the form for the chinese output and if you got the english call the EN-Output.

To connect both forms together you can use the START_FORM/ END_FORM functionstones. It is located in the same functiongroup.

OR

An easy try and error thing would be to set the country before printing the address.

/: SET COUNTRY CN

/:         ADDRESS PARAGRAPH T2 LINES 8

/:           ADDRESSNUMBER &VBDKA-ADRNR(K)&

/:           FROMCOUNTRY &VBDKA-SLAND&

/:         ENDADDRESS

SET COUNTRY <Yourpreferredcountry>

This takes affect also at the outputdevice-type to refer to the correct language-settings.

It is just an idea which come during writing my answer. I never faced something like that, but I can imagine, that this could be a also an easy to go solution.

Hope that gives you a solution for your problem.

~Florian