Skip to Content
avatar image
Former Member

TABLE_INVALID_INDEX

Hi Experts,

I am getting the error TABLE_INVALID_INDEX.Can any one help for this below error.

Short text

Error in ABAP/4 statement when processing an internal table.

|What happened?

Error in the ABAP Application Program

The current ABAP program "SAPLHRHAP_UI_WD_SUPPORT" had to be terminated because

|Source Code Extract

1010

| 1011| IF sy-subrc <> 0.

| 1012| lv_target_found = c_false.

| 1013| lv_index = lv_index - 1.

| 1014| WHILE lv_index > 0 AND lv_target_found = c_false.

| 1015|* Read the previous element

| 1016| READ TABLE ps_document-t_body_elements

| 1017| INTO lw_body_current_element

| 1018| INDEX lv_index.

1019

| 1020|* Check if the element is to be displayed on a separate tab

| 1021| READ TABLE pt_tabstrip

| 1022| INTO lw_wd_tab_temp

| 1023| WITH KEY

| 1024| row_iid = lw_body_current_element-row_iid.

| 1025| lv_tab_index = sy-tabix.

| 1027| IF sy-subrc = 0.

| 1028| lv_target_found = c_true.

| 1029| ELSE.

| 1030| lv_index = lv_index - 1.

| 1031| ENDIF.

| 1032| ENDWHILE.

| 1033| ENDIF.

1034

| 1035|* Add the element to the found tab

| 1036| lw_wd_tab_content_temp = lw_body_element-row_iid.

| 1037| APPEND lw_wd_tab_content_temp TO lw_wd_tab_temp-t_tab_content.

| 1038| MODIFY pt_tabstrip FROM lw_wd_tab_temp INDEX lv_tab_index.

1039

|>>>>>| IF lw_wd_tab-tab_id = lw_wd_tab_temp-tab_id.

| 1041|* Take over changes to currently processed tab config

| 1042| APPEND lw_wd_tab_content_temp TO lw_wd_tab-t_tab_content.

| 1043| ENDIF.

| 1044| ENDIF.

| 1045| ENDIF.

| 1046| ENDLOOP.

| 1047|ENDFORM. " fill_document_tab

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jul 11, 2011 at 01:41 PM

    Hi Durga,

    Are you enhancing the standard program?

    Go through below links, it wil get you some idea.

    error in TABLE_INVALID_INDEX in prog HINCF161 for form16

    Runtime Errors- TABLE_INVALID_INDEX

    I think you should send this to OSS.

    Regards

    Srinivas

    Add comment
    10|10000 characters needed characters exceeded