Skip to Content
0
Apr 16, 2012 at 08:20 AM

Problem When Transferring Values from program to workflow

194 Views

I tried to pass the value from program to a workflow ( the workflow is based on the workflow form so the container is the table structure ) via this source code but I am getting following error

"1 E The container passed has errors

2 E Structures of type 'ZMRNMASTER' cannot be assigned any constants"

data: t_wf_cont1 type swr_cont occurs 0 with header line.
move 'ZMRNMASTER' to t_wf_cont1-ELEMENT.
move '40000188' to t_wf_cont1-VALUE.
append t_wf_cont1.



t_task = 'WS97500055'.
CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
EXPORTING
task = t_task
LANGUAGE = SY-LANGU
DO_COMMIT = 'X'
USER = SY-UNAME
* START_ASYNCHRONOUS = ' '
* DESIRED_START_DATE =
* DESIRED_START_TIME =
* DESIRED_START_ZONLO = SY-ZONLO
* IFS_XML_CONTAINER =
IMPORTING
RETURN_CODE = retcode
WORKITEM_ID = workitemid
NEW_STATUS = newstatus
TABLES
*INPUT_CONTAINER1-VALUE
* INPUT_CONTAINER = INPUT_CONTAINER
INPUT_CONTAINER = t_wf_cont1
MESSAGE_LINES = MESSAGE_LINES
MESSAGE_STRUCT = MESSAGE_STRUCT
AGENTS = AGENTS