crap (one's) pants
1. Literally, to defecate into one's pants or underwear. I can't believe that I got so drunk last night that I crapped my pants.
2. To be extremely nervous, excited, or frightened. I was crapping my pants when the boss called me into his office. I almost crapped my pants when I saw my favorite singer in my local café.