Code: Alles auswählen.
CONSTANTS gcx_crlf(1) TYPE x VALUE '0A'.
data: sendtab LIKE solisti1 OCCURS 0 WITH HEADER LINE.
LOOP AT gt_protokoll INTO gs_protokoll.
CLEAR sendtab.
CONCATENATE gs_protokoll-kunde
gs_protokoll-lvbeln
gs_protokoll-lposnr
gs_protokoll-jvbeln
gs_protokoll-jposnr
gs_protokoll-berot
gs_protokoll-new_order
gs_protokoll-text
gs_protokoll-new_delivery
gs_protokoll-ltext
INTO sendtab
SEPARATED BY ';'.
CONCATENATE sendtab gcx_crlf INTO sendtab.
APPEND sendtab.
ENDLOOP.
Code: Alles auswählen.
CONSTANTS gcx_crlf(1) TYPE x VALUE '0A'.
DATA: sendtab LIKE solisti1 OCCURS 0 WITH HEADER LINE.
FIELD-SYMBOLS:
<gcx_crlf> TYPE c.
* andere Sichtweise auf Feld legen
ASSIGN gcx_crlf TO <gcx_crlf> CASTING.
LOOP AT gt_protokoll INTO gs_protokoll.
CLEAR sendtab.
CONCATENATE
gs_protokoll-kunde
gs_protokoll-lvbeln
gs_protokoll-lposnr
gs_protokoll-jvbeln
gs_protokoll-jposnr
gs_protokoll-berot
gs_protokoll-new_order
gs_protokoll-text
gs_protokoll-new_delivery
gs_protokoll-ltext
INTO sendtab
SEPARATED BY ';'.
CONCATENATE
sendtab
<gcx_crlf>
INTO sendtab.
APPEND sendtab.
ENDLOOP.
Code: Alles auswählen.
CONSTANTS: gcx_crlf(1) TYPE x VALUE '0A'.
Code: Alles auswählen.
DATA: cr_lf TYPE string.
cr_lf = cl_abap_char_utilities=>cr_lf.
Code: Alles auswählen.
concatenate 'Personalnummer'
'Nachname'
'Vorname'
'Arbeitstag'
'Beginuhrzeit'
'Endeuhrzeit'
'Stunden'
'Kurztext'
cl_abap_char_utilities=>cr_lf
into t_contents_bin-line separated by ';'.
append t_contents_bin.