Dear Rahul,
You can find the entire step by step of PO/PR workflow process in SCN . Just try to search it.
Try to understand the standard PO/PR worklfows ( WS20000075 & WS20000077 ) for the same. Based on your requirement you can enhance those.
Best Regards, SK