01-06-2006 6:15 PM
I have created text using SOTR_EDIT. How do I retrieve the value of a text from within an ABAP function? I know I can use otr() from within a bsp, but I need to do this within an ABAP function.
01-06-2006 6:17 PM
01-06-2006 6:23 PM
Can you explain the parameters? Some of them are self-explanatory, but not sure of all of them. I know what to use for client, language, and I think name would be the otr text name.
*" IMPORTING
*" VALUE(CLIENT) LIKE SY-MANDT DEFAULT SY-MANDT
*" VALUE(ID) LIKE THEAD-TDID
*" VALUE(LANGUAGE) LIKE THEAD-TDSPRAS
*" VALUE(NAME) LIKE THEAD-TDNAME
*" VALUE(OBJECT) LIKE THEAD-TDOBJECT
*" VALUE(ARCHIVE_HANDLE) LIKE SY-TABIX DEFAULT 0
*" VALUE(LOCAL_CAT) DEFAULT SPACE
01-06-2006 6:25 PM
also try this FM...
SOTR_STRING_READ_TEXT_WITH_KEY
check this...
call function 'SOTR_STRING_READ_TEXT_WITH_KEY'
exporting
langu = sy-langu
context = l_context
sotr_key = l_sotr_key
importing
header = l_header
entry = l_text
exceptions
no_entry_found = 1
language_missing = 2
others = 3.
if sy-subrc = 0.
endif.
Regards
vijay
Message was edited by: Vijay Babu Dudla
01-06-2006 6:28 PM
You have to pass only the ID(ID with which this text is stored), NAME(This is typically the key fields, for example, if you are talking about material texts this will be material number, if you are talking about sales order item texts, then this is sales order number plus item number) and OBJECT(identifies what text object this one is like ST, VBBK etc).
Others you don't have to pass.
01-06-2006 6:31 PM
01-06-2006 6:21 PM
Hi,
use this Function module...
<b>LXE_OBJ_TEXT_PAIR_READ_SOTR</b>
Regards
vijay
01-06-2006 6:27 PM
Are you sure that is the right name? I can't find this function module.
01-06-2006 6:30 PM