Hi Sophia,
In tcode OPSI, check if there is any validation in place which allows you to post to certain GL codes based on the project types/project profiles.
In your case, i believe, you are allowed to use only certain GL codes when you post to Capital projects.
Check and let us know.
Thanks,
Gokul