cancel
Showing results for 
Search instead for 
Did you mean: 

_wf_initiator binding issue

Former Member
0 Kudos

Hi,

I want to pass the wfinitiator variable to my method .So i have created onecontainer in the task ,user and passed that task to the binding .And in the method I am getting that container as SWC_GET_ELEMENT container 'user', user.But while debugging i can see after this SWC_GET_element statement,sy-subrc = 8.

the container is not getting assigned with the value_wf_initiator.

Accepted Solutions (0)

Answers (4)

Answers (4)

saumya_govil
Active Contributor
0 Kudos

Hi Priya,

To debug where the problem is please check the workflow log. There check the value of the workflow initaitor which is getting passed at each step. Check the binding between the workflow container -> task container -> method container.

Check the datatype of the container element. It should be WFSYST-INITIATOR.

Also check that the BO method parameter is also of the same datatype as the workflow parameters.

Adequate debugging should solve the issue.

Regards,

Saumya

Former Member
0 Kudos

Hello Priya,

Please recheck whether you have created the variable to pass the workflow initiator as the same type as WFSYST-INITIATOR in the task container and the method container. Then check for any binding errors from workflow to task and then from the task to the method container. Recheck for the checking of Import checkbox of the variable created in the containers.

Then use the statement "swc_get_element container 'user' user." Hope the variable name is user in the method container and is import enabled.

Hope this will help.

Thanks,

Samson

Former Member
0 Kudos

Hi,

Try passing only initiator value(_wf_initiator) instead of passing the whole container(if there r more elements ia your container),Also make sure that the variable which u r passing to the method is an export parameter,and the receiving variable should be of type WFSYST-INITIATOR.Binding should also be done properly.

Regards,

Thoufique.

Former Member
0 Kudos

I hope the binding from Wflow to task is done properly. Please check. Also the User in Method container should be of type WFSYST-AGENT.

Thanks

Arghadip