Code: Alles auswählen.
LOOP AT ta_dyu_email INTO wa_dyu_email.
IF sy-tabix = 1.
v_emai_1 = wa_dyu_email-email.
ENDIF.
IF sy-tabix = 2.
v_email_2 = wa_dyu_email-email.
ENDIF.
IF sy-tabix = 2.
v_email_3 = wa_dyu_email-email.
ENDIF.
ENDLOOP.
CONCATENATE v_email_1 v_email_2 v_email_3
INTO v_string
SEPARATED BY '-'.
Code: Alles auswählen.
LOOP AT ta_dyu_email INTO wa_dyu_email.
IF sy-tabix = 1.
v_string = wa_dyu_email-email.
ELSE.
CONCATENATE v_string wa_dyu_email-email
INTO v_string
SEPARATED BY '-'.
ENDIF.
ENDLOOP.
Folgende Benutzer bedankten sich beim Autor Thanatos82 für den Beitrag:
dyv