Application Development 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: 

How to get OTR-texts ?

gerd_hotz
Contributor

Hello,

I use ECC50 and now for creating bsps I hust want to

have a method/fm in oder to get the ort-texts.

In crm I cqn use cl_wd_utilities=>get_otr_text_by_alias in order to

get the otr-texts, but in ECC5.0 we do not have this method.

Is there another method/fm to get the otr-texts ?

Thanks

Gerd

1 ACCEPTED SOLUTION

former_member31961
Contributor
0 Kudos

Hi

Use FM 'SOTR_GET_TEXT_KEY' to get the OTR text. Import alias name and get the text.

Regards,

Shrinivas

5 REPLIES 5

tarangini_katta
Active Contributor
0 Kudos

Hi Storz,

Have you used the function module READ_TEXT. to get the OTR text.

Thanks,

0 Kudos

No, I didn't.

How can I use this ?

Do you have an example ?

0 Kudos

Hi Storz,

I think this will help you.

ENH_GET_OTR_TEXT

Thanks,

0 Kudos

Hi Storz,

here is the code,

Id specifies whether is standard text in my case it is 'ST'.

Main_name is u r OTR text name.

CALL FUNCTION 'READ_TEXT'

EXPORTING

client = sy-mandt

id = id

language = sy-langu

name = main_name

object = 'TEXT'

TABLES

lines = tline

EXCEPTIONS

id = 1

language = 2

name = 3

not_found = 4

object = 5

reference_check = 6

wrong_access_to_archive = 7

OTHERS = 8

Please try this.

Thanks

former_member31961
Contributor
0 Kudos

Hi

Use FM 'SOTR_GET_TEXT_KEY' to get the OTR text. Import alias name and get the text.

Regards,

Shrinivas