The same applies to work areas;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | TYPES: BEGIN OF ty_data, matnr TYPE matnr, value(2) TYPE n, erdat TYPE erdat, END OF ty_data. DATA wa_data TYPE ty_data. wa_data-matnr = '1'. wa_data-value = '01'. wa_data-erdat = sy-datum. WRITE: 'Work area with data', wa_data. CLEAR wa_data. " All members initialized WRITE: / 'Work area cleared', wa_data. |
1 2 3 4 5 6 7 8 9 10 | DATA: lv_number TYPE n, lv_char type c. lv_number = 1. WRITE lv_number. CLEAR lv_number. " Initialize to 0 WRITE lv_number. lv_char = 'A'. WRITE lv_char. CLEAR lv_char. " Initialize to space[s] WRITE lv_char. |
Serkan AKKAVAK
Computer Engineer
ABAP Developer & SAP S/4 HANA Logistics Team Lead
Contact : serkurumsal@yandex.com
Social Plugin