Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How we manage languages on SAP programs effectively ?

0 Kudos
587

Dears,

I want to learn best way to manage sap reports depend on languages.

For example, there are 3 factories as Turkey, England and Germany.

These factories' users can use same smartforms. We want to that if its Turkey factory system should select Turkish language. if others the system should select English language.

Should i manage using system language(sy-langu)? or

Can i define plant(factory) and language relation? Because in the future, maybe German factory will want German reports..

How can i manage languages on my reports effectively ?

Thank you in advance..

4 REPLIES 4

former_member182550
Active Contributor
222

SAP has the functionality to translate your texts in various places which are then referenced by either the users logon language (for example the screens in SAP), a customers or suppliers communication language for example in invoices and purchase orders and in many other places.

The main thing is that you do not hard code any text - for example all text in a program should be referenced via text elements In smartforms you can use text modules, sapscripts can have individual forms translated completely

Plants have a language key so yes you can define a default language for plants. even if an object does not have a language key you could create a table with that object as a key and a language and use that.

Standard texts can also be translated as can things such as material descriptions - Have a look at table makt for this and always when you have a description, place it in a separate text table with the object (such as Material No) and Spras as a key.

You can then use translation transactions (sometimes found in the menu GOTO - dependant on transaction) to maintain your translations.

Be aware though that some fonts cannot appear in the same smartform as others, so fopr example Hebrew will have difficulty co-existing with English so if you want to have various languages on the same smartform you may need to have a look at Cascading Fonts:

https://wiki.scn.sap.com/wiki/display/ABAP/Unicode+Printing+Solutions+for+SAP

Rich

Former Member
0 Kudos
222

As Richard stated correctly, For the reports too you need to translate the texts in to other languages via transaction SLXT/SE63. For the scenario you just explained, your functional must have pre-defined the language key for each factory system.

You may also refer the blog :https://archive.sap.com/discussions/thread/771486

Shubhamoy

horst_keller
Product and Topic Expert
Product and Topic Expert
0 Kudos
222

The ABAP language environment is described here

https://help.sap.com/http.svc/rc/abapdocu_751_index_htm/7.51/en-US/index.htm?file=abenlanguage.htm

But in fact you ask something totally different than the title of the question implies ...

Just don't mess with sy-subrc.

Sandra_Rossi
Active Contributor
0 Kudos
222

In your smart form, don't do anything with sy-langu. Only use the language code passed through component LANGU of the parameter CONTROL_PARAMETERS of the smart form, and access text tables and text modules with this code.