Is there a way to find a specific Document line let say in a Purchase Order else then going through a loop like
for(int iItem=0;iItem<oPO.Lines.Count;iItem++)
{
oPO.Lines.SetCurrentLine(iItem);
if(oPO.Lines.ItemCode == ItemCodeSought)
{
FOUND IT
BREAK;
}
}