SAP Reports / Programs | Basis Components | Basis Services / Communication Interfaces | Document Management Services(BC-SRV-KPR-DMS) SAP BC

RSTIRIDX_CHECK_AUTO_INDEX SAP ABAP Report - For testing the (auto) indexability of document classes







RSTIRIDX_CHECK_AUTO_INDEX is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The report is used to test a physical document class for auto-indexability...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RSTIRIDX_CHECK_AUTO_INDEX into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT RSTIRIDX_CHECK_AUTO_INDEX. "Basic submit
SUBMIT RSTIRIDX_CHECK_AUTO_INDEX AND RETURN. "Return to original report after report execution complete
SUBMIT RSTIRIDX_CHECK_AUTO_INDEX VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: PH_CLASS = PHIO class
Selection Text: AUTO_CHK = Auto-indexability
Title: For testing the (auto) indexability of document classes
Text Symbol: 016 = AUTO_INDEX still needs to be entered in table SDOKPROPCL for class:
Text Symbol: 017 = No entry exists in SDOKPHTAB for the following table:
Text Symbol: 018 = Following attributes that can be indexed are defined for class:
Text Symbol: 019 = No index/status table is defined for the following class:
Text Symbol: 020 = The index/status table for the class is:
Text Symbol: 021 = 'LANGUAGE' must be defined as a mandatory attribute in SDOKCLPROP
Text Symbol: 024 = Define the index table (INDEXTAB) in SDOKPHTAB
Text Symbol: 026 = the following document area is defined
Text Symbol: 001 = Following class does not exist:
Text Symbol: 002 = The attribute AUTO_INDEX is not defined in the table SDOKPROP
Text Symbol: 004 = For class:
Text Symbol: 007 = Class can be indexed automatically.
Text Symbol: 012 = Following index category attributes are defined:
Text Symbol: 013 = still need to be defined in the table SDOKCLPROP.
Text Symbol: 014 = The uniqueness flag X_UNIQUE still needs to be set.
Text Symbol: 015 = Mandatory-attribute flag X_OBLIGAT is still to be set.
Text Symbol: 027 = The document area still needs to be defined for class:
Text Symbol: 036 = cannot be indexed
Text Symbol: 037 = Index/status table
Text Symbol: 038 = still has to be created.
Text Symbol: 039 = Following Document Area Is Classified
Text Symbol: 040 = Following Document Area Is not Classified
Text Symbol: 028 = *** No index category attributes are defined. ***
Text Symbol: 029 = For document area
Text Symbol: 030 = The document area
Text Symbol: 031 = the customer did not release indexing readiness.
Text Symbol: 032 = is in status "Wait for index to be imported".
Text Symbol: 033 = the customer showed readiness for indexing.
Text Symbol: 034 = No automatic indexing. Documents can only be indexed explicitly.
Text Symbol: 035 = Documents of class


INCLUDES used within this REPORT RSTIRIDX_CHECK_AUTO_INDEX

INCLUDE LSDCECON.


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

SDOK_GET_DOCUSPACE_FROM_CLASS CALL FUNCTION 'SDOK_GET_DOCUSPACE_FROM_CLASS' EXPORTING ph_class = ph_class IMPORTING docuspace = docuspace EXCEPTIONS class_not_existing = 1 no_docuspace_found = 2 OTHERS = 3.

SDOK_GET_IDXSPC_FROM_CLASS * CALL FUNCTION 'SDOK_GET_IDXSPC_FROM_CLASS' * EXPORTING * PH_CLASS = PH_CLASS * IMPORTING * INDEX_SPC = INDEX_SPC * EXCEPTIONS * NO_CLASS_GIVEN = 1 * NO_DOCUSPACE_FOUND = 2 * NO_INDEX_SPACE_FOUND = 3 * CLASS_NOT_EXISTING = 4 * OTHERS = 5 * .

SDOK_GET_INDEX_FLAGS_STATE CALL FUNCTION 'SDOK_GET_INDEX_FLAGS_STATE' EXPORTING ph_class = ph_class reset_buffer = 'X' IMPORTING x_auto_index = auto_index idxspc_info = idxspc_info EXCEPTIONS no_indexing_possible = 0 OTHERS = 0.

SDOK_TABLE_CONSISTENCY_CHECK CALL FUNCTION 'SDOK_TABLE_CONSISTENCY_CHECK' EXPORTING check_table = sdokphtab-indextab * REFERENCE_TABLE = ' ' EXCEPTIONS * TABLE_NOT_EXISTING = 1 * TABLE_NOT_COMPATIBLE = 2 OTHERS = 1 .

SRET_IDXCAT_FIND_BY_QUERY CALL FUNCTION 'SRET_IDXCAT_FIND_BY_QUERY' EXPORTING APPLICATIONKEY = docuspace TABLES CATTATTRIBUTTAB = CATTATTRIBUTTAB CATIDLIST = CATIDLIST EXCEPTIONS NOCATID = 1 XERROR = 2 OTHERS = 3.

SRET_IDXCAT_READ CALL FUNCTION 'SRET_IDXCAT_READ' EXPORTING CATID = CATIDLIST_line-catid CLIENT = sy-mandt GIVEALL = 'X' * IMPORTING * CATINFO = * MODIFYCLS = * SRSVRID = * QUEUEINFO = * NEXTOP = TABLES * DOCATTRIBUTETAB = LANGUAGETAB = languagetab * CATTATTRIBUTTAB = * TECHATTRTAB = EXCEPTIONS CATID_UNKNOWN = 1 IDXCAT_IS_INACTIVE = 2 XERROR = 3 OTHERS = 4.

SRET_TEST_INDEXING CALL FUNCTION 'SRET_TEST_INDEXING' EXPORTING CATID = CATIDLIST_line-catid LANGU = languagetab_line-langu * LAISO = CLIENT = sy-mandt * INDEXONLY = * SRSVRINFO = IMPORTING RCODE = rcode EXCEPTIONS CATID_UNKNOWN = 1 IDXCAT_IS_INACTIVE = 2 LANGUAGE_ERROR = 3 RFC_SYS_FAILURE = 4 RFC_COM_FAILURE = 5 NO_RFC_DEST = 6 NO_SSR_FOUND = 7 CAT_HAS_NO_INDEX = 8 INDEX_COULD_NOT_BE_CHANGED = 9 XERROR = 10 OTHERS = 11.

SRET_MAPP_ERRORCODE CALL FUNCTION 'SRET_MAPP_ERRORCODE' EXPORTING IV_CATID = CATIDLIST_line-catid IV_RCODE = rcode * IV_RTEXT = IMPORTING ES_SRETSERRORCODE = errorcode EXCEPTIONS EX_NO_MATCH_FOUND = 1 OTHERS = 2.

SRET_IDXCAT_FIND_BY_QUERY CALL FUNCTION 'SRET_IDXCAT_FIND_BY_QUERY' EXPORTING APPLICATIONKEY = docuspace TABLES CATTATTRIBUTTAB = CATTATTRIBUTTAB CATIDLIST = CATIDLIST EXCEPTIONS NOCATID = 1 XERROR = 2 OTHERS = 3.

SRET_IDXCAT_READ CALL FUNCTION 'SRET_IDXCAT_READ' EXPORTING CATID = CATIDLIST_line-catid CLIENT = sy-mandt GIVEALL = 'X' IMPORTING * CATINFO = * MODIFYCLS = SRSVRID = SRSVRID * QUEUEINFO = * NEXTOP = TABLES * DOCATTRIBUTETAB = LANGUAGETAB = languagetab * CATTATTRIBUTTAB = * TECHATTRTAB = EXCEPTIONS CATID_UNKNOWN = 1 IDXCAT_IS_INACTIVE = 2 XERROR = 3 OTHERS = 4.

SRET_TEST_SEARCH CALL FUNCTION 'SRET_TEST_SEARCH' EXPORTING CATID = CATIDLIST_line-catid LANGU = languagetab_line-langu * LAISO = CLIENT = sy-mandt * INDEXONLY = SRSVRINFO = SRSVRINFO IMPORTING RCODE = rcode EXCEPTIONS CADID_UNKNOWN = 1 LANGUAGE_ERROR = 2 RFC_SYS_FAILURE = 3 RFC_COM_FAILURE = 4 NO_RFC_DEST = 5 XERROR = 6 OTHERS = 7.

SRET_MAPP_ERRORCODE CALL FUNCTION 'SRET_MAPP_ERRORCODE' EXPORTING IV_CATID = CATIDLIST_line-catid IV_RCODE = rcode * IV_RTEXT = IMPORTING ES_SRETSERRORCODE = errorcode EXCEPTIONS EX_NO_MATCH_FOUND = 1 OTHERS = 2.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name RSTIRIDX_CHECK_AUTO_INDEX or its description.