SAP Reports / Programs | Basis Components | Use Subcomponents | Archive Information System(BC-CCM-ADK-AS) SAP BC

ASCORRINDX SAP ABAP Report - Adjust database indexes for archive information structures







ASCORRINDX is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The program ASCORRINDX can be used to create, change and delete database indexes for archive information structures, without having to delete and rebuild the infostructures completely...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 ASCORRINDX 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 ASCORRINDX. "Basic submit
SUBMIT ASCORRINDX AND RETURN. "Return to original report after report execution complete
SUBMIT ASCORRINDX 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: INFSTRUC = D .
Selection Text: TESTMODE = Test Mode
Title: Adjust database indexes for archive information structures
Text Symbol: 025 = INdexes for infostructure &1 must be manually adjusted
Text Symbol: 024 = Index &3 must be manually adjusted
Text Symbol: 023 = Fixed table &2 must be manually adjusted
Text Symbol: 022 = Adjust database indexes for archive information structures
Text Symbol: 021 = Program Errors
Text Symbol: 020 = Processing infostructure &1, database index &2-&3
Text Symbol: 019 = Processing infostructure &1
Text Symbol: 018 = Field &4 is not contained in table &2
Text Symbol: 017 = Error during processing of table &2
Text Symbol: 016 = Database index for table &2 was adjsuted
Text Symbol: 015 = Database index &3 was changed
Text Symbol: 014 = Database index &3 was created
Text Symbol: 013 = Database index &3 could not be changed
Text Symbol: 012 = Database index &3 could not be adjusted
Text Symbol: 011 = Database index &3 could not be deleted
Text Symbol: 010 = Database index &3 deleted
Text Symbol: 009 = Error when processing infostructure &1
Text Symbol: 008 = Database indexes for infostructure &1 have been adjusted
Text Symbol: 007 = No change necessary: &1 is up to date
Text Symbol: 006 = No change necessary: &2 does not need nor have a database index
Text Symbol: 005 = &1 is active, but does not have a table
Text Symbol: 004 = No change necessary: &1 is inactive and has no table
Text Symbol: 003 = Prepare Log
Text Symbol: 002 = Adjust Database Indexes - Test Mode
Text Symbol: 001 = Adjust Database Indexes - Production Mode


INCLUDES used within this REPORT ASCORRINDX

No INCLUDES are used within this REPORT code!


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:

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = 'Protokoll aufbereiten'(003) i_output_immediately = 'X'.

DDIF_OBJECT_DELETE CALL FUNCTION 'DDIF_OBJECT_DELETE' EXPORTING type = 'INDX' name = u_tabname id = u_indexid IMPORTING deleted = l_deleted.

DDIF_INDX_PUT CALL FUNCTION 'DDIF_INDX_PUT' EXPORTING name = u_tabname id = u_indexid dd12v_wa = l_dd12v TABLES dd17v_tab = lt_dd17v EXCEPTIONS OTHERS = 1.

DDIF_INDX_ACTIVATE CALL FUNCTION 'DDIF_INDX_ACTIVATE' EXPORTING name = u_tabname id = u_indexid auth_chk = ' ' IMPORTING rc = l_act_rc EXCEPTIONS OTHERS = 1.

DD_CREATE_INDEX CALL FUNCTION 'DD_CREATE_INDEX' EXPORTING indexname = u_indexid tabname = u_tabname EXCEPTIONS index_exists = 0. "ignore that

DDIF_TABL_GET CALL FUNCTION 'DDIF_TABL_GET' EXPORTING name = v_tabname state = 'M' TABLES dd12v_tab = lt_dd12v.

BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = l_log IMPORTING e_log_handle = handle.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = handle i_s_msg = l_msg.

BAL_GLB_SEARCH_MSG CALL FUNCTION 'BAL_GLB_SEARCH_MSG' EXPORTING i_t_log_handle = lt_loghandles IMPORTING e_t_msg_handle = lt_msghandles EXCEPTIONS msg_not_found = 1.

BAL_LOG_MSG_READ CALL FUNCTION 'BAL_LOG_MSG_READ' EXPORTING i_s_msg_handle = IMPORTING e_s_msg = l_msg.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = handle i_s_msg = l_msg.

BAL_DSP_PROFILE_DETLEVEL_GET CALL FUNCTION 'BAL_DSP_PROFILE_DETLEVEL_GET' IMPORTING e_s_display_profile = l_display_profile.

BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXPORTING i_s_display_profile = l_display_profile i_t_log_handle = lt_loghndl.

DB_EXISTS_INDEX CALL FUNCTION 'DB_EXISTS_INDEX' EXPORTING tabname = u_tabname indexname = u_indexid IMPORTING subrc = l_subrc.

DDIF_INDX_GET CALL FUNCTION 'DDIF_INDX_GET' EXPORTING name = u_tabname id = u_indexid IMPORTING gotstate = l_gotstate TABLES dd17v_tab = lt_dd17v.

DDIF_TABL_GET CALL FUNCTION 'DDIF_TABL_GET' EXPORTING name = u_tabname TABLES dd03p_tab = lt_dd03p.

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = l_text i_msgv1 = u_infostruc i_msgv2 = u_tabname i_msgv3 = u_indexid i_output_immediately = 'X'.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.



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 ASCORRINDX or its description.