Application Development and Automation 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: 
Read only

Changing the system language without logon

Former Member
0 Likes
974

Hello,

I'm looking at a web application which allows a SAP user to logon using basic authentication (username/password). Therefore, the logon language will be chosen by default. The application also maintains its own user settings in a Z-table, in which the user can change the application language. This leads to an inconsistency:

a) all texts (labels, longtexts etc.) will be read correctly using the application language

b) any error messages that might occur as a result of MESSAGE statements or exceptions will be in the logon language.

Given that no language can be specified upon logon, I'd like to be able to set the system language to always equal the application language. Would it suffice to set the variable sy-langu? Is there a better way?

-- Sebastian

Hello,

I'm looking at a web application which allows a SAP user to logon using basic authentication (username/password). Therefore, the logon language will be chosen by default. The application also maintains its own user settings in a Z-table, in which the user can change the application language. This leads to an inconsistency:

a) all texts (labels, longtexts etc.) will be read correctly using the application language

b) any error messages that might occur as a result of MESSAGE statements or exceptions will be in the logon language.

Given that no language can be specified upon logon, I'd like to be able to set the system language to always equal the application language. Would it suffice to set the variable sy-langu? Is there a better way?

-- Sebastian

4 REPLIES 4
Read only

pole_li
Active Participant
0 Likes
905

Hi,

I don't think it is possible to change system language without logon,

In your case , you can synchronise the user setting to sap user master data.

Pole

Read only

Former Member
0 Likes
904

Hi Pole,

thanks for the hint. This would imply that any SAP user had the authority to change his master data. Would this be the usual thing? Would it be possible to selectively grant authority to change only the relevant parts of the user master data?

-- Sebastian

Read only

pole_li
Active Participant
0 Likes
904

Hi Sebastian,

I suggest that you run a backgroud program to synchronise the user setting to SAP(Say, every day), then you don't need to grant authorization to end user.

Hope it helps.

Pole

Read only

Former Member
0 Likes
904

Thanks, that will probably serve as a workaround.

I should add that in a web application, even if it does not have a language field on the logon screen, it is still possible to influence the logon language through the HTTP header accept_languages, cf. [Determining the Logon Language|http://help.sap.com/saphelp_nw04/helpdata/en/85/81033c42663b34e10000000a11402f/frameset.htm]

-- Sebastian