I am using following code in my program but it shows me abap dump i.e. DO_WHILE_VARY_NOT_IN_RANGE.
DO 20 TIMES
VARYING dat-dar FROM p0041-dar01 NEXT p0041-dar02
VARYING dat-dat FROM p0041-dat01 NEXT p0041-dat02.
It would be really great if you tell me how to avoid this error.
Thanks a lot for your reply.