Skip to Content
author's profile photo Former Member
Former Member

DI: Check if order has been received

Hi all,

Does anyone know of an efficient way to check if all lines in an order have been received yet through DI?

I noted TargetType / LineStatus in the POR1 (=purchase lines) table which seem to indicate just this, but there appears to be no way to check this nicely through DI?!

This is SBO 6.5 btw.

Thanks,

Jacques

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jan 26, 2005 at 09:28 AM

    Hi Jacques,

    Right, you cannot get this information through DI API 6.5 at all. The only way to get information about the document or line status in 6.5 is to run a SQL query using Recordset object.

    If you are just interested in the information whether or not all lines in an order have been closed, simply check the "DocStatus" in ORDR - in 2004 there's a property in the Documents object that provides this information.

    If you want to have all information on a line basis (as indicated), you are on the right track with what you already found.

    It depends on what you want to do with open purchase orders which way would be more efficient. But in general, if you just want to create "Goods Receipt" or "A/P Invoice" based on the order, reading data from OPOR / POR1 through Recordset will do.

    If you would like to update open lines for whatever reason you must use the Documents object of course.

    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.