*&---------------------------------------------------------------------*
*& Report YSAP_CONCATENATE
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
report ysap_concatenate.
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.
OUTPUT
*& Report YSAP_CONCATENATE
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
report ysap_concatenate.
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.
OUTPUT
No comments:
Post a Comment