Code: Alles auswählen.
DATA document TYPE REF TO cl_document_bcs.
:
:
* * add list attachment to document
CONCATENATE 'Rechnung:' vbeln '.pdf' INTO lv_attname.
document->add_attachment( i_attachment_type = 'PDF'
i_attachment_subject = lv_attname
i_att_content_hex = contents_hex ).
* * add document to send request
send_request->set_document( document ).
:
: