SAP Tutorials Blog

 


tables: ysap_employee.


types: begin 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(40) type 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 Manager

Contact : serkurumsal@yandex.com