Hi friends,
How to find document by reference, this code doesnt work
CurrDocument = Documents.SalesInvoice.FindByAttribute("Ref",DocumentRef).GetObject();
CurrDocument.XXX = XX;
CurrDocument.Write();
The 1C:Enterprise developers forum