MAIN SAP Method Entry into Different Searches









Below is documentation, parameters and attributes of ABAP Method MAIN within SAP class CL_ABAP_DOCU_INDEX_SEARCH. There is also a number of example ABAP code snipts to help you use the functionality of this method.

This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name CL_ABAP_DOCU_INDEX_SEARCH into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.


Method Type - Static

This is a Static Method so you can call it directly

The following technical details of method MAIN can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method MAIN

.

NameTypeData TypeDescriptionDefault Value
EXAMPLES_FLAGImportingTYPE
ABAP_BOOL
Respect Examples
FIRST_WORDImportingTYPE
CSEQUENCE
Keyword
GLOSSARY_FLAGImportingTYPE
ABAP_BOOL
Take Account of Glossary
INDEX_FLAGImportingTYPE
ABAP_BOOL
Take Account of ABAP Index
MODEImportingTYPE
CSEQUENCE
ABAP or Screen
NO_SIMILARSImportingTYPE
ABAP_BOOL
No Similarity Search
P_LANGUImportingTYPE
SY-LANGU
Language
SUBJECTS_FLAGImportingTYPE
ABAP_BOOL
Respect Keyword List
TOKENSImportingTYPE
ABAPDOCU_TOKENS
Token Table
WORDImportingTYPE
CSEQUENCE
Search Text
BDL_F1_CONTEXTImportingTYPE
CL_ABAP_DOCU_EXTERNAL=>BDL_F1_CONTEXT
F1 context for BDL
CDS_F1_CONTEXTImportingTYPE
CL_ABAP_DOCU_EXTERNAL=>CDS_F1_CONTEXT
EXAMPLES_FLAGImportingTYPE
ABAP_BOOL
Consider Examples
GLOSSARY_FLAGImportingTYPE
ABAP_BOOL
Consider Glossary
INDEX_FLAGImportingTYPE
ABAP_BOOL
Consider ABAP Index
MODEImportingTYPE
IF_ABAP_DOCU=>MODE
ABAP, DYNP, CDS etc
SUBJECTS_FLAGImportingTYPE
ABAP_BOOL
Consider Subject List
SUBTREEImportingTYPE
CSEQUENCE
TOKENSImportingTYPE
ABAPDOCU_TOKENS
Token Table for ABAP
VERSIONImportingTYPE
IF_ABAP_DOCU=>VERSION
ABAP Language Version
RESULT_TABExportingTYPE
CL_ABAP_DOCU=>SEARCH_RESULTS
Results table
STRUCTURED_RESULT_TABExportingTYPE
CL_ABAP_DOCU=>SEARCH_RESULTS
RESULT_TABExportingTYPE
IF_ABAP_DOCU=>SEARCH_RESULTS
Result table
STRUCTURED_RESULT_TABExportingTYPE
IF_ABAP_DOCU=>SEARCH_RESULTS



Exceptions of Method MAIN

This method does not have any exceptions

Example ABAP coding


DATA: lv_EXAMPLES_FLAG TYPE ABAP_BOOL,
lv_FIRST_WORD TYPE CSEQUENCE,
lv_GLOSSARY_FLAG TYPE ABAP_BOOL,
lv_INDEX_FLAG TYPE ABAP_BOOL,
lv_MODE TYPE CSEQUENCE,
lv_NO_SIMILARS TYPE ABAP_BOOL,
lv_P_LANGU TYPE SY-LANGU,
lv_RESULT_TAB TYPE CL_ABAP_DOCU=>SEARCH_RESULTS,
lv_STRUCTURED_RESULT_TAB TYPE CL_ABAP_DOCU=>SEARCH_RESULTS,
lv_SUBJECTS_FLAG TYPE ABAP_BOOL,
lv_TOKENS TYPE ABAPDOCU_TOKENS,
lv_WORD TYPE CSEQUENCE,
lv_BDL_F1_CONTEXT TYPE CL_ABAP_DOCU_EXTERNAL=>BDL_F1_CONTEXT,
lv_CDS_F1_CONTEXT TYPE CL_ABAP_DOCU_EXTERNAL=>CDS_F1_CONTEXT,
lv_EXAMPLES_FLAG TYPE ABAP_BOOL,
lv_GLOSSARY_FLAG TYPE ABAP_BOOL,
lv_INDEX_FLAG TYPE ABAP_BOOL,
lv_MODE TYPE IF_ABAP_DOCU=>MODE,
lv_RESULT_TAB TYPE IF_ABAP_DOCU=>SEARCH_RESULTS,
lv_STRUCTURED_RESULT_TAB TYPE IF_ABAP_DOCU=>SEARCH_RESULTS,
lv_SUBJECTS_FLAG TYPE ABAP_BOOL,
lv_SUBTREE TYPE CSEQUENCE,
lv_TOKENS TYPE ABAPDOCU_TOKENS,
lv_VERSION TYPE IF_ABAP_DOCU=>VERSION,
lv_other TYPE c.

CALL METHOD CL_ABAP_DOCU_INDEX_SEARCH=>MAIN(
EXPORTING
EXAMPLES_FLAG = lv_EXAMPLES_FLAG
FIRST_WORD = lv_FIRST_WORD
GLOSSARY_FLAG = lv_GLOSSARY_FLAG
INDEX_FLAG = lv_INDEX_FLAG
MODE = lv_MODE
NO_SIMILARS = lv_NO_SIMILARS
P_LANGU = lv_P_LANGU
SUBJECTS_FLAG = lv_SUBJECTS_FLAG
TOKENS = lv_TOKENS
WORD = lv_WORD
BDL_F1_CONTEXT = lv_BDL_F1_CONTEXT
CDS_F1_CONTEXT = lv_CDS_F1_CONTEXT
EXAMPLES_FLAG = lv_EXAMPLES_FLAG
GLOSSARY_FLAG = lv_GLOSSARY_FLAG
INDEX_FLAG = lv_INDEX_FLAG
MODE = lv_MODE
SUBJECTS_FLAG = lv_SUBJECTS_FLAG
SUBTREE = lv_SUBTREE
TOKENS = lv_TOKENS
VERSION = lv_VERSION
IMPORTING
RESULT_TAB = lv_RESULT_TAB
STRUCTURED_RESULT_TAB = lv_STRUCTURED_RESULT_TAB
RESULT_TAB = lv_RESULT_TAB
STRUCTURED_RESULT_TAB = lv_STRUCTURED_RESULT_TAB ).

Links to Related Class(s)

CL_ABAP_...
Full list of available SAP object classes

Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!