This is a function that returns the POs that are associated with a Payables document.
The use of the function is demonstrated here http://dyndeveloper.com/ArticleView.aspx?ArticleID=1689