NAVAPAT_T

ABAP : Internal Table -3

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