Hello,
here I want to share some knowledge/hints how an online language switch can be implemented.
So code snippet to switch language could look like this (usage on your own risk / only for evaluation):
form SWITCH using FUW_SPRAS
FUW_TCODE..
data: LW_TCODE type TSTC-TCODE.
set locale language FUW_SPRAS.
select single TCODE from TSTC into LW_TCODE
where TCODE = FUW_TCODE.
if not LW_TCODE is initial.
call function 'AUTHORITY_CHECK_TCODE'
exporting
TCODE = LW_TCODE
exceptions
OK = 1
NOT_OK = 2.
if SY-SUBRC = 2.
return.
endif.
endif.
call function 'TH_REMOTE_TRANSACTION'
exporting
TCODE = LW_TCODE
DEST = 'NONE'.
leave program.
endform. "SWITCH
-Jürgen-
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |