Abap’ta Kod İçerisinde Structure Tanımlama

&———————————————————————
& Report ZMK_PER_TEST
*&———————————————————————

&
*&———————————————————————

REPORT ZMK_PER_TEST.

data : begin of ls_struct,
ad type string,
soyad type string,
no TYPE c LENGTH 15,
end of ls_struct.

   ls_struct-ad    = 'Mehdi'.
   ls_struct-soyad    = 'Kapsal'.
   ls_struct-no = '555 555 55 55'.

  write :
          ls_struct-ad,
         / ls_struct-soyad,
         / ls_struct-no.

"  TYPES ITAB TYPE STANDARD TABLE OF ls_struct.

 " TYPES inter_table TYPE STANDARD TABLE OF ls_struct

“WITH NON-UNIQUE KEY ls_struct-ad. “Unique key yazamayız

  DATA: begin of ls_structure2,
             meslek TYPE string,
             yas TYPE c LENGTH 3,
             ulke TYPE string,
    END OF ls_structure2.

    ls_structure2-meslek = 'Mühendis'.
    ls_structure2-yas = '25'.
    ls_structure2-ulke = 'Türkiye'.

    WRITE: / ls_structure2-meslek,
          /  ls_structure2-yas,
          / ls_structure2-ulke.

Mehdi Kapsal

Bilgisayar Mühendisi

Sence de böyle mi?

%d blogcu bunu beğendi: