Skip to Content

Passing data from workflow to event container

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!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Apr 13 at 09:19 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • 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

  • Apr 13 at 06:25 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 13 at 09:51 AM

    Hi,

    May not possible.

    Thanks

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 18 at 04:41 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded