Skip to Content
0
Former Member
Apr 25, 2007 at 11:19 PM

Internal table and loops

13 Views

Hi,

What's the difference between...

DATA: BEGIN OF x OCCURS 0.

INCLUDE STRUCTURE ZSRM_HR_IMPORT.

DATA: END OF x.

DATA: xa like LINE OF x. "table ZSRM_HR_IMPORT.

LOOP AT x

ENDLOOP.

...and....

DATA: y type table of ZSRM_HR_IMPORT.

DATA: ya like LINE OF y. "table ZSRM_HR_IMPORT.

LOOP AT y INTO ya.

ENDLOOP.

I know that...

LOOP AT y.

ENDLOOP.

Will give an error...y has no header.

Guess my question is...what is the best way of doing the above.

Thanks,

Naing