SAP Function SRTV_READ_ATTR_CO_OCCURENCE -

Parameter Reference Type Length Default Optional Text
ID_CORPUSID SRTVCORPID N 4
ID_ENTRY SRTVLENTRY C 30 Text Retrieval: Lexicon entry
ID_LANGU SRTVLANGU C 1 SY-LANGU X Language
ID_MANDT MANDT C 3 SYST-MANDT X Client
ID_SPECTYPE SRTVSPECTY C 1 Text Retrieval: Type of special term

Parameter Reference Type Length Text
ET_COOCCUR SRTV1_COOCCUR_RES_MAP2 0

Exception Text
BAD_SPECTERM
COOCURENCE_NOT_PRODUCED
READ_ERROR
WRONG_CORPUS_ID

Functionality
This function module derives the co-occurrence list of descriptors. Thesearch engine index has tobe specified in the parameter ID_CORPUSID. The language (ID_LANGU) andthe SAP client (ID_MANDT) can also be specified.
The descriptor is contained in the parameter ID_ENTRY, and its type inthe parameter ID_SPECTYPE. (Parameter ID_SPECTYPE has to benon-initial. If only one type of descriptor is used, a value of one isrecommended.)
The co-occurrence list of the descriptor ID_ENTRY is exported in tableET_COOCCUR which contains the following fields:

  • ENTRY

  • Co-occurring descriptor
    • SPECTYPE

    • Type of co-occurring descriptor
      • CORELAT

      • Number between zero and one. This is the quotient between the number ofdocuments in which both descriptors (ID_ENTRY and ENTRY) appear, andthe number of documents in which ID_ENTRY is used.
        The following exceptions can be issued by this function module:
        • COOCURENCE_NOT_PRODUCED

        • Issued if the necessary data was not derived. In this case, compilationof the index will produce the required data.
          • WRONG_CORPUS_ID

          • Issued if no index exists with the specified ID.
            • BAD_SPECTERM

            • Issued if ID_ENTRY is not contained in the index lexicon or if it isnot flagged as a descriptor.