Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

I can not create routing using BAPI_ROUTING_CREATE

christophe_hu2
Participant
0 Kudos

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.

1 REPLY 1

Jelena
Active Contributor
0 Kudos

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.