I have created the class for creating purchase orders and lines, but the requirement is to create PO and receive the order, without asking to receive it.
I'm using the Procedure of "Purchase Header"

It asks me to receive, Invoice, or both.

It's working when I select the receive and click ok.
But I want to create and receive the order without asking to receive it.
Is there any other procedure or any other way to receive the order?
Thanks.