Q
Problem solve Get help with specific problems with your technologies, process and projects.

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?

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?
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 last published in April 2005

Dig Deeper on SAP workflow development

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchHRSoftware

Close