Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP send email with attachment DIALOG not automatic

kroly_horvth
Participant

Hi,

I use SO_DYNP_DOCUMENT_TRANSFER_API1 function module to pop up standard SAP email dialog box, I can fill in all fields, except attachments. I need to popup up this email sending dialog box and automatically display attachment tab filled with a PDF (smartform).

I can see the attachments are some kind of objects, so I need to create them in SAP and use the created object ID, but I cannot figure out how to do that.

Can anybody give an example?

(Please note this is not about automatic email sending with SO_DOCUMENT_SEND_API1!)

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor

You could also prepare the message/document/attachment with CL_BCS and at end use method CL_BCS->EDIT to display a pop-up for edition, look at report samples like BCS_EXAMPLE* or BCS_TEST*.
Regards,
Raymond

4 REPLIES 4

raymond_giuseppi
Active Contributor

You could also prepare the message/document/attachment with CL_BCS and at end use method CL_BCS->EDIT to display a pop-up for edition, look at report samples like BCS_EXAMPLE* or BCS_TEST*.
Regards,
Raymond

This is the right thing to do. The function modules always seem to have problems - probably that's why they're now obsolete. Don't use them.

0 Kudos

Thanks, BCS_TEST04 contains a complete example with attachment and popping up an email sending dialog box. I accepted this answer! (Actually this is not the 'best answer', but the solution, in the past SDN it was marked as green. I don't know how to do that now.)

Former Member
0 Kudos

Hi all,

i have the same need as Karoly but with some differences ; i work in an workflow, and i have a task to send an email with attachment(s). I follow the report BCS_TEST04 and it work well but my customer would like to edit and modify the content of attachment file, is it possible ?

Regards,

Eric