Skip to Content
0

Passing data from workflow to event container

Apr 12 at 06:06 PM

56

avatar image

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!

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Rob Dielemans Apr 13 at 09:19 AM
1

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

Show 2 Share
10 |10000 characters needed characters left characters exceeded

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?

0

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

1
Nabheet Madan Apr 13 at 06:25 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Anjan Paul Apr 13 at 09:51 AM
0

Hi,

May not possible.

Thanks

Share
10 |10000 characters needed characters left characters exceeded
Himanshu Gupta
Apr 18 at 04:41 AM
0

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.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

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

0