Thanks all for you interest.
Finally i was able to figure out the problem.sap 4.7 vs ECC 6 behaves differently.4.7 requires user Id in order to be used in creation of Purchasing group.ECC 6 lets you create without a user ID existence.4.7 we have Field call USER whereas in ECC 6 sap calls it Agent ID.