Business Partner Fields

The BusinessPartners master fields in SAP B1 โ€” CardCode, CardType (customer/supplier/lead), currency, payment terms, credit limit, addresses, and contacts.

A Business Partner (BP) is a customer, a vendor/supplier, or a lead. It is one of the two pillars of master data (the other is the Item, see the Item Fields reference), and every sales and purchasing document requires one โ€” the header’s CardCode points here.

In the Service Layer the BP master is the BusinessPartners entity (object code oBusinessPartners, 2). Most implementation problems trace back to bad BP data: duplicates, the wrong type, missing addresses, or no credit limit. The fields below are what a document draws its defaults from.

Identity and type

FieldTypeMeaningRequired?
CardCodeEdm.StringUnique identifier, max 15 chars. The primary key used everywhere as CardCode.Yes
CardTypeSAPB1.BoCardTypesCustomer / Supplier / Lead โ€” see the C/S/L meaning below.Yes
CardNameEdm.StringDisplay name of the partner.Yes
CardForeignNameEdm.StringName in a foreign/secondary language.No
GroupCodeEdm.Int32Classification group (BusinessPartnerGroups) for reporting and G/L determination.No
FederalTaxIDEdm.StringTax registration number (VAT ID / EIN).No

The C / S / L type meaning

CardType is the field that decides what a partner is, and getting it wrong (e.g. a supplier created as a customer) is a classic data error that cannot be changed once the partner has transactions. The three values:

CardTypeLetterMeaning
cCustomerCA customer โ€” someone you sell to. Appears on sales documents (quotation, order, delivery, A/R invoice). Posts to the A/R control account.
cSupplierSA supplier / vendor โ€” someone you buy from. Appears on purchasing documents (PO, GRPO, A/P invoice). Posts to the A/P control account.
cLidLA lead โ€” a prospect not yet a customer. Can appear only on quotations/opportunities; must be converted to a customer before an order can bill it.

(cLid is the internal enum name for “lead”; the letter on the SAP form is L.)

Financial terms

These fields set the commercial defaults that flow onto every document raised against the partner. Getting them wrong is a cash-flow and risk problem, not just a data one.

FieldTypeMeaningRequired?
CurrencyEdm.StringDefault transaction currency. ## denotes an “all currencies” BP.No
PriceListNumEdm.Int32Default price list applied when pricing document lines.No
PayTermsGrpCodeEdm.Int32Payment terms group (net 30, 2/10 net 30, โ€ฆ) โ†’ drives DocDueDate.No
CreditLimitEdm.DoubleMaximum open balance allowed. Exceeding it can block/warn on new documents.No
MaxCommitmentEdm.DoubleMaximum total commitment (open orders + open invoices).No
SalesPersonCodeEdm.Int32Default sales employee credited on the partner’s documents.No
DiscountPercentEdm.DoubleDefault customer/supplier discount.No
VatLiableSAPB1.BoVatStatusTax treatment (liable / exempt / EU).No
CurrentAccountBalanceEdm.DoubleCurrent open balance (read-only).Read-only

A missing CreditLimit means the company takes on unlimited risk; the wrong PayTermsGrpCode means invoices fall due at the wrong time.

Addresses

A BP can have many addresses โ€” several ship-to and several bill-to. On a document, the header’s ShipToCode / PayToCode select which one to use. Addresses live in the BPAddresses collection.

Field (on BPAddresses)TypeMeaning
AddressNameEdm.StringThe address code/label (what ShipToCode/PayToCode reference).
AddressTypeSAPB1.BoAddressTypebo_ShipTo (delivery) or bo_BillTo (billing).
StreetEdm.StringStreet line.
CityEdm.StringCity.
ZipCodeEdm.StringPostal code.
StateEdm.StringState / province code.
CountryEdm.StringCountry code.

A partner with no default addresses is a common cause of failed deliveries โ€” the document has nowhere to ship to or bill.

Contacts

Named people at the partner live in the ContactEmployees collection. The header’s ContactPersonCode selects one for a given document.

Field (on ContactEmployees)TypeMeaning
NameEdm.StringContact’s name (the code referenced by ContactPersonCode).
Phone1Edm.StringPrimary phone.
E_MailEdm.StringEmail address.
PositionEdm.StringJob title / role.
ActiveSAPB1.BoYesNoEnumWhether the contact is still active.

Common data problems

  • Duplicate records โ€” the same customer created twice under different CardCodes, splitting their history and balance.
  • Wrong CardType โ€” a supplier created as a customer (or vice versa); it cannot be corrected after transactions exist.
  • Missing default addresses โ€” deliveries fail with nowhere to ship.
  • No CreditLimit โ€” unlimited credit exposure.
  • Wrong PayTermsGrpCode โ€” invoices due at the wrong time.

Discovering user-defined fields

BPs commonly carry UDFs (User-Defined Fields), which appear with a U_ prefix. The BP table is OCRD; list its UDFs with:

GET /b1s/v1/UserFieldsMD?$filter=TableName eq 'OCRD'