01-16-2009 2:27 PM
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...
01-16-2009 2:32 PM
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!
01-16-2009 2:32 PM
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!
01-16-2009 2:38 PM
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?
01-16-2009 2:40 PM
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
01-16-2009 3:07 PM
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
01-16-2009 4:02 PM
01-17-2009 6:54 AM
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!!
02-04-2009 9:08 AM
01-16-2009 2:48 PM