cancel
Showing results for 
Search instead for 
Did you mean: 

Make attachements mandatory in workflow execution

Rushikesh_Yeole
Contributor
0 Kudos

I have a custom workflow. When user executes work item, i want to make Attach manadatory. There is icon to create attachments This is optional I want to make it mandatory.

One way:

After decision step, for a particular output, make one task in whicj call function module SAP_WAPI_ATTACHMENT_ADD. Make this method as dialog.Pass necessary workitem ID parameters.

DO you know any other simple way to this?

Awaiting your reply.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member185167
Active Contributor
0 Kudos

Hello,

You could put the step in a small loop which checks if there is an attachment; if not then loop back to the same step.

Make sure the workitem says that an attachment is mandatory.

regards

Rick Bakker

hanabi technology

Rushikesh_Yeole
Contributor
0 Kudos

Thanks for replies. My decision step is Advance with dialog.

My requirement is after execution (Before complete work item step), Mandatory pop up should come for creating attachment.

If I use SAP_WAPI_ATTACHEMNT_ADD FM using method in BO by creating task, will it generate a pop up like just when we press ATTACHEMNTS option (I am not sure).

I wiil check the existance of attachments using loop ; BO exists condidtion (Please tell me BO name for attachment) or else check sy-subrc of above FM.

Using SOFM-CREATE, i am not understood about passing the parameters ATTACH. Please suggest.

Edited by: RUSHIKESH YEOLE on Jul 12, 2011 1:11 PM

Eddie_Morris
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

How about a task with SOFM CREATE and with the "Advace with Dialog" active so it opens automatically once the initial work item is completed.

Regards,

Eddie