Posted By

qrist0ph on 11/10/09


Tagged

abap


Versions (?)

ABAP Datentypen


 / Published in: Other
 

  1. TYPES t_reservation_tab TYPE HASHED TABLE OF zreservation WITH UNIQUE KEY reservation_id.
  2. DATA: licence_plate TYPE zcars-licence_plate,
  3. reservation_wa LIKE LINE OF reservation_tab,
  4. reservation_num TYPE i,
  5. mess TYPE string.
  6.  
  7. DATA text TYPE string VALUE 'HELLO WORLD'.
  8. DATA oref TYPE REF TO myclass.
  9. DATA vehicle_tab TYPE TABLE OF REF TO zcl_vehicle.
  10. DATA array TYPE STANDARD TABLE OF i WITH KEY table_line
  11.  
  12. TYPES: BEGIN OF foo,
  13. eins TYPE zcatest-id,
  14. zwei TYPE zcatest-bezeichnung,
  15. END OF foo.
  16. DATA bar TYPE foo.
  17.  
  18. DATA zcatest_tab TYPE TABLE OF zcatest.
  19. SELECT * from zcatest into TABLE zcatest_tab.
  20.  
  21. DATA zcatest_wa TYPE zcatest.
  22. SELECT * from zcatest into zcatest_wa.
  23. MESSAGE 'foo' TYPE 'I'.
  24. ENDSELECT.
  25.  
  26.  
  27. MESSAGE text TYPE 'I'
  28.  
  29. CREATE OBJECT oref.
  30.  
  31. DO 3 TIMES.
  32. CREATE OBJECT vehicle.
  33. APPEND vehicle TO vehicle_tab
  34. ENDDO.
  35.  
  36. LOOP AT vehicle_tab INTO vehicle.
  37. vehicle->show_speed().
  38. ENDLOOP.

Report this snippet  

You need to login to post a comment.