Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

user can send multiple notifications using the send button

We have a web Dynpro application that allows a user to park a document, the way we have our application created is :

1. User will enter the data

2. Click on Save to Park the document and

3. hit the send button that will trigger the workflow that will send the document to the next approver.

Now the issue if a user saves a document and hit send multiple times the workflow is getting triggered everytime and the approver is getting multiple notifications in his inbox. I tried manipulating this in the web bypro by setting a flag ...but the issue is everytime user hits the send button the application intialized and the flag is inital... can you please help me with this,.



Former Member replied


How about this.

Creating a custom table with Key as Workflow ID, Document number. Rest fields include, date time and any other information. In your workflow, if custom, the first step should update the table with these details. Your Webdynpro code should read first from table, and if no entry exists, it can trigger the workflow event. If you don't want to do that, then reading from workflow container is one way but never recommended as it will take ages to look for one record.



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question