2014 Nov 20 11:36 AM
Hello Experts,
I have one scenario in workflow like if user accepts or rejects by clicking Accept or Reject Button in the user decision step a pop up window editor will appear and in that window user will give the reason for acception or rejection and that text has to be mailed to the assigned Mail ID.
For this i have created a method in Buisness object and a field in attributes as i can see values populating the business object and after binding also i am not able to see the text in mail .Can anyone figure me out the solution for this.
Thanks.
Hello Experts,
I have one scenario in workflow like if user accepts or rejects by clicking Accept or Reject Button in the user decision step a pop up window editor will appear and in that window user will give the reason for acception or rejection and that text has to be mailed to the assigned Mail ID.
For this i have created a method in Buisness object and a field in attributes as i can see values populating the business object and after binding also i am not able to see the text in mail .Can anyone figure me out the solution for this.
Thanks.
2014 Nov 20 12:51 PM
Hi,
In business object method write one function module inside the function module call a module pool screen and design a box in module pool screen and make it editable, create one push button in screen. In push button action you write the mail with user given comments.
Regards,
Rajesh K
2014 Nov 20 2:58 PM
No need for any custom development for this, this facility for entering texts in user decision are available in standard SAP Netweaver 7.0 .
You can also read text directly and bind it with some variable in Workflow container.
2014 Nov 20 5:28 PM
2014 Nov 20 5:38 PM
Hi Vinod,
You can follow below mentioned approach to acheive your requirement:
1. After User decision step, you can create 'Form' step in both 'Rejection/Accept' outcome in which action owner can put acceptance/rejection comments. You can create workflow container element with desire length and define it in FORM container element.
2. Define 'Mail' step in which step-1 container element will be passed and displayed to mail receiver in SAP Inbox.
If you want to send it to external mailbox then create custom method in BO within which code logic need to be written to send rejection text to external mail id.
If you need any help on step-2 logic, please let me know.
Regards,
Sudeesh Soni
2014 Nov 20 6:02 PM
Hi Sudeesh,
As you said i have created a step form in that and i have some errors in that while binding.
2014 Nov 21 10:04 AM
Hi Vinod,
You need to pass below parameters in binding:
1. &FORMPROGRAM& = SAPLZWS&&&&&&&(&&&-it will be workflow template number)
Ex- SAPLZWS92000263
2. &FORMDYNPRO& = 0001
3. &FORMCONTAINERELEMENT& = workflow Text container element created by you in which user comments will be saved.
In FORM Tab:
1. Form Type should be 'Form'
2. Action should be 'Change'
3. Form should be 'ZFORM'
4. Container element should be 'Workflow Text Container created by you'
I hope above information will be helpful for you.
Regards,
Sudeesh Soni
2014 Nov 24 1:47 PM
Hi Vinod,
Did you find any further issue if not then close the thread?
Regards,
Sudeesh Soni
2014 Nov 24 3:58 PM
Issue solved i have copied user decision step and delagated it and placed a popup window FM. It is working fine now.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |