Code: Alles auswählen.
MAILTEXT{} = VALUE #( ( LINE = 'Hello,' )
( LINE = '' ).
APPEND LINES OF VALUE SRM_T_SOLISTI1( FOR J = 1 UNTIL J = LINES( M ) ( LINE = M{ J }-PERNR ) ) TO MAILTEXT.
APPEND LINES OF VALUE SRM_T_SOLISTI1( ( LINE = '' )
( LINE = 'This email was sent automatically by the SAP system.' ) ) TO MAILTEXT.
Code: Alles auswählen.
MAILTEXT{} = VALUE #( ( LINE = 'Hello,' )
( LINE = '' ) )
FOR J = 1 UNTIL J = LINES( M ) ( LINE = M{ J }-PERNR ) )
( LINE = '' )
( LINE = 'This email was sent automatically by the SAP system.' ) ).
Code: Alles auswählen.
mailtext{} = VALUE #( ( line = 'Hello,' )
( line = '' )
( LINES OF VALUE #( FOR j = 1 UNTIL j = lines( m ) ( line = m{ j }-pernr ) ) )
( line = '' )
( line = 'This email was sent automatically by the SAP system.' )
).
Folgende Benutzer bedankten sich beim Autor black_adept für den Beitrag:
DeathAndPain
Das ist Ansichtssache - ich mag auch die "gestückelte" Version.DeathAndPain hat geschrieben:und ist natürlich um eine Größenordnung eleganter, als die Tabelle aus drei Teilbefehlen zusammenzustückeln.
Code: Alles auswählen.
mailtext{} = VALUE #( ( line = 'Hello,' )
( line = '' )
( LINES OF VALUE #( FOR x1 IN m ( line = x1-pernr ) ) )
( line = '' )
( line = 'This email was sent automatically by the SAP system.' )
).
Code: Alles auswählen.
mailtext{} = VALUE #( ( line = 'Hello,' )
( line = '' )
( LINES OF CORRESPONDING #( m MAPPING line = pernr ) )
( line = '' )
( line = 'This email was sent automatically by the SAP system.' )
).
Folgende Benutzer bedankten sich beim Autor black_adept für den Beitrag:
Legxis