cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow process

Former Member
0 Kudos

Hi Experts,

I have a doubt regarding workflow. I have created a template in SWDD, and I have to use the template in my report. My report is a modulepool report, in that I'll have a check box for workflow. If I check that box workflow has to trigger.

How can I do this. How to link my workflow template with report.

The second requirement is I have one more check box, If I check that box I have to send external mail to gmail or yahoo like that.

Please help me out from these two issues.

Regards

G.s.naidu

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Yes you can fulfill your two requirements through coding itself.

For first requirement,

Make any Z bore object and create any event. Use FM u2018SWE_EVENT_CREATE u2018on click on that check box which triggered the event and ur workflow will triggered based on that event.

For second requirement,

Use FM 'SO_NEW_DOCUMENT_ATT_SEND_API1'.

Hope this will help you.

Smit

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi All,

Great response, Thank you for the replies.

I'm closing this thread now as I got the exact solution.

Thank you

G.s.naidu

saumya_govil
Active Contributor
0 Kudos

hi G.s.naidu,

Good to see that it helped you

To close the thread please mark it as 'Answered'.

Regards,

Saumya

Former Member
0 Kudos

Hi Soumya,

Yeah thanks for the help, I have made it as answered. I'm new to workflow so that I need a lot of help from this forum.

Regards

G.s.naidu

saumya_govil
Active Contributor
0 Kudos

Hi G.s.naidu,

For your first requirement - On click of that button you can call the FM SAP_WAPI_START_WORKFLOW to trigger a workflow.

You can pass the workflow ID to it to specify the workflow to be triggered.

For your second requirement - On click of mail button you can call FM SO_NEW_DOCUMENT_SEND_API1 to send mails to external IDs.

Hope this helps!

Regards,

Saumya

Former Member
0 Kudos

As Smit suggested you can also use SAP_WAPI_START_WORKFLOW function module to trigger the SAP Workflow.

Thanks

Arghadip