I need some help on how can I check every index's value of column A if there's a gap.
READ TABLE ZVBELNEXTTAB INDEX x.
curr = ZVBELNEXTTAB-EVBELN.
READ TABLE ZVBELNEXTTAB INDEX y.
next = ZVBELNEXTTAB-EVBELN.
chck = next - curr.
IF chck GT 1.
chck = chck - 1.
DO chck TIMES.
ZVBELNEXTTAB-EVBELN = curr + 1.
ZVBELNEXTTAB-BUKRS = ''.
ZVBELNEXTTAB-WERKS = ''.
ZVBELNEXTTAB-VBELN = ''.
ZVBELNEXTTAB-FKDAT = ''.
ZVBELNEXTTAB-VBLSTAT = ''.
ZVBELNEXTTAB-ZPRN = ''.
ZVBELNEXTTAB-UNAME = ''.
ZVBELNEXTTAB-TYPE = ''.
ZVBELNEXTTAB-MANDT = ''.
APPEND ZVBELNEXTTAB.
SORT ZVBELNEXTTAB BY evbeln.
ENDDO.
ENDIF.
since SAP ABAP doesn't support the concept of using array. I'd like to perform this action for the entire column data.
Thanks!