SAP Knowledge Base Article - Preview

2908069 - Receiving TABLE_INVALID_INDEX dump when running report RSIRPIRL

Symptom

  • When running report RSIRPIRL and option is available (see below), the run in Update mode is failing with dump TABLE_INVALID_INDEX. No dump is thrown when report is run in Test mode.

    TABLE_INVALID_INDEX dump RSIRPIRL.png

  • The details of the dump is as follows:

    Category               ABAP programming error
    Runtime Errors         TABLE_INVALID_INDEX
    ABAP Program           SAPLSCMS_API
    ----------------------------------------------------------------------------------------------------
    ----------------------------------------------------------------------------------------------------
    |Short Text                                                                                       
    |    Error in ABAP statement while processing an internal table.                                  
    ----------------------------------------------------------------------------------------------------
    ----------------------------------------------------------------------------------------------------
    |What happened?                                                                                   
    |    Error in the ABAP application program.                                                       
    |                                                                                                 
    |    The current ABAP program "SAPLSCMS_API" had to be terminated because it found a              
    |    statement that could not be executed.                                                        
    ----------------------------------------------------------------------------------------------------
    ----------------------------------------------------------------------------------------------------
    |Error analysis                                                                                   
    |    When changing or deleting one or more rows in internal table                                 
    |     "\FUNCTION=SCMS_DOC_CREATE\DATA=L_CONTENT_TXT[]"                                            
    |    or when inserting rows into table                                                            
    |     "\FUNCTION=SCMS_DOC_CREATE\DATA=L_CONTENT_TXT[]", 0 was used as the row                     
    |    index. An index less than or equal to zero is not allowed.                                   
    |                                                                                                 
    |    The error can occur when using the following additions:                                      
    |    1. "INDEX idx" for specifying the row number in table                                        
    |     "\FUNCTION=SCMS_DOC_CREATE\DATA=L_CONTENT_TXT[]" where                                      
    |    the row is to be changed, inserted or deleted.                                               
    |    2. "FROM idx" for specifying the start index when deleting a row area                        
    |    from or inserting a row area into table                                                      
    |     "\FUNCTION=SCMS_DOC_CREATE\DATA=L_CONTENT_TXT[]".                                           
    |    3. "TO idx" for specifying the end index when deleting a row area from                       
    |    or inserting a row area into table                                                           
    |     "\FUNCTION=SCMS_DOC_CREATE\DATA=L_CONTENT_TXT[]".                                           
    |                                                                                                 
    |    When the program terminated, the table contained 1 rows.                                     
    ----------------------------------------------------------------------------------------------------

    |    "TABLE_INVALID_INDEX"                                                                        
    |    "SAPLSCMS_API" bzw. LSCMS_APIU12                                                             
    |    "SCMS_DOC_ADJUST"                                                                            

    |Information on where terminated                                                                  
    |    The termination occurred in ABAP program or include "SAPLSCMS_API", in                       
    |     "SCMS_DOC_ADJUST". The                                                                      
    |    main program was "RSIRPIRL".                                                                 
    |                                                                                                 
    |    In the source code, the termination point is in line 308 of include                          
    |     "LSCMS_APIU12".                                                                             
    |    include "LSCMS_APIU12".                                                

    |  297|    COUNT = LAST_LINE - FIRST_LINE + 1.                                                    
    |  298|    IF COUNT > 0.                                                                          
    |  299|      IF SRC_FLAG = 'X'.                                                                   
    |  300|        DELETE CONTENT_BIN FROM FIRST_LINE TO LAST_LINE.                                  
    |  301|        LOOP AT ACCESS_INFO WHERE BINARY_FLG = 'X'                                         
    |  302|                            AND FIRST_LINE > FIRST_LINE.                                   
    |  303|          SUBTRACT COUNT FROM ACCESS_INFO-FIRST_LINE.                                      
    |  304|          SUBTRACT COUNT FROM ACCESS_INFO-LAST_LINE.                                       
    |  305|          MODIFY ACCESS_INFO.                                                              
    |  306|        ENDLOOP.                                                                           
    |  307|      ELSE.                                                                                
    |>>>>>|        DELETE CONTENT_TXT FROM FIRST_LINE TO LAST_LINE.        

     "Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."


Read more...

Environment

  • SAP NetWeaver
  • Issue seen upto SAP Basis support Package:
    SAP_BASIS 700 SAPKB70037
    SAP_BASIS 701 SAPKB70122
    SAP_BASIS 702 SAPKB70222
    SAP_BASIS 710 SAPKB71025
    SAP_BASIS 711 SAPKB71119
    SAP_BASIS 730 SAPKB73020
    SAP_BASIS 731 SAPKB73125
    SAP_BASIS 740 SAPKB74022
    SAP_BASIS 750 SAPK-75015INSAPBASIS
    SAP_BASIS 750 SAPK-75017INSAPBASIS
    SAP_BASIS 751 SAPK-75109INSAPBASIS
    SAP_BASIS 752 SAPK-75205INSAPBASIS
    SAP_BASIS 753 SAPK-75303INSAPBASIS

Keywords

KBA , BC-SRV-KPR , Knowledge Provider , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.