I need combinations in one sheet to another

po.xlsx (18.2 KB)
I have input as sheet1
need output sheet2
how to combine irs based on pr and scode and makepoto
Please help me