solve this

Hi,

I have material say X which I sale and update RG1 for same.At same time I purchase same material X and has to update RG23 for same.But I can not maintain two entry in j1id for same material.So how I can Handle this situation in SAP?