SAP Function /SAPHT/RN_CLASSLIST_FROM_KWORD - Get a list of Classes given keywords

Parameter Reference Type Length Default Optional Text
CLASSTYPE BAPI_CLASS_KEY-CLASSTYPE C 3 Class type
MAXROWS BAPIF4A-MAX_ROWS I 4 100 X Maximum number of lines of hits

Parameter Reference Length Optional Text
CLASSDESCRIPTIONS BAPI1003_CATCH_R 43 Descriptions / Keywords
CLASSLIST /SAPHT/RN_CLASSLIST 21 Structure containing class type and name
CLASSSELECTION BAPICLASSSEL 39 X Structure for BAPI Interface to Class: Class Intervall
RETURN BAPIRET2 548 Return parameter

Functionality
This function module returns a class or a list of classes that containsany of a given list of Keywords or Description for the class.
Input to function:
1. Class Type (required entry): CLASSTYPE
2. A table with three columns one column for language, one forlanguage_iso and the third for keywords or description(required entry): CLASSDESCRIPTIONS
3. A range table for class name. This way you can restrict the searchto a range of classes. Wild card character can be used. :CLASSSELECTION
4. A parameter to restrict the number of returned entries : MAXROWS
Output from function:
1. A table with two columns, one column for class type, the other forclass name: CLASSLIST
2. A returned table that contains messages. If the function moduleruns successfully there will be no messages of type E : RETURN

Further information
1.,,The following info messages (Type "i") are provided in the "RETURN"table:
,,,,a. When the number of classes containing any of the given Keywordsis more than the number specified in maxRows then a message of type “I”is provided - 002(/SAPHT/RN) There are more than maxRows classes thatsatisfy the search criteria.
,,,,b. When no classes are found a message of type E is generated (seebelow). In addition, a message of type "I "stating - 003(/SAPHT/RN) TheKeywords were assumed to be in language .
The following messages of type E are returned in the "RETURN" table:
,,,,a. When no class satisfying the search criteria is found - 624(CL)Class Type : no suitable classes found.
,,,,b. If the user does not have authorization to search for classesfor the class type - 051(CL) You are not authorizedfor class type .
,,,,c. When the class type does not exist - 014(CL) Class type <(>
<<)>class type> not defined.
,,,,d. When the language specified is not in the system - 080(TL)language is not in the system.
,,,,e. When the data in the table containing the range of class namesare invalid - 004(/SAPHT/RN) The table

has invalidentry. Look into documentation on SELECT-OPTIONS.