Hi Tamil,
Glad to know it's of some help.
Going into method lo_po_proxy->purchase_order_erprequest_out, it would then be handled by proxy framework. I'm not familar with it, but it seems if it finds anything wrong with the connection between PI and application, it will not create the XML in application side.
Regards,
Wendy