cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass the variable from the program to workflow thru business object

Former Member
0 Kudos

Hi,

My question is, I declared one event(CALL_WF) in the Business Object and binded that event to my work flow, and calling that workflow through my program using SWE_EVENT_CREATE function module.

Now my requirement is that i will enter text in parameter on my program screen and that value should be carried to the workflow and that text should be mailed(using mail).

Then any one tell me that how to carry my program value to the workflow.

Even explain me that, is it possible to carry the email id from the program to the workflow and send the mail through workflow to that specific email.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Ravi,

As you have created an event 'CALL_WF' in the business object and using the same to start the workflow, you can create parameters of the event and use the same to pass the data from the program to the workflow.

For your requirement, I think you need to create 2 parameters of the event for the text and the email id. you can create event parameters for an event in the business object builder. Select the event and click on the parameters button to create the new parameters.

Then in the function module that you use to start the workflow, you have the parameters to pass the event container elements.Just check and use them.

Hope this will help.

Regards,

Samson

Former Member
0 Kudos

hi ravi,

Try this out:-

http://saptechnical.com/Tutorials/Workflow/EvtsPrg/EvtsPrg.htm

Best of luck,

Bhumika

Former Member
0 Kudos

You can start a workflow with container using function module : SAP_WAPI_START_WORKFLOW

In this function module pass your sceen value as container.

You can read the screen value using field symbols.

Regards,

Shweta

Former Member
0 Kudos

Thanks Shwetha,

Can you explain me in brief....

Former Member
0 Kudos

Hi,

Email Addresses are stored in table Adr6 Check take the field smtp_addr from that table

Regards

Raj

Former Member
0 Kudos

Hi RaviRaj thanks for your reply,

Actually my query is, how to send the value from my program to workflow.

Thanks,

Ravi.

Former Member
0 Kudos

Hi,

For passing the variables from BO to WorkFlow do proper binding in work flow.

Create the standard task using the method of BO and use that Task in the workflow for binding Binding .

Try this ....