cancel
Showing results for 
Search instead for 
Did you mean: 

Passing data from workflow to event container

Former Member
0 Kudos

Hi,

Is it possible to pass data from workflow to event container. As per this document we can:

https://wiki.scn.sap.com/wiki/display/ABAP/Binding+Definition+in+Workflow

My workflow is being triggered through a custom class event. I have a user decision step which, on approval, is associated with a task creating a contract via. ME31K BDC. Most of the things are fine but now i want error/success message of BDC to be returned to calling program i.e., where im triggering start eventWork of WF. Is it possible. Please advise.

Thank you!

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member186746
Active Contributor

Hi,

You're thinking sequentially, whereas with workflow it is better to think things modular.

What is the end result of the program? If it is updating a table then that task can also be done in the workflow.

Kind regards, Rob Dielemans

Former Member
0 Kudos

Yes Rob. i need to update a Z able based on Call txn. do you mean to say i can do that immediate after bdc call?

former_member186746
Active Contributor

Hi,

What I am saying if the process is like:

program starts an event

event gets picked up by workflow and does something

after it does something a Z table needs to be updated consisting of data present in the program and data received after a step in the workflow.

In that case when triggering the event, add container fields for updating the Z table so that you can use that in an additional step in your workflow. Now the process is more streamlined.

Kind regards, Rob Dielemans

former_member564522
Active Participant
0 Kudos

Hi,

It is possible. Since it is your custom Class event trigger, I hope you are using the BDC inside a class method.

when you use that method in the task , binding will give shows all the import and export parameter of that class to bind to task.

You can then bind that task elements back to Workflow container.

I hope you get it now. let me know if you still need information.

Former Member
0 Kudos

im close to this however facing another issue to which opening a new thread. Thank you

anjan_paul
Active Contributor
0 Kudos

Hi,

May not possible.

Thanks

nabheetscn
Active Contributor
0 Kudos

Hello

You can get data in workflow container which was mappend to event container during start. It is possible let your background task where you can bdc capture the messages and pass back to task container which are binded back to workflow container then you can use further

Thanks

Nabheet