Question about passing data elements into a workflow

I have created a workflow for changes in work orders. I need the requisition number and line item number. They are in a temporary table in program lcomkfzf. I have coded the user exit to send an e-mail but would like to have the requisition number/line number sent to the workflow. I have set up an attribute but how do I pass the fields from the user exit to the workflow container?

    Requires Free Membership to View

As a general statement, I don't like passing data elements into a workflow. I much prefer the approach where you bind an object into the workflow container. Of course, there are some situations when a business object is not available and a data element must be used. Using a business object tends to be more flexible when changes come up in the future.

You can use the macro swc_set_element (declared in ) to set elements into a container.

Example: swc_set_element container 'ElementName' lv_elementvalue.

This was first published in April 2005

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.