Skip to Content
0
Former Member
Apr 01, 2008 at 06:20 AM

regarding the AT END

14 Views

hi,

i had written the following code as below

LOOP AT IT_WEMNG INTO WA_WEMNG WHERE EBELN = WA_EKPO-EBELN

AND EBELP = WA_EKPO-EBELP.

IF SY-TABIX = 1.

MOVE WA_WEMNG-EINDT TO WA_EKPO-EINDT.

ENDIF.

W_WEMNG = W_WEMNG + WA_WEMNG-WEMNG.

AT LAST.

MOVE W_WEMNG TO WA_EKPO-WEMNG.

ENDAT.

ENDLOOP.

but in the extended code check it is giving an error.

Please correct me.

Thanks in advance