Hi Frank,
As you can see when you look at Item Master Data in SAP Business One, there is a tab named "Inventory Data" that contains warehouse information.
What might confuse you is that the list of warehouses is displayed there - regardless whether or not a particular warehouse is used for the item. This is just some kind of "service" done by the application.
Using DI API / JCo the WhsInfo must be handled as every line object in DI API:
1) You don't have to create it.
2) It (certainly) comes up with one empty line that you just have to fill; if you want to have more lines, use "Add".
3) Please note that an exception will be raised when you call SetCurrentLine on the current line!
4) Please note that "lines" objects (take a look e.g. at the BusinessPartners object) are often used to represent tabs / folders in SAP Business One forms when theres a grid / matrix on it.
HTH,
Frank
Add a comment