Skip to Content
avatar image
Former Member

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

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Mar 02, 2011 at 12:32 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 02, 2011 at 12:32 PM

    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

    Add comment
    10|10000 characters needed characters exceeded