cancel
Showing results for 
Search instead for 
Did you mean: 

How to add attachmen while triggering workflow

Former Member
0 Kudos

Dear All,

I have a requirement where i need to add an attachment(say an excel sheet) while triggering workflow, here i am using SAP_WAPI_START_WORKFLOW to trigger workflow.

Please advise..

Thanks,

Kishore

Accepted Solutions (0)

Answers (3)

Answers (3)

paul_bakker2
Active Contributor
0 Kudos

Hi,

The function module SAP_WAP_START_WORKFLOW allows you to pass a container to the workflow as you start it (the link above is apparently for editing the container of an existing workflow).

All you need to do is instantiate a SOFM object (for your Excel spreadsheet) and pass it to the FM parameter INPUT_CONTAINER.

cheers

Paul Bakker

Former Member
0 Kudos

Hi Paul,

first of all thank you all for the replies, can you please guide me how to instantiate the SOFM object or provide me piece of code to insert the attachment,

i have no idea on OOPS programming.

Thanks,

Kishore.

Former Member
0 Kudos

Hello,

You need to use SOFM object and pass it to the workflow as container . For the same you can use below link.

Regards.

former_member183917
Active Contributor
0 Kudos

Hi- From where are you triggering this workflow and do this attachment needs to be updated in any other transaction too?, along with sending the attachment to workflow

Vinoth