cancel
Showing results for 
Search instead for 
Did you mean: 

Activity to enter task and start Workflow

Former Member
0 Kudos

Dear all,

I have copied template function "QM10_COPY_REFERENCE_FORM_TASK" to my customer namespace. Like in the FM documentation specified I changed the coding to this:

*- If you want to start a workflow task, you have to fill the container.
*- The following sample coding shows you what to do.
*- The lines beginning with *& represent the real coding, while
*- the other lines are commentary lines only.
*- For further information, refer to the function module documentation.
*---- include <cntn01>
    include <cntn01>.
*---- Data declaration
    swc_container my_container.
*---- Data initialisation
    swc_create_container my_container.
*---- Write the element to the container (The element names are used in
*---- the workflow E.g. 'QNOTIFICATION')
*---- 'element' represents the element name; 'value' represents
*---- the value of this element.
*---- If the element represents a table value, then the 'value'
*---- must also be a table.
*&    swc_set_element my_container 'element' 'value'.
    swc_set_element my_container 'NOTIFICATION' i_manum.
*---- Write the element to the container
*&    swc_set_table my_container '_Wi_Group_ID' i_manum.
*---- move my_container to te_container
    loop at my_container.
      append my_container to te_container.
    endloop.

In customizing I have entered the FM and as Workflow Task I entered "Workflow Template WS00200063 (QM ComplTask)". After pressing the activity in notification a task is entered. But after saving the notification a dump occurs (CALL_FUNCTION_REMOTE_ERROR, "Unable to create work item container (CL_SWF_RUN_WIM_FLOW->_IMPORT_CONTAINER)").

Has anybody an Idea what is wrong.

The only thing I want to archive is to start a workflow for a user when entering a task from activity.

If I enter the task manually (without activity FM) the workflow is starting right.

Thanks for any help.

Best regards

Roman

Edited by: Roman Becker on Jul 19, 2010 2:04 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Are there no ideas? Is there nobody with a similar configuration that works?

Best regards

Roman