Skip to Content
0
Former Member
Feb 18, 2009 at 07:50 PM

*TABLE_INVALID_INDEX* in ALV Z Report in *form set_user_command*

82 Views

Hi,

I got a dump TABLE_INVALID_INDEX in Z program,

here in the form user_command, can you give me the reason,

form set_user_command using p_ucomm like sy-ucomm

1112 p_selfield type slis_selfield.

1113

1114 data: l_table_lines type i,

1115 lv_index type i.

1116

1117 describe table it_final lines l_table_lines.

1118

1119 case p_ucomm.

1120 *--Drill down report

1121 when '&IC1'.

1122

1123 *-- Get the data from selected record.

1124 read table it_final index p_selfield-tabindex.

1125 wa_final = it_final.

1126 SET PARAMETER ID 'MAT' FIELD IT_FINAL-MATNR.

1127 SET PARAMETER ID 'WRK' FIELD IT_FINAL-WERKS.

1128 * Call the transaction with passing the material no. and plant.

1129 CALL TRANSACTION 'MD04' AND SKIP FIRST SCREEN.

1130

1131 *-- If the text changed via drill down, will update the int.table.

1132 perform update_drilldown_changes using it_final.

1133 if it_final is initial.

>>>>> delete it_final index p_selfield-tabindex.

1135 P_SELFIELD-REFRESH = 'X'.

1136

1137 else.

1138 if wa_final <> it_final.

1139 if it_final-matnr <> space.

1140 modify it_final index p_selfield-tabindex transporting stock

1141 pobal

1142 reqqty

1143 exsqty

1144 exsamt

1145 stdcst

1146 minlot

1147 reason.

1148 endif.

1149 P_SELFIELD-REFRESH = 'X'.

1150 endif.

1151 endif.

Moved to proper forum

Edited by: Rob Burbank on Feb 18, 2009 2:58 PM