on 03-02-2011 8:43 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.