Yes that’s what I thought … Here is my code:
PurchHeader.GET(“Document Type”::Order,“No.”);
CODEUNIT.RUN(CODEUNIT::“Purch.-Post (Yes/No)”,Rec);
REPORT.SAVEASPDF(REPORT::Order,‘C:\poimage.pdf’,PurchHeader);
PuchHeader variable has a DataType of Record and Subtype of Purchase Header
It runs great, but again poimage.pdf contains all the Orders in the Purchase Order screen and not the one I’ve posted which is the functionality I require.
Any more thoughts on a way to achieve this?
Thanks again for your time on this Mohana 