cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow integration with module pool

Former Member
0 Kudos

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  

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

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

Answers (3)

Answers (3)

paul_bakker2
Active Contributor
0 Kudos

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

anjan_paul
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Hi Paul,

I want to capture what the user has choosen (whether Approve or Reject) on this transaction and pass it on to Workflow ..

Thanks

Srinivas

anjan_paul
Active Contributor
0 Kudos

HI,

  You mean to say pass it on to a running workflow instance Or start a new workflow instance?

Former Member
0 Kudos

Hi paul,

Yes pass it on to the running workflow..

Thank you

former_member185167
Active Contributor
0 Kudos

Hello,

Why not just do the Approve/Reject in the workflow?

regards

Rick

former_member185167
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Rick,

Actually the Ztransaction consists of Customer Master details apart from all the details it has got Approve and Reject buttons...

I want to capture what the user has choosen (whether Approve or Reject) on this transaction and pass it on to Workflow

Thanks

Srinivas