Skip to Content
0
Feb 07, 2008 at 06:16 PM

sending attachment to WF using FM SAP_WAPI_START_WORKFLOW

47 Views

Hi,

I have a custom cost maintenance program which will trigger the WF using FM SAP_WAPI_START_WORKFLOW whenever a user changes costs for a particular plant/material combination. These chages run into multiple lines of data. I would like to send this information to workflow as attachment in any readable format that is easy to code. (either word or notepad or any standard option that WF uses)

This will help the agents or receivers of WF to check the details of changes made prior to approval or reject. I have checked forum but could not find this specific requirement.

I was thinking of a approach given below. Please help me if my approach is wrong.

1. Create a new BO or use existing standard BO?? with method that will enable to attach objects. Here I am not really sure if there is any standard that I can use. Please advise.

2. Add this BO as mandatory container in Workflow builder so it expects attachment as input.

3. Fill the attachment??? or BO Container in my custom program before calling SAP_WAPI_START_WORKFLOW. - Not sure how exactly I need to do here. how do I convert to word or notepad. can I actually send lines of information to the standard attachment option of WF?

Request your inputs in this regard. appreciate your comments.

Regards

Kasi