SAP Reports / Programs

MLXPRA46A_ACTIVATE_INDEX SAP ABAP Report - Subsequent activation of indices in case of error with XPRA MLXPRA46A







MLXPRA46A_ACTIVATE_INDEX is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for ..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 MLXPRA46A_ACTIVATE_INDEX into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

CKMLXPRA46A - Postprocessing Report for 46A-XPRA


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 MLXPRA46A_ACTIVATE_INDEX. "Basic submit
SUBMIT MLXPRA46A_ACTIVATE_INDEX AND RETURN. "Return to original report after report execution complete
SUBMIT MLXPRA46A_ACTIVATE_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: P_TABLE = Table
Title: Subsequent activation of indices in case of error with XPRA MLXPRA46A
Text Symbol: 001 = Program for creating the ML1 index as a unique index for the given table
Text Symbol: 002 = Only tables MBEW, EBEW, OBEW or QBEW are allowed


INCLUDES used within this REPORT MLXPRA46A_ACTIVATE_INDEX

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:

DDIF_INDX_GET CALL FUNCTION 'DDIF_INDX_GET' EXPORTING name = p_table id = co_index_id "ML1 state = 'A' * LANGU = ' ' IMPORTING gotstate = l_gotstate dd12v_wa = l_wa_dd12v TABLES dd17v_tab = l_itab_dd17v EXCEPTIONS illegal_input = 1 OTHERS = 2.

DD_CREATE_INDEX CALL FUNCTION 'DD_CREATE_INDEX' EXPORTING dbsys = sy-dbsys indexname = co_index_id * NO_EXEC = ' ' * PRID = 0 * PROGNAME = ' ' tabname = p_table * IMPORTING * GENPROG = EXCEPTIONS basetab_error = 1 db_error = 2 dd_error = 3 index_exists = 4 OTHERS = 5 .

DDIF_INDX_PUT CALL FUNCTION 'DDIF_INDX_PUT' EXPORTING name = p_table id = co_index_id "ML1 dd12v_wa = l_wa_dd12v TABLES dd17v_tab = l_itab_dd17v EXCEPTIONS indx_not_found = 1 name_inconsistent = 2 indx_inconsistent = 3 put_failure = 4 put_refused = 5 OTHERS = 6.

DDIF_INDX_ACTIVATE CALL FUNCTION 'DDIF_INDX_ACTIVATE' EXPORTING name = p_table id = co_index_id "ML1 auth_chk = ' ' prid = 0 IMPORTING rc = l_rc EXCEPTIONS not_found = 1 put_failure = 2 OTHERS = 3.

DD_CREATE_INDEX CALL FUNCTION 'DD_CREATE_INDEX' EXPORTING dbsys = sy-dbsys indexname = co_index_id * NO_EXEC = ' ' * PRID = 0 * PROGNAME = ' ' tabname = p_table * IMPORTING * GENPROG = EXCEPTIONS basetab_error = 1 db_error = 2 dd_error = 3 index_exists = 4 OTHERS = 5 .



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