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: 

MAINTAIN OTR

Former Member
0 Kudos

I want to maintain otr in a webdynpro environment. if i select otr via goto i just get SOTR_VOCABULARY_BASIC. How can i get all OTR texts and change them? I just wanna find the right table to write the text inside...

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Ezachiael,

you will find the those OTR details in the SOTR_HEAD & SOTR_TEXT

The link between those two is CONTEXT

hope this information is help to you.

Thanks!

8 REPLIES 8

Former Member
0 Kudos

Hi Ezachiael,

you will find the those OTR details in the SOTR_HEAD & SOTR_TEXT

The link between those two is CONTEXT

hope this information is help to you.

Thanks!

0 Kudos

but where to find that?

i mean is there a transaction?

se93 does not work for me...

or a program to open and have a look for the otr?

0 Kudos

Hi,

the trasaction for the OTR is SOTR_EDIT .

for creation of the OTR do following steps:

Step 1: Go to Transaction SOTR_EDIT

Step 2: Put the Alias name and display

Step 3: Go to Change menu (Edit>Context>Change)

STep4:Do not choose anything in the popup. Just Hit Enter.

Step 5: You will be in change mode. Now select the language (e.g. DE)

Step 6: Blank out the Length field. Enter the text in Text field. The length will come automatically. (Or you can also specify the max value here).

Step 7: Now Press Save button. The text has been saved.

Step 8: Now select other language from dropdown (E.g. EL Greek) and change the Text and blank out the Length field (you can also specify Max length here as per your choice)

And press Save. In similar way, you can just create the OTR for Multilanguageu2019s.

Step 9: At last save and come out. Enter another Alias and repeat the procedure.

hope this procedure helps you.

Thanks!!

Edited by: M Prasanth on Jan 16, 2009 3:42 PM

0 Kudos

Strange: I can't find my OTR Text.

I want to find the text for: 'ZMM_VPM_MAIL_ABLEHNEN_TEXT' in OTR.

I am in a method for the startview...

Confuse***

call function 'READ_TEXT'

exporting

client = sy-mandt

id = 'ST'

language = 'D'

name = 'ZMM_VPM_MAIL_ABLEHNEN_TEXT'

object = 'TEXT'

  • ARCHIVE_HANDLE = 0

  • LOCAL_CAT = ' '

  • IMPORTING

  • HEADER =

tables

lines = lt_lines

exceptions

id = 1

language = 2

name = 3

not_found = 4

object = 5

reference_check = 6

wrong_access_to_archive = 7

others = 8

0 Kudos

or is read_text not for otr?

...wondering*

0 Kudos

Hi Ezachiael,

for reading the OTR you can not use the FM READ_TEXT

for that we have one method:

try below code


   data:lv_otr   TYPE string,
          lv_otr_date    TYPE string,

  DATA: l_otr TYPE REF TO cl_sotr.

  IF NOT l_otr IS BOUND.
    CREATE OBJECT l_otr.
  ENDIF.

* Get the alias name
  lv_alias = 'ZZWTY/DATE_ISSUED'.

* Get the text symbols
  CALL METHOD l_otr->get_text_by_alias
    EXPORTING
      i_alias = lv_alias          " Here you need to mention your alias name 
    IMPORTING
      e_text  = lv_otr_date.  " in the lv_otr_date you will get the text

try this if any issues revert back to me

hope this solves your problem.

Thanks!!

0 Kudos

I was looking for so10 but thanks!

Former Member
0 Kudos

Do it via SE63.

A