cancel
Showing results for 
Search instead for 
Did you mean: 

How to Print Multiple Languages in SAPScript ?

JayR
Participant
0 Kudos

Hi all,

I want to print English and Chineese in the Same form (in SAPScript ). Please throw some light on this. Any reply is appreciable and rewarded.

Thanks in Advance

Jai

View Entire Topic
Former Member
0 Kudos

Hi,

you mean you want some part of text in script in english and some part in Chinese and it should be independent of Lgin Language?

if yes then you can maintain the part of texts in desired languages itself no need to Translate(as its independent of logi language).

but if in case its language dependent then you can translate using Transaction SE63.

JayR
Participant
0 Kudos

Hi Ganesh and Neha,

Thanks for your reply. Actually my requirement is to print the customer name in invoive must be chineese and as well as in English.

Name of the Customer ( First line - In Chinese )

Name of the Customer ( Second Line - In English)

My questions are

1. If i give login language as EN. How Chinese will get printed ?

2. What language should i give within messages for printing ?

3. Whether i have to maintain the customer name in Chinese, if it is so ? How ?

Please provide me full details from step by step.

thanks

Jai

Former Member
0 Kudos

Hi Jai,

so even if you login in EN you want to display the name in ZH Chinese and EN as well.

so in that case you wud have to make use of PERFORM command in Script in which you will retrieve the name based on the language(provided its maintained for both the languages in the Standard Table where you are fetching it from because its not the case of Translation).

Perform get_name in program <xyz>

using &kna1-kunnr&

changing &name_zh&

changing &name_en&

Program <xyz>

form get_name.

...........................................

"Here comes the code to read the using parameters in the perform command in script, KNA!-KUNNR

..........................................

select single name1

into wa_name_en "Pass this to name_en

from kna1

where kunnr = = <kna1-kunnr>

and spras = 'EN'.

select single name1

into wa_name_zh "Pass this to name_en

from kna1

where kunnr = = <kna1-kunnr>

and spras = 'ZH'.

.............................................

Here comes the code to pass the changing parameters to script

.............................................

endform.