Manually create a PO with ME21N and create a small input file that should create a copy with same data, if you program create the PO then problem comes from your input data vs Customizing, start debugging (or create an incident in service.sap.com if you are confident with your data, are you able to create such a PO manually?)
Regards,
Raymond