cancel
Showing results for 
Search instead for 
Did you mean: 

How do I translate POPUP Message Text in Web dynpro program?

0 Kudos

I have hardcoded some Text message for POPUP inside webdynpro program. It works properly for English Language. But not getting translated for other languages. So how do i solve this.? Can i make use of OTR text or Text Elements here?  I am new to Webdynpro. Please clarify.

My Code :

  ls_text = 'You want to cancel changes...Are you sure?'.

  INSERT ls_text INTO TABLE lt_text.

......

......

lo_window = lo_window_manager->create_popup_to_confirm( text = lt_text

  button_kind     = if_wd_window=>co_buttons_yesno

  message_type    = if_wd_window=>CO_MSG_TYPE_WARNING

  window_title    = 'Information to Confirm...'

  window_position = if_wd_window=>co_center ).

Regards,

Anand R

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Anand,

You can make use of OTR text.

- Use TCode SOTR_EDIT to create OTR Text

- Get the text with FM  SOTR_GET_TEXT_KEY by passing ALIAS, LANGU and receive the text in E_TEXT parameter.

Hope it helps. Cheers!

0 Kudos

Thanks a lot Nguyen . It helped!!

Answers (0)