In The Raiser's Edge, set the desired campaign as a default on the fund record. The donation/gift will appear in batch after being processed, the campaign field will default to the default campaign set for the fund.

OR

After processing the transaction from the Blackbaud NetCommunity plug-in, edit the campaign field in the gift batch.