I have facing one query while running any report on Purchase Order.
Actually ,below code is written on codeunit.
When I am running the any report on purchase order ,it will give that error message ('Purchase Order/line canceled. Insert not allowed') & report is not running.
How to resolve this ,because This validation is only work for that particular page ,not a report.