cancel
Showing results for 
Search instead for 
Did you mean: 

Automate SAP mail with attachment in 45B?

Former Member
0 Kudos

Hi,

I aware of the options to solve this problem on 4.6C and higher. But those function modules and options are not

available in 4.5B.

I've done some digging but have had to move on and am aware that the following functions are used but at this point I'm unclear on how to put the pieces together :

SO_ATTACHMENT_INSERT

SO_WIND_OBJECT_HEADER

SO_OBJECT_INSERT

Maybe someone has some ideas?

Kind regards,

Mark

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi!

On 4.5B, just SO_OBJECT_SEND will do the job for you.

Regards,

Former Member
0 Kudos

Hi Parminder,

Many thanks for your reply. I can use function SO_NEW_DOCUMENT_ATT_SEND_API1 or SO_OBJECT_SEND to send

a simple mail to a SAP mail user. I can also build up text files and have them sent to a SAP mail user.

But I am unclear how to automatically attach a file in a mail to a user.

The actual file is a TIF image and may reside on either

the local machine or the SAP server - but I can control that. It's the attach element that grieves me.

Any examples of the process would be much appreciated.

Kind regards,

Mark