cancel
Showing results for 
Search instead for 
Did you mean: 

Incorrect task list of different plant added to order during creation

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

MTerence
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.

MTerence
Active Contributor
0 Kudos

Check below note

1704722 - BAPI_ALM_ORDER_MAINTAIN doesn't fill the workcenter / plant


Are you able to replicate the scenario ? In such case you can raise to SAP


Regards

Terence

Former Member
0 Kudos

We are unable to replicate the same in our test system. But in production this issue is coming regularly.

We will raise the issue to SAP. Thank you.

Former Member
0 Kudos

Hello Anjita,

Please check if the planning plant at Task list header is same as Plant mentioned for operations?

In standard system, if plant in Order is same as Planning plant in task list header, BAPI will accept task list operations with different plant.

Regards,

Nilesh

Former Member
0 Kudos

Hi Nilesh,

The planning plant is also 0006. Also it is not adding to orders of just 0145 plant, there are orders of 5-6 different plants for which the same task-list is getting added such as plants 0111, 0302 etc.

peter_atkin
Active Contributor
0 Kudos

Anjita,

Where is the task list/order mapping held?

Please send a screen-shot of the Planning tab on the order.

PeteA

Former Member
0 Kudos

Hi Pete,

It is the same incorrect task list 6608 of plant 0006 in the order of plant 0145 in planning tab.