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

Module Pool: Dynamically Change text on Pushbutton according system language

Piyushmatrixs
Participant
0 Likes
1,419

Hi Experts,

      I have an requirement. I have 3 push-button on screen (draw through SE51  not PF-Status). I named them as " Current Shipment", "Last Shipment" and "Expired Shipment".

      Name                                   Text                              Fctcode

=========================================== ========

Current Shipment                      current                            Curr

Last Shipment                           Last                                 Lst

Expired Shipment                       Expired                           exp

If we login in system, system display same name as text on push button. I have to do that it could dynamically change text in system language on pushbutton. Like if someone login in German, then text should be auto change in german. Program (module pool) auto recognise the sy-langu and convert the text in that language and place it on push-button.

Regards

Piyush Kumar

6 REPLIES 6
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,083

Piyush

Simply press GOTO-> > translation and maintain text in target language. It will then automatically come

Nabheet

Read only

0 Likes
1,083

Completing...

-> Double Click in Screen Number below of "<SRT4> Screen Painter Texts (PROG)"

Now just translate.

😃

Regards.

Douglas

Read only

0 Likes
1,083

Hi Nabheet,

I have a few questions regarding your suggestion.

1). Have I to maintain translation for all languages i.e. for "de", "fr", "po" etc. ?

2).  Or it can be done automatically. Is there any code snippet that we can place in PBO section, and         program will convert pushbutton text in login language and  would display text on push-button in             login language when display output?

3). Can we do it only by first way you have mentioned?

Regards

Piyush

Read only

0 Likes
1,083

Hi Santos,

I have a question regarding your suggestion.

1). Have I to maintain translation for all languages i.e. for "de", "fr", "po" etc. ?

2).  Or it can be done automatically. Is there any code snippet that we can place in PBO section, and         program will convert pushbutton text in login language and  would display text on push-button in login language when display output?

Regards

Piyush

Read only

0 Likes
1,083

Hi.

You just have to mantain the language in which users will use your transaction.

The translation is automatic by the core system. It used the language of the user login. At runtime, the language can be read by the variable: SY-LANGU.

Regards.

Santos

Read only

0 Likes
1,083

resolved?