i Try it but error
It looks like the PurchId field is not filled. Have you checked the number sequence setup for purchase order number?
It is set to manual. Do you enter the PO number manually while creating the PO?
If you enter the PO number manually, then how do you handle the scenarios where the PO is auto generated? (PO from PR, planned orders etc…)