on 07-11-2011 1:05 PM
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.