NAVAPAT_T

ABAP : Internal Table -4

Jul 19th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ABAP 0.42 KB | None | 0 0
  1. DATA : BEGIN OF it_head OCCURS 0,
  2.   name(10),
  3.   love(10),
  4.   END OF it_head.
  5. DATA it_body LIKE TABLE OF it_head.
  6. it_head-name = 'navapat'.
  7. it_head-love = 'cat'.
  8. APPEND it_head to it_body.
  9. it_head-name = 'parichut'.
  10. it_head-love = 'dog'.
  11. APPEND it_head to it_body.
  12. LOOP AT it_body into it_head.
  13.   write : / 'ROUND :', sy-tabix , 'NAME :', it_head-name,
  14.           / 'ROUND :', sy-tabix , 'LOVE :', it_head-love.
  15.   ENDLOOP.
Advertisement
Add Comment
Please, Sign In to add comment