Beruflich Dokumente
Kultur Dokumente
type of program
Executable program can execute independently
to declare variable we will use DATA keyword
eg:
Data: l_string Type string.
l_srtring= 'my first pgm'.
Write:/l_string.
Concatenate
sy-datum = will show current server timings
yyyymmdd
Data: l_day(2) type C,
l_month(2) type C,
l_year(4) type C,
l_var type string.
l_year=sy-datum+0 (4).
l_month=sy-datum+4(2).
l_day=sy-datum+6(2).
IF sy-subrc EQ 0.
Write:/ 'Concatenate :', l_var.
END IF.
Session break point is applicable only for the session
External break point will be there for next 2 hrs
Structure declaration (structure local)
IF sy-subrc EQ 0.
SELECT
kunnr
bukrs
FROM knb1 INTO it_knb1
FOR ALL ENTRIES IN it_kna1 WHERE kunnr=it_kna1-kunnr.
IF sy-subrc EQ 0.
**/ Print the value stored in Table
LOOP AT it_kna1 INTO wa_kna1
WRITE:/ 'Customer_Number : ' , wa_kna1_kunnr, '|', 'Name:', wa_kna1_name1.
ENDLOOP.
ENDIF
either field name - table name or data element name
followed by structure
Structure
Structure
Structure
Internal Table
Internal Table
We are checking table is having some data, will tell us whether the prvious statement is successful
IF not It_kna1() is INNITIAL.