02-10-2017 5:10 PM
Hello gurus,
i have a problem with routing creation, while executing the bapi bapi_routing_create with a bapi_transaction_commit. In the return table lt_return, I can see that the routing has been created with the routing number but when I check on CA03 or in table PLKO, I can not found it.
I have filled the table TASK and MATERIALTASKALLOCATION.
Here is the code I have used :
" task
ls_task-valid_from = '20120101'.
ls_task-valid_to_date = '20180101'.
ls_task-task_list_usage = '1'.
ls_task-plant = 'UMSF'.
ls_task-lot_size_from = 0.
ls_task-lot_size_to = 999999999.
ls_task-task_list_status = '4'.
ls_task-task_measure_unit = 'PC'.
ls_task-group_counter = '1'.
APPEND ls_task TO lt_task.
"material alloc
ls_matalloc-material = '000000000003000008'.
ls_matalloc-plant = 'UMSF'.
ls_matalloc-valid_from = '20120101'.
ls_matalloc-valid_to_date = '20180101'.
APPEND ls_matalloc TO lt_matalloc.
I have search on SCN but did not find anything.
thanks for your help.
02-10-2017 9:52 PM
Since you did not forget COMMIT, my first guess would be update termination (SM13).
If nothing there, run it with SQL trace and see what is actually updated.