Question:
Hi,
Can I pass dynamic variable from my report to workflow and it's value has to displayed in the user decision.
Thanks and Regards,
Bhanu
Answer:
Hi,
what do you mean:
If it's possible to
create a task in the workflow which uses a custom method on a delegated business object which in turn calls a report and after executing that report you wish to have some info returned to the method , which binds it to the task which binds it to a workflow container, which you want to use in a user decision ?
If that's the case, the answer is yes.
In the report use set parameter id.
In the method use get parameter id.
Or alternatively, fill a table in the report and read that table in the method.
Or what I prefer don't use reports at all, use function modules instead.
Regards, Rob Dielemans
Answer:
Hi,
I shall explain the requirement.
I want to pass a value from a report to workflow.
In workflow I am using a user decision.so the passed value has to be displayed in the Description of the User decision.
I am able to do everything I mean triggering a workflow from the report and changing the description of the user decision etc.
But could not able to display the value in the user decision.
For this I have created a element in the workflow container and also created the same element in the task container.
then I have inserted the task container's element into the description of the user decision.
after testing the variable is itself displaying but I want the value instead of the variable name.
Hope I am clear.
Thanks and Regards,
Bhanu
Answer:
Oh,
So somewhere in your report you get a value.
Sometime after that you want to trigger a workflow, also in the report. (probably/hopefully through fm swe_event_create).
What you want to do is the following
Add a container element (import & export) to the workflow template.
When you trigger the event add the value to the event container.
And bind that event container element to the worfklow container in the event linkage.
Done.
Regards, Rob Dielemans.
Answer:
I am not using swe_event_create.
I am using SAP_WAPI_START_WORKFLOW to trigger my workflow.
Also I am not using any events in my workflow.
So, without using events is there any possiblity to display the variable's value in the decription of the user decision.
Many Thanks,
Bhanu
Answer:
Hello,
Didn't know that FM.
I looked at it briefly.
Can't you just fill the table input_containers with the correct value ?
Regards, Rob Dielemans