SAP Tutorials Blog

tables: ysap_employee.

typesbegin of emp,

       firstname like ysap_employee-firstname,

       lastname like ysap_employee-lastname,

       end of emp.

data: emptab type standard table of emp initial size 0 with header line,

      result(40type c.


select firstname lastname

from ysap_employee

into corresponding fields of emptab.

append emptab.

endselect.

loop at emptab.

concatenate emptab-firstname emptab-lastname into result.

write / result.

endloop.



Serkan AKKAVAK
Computer Engineer BSc
SAP Department Deputy Manager
Contact : serkurumsal@yandex.com