Skip to Content

How to deal with Items.ItemWarehouseInfo?

How to create and update a WarehouseInfo with Java, i am not sure.

Is an object of it instantiated, if an Item object has been created, so only Items.getWhsInfo gives me the handle (no new or anything else)?

Why the method add? Is this a list of objects?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Feb 25, 2005 at 02:04 PM

    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
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.