Hi Jagan,
Can you please go through the following navigation and check the settings in it.
SPRO-IMG-Sales and Distribution-Basic Functions-Account Assignment/Costing-Revenue Recognition-Maintain Account Determination.
Check the settings and relevant G/L into it and let me know.Besides go through the VKOA settings also.
Regards
Abhishek