cancel
Showing results for 
Search instead for 
Did you mean: 

Sending a pdf file as an attachment in the workflow.

Former Member
0 Kudos

Dear All,

In my workflow , i want to send a pdf file as an attachment.I know this topic has been discussed in earlier threads but i couldn't make out from them.So plz if possible do give simple detailed solution for better understanding.

Regards,

Geet Bijlani.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

You can make use of the function module "SO_DOCUMENT_SEND_API1" in a method of the BO to send a pdf attachment. Just use this method in a task in your workflow.

Hope this will help.

Thanks,

Samson

Former Member
0 Kudos

hi,

you need to create a SOFM instance of the Pdf file and then link it to the container element as attachment.

Regards

Saurabh Anand

Former Member
0 Kudos

The real problem is how to create SOFM instance of the PDF ??

I create a workflow element of object type SOFM but how does it link to my pdf document.

Plz explain the process in detail for better understanding....

Thanks & Regards,

Geet Bijlani

former_member185879
Active Contributor
0 Kudos

Hi Geet,

You can use FM SAP_WAPI_ATTACHMENT_ADD to add any type of attachments to workflow.

Thanks

Regards

SM Nizamudeen

sudhahar_ramachandran
Active Participant
0 Kudos

The SOFM Object should be created as follows.

1) get the relationship using class 'CL_BINARY_RELATION' using method 'READ_LINKS'

2) get the instance ID from INSTID_B

3) split the value according to the keyfields in SOFM and create object SOFM

4) bind each object to the Workitem or Email.

with regards,

Sudhahar R