0

i need to insert a finish journal to a workorder by x++. how to set the dimensions, first of all location correctly?

finish journal and referring line is created, but location isn't set, so booking gives an error:

"Lagerungsdimension 'Lagerort' ist eine primäre Ein-/Ausgabedimension und muss daher festgelegt werden."

should be something like "dimension 'location' is a primary dimension and has to be set" in english.

i tried:

prodJournalProd.InventDimId = ProdTable::find( myProdID ).InventDimId;

without success.

thanks so much for help in advance!

Nico
  • 11
  • 2

1 Answers1

1

The error in English: "Stock dimension Warehouse is a primary input/output dimension and must consequently be specified."

I suppose the dimension in question (InventDim.InventLocationId) has been left empty though it must be filled in.

10p
  • 5,488
  • 22
  • 30