Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Workflow POP UP Window

Former Member
0 Likes
3,262

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.

8 REPLIES 8
Read only

rajeshkothamasu
Active Participant
0 Likes
2,533

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

Read only

Former Member
0 Likes
2,533

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.

Read only

0 Likes
2,533

Hi Abhishek,

Can you elabrate it please some more.

Read only

Former Member
0 Likes
2,533

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

Read only

0 Likes
2,533

Hi Sudeesh,

As you said i have created a step form in that and i have some errors in that while binding.

Read only

0 Likes
2,533

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

Read only

Former Member
0 Likes
2,533

Hi Vinod,

Did you find any further issue if not then close the thread?

Regards,

Sudeesh Soni

Read only

Former Member
0 Likes
2,533

Issue solved i have copied user decision step and delagated it and placed a popup window FM. It is working fine now.