Simple SAP Program to store records in an internal table

 Program: 


REPORT ZINTERNAL.

TYPESBEGIN OF str,
  id type int4,
  name TYPE char10,
  location type char10,
  END OF str.

  DATAit TYPE STANDARD TABLE OF str,
        wa TYPE str.

  wa-id '1'.
  wa-name 'SUVADEEP'.
  wa-location 'KOLKATA'.
  APPEND wa to it.

  wa-id '2'.
  wa-name 'SOUMYODEEP'.
  wa-location 'MUMBAI'.
  APPEND wa to it.

  wa-id '3'.
  wa-name 'NITAIPADA'.
  wa-location 'BANGALORE'.
  APPEND wa to it.

  loop at it into wa.
    write/ wa-idwa-namewa-location.
    ENDLOOP.


OUTPUT: 


  


Post a Comment

0 Comments