SAP Function SRTV_ONTOL_GET_RELATED - Fetches a List of Related Words (Synonyms, Abbreviations, Etc.)

Parameter Reference Type Length Default Optional Text
ID_ENTRY SRTVLENTRY C 30 X Text Retrieval: Lexicon entry
ID_INFLEN SRTVINFLEN N 1 X Text Retrieval: Flexion length
ID_LANGU SYLANGU C 1 SY-LANGU X R/3 System, current language
ID_MINWORDLEN SRTVMINWLN N 1 X Text Retrieval: Minimum word length
ID_RELKEY SRTVRELKEY C 1 Ontological component: semantic relation key
ID_SUBSCID SRTVSUBSID C 8 X Ontological component: Subscriber ID

Parameter Reference Type Length Text
ET_WORDS SRTVOCMAPT h 71 Ontological component: related words

Parameter Reference Type Length Default Optional Text
ID_RECURS XFELD C 1 ' ' X search recursivelly

Exception Text
BAD_DATA bad data
NO_ENTRIES no entries found

Functionality
Searches in the ontological map (table SRTCONTMAP) to return (inparameter ET_WORDS) a list of all words related to a specified word(import parameter ID_ENTRY).
If the relation type (abbreviation, synonym, "partof", "contains", abstraction, or specialization) is not specified inparameter ID_RELKEY, all relations are taken into account.
If the subscriber ID is not specified (importparameter ID_SUBSCID is initial), the results list contains the relatedpairs of words maintained for all subscribers.
The search in the ontological map table also returns words with thesame root as ID_ENTRY but different endings if theminimum word length and theinflection length (parameters ID_MINWORDLEN andID_INFLEN) are specified. If one of these parameters is zero, only theexact matching entries are returned.
The search can be done recursively (that is, searching for entries thatare synonyms of the synonym) if the flag ID_RECURS is set. This doesnot, of course, apply to abbreviations.