HI,
Did you check following
1. Whether G/L is assigned to account modifier correctly for KBS for the valuation class in the material.
2. Please check in transaction code OME9 what is the Acct modification key given for Project.
Hope, this solves your issue else revert.
Regards,
Tejas