2009 Nov 25 2:08 PM
Hi All,
I need to assign multiple tasklists to sevice order. For that I am using FM CO_IH_TASK_LIST_SET_EXTERNAL. It is working fine for first task list. And when I am trying to assign second task list (in the same loop) program is going to either dump or giving update termination.
Can any body suggest me how I need to proceed and suggest me if any other BAPI/FM available. I checked BAPI_ALM_ORDER_MAINTAIN but I think it will not assign all operations at a time.
My code.. Here lv_cuobj I am taking as '1' always.
LOOP AT it_task_assign INTO wa_task_assign.
CALL FUNCTION 'CO_IH_TASK_LIST_SET_EXTERNAL'
EXPORTING
i_aufnr = wa_task_assign-aufnr
i_vaplz = gv_arbpl
i_vawrk = gv_werks
i_plnty = wa_task_assign-plnty
i_plnnr = wa_task_assign-plnnr
i_plnal = wa_task_assign-plnal
i_cuobj = lv_cuobj
i_flag_save = 'X'
i_flag_commit = 'X'.
COMMIT WORK AND WAIT.
ENDLOOP.
Regards,
Suresh.
2009 Nov 26 5:32 AM
Can any body suggest me how to assign multiple tasklists to service order (tcode IW32) at a time.
2011 Feb 09 11:17 AM
2013 Jan 03 12:57 PM
It is nice to know that your problem could be resolved. The idea of a forum is to SHARE the experiences. So it would be even nicer if you would give a hint how you solved it.
Thanks
Marcel
2022 Apr 06 8:45 AM
Hi Suresh,
thanks for you blog for the task list updating for the work order.. its working perfectly but when we are creating work order by using BAPI : BAPI_ALM_ORDER_MAINTAIN and when we needs to update the task list by using FM : CO_IH_TASK_LIST_SET_EXTERNAL it will not work, why because this is only for foreground.
if we wanted to use in any one custom FM just we have to create custom report separately then call it in the FM.
Best Regards,
Prabhu. Pole