cancel
Showing results for 
Search instead for 
Did you mean: 

Update existing BOM with new stage id using SAP B1 DI API

atessier
Explorer
0 Kudos
525

Hi experts

I'd like to update existing BOM without any stages and i'm facing a wired error.

I've managed to add some a stages and update existing BOM Lines with a "default" stage ID.

I'd like to set the correct stage ID for each BOM Line but i get this error message " Visual order on lines is not in sync with Sequence number on stages [ITT1.VisOrder][line: x]

Since VIsualOrder Info is read only, how can i set the right visual order ???

best regards

View Entire Topic
ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi antoinetessier,

The mentioned behavior is a limitation in DI API.

When you select a Route Stage in Production Order row and you add a new row to the existing Production Order via DI API, it is always added after the last existing row. The newly added row belongs under the last existing Route Sequence in Production Order, so the number should be set according to it.

The proposed solution would be to set the Stage ID number (oProduction.Lines.StageID) according to the last Route Sequence number and the update will be successful.

This limitation applies to Service Layer also.

Kind regards,

ANKIT CHAUHAN

SAP Business One Support