The company code in SAP is the smallest organizational unit of external accounting for which a complete, self-contained set of accounts can be created.