Skip to Content

Sapscript: Print different languages

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Apr 04, 2014 at 08:14 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 03, 2014 at 05:55 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 04, 2014 at 07:31 AM

    Hi

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

    I hope this helps you

    Regards

    Eduardo

    Add comment
    10|10000 characters needed characters exceeded