Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DATA : BEGIN OF it_head OCCURS 0,
- name(10),
- love(10),
- END OF it_head.
- DATA it_body LIKE TABLE OF it_head.
- it_head-name = 'navapat'.
- it_head-love = 'cat'.
- APPEND it_head to it_body.
- it_head-name = 'parichut'.
- it_head-love = 'dog'.
- APPEND it_head to it_body.
- LOOP AT it_body into it_head.
- write : / 'ROUND :', sy-tabix , 'NAME :', it_head-name,
- / 'ROUND :', sy-tabix , 'LOVE :', it_head-love.
- ENDLOOP.
Advertisement
Add Comment
Please, Sign In to add comment