Hi Anirudda,
Does the GL account has created as a cost element? If yes, then you have to provide a cost centre. Based on the cost centre system will derive profit centre.
If you have not created as a cost element, then the profit centre assignment for remaining GLs should be same. Then only system will derive the profit centre automatically.
Please check and let me know.
Regards,
Mukthar