Pages

Thursday, January 21, 2010

Annoying bug in AX 2009 Intercompany Sales Order

Here is a really annoying bug in AX 2009 intercompany sales order, causing errors where it can take you ages to figure out the cause.

When adding items to an older intercompany order, the intercompany chain is not started. The user needs to pay much attention to realize that the chain is not started and there is not easy way to start it, once the sales order lines is saved.

Repro steps:
Go to company CEE.
Create a new sales order (customer should not be important, but use for example 1102).
Go to the "Other" tab of the sales order header, and check the "Autocreate intercompany orders" check box.
Go to the "Delivery" date tab page.
Enter values for Confirmed Receipt and Confirmed Shipping Dates.
Add an item line for item 1101.
Move the cursor away from the sales order.
At this point the system will generate the intercompany.

Now change the sessions date to a date after the Confirmed Shipping date of the order.

Go back to the order.
Add one more line for 1101.
When saving the record you should get a warning like this: "Item number 1101, requested shipping date 12/3/2009 is in the past.".
The order line is now saved.
Move the cursor away from the sales order.
Nothing happens - the intercompany order has not been updated with the new order line and I see no way that I can trigger the system to generate the line, other than changing dates of the order, delete and recreate the line..

Business impact:
The first problem is that if users aren't paying proper attention to this warning, they'll never get the intercompany chain started on order. And they will not know about it, until they realize that the items aren't delivered.
The second problem is that there is no way to change the dates and the get the intercompany chain started, unless you delete the sales order line and recreated. If you use the product builder to configure items for the sales order, this could be a bit of a pain to do.

Resolution:
Microsoft is considering fixing this issue for AX 2011, but sees it as a matter of educating the users...

3 comments:

Palle Agermark said...

Possible fix for the error:
Suggested changes in object \Classes\PurchCreateFromSalesOrder\interCompanyCreateTmpFrmVirtual
...
if (ret && salesLineLocal.ShippingDateRequested < systemdateget())
{
checkFailed(strfmt("@SYS94343",salesLineLocal.ItemId,salesLineLocal.ShippingDateRequested));
// ret = false; --removed line
}

if (ret
...

BRAHMA REDDY said...

Hi can you please suggest me .I want to refresh data from Com A to Com B at the time of confirmation .I write the code on PurchTableClass and PurchLineType Class Under IntercompanyMirror ().

But this case data are refreshing on sales Table not in sales Line .

Can you please help me on this issue .

Thanks,
Br

BRAHMA REDDY said...

Hi ,

I have an issue on intercompany data .

I want to refresh the data at the time of confirmation .I wrote the code on PurchTableType and PurchLineType under IntercompanyMirror ().

This case Sales Table data is refreshing but not sales Line Data .

Can you please suggest me .

Thanks,
BR