Hello,
Did you check the customizing below ?
Customer Relationship Management->Master Data->Business Partner->Business Agreement.
There is also a BADI to automatically determine the business agreement class : CRM_BUAG_CLASS_TEMPL.
Hope this helps.
Best regards,
Sylvain AGUETTAZ