on 11-07-2013 12:08 PM
Hi,
I want to restrict approving workitem (wd abap application is called) only from portal UWL. users should not approve it from R3 inbox.
Right now when users are trying to open the workitem from r3 inbox, workitem is going into reject state automatically.
I want to show them a message when they try to execute it from R3 inbox.
How can i achieve it.
Regards
Satish
Hi Satish,
In the method of approval task, you can simply write message statement and then call the EXIT_CANCELLED macro.
For example,
begin_method (dummy Method name> changing container.
message iXXX(<Message class name>).
exit_cancelled.
end_method.
This will display an information message to user when he tries to open the work item from SBWP.
Regards,
Ibrahim Ansari.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Satish, Yup it's been done. I'm assuming you are using a task visualization entry in transaction SWFVISU to point ot the Web Dynpro ABAP application? In which case the UWL completely bypassess the usual BOR/ABAP Class method linked to the task.
So what you want to do to complete the picture is to simply raise an info message "This work item must be executed in the UWL" or similar in the method, and then raise a temporary exception so it doesn't error or complete the task. Of course if its an asynch task terminated by an event you can just raise the info message because the work item will stay there until the terminating event is raised anyway.
Hope that helps
Jocelyn
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Jocelyn for the reply.
I'm assuming you are using a task visualization entry in transaction SWFVISU to point ot the Web Dynpro ABAP application?
Yes.
So what you want to do to complete the picture is to simply raise an info message "This work item must be executed in the UWL" or similar in the method, and then raise a temporary exception so it doesn't error or complete the task
In which method should i raise the message?
Regards,
Satish
Hello Satish !
When the method is executed in SE24 transaction, did it displays the message that
the request cannot be started from the business workplace ?
Activate the exception, method and class. In addition, the task that would use this method has to be registered in SWFVISU transaction.
Regards,
S.Suresh.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.