on 04-04-2013 6:52 PM
Hi,
I have a scenario where I have to integrate the Custom transaction(Z - Transaction) with workflow..
The custom transaction will have the Approve and reject button
Issue here is I have to capture the response from the transaction(either Approved or Rejected) and pass it back to the Workflow.
Can anybody help me in this..
Thank you
Srinivas
Hello,
1. If you are using Call Transaction of your Z Transaction inside the BO, then try to create two event for approve and reject . Assign those two events as the terminating events of the Dialog task . Raise event as approve using SAP_WAPI_EVENT_CREATE when approved or reject when rejected . The workflow will flow through the branch based on the action .
2. If you are using a function module and through that you are using call screen , then you can simply pass the decision as the export parameter and take the values back .
Thanks..
Tirthankar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You could a raise an APPROVED (or REJECTED) event from the ZTransaction, and have your workflow listen out for one of those events.
cheers
Paul Bakker
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
Are you want to pass back to any workflow instance or you want to start a workflow after user hit Approve/Reject button. If you want to start a workflow then use SAP_WAPI_CREATE_EVENT to trigger event for workflow.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Why do you have a custom transaction that is just a simple Approve/Reject?
It sounds like it was made by someone who doesn't know that workflow can do this.
If you have to use it, then I would put a Decision step in workflow and then use the result of that to execute that transaction.
regards
Rick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.