SAP Function SRTV_MODIFY_SPECTERM_LINK -

Parameter Reference Type Length Default Optional Text
B_DELETE XFELD C 1 SPACE X Checkbox
ID_CORPUSID SRTVCORPID N 4
ID_ENTRY SRTVLENTRY C 30
ID_LANGU SRTVLANGU C 1 SYST-LANGU X
ID_SPECTYPE SRTVSPECTY C 1 '1' X
IT_EDOCIDS SRTV_DOCID_TABLE 0 X
MANDT MANDT C 3 SYST-MANDT X Client

Exception Text
COMPILATION_CANCELLED
LEXICON_DOES_NOT_EXIST
READ_ERROR
UNKNOWN_DOCUMENTS
WRONG_CORPUS_ID
WRONG_SPECTERM

Functionality
This function module can be used to rapidly update the lexicon (in thelanguage specified by ID_LANGU) of anindex (ID_CORPUSID) with adescriptor.
The descriptor is contained by the parameter ID_ENTRY. The descriptortype is contained by the parameter ID_SPECTYPE. (Parameter ID_SPECTYPEhas to be non-initial. If only one type of descriptor is used, a valueof one is recommended.)
This is done directly and avoids a total or even a partial compilationof the documents of the index.
The function module can be called in insert mode (the parameterB_DELETE must then be left initial) or in delete mode (B_DELETE = X).
In delete mode, there are two situations:

  • A list of IDs of documents is passed in table IT_EDOCIDS. In this case,
  • the specified documents are deleted from the list of the ones linkedwith the descriptor (that is, the corresponding entries are removedfrom the list of those documents in which the specified descriptorappears).
    • If no list is passed (table IT_EDOCIDS is initial), the usage
    • information of the descriptor is completely deleted. All the linksbetween the descriptor and any document are deleted.
      Insert mode works only if a list of documents is passed. It is checkedif the descriptor is used in (linked with) each of the documentsspecified in the list. If necessary, such a link is created. Also ifnecessary, the descriptor is added to the lexicon.
      The SAP client (MANDT) should be specified because, during customizing,it can be chosen to create client-specific indexes.