cancel
Showing results for 
Search instead for 
Did you mean: 

Request Rejection reason

Former Member
0 Kudos

Hi,

I am using the write off workflow WS21000102, Everything is working, however, when the approver rejects a write off only a vague description is sent to the initiator. I need to have the approver give a reason for the rejection. I cannot seem to find a way to have a screen pop up after the rejection asking for a reason (Likely filling one of the comments fields).

Any help would be appreciated

Thanks,

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

try calling a function module POPUP_TO_CONFIRM_WITH_MESSAGE in the work flow and place it just after the user desicion step..

try out,

thanks

ravi

surjith_kumar
Active Contributor
0 Kudos

Hi,

Below the Rejection Branch use the Std. Task TS200000139 give the necessary bindings. So once the approver click the Rejection button. A popup will appear and enter comments then send.

Regards,

Surjith

Former Member
0 Kudos

Hi,

Which bindings would call the POP UP, I am fairly new to workflows.

Thank You

Former Member
0 Kudos

Hi

I trie using task TS200000139 in the activity but receive the message the tsk is not defined?

Thanks

former_member185167
Active Contributor
0 Kudos

Hello,

I don't have WS21000102 in my systems, what BOR object is it using?

If it's a SAP-standard workflow, I hope you've copied it and are making

changes to the copy.

If the BOR object is SAP standard then you'll want to delegate a Z

object and make changes to that. You can add a method called eg

GetComments to the object, and it calls fm POPUP_GET_VALUES.

Then you have to create a task (TS....) which calls the

Object.Method (eg BUS2xxx.GetComments).

Then you add a step in the workflow which calls that task.

regards

Rick Bakker

Hanabi Technology

Former Member
0 Kudos

Hi Rick,

Yes it is a SAP standard workflow, and yes I am working off of a copy. The BOR object is CA_WRTOFF. Ok so I will create a custom copy of the CA_WRTOFF object, with a custom method called getcommentswhich calls the function module. Then I create a new task that calls the new method getcomments. I then insert a step into the workflow calling that task. Correct?

Thank you for the detailed layout, I will let you know how things are progressing

George.

Former Member
0 Kudos

Hi Rick,

Sorry one more question, In the subtype it asks for a program, then in the drop down it finds like 500. How do I know which program to use for the building of the subtype? Can I just use the same program as the supertype?

Thanks Again

George

Former Member
0 Kudos

Hi Rick,

Please disregard the email about which program to use, I have figured that part out.

Thanks,

George

Former Member
0 Kudos

Hi,

I am about half done, I have a question in regards to the task creation. In the ABAP tab I chose function module and then provided the FM name, I am just not sure about the other tabs?

In the general tab would I check all four options? Dialog, Synch, Result Parameter and Instance Independant? In tab result type what should I fill in there?

Aby help would be appreciated

Thanks.

former_member185167
Active Contributor
0 Kudos

Hello,

ABAP tab in Task creation? Result type? Not in my version.

You should enter an Object type and Method in the Task definition.

You're going to have a very tough time doing workflow if you don't know the basics.

You or your employer should invest in a course, or at the very least a workflow book, like 'Practical Workflow for SAP'.

Have a look at this demo, where they put a method in a task:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0bbdb3c-d640-2a10-d3b2-e4d9b905...

regards

Rick Bakker

Hanabi Technology

Former Member
0 Kudos

Hi,

Actually those tabs are in the method creation, my mistake. This is a demo workflow that I am trying to get up and running. I am looking into attending SAP's workflow course. So in the method creation In the general tab would I check all four options? Dialog, Synch, Result Parameter and Instance Independant? In tab result type what should I fill in there?

Again thank you for your time and responses, it is appreciated

former_member185167
Active Contributor
0 Kudos

Hello,

When in doubt, use the default values. And that's the case here as well.

Click on the Program button in SWO1 to actually enter the code.

I wouldn't enter the function module as template.

There's no point in asking how to fill in every single field and checkbox. Try something and see if it works.

Good luck.

regards

Rick Bakker

Hanabi Technology

former_member185167
Active Contributor
0 Kudos

Hello,

Create a method that calls fm POPUP_GET_VALUES, and call that from the workflow.

regards

Rick Bakker

Hanabi Technology

Former Member
0 Kudos

Hi,

I have been looking at the SAP help library and in a text, but I am not sure how to add a method? I haved added different step types so far, but not a method. Does the method stand on it's own or is it inside a step? Can you explain the process of adding a method? Thanks for any help you can provide

Former Member
0 Kudos

Hi,

Do I have to create a object first and then create the method in the object? or can I just create a method? If so how can I insert the method into the workflow at the proper point?

Thnks