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
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