on 09-23-2016 3:31 PM
We have a program which runs as a batch job and creates order using BAPI_ALM_ORDER_MAINTAIN.
The program is running since 2013 and we never faced any issue. Also there are no recent changes in the program.
When we create an order for a plant using the BAPI_ALM_ORDER_MAINTAIN it adds task list 6608 counter 05 of another plant 0006. Every time this same task list of same plant 0006 gets added. This issue is occurring for past 3- 4 days and it is not consistent. Yesterday incorrect orders which were created between 6 to 6.10 pm had this issue. All other 91 orders created during the day were good only 6 orders created during the span of 10 mins were faulty.
Also we got 20 orders of plant 0145 which were created correct but only 2 orders of same plant were faulty. Even more two orders one faulty and another correct were created within a difference of few seconds.
We don't have plant 0006 in our variant for execution.
Below is one faulty order
Operation
Tasklist added to order
tasklist details
Order header AFKO has correct tasklist added
AFVC table details has incorrect tasklist 6608 counter 05
All this happening during order creation.
As per standard SAP, an order of plant A will not allow to add a task list of another Plant 0006. We even checked the same with BAPI and it is also throwing error. There are no custom enhancements in BAPI.
We have orders as below where even in header table AFKO we have the wrong task list populated.
Any idea on how can we fix this issue?
Thanks,
Anjita
Hi Anjita,
After seeing your planning tab screenshot, task list is manually added to order since there was no plans
How it is Task list assigned to Order is made ?
Regards
Terence
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes we are not using maintenance plans here. It is a breakdown maintenance. We are also not creating a notification. We have a custom program where we are calling BAPI_ALM_ORDER_MAINTAIN and passing the task list to the order. Our program is passing the correct tasklist which we can see in AFKO table but in operations table AFVC the tasklist is different.
The order being created is of plant 0145 and tasklist is of 0006 plant. As far as i know BAPI will throw error and not allow this assignment. Still we are getting the order created.
Anjita,
Where is the task list/order mapping held?
Please send a screen-shot of the Planning tab on the order.
PeteA
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.