cancel
Showing results for 
Search instead for 
Did you mean: 

Appending values to a internal table of a task container from workflow container

mohammed_arshad
Explorer
0 Kudos

Hi,

I am trying to append the status [APPROVED/REJECTED]  from work-flow container variable into task internal table of same type.

inside a loop, In my condition when it goes to each approver the status has to recorded in the internal table.So that i can access

that in a User Decision task container.

I tried by appending workflow container to internal table of task.

But everytime it replacing but not appending..

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

I042439
Employee
Employee
0 Kudos

Hi Mohammed

What I understand is that your step "Customised Decision Task" is within a loop and in every loop, you are trying to append L_STATUS from the workflow to L_STATUS_ITAB of the task.

As far as I know, in every loop, workflow is going to create a NEW instance of the  "Customised Decision Task" (or have you managed to keep an existing instance?) Check the workflow log, the work item ID will be different for every instance of this task in the loop. Hence, it's a new object/memory area and will always have a single value in L_STATUS_ITAB

Instead, create a container element in the WORKFLOW, say L_STATUS_ITAB_WF and append L_STATUS from the workflow to L_STATUS_ITAB_WF of the workflow.

In the binding from workflow to  "Customised Decision Task" , pass L_STATUS_ITAB_WF to L_STATUS_ITAB of the task. (No append).

Regards,

Modak

mohammed_arshad
Explorer
0 Kudos

Thank You, Modak Gupta

Your solution got worked..

Answers (0)