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

Using text elements for screen

Former Member
0 Likes
1,967

Can you use text elements for screen?

I have a button which says Continue, Can I translate the Continue to ES?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,166

hi check this..

paste this program and activate it then go to the menu options..

goto->text elements->selection texts->

here write what ever want to give to this parameter...

ex: p_test -


test element..

activate it and execute the program..it will show the parameter name as the text element..

parameters:p_test type i .

if p_test = 100 .

write:/ 'this is 100'.

endif.

regards,

venkat

5 REPLIES 5
Read only

Former Member
0 Likes
1,167

hi check this..

paste this program and activate it then go to the menu options..

goto->text elements->selection texts->

here write what ever want to give to this parameter...

ex: p_test -


test element..

activate it and execute the program..it will show the parameter name as the text element..

parameters:p_test type i .

if p_test = 100 .

write:/ 'this is 100'.

endif.

regards,

venkat

Read only

0 Likes
1,166

Hi

If in Module pool program.

Go to SE51> Enter u r Program Name> Enter u r screen No and in Layout. Double click on the Continue button and u can change it.

Thanks.

Read only

Former Member
0 Likes
1,166

I do not want to change it. I want to translate it like you would translate a selection screen or other text elements.

Read only

Former Member
1,166

Megan,

It is possible to translate button texts to other languages directly - you do not need to use text element for that (though it is possible!). To translate a button text on a screen:

1) Open screen in Screen painter (using SE80 or SE51).

2) Use menu Goto --> Translation

3) Enter target language (ES in your case)

4) Double click on line under "Screen painter texts"

5) Find your button

6) Double click on your button icon - this should create a copy of that icon under it.

7) Click on this newly created icon and enter translation

😎 Save

Hope this helps.

Regards

Ken

Read only

Former Member
0 Likes
1,166

If you want to change the text of the button from continue to ES and vice versa.

When you click on continue, set a flag to 'X' in PAI, and in PBO, check value of flag - if flag is 'X'.

loop at screen.

if screen-name = 'CONTINUE'.

screen-name = 'ES'.

modify screen.

endif.

endloop.