cancel
Showing results for 
Search instead for 
Did you mean: 

How to use OTR text in normal ABAP UI (Not in webdynpro)

Former Member
0 Kudos

Hello ,

I hav a requirement to assign an OTR text to a UI element in ABAP screen. How can we do that...?

I tried the syntax $OTR:<pkgname>/<aliasname> in the properties tab of the UI element,

But on executinf the screen am gewtting the syntax itself as tooltip....

Please give some inputs...

Linda.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello

I am not sure whether we can assign it at the screen properties level. But you can do one thing, call the FM SOTR_READ_TEXT_WITH_KEY by passing the context of the SOTR you want to read and get the text associated back in the ENTRY structure.

You can have a I/O field which is output only on the screen. And in the program you can assign the OTR text to this I/O field so that the OTR text will be displayed.

Regards

Ranganath

former_member193202
Participant
0 Kudos

In classic dynpro this is not possible i think, all you can do is to read the otr-text like that coding:

IV_LANGU - language

iv_alias - the otr alias you want to read

SYSTEM-CALL OTR GET_TEXT_BY_ALIAS

LANGUAGE iv_langu

ID iv_alias

NR '0001'

TEXT INTO rv_text.