cancel
Showing results for 
Search instead for 
Did you mean: 

1 Sapscript in different languages

adel_adel
Participant
0 Kudos

Hi all,

I want to develop 1 sapscript form with the possibility for many languages.

The translation of the texts is based on a value of a databasetable.

for example :

case &db-value&

when 1.

Present 'Number' in the form.

when 2.

Present 'Numero' in the form

.....etc

1.

Does the transactio se63 helps for resolving the problem?if yes how ?

2.

Is the best solution to make objects via so01?

Do i have already the $db-value$ ?

3.

i want to present the following rule:

Contract:$Contract_nr$ Reference: $Reference$

also in different languages?

do i have to use the include statement?

Thanks in advance.

NB: It concerns 1 sapscript.

Accepted Solutions (0)

Answers (6)

Answers (6)

adel_adel
Participant
0 Kudos

Hi Bala,

Thanks for your answer.

I.Your solution is the following :

This means that for every text i have to make x

objects via SO01 (where x = number of languages i wish to use).

For EN and FR :

Object 1 :

Name : Z_Invoice_titel

Text-id : ST

Language : EN

Object2 :

Name : Z_Invoice_titel

Text-id : ST

Language : FR

and then include :

/: INCLUDE Z_invoice_titel OBJECT TEXT ID ST LANGUAGE &EKKO-SPRAS&

Correct me if i m wrong.

Disadvantage : Too much text objects

II.The other solution in this case :

1 Object : Z_Invoice_titel

and inside the object programming with the case-endcase (i-endif) on &EKKO-SPRAS& .

In my case i want to make an SD invoice.Is there any customizing possibilty to do this ?

Thanks

adel_adel
Participant
0 Kudos

He gustavo .

my requirement is not calling the corresponding

form based om the logon language , but on the

country of the vendor/cutomer.

former_member585060
Active Contributor
0 Kudos

Hi Adel,

No need to use CASE and IF ENDIF, just in INCLUDE use the Language of customer or vendor Language

You create Form with 1 language and check radio button Translate to languages give other language which u want the form, and maintain in SO10,

Ex:-

/: INCLUDE &T024E-TXGRU& OBJECT TEXT ID ADRS LANGUAGE &EKKO-SPRAS&

where &EKKO-SPRAS& will the your vendor or customer language. so that corresponding text is called.

so what ever value you maintained in OBJECT &T024E-TXGRU& will be get printed according to the language of the customer or vendor.

Regards

Bala Krishna

Edited by: Bala Krishna on Sep 19, 2008 11:07 PM

Former Member
0 Kudos

Nope,he means that you program the sapscript normally for one language, withouth any kind of language control builtin, and then edit it as another language and manually change the labels for that language.

Now, when any client connects to it in one of those two languages, SAP authomatically recognizes the language and uses the corresponding script.

The whole SAP system is based upon localization of languages.

adel_adel
Participant
0 Kudos

Thanks Bala,

Do you mean that i have to make text objects via so01

and inside the text object something like this :

case &country&.

when 'England'.

Number

when 'France'

Numero

....

and then include the text object in my sapscript ?

adel_adel
Participant
0 Kudos

Thanks bhupal,

But i said i have to develop only 1 form suitable for different languages.

former_member585060
Active Contributor
0 Kudos

Develop one form with the Languages you require,

maintains standard text in SO10, and call them,

depending on the country and language of any vendor or customer of any business operation, it will call the corresponding language form.

Former Member
0 Kudos

hi,

For Scripts:

go to SE63> Translation>ABAP Objects->other long texts-->FS Forms and Styles-->FORM Forms-> give object name, source and target languages--->go edit tab and translate EN text to chineses text.

For Smart form:

go to SE63> Translation>ABAP Objects->other long texts-->FS Forms and Styles-->SSF SAP Smart Form-> give object name, source and target languages--->go edit tab and translate EN text to chineses text.

As per the above paths you give required translate languages, if

you want to two languages like DE, JA etc go SE63 save both languages whatever you want

once logon to JA (japan) its display the japan language etc.

Regards,

Bhupal.