Options
All
  • Public
  • Public/Protected
  • All
Menu

This class represents the entity "A_BusinessPartnerBank" of service "API_BUSINESS_PARTNER". This service is part of the following communication scenarios: Business Partner, Customer and Supplier Integration (SAP_COM_0008). See https://api.sap.com/api/API_BUSINESS_PARTNER for more information.

Hierarchy

  • Entity
    • BusinessPartnerBank

Implements

Index

Constructors

constructor

  • Returns BusinessPartnerBank

Properties

Protected _customFields

_customFields: MapType<any>

A mapper representing custom fields in an entity. Custom fields are represented by their field names and the corresponding values. A custom field can be added or updated using setCustomField method.

Protected _versionIdentifier

_versionIdentifier: string

The current ETag version of the entity in the remote system. The ETag identified the version of the in the remote system. It will be automatically set in the "if-match" header of update requests and can be set as a custom header for delete requests. When no ETag is provided by the remote system the value of this variable defaults to "*".

Optional authorizationGroup

authorizationGroup: undefined | string

Authorization Group. You can use authorization groups to stipulate which business partners a user is allowed to process. Use the following authorization object:'Business partners: authorization groups' (B_BUPA_GRP).The system only checks this authorization if you made an entry in the "Authorization group" field for the business partner. Otherwise, any user may process the business partner. Maximum length: 4.

nullable

Optional bankAccount

bankAccount: undefined | string

Bank Account Number. This field contains the number under which the account is managed at the bank. Maximum length: 18.

nullable

Optional bankAccountHolderName

bankAccountHolderName: undefined | string

Account Holder Name. Here you can enter another name that the payment program can use if the name of the account holder is not the same as the name of the Business Partner. Maximum length: 60.

nullable

Optional bankAccountName

bankAccountName: undefined | string

Name of Bank Account. Maximum length: 40.

nullable

Optional bankAccountReferenceText

bankAccountReferenceText: undefined | string

Reference Details for Bank Details. Additional details for the bank details of the business partner. In some countries the data for the bank details of the business partner (bank number, bank account number, name of the account holder) have to supplemented by other details in order to be able to use certain payment processes. This supplementary details are defined here.If additional data is required for the bank details for payment transactions in your country (see the following examples), enter the reference information.If for an automatic debit the bank requires the reference number of the collection authorization in Norway or Great Britain, specify this number here.In Great Britain when making payments to an account in a 'Building Society' you must specify which number payment recipient has. These details must be defined in the reference field, whereas the fields Bank Key and Account Number are to be used for the bank details of the 'Building Society'.In Great Britain when entering a building society account number, the name of the building society should also be maintained in the system. Maximum length: 20.

nullable

Optional bankControlKey

bankControlKey: undefined | string

Bank Control Key. Brazil, France, Spain, Portugal and Italy The field contains a check key for the combination bank number and bank account number.USAIn USA this field is used to differentiate between a savings and a current account (if no value is entered, the default value 01 is used).01 Current account02 Savings account03 Loan account04 General ledgerJapanIn Japan this field specifies the type of account. This information is is copied from the payment medium print program into payment medium. The following is an example of the account types used:01 FUTSU (similar to a savings account)02 TOUZA (similar to a current account)04 CHOCHIKU (similar to an investment account)09 Other types of bank accountsSouth AfricaIn South Africa this field specifies the type of account. The information entered here is forwarded to the bank that carries out the payment order. The following account types are permitted in ABC format:01 Current (Cheque) Account02 Savings Account03 Transmission Account04 Bond Account06 Subscription Share AccountArgentinaIn Argentina this field specifies the type of account:CC Current Account (Cuenta corriente)CA Saving Account (Caja de ahorro)CE Special Saving Account (Caja de ahorro especial)CS Salary Account (Cuenta sueldos)VenezuelaIn Venezuela this field specifies the type of account:CC Checking Account (Cuenta corriente)CA Saving Account (Cuenta de ahorro)CE Special Saving Account (Cuenta de ahorro especial)CS Salary Account (Cuenta sueldos)MexicoIn Mexico this field contains a two-digit key for classifying the bank account (for example, as a savings or current account). This key have different definitions, depending on the bank.NoteFor countries that are not listed here, this field can be used for account-specific information. Maximum length: 2.

nullable

Optional bankCountryKey

bankCountryKey: undefined | string

Bank Country Key. Identifies the country in which the bank is based. The country key determines according to which rules the remaining bank data (for example, bank number and bank account number) is checked. Maximum length: 3.

nullable

bankIdentification

bankIdentification: string

Bank details ID. Key identifying a business partner's bank details. Enter a bank details ID for each separate set of bank details for a business partner.Business Partner: H. MillerBD-ID Fin.institution Acct no. 0001 Chemical Bank, NYC 56234560002 Chemical Bank, NYC 56231220003 First Bank of Pittsburgh ...Business partner: T.Wolsey and Co.BD-ID Fin.institution Acct no.GIR0 Citibank, Charleston ...GIR1 Chemical Bank, NYC ... Maximum length: 4.

Optional bankName

bankName: undefined | string

Name of Bank. The name under which the bank operates. Maximum length: 60.

nullable

Optional bankNumber

bankNumber: undefined | string

Bank Key. The bank key (under which the bank data is stored in the appropriate country) is specified in this field. The country-specific meaning of this bank key is specified when defining country key.Normally banks have a bank number, which then also appears in the control data of the bank.In certain countries the bank account number assumes this function; in such a case there would be no bank numbers, the bank details are then under the account number.For data medium exchange it can be useful to be able create banks for foreign business partners without a bank number, even if the country in question has bank numbers. In such cases the bank key can be assigned internally.If the bank data is under another key, such as the SWIFT code for example, numbers can also be assigned externally. Maximum length: 15.

nullable

businessPartner

businessPartner: string

Business Partner Number. Key identifying a business partner in the SAP system. The key is unique within a client. Maximum length: 10.

Optional cityName

cityName: undefined | string

City. Name of the city as a part of the address. Maximum length: 35.

nullable

Optional collectionAuthInd

collectionAuthInd: undefined | false | true

Indicator: Collection Authorization. States that the bank has collection authorization from the business partner for the account. Set this indicator if the bank has collection authorization.Note for Accounts Receivable (FI-AR)If this indicator is not set, there is no bank collection.Note for Contract Accounts Receivable and Payable (FI-CA)This indicator is not relevant.

nullable

Optional iban

iban: undefined | string

IBAN (International Bank Account Number). A uniform standardized ID number for representing bank details that is in accordance with the ECBS (European Committee for Banking Standards). An IBAN has a maximum of 34 alphanumeric characters and is a combination of the following elements: Country key of the bank (ISO code)Two-digit check numberCountry-specific account number (in Germany this consists of the bank number and account number, in France the bank number, account number and check key).The IBAN not only makes international payments easier, in some countries it has advantages for domestic payments as well. Depending on the country, it can mean advantages for value and fees.The IBAN can be maintained in parallel with the bank details but does not replace them. It is stored under the master data of the business partner and can then be used when creating the payment medium.Since it is only the bank that has the account that may generate the IBAN corresponding to an account number, the SAP system only generates a proposal. You can confirm or change this proposal. If no proposal is generated, enter the IBAN manually.An IBAN in Belgium may look like this:Electronic Form:BE62510007547061Printed form, as it would appear on an invoice:IBAN BE62 5100 0754 7061. Maximum length: 34.

nullable

Optional ibanValidityStartDate

ibanValidityStartDate: Moment

Validity start of IBAN.

nullable

Protected remoteState

remoteState: object

The remote state of the entity. Remote state refers to the last known state of the entity on the remote system from which it has been retrieved or to which it has been posted. It is stored as map, where the keys are stored in the format of VDM properties.

Type declaration

  • [keys: string]: any

Optional swiftCode

swiftCode: undefined | string

SWIFT/BIC for International Payments. Uniquely identifies a bank throughout the world. SWIFT stands for Society for Worldwide Interbank Financial Telecommunication.BIC stands for Bank Identifier Code.This globally unique code can be used in international payment transactions to identify the bank without the need to specify an address or bank number. Specification of the SWIFT code/BIC is mainly relevant for automatic payment transactions. Maximum length: 11.

nullable

Optional validityEndDate

validityEndDate: Moment

Validity End of Business Partner Bank Details.

nullable

Optional validityStartDate

validityStartDate: Moment

Validity Start of Business Partner Bank Details.

nullable

versionIdentifier

versionIdentifier: string

ETag version identifier accessor.

returns

The ETag version identifier of the retrieved entity, returns undefined if not retrieved

Static ALL_FIELDS

ALL_FIELDS: AllFields<BusinessPartnerBank> = new AllFields('*', BusinessPartnerBank)

All fields selector.

Static AUTHORIZATION_GROUP

AUTHORIZATION_GROUP: StringField<BusinessPartnerBank> = new StringField('AuthorizationGroup', BusinessPartnerBank, 'Edm.String')

Static representation of the authorizationGroup property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static BANK_ACCOUNT

BANK_ACCOUNT: StringField<BusinessPartnerBank> = new StringField('BankAccount', BusinessPartnerBank, 'Edm.String')

Static representation of the bankAccount property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static BANK_ACCOUNT_HOLDER_NAME

BANK_ACCOUNT_HOLDER_NAME: StringField<BusinessPartnerBank> = new StringField('BankAccountHolderName', BusinessPartnerBank, 'Edm.String')

Static representation of the bankAccountHolderName property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static BANK_ACCOUNT_NAME

BANK_ACCOUNT_NAME: StringField<BusinessPartnerBank> = new StringField('BankAccountName', BusinessPartnerBank, 'Edm.String')

Static representation of the bankAccountName property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static BANK_ACCOUNT_REFERENCE_TEXT

BANK_ACCOUNT_REFERENCE_TEXT: StringField<BusinessPartnerBank> = new StringField('BankAccountReferenceText', BusinessPartnerBank, 'Edm.String')

Static representation of the bankAccountReferenceText property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static BANK_CONTROL_KEY

BANK_CONTROL_KEY: StringField<BusinessPartnerBank> = new StringField('BankControlKey', BusinessPartnerBank, 'Edm.String')

Static representation of the bankControlKey property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static BANK_COUNTRY_KEY

BANK_COUNTRY_KEY: StringField<BusinessPartnerBank> = new StringField('BankCountryKey', BusinessPartnerBank, 'Edm.String')

Static representation of the bankCountryKey property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static BANK_IDENTIFICATION

BANK_IDENTIFICATION: StringField<BusinessPartnerBank> = new StringField('BankIdentification', BusinessPartnerBank, 'Edm.String')

Static representation of the bankIdentification property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static BANK_NAME

BANK_NAME: StringField<BusinessPartnerBank> = new StringField('BankName', BusinessPartnerBank, 'Edm.String')

Static representation of the bankName property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static BANK_NUMBER

BANK_NUMBER: StringField<BusinessPartnerBank> = new StringField('BankNumber', BusinessPartnerBank, 'Edm.String')

Static representation of the bankNumber property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static BUSINESS_PARTNER

BUSINESS_PARTNER: StringField<BusinessPartnerBank> = new StringField('BusinessPartner', BusinessPartnerBank, 'Edm.String')

Static representation of the businessPartner property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static CITY_NAME

CITY_NAME: StringField<BusinessPartnerBank> = new StringField('CityName', BusinessPartnerBank, 'Edm.String')

Static representation of the cityName property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static COLLECTION_AUTH_IND

COLLECTION_AUTH_IND: BooleanField<BusinessPartnerBank> = new BooleanField('CollectionAuthInd', BusinessPartnerBank, 'Edm.Boolean')

Static representation of the collectionAuthInd property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static IBAN

IBAN: StringField<BusinessPartnerBank> = new StringField('IBAN', BusinessPartnerBank, 'Edm.String')

Static representation of the iban property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static IBAN_VALIDITY_START_DATE

IBAN_VALIDITY_START_DATE: DateField<BusinessPartnerBank> = new DateField('IBANValidityStartDate', BusinessPartnerBank, 'Edm.DateTime')

Static representation of the ibanValidityStartDate property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static SWIFT_CODE

SWIFT_CODE: StringField<BusinessPartnerBank> = new StringField('SWIFTCode', BusinessPartnerBank, 'Edm.String')

Static representation of the swiftCode property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static VALIDITY_END_DATE

VALIDITY_END_DATE: DateField<BusinessPartnerBank> = new DateField('ValidityEndDate', BusinessPartnerBank, 'Edm.DateTimeOffset')

Static representation of the validityEndDate property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static VALIDITY_START_DATE

VALIDITY_START_DATE: DateField<BusinessPartnerBank> = new DateField('ValidityStartDate', BusinessPartnerBank, 'Edm.DateTimeOffset')

Static representation of the validityStartDate property for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static _allFields

_allFields: Array<StringField<BusinessPartnerBank> | DateField<BusinessPartnerBank> | BooleanField<BusinessPartnerBank>> = [BusinessPartnerBank.BUSINESS_PARTNER,BusinessPartnerBank.BANK_IDENTIFICATION,BusinessPartnerBank.BANK_COUNTRY_KEY,BusinessPartnerBank.BANK_NAME,BusinessPartnerBank.BANK_NUMBER,BusinessPartnerBank.SWIFT_CODE,BusinessPartnerBank.BANK_CONTROL_KEY,BusinessPartnerBank.BANK_ACCOUNT_HOLDER_NAME,BusinessPartnerBank.BANK_ACCOUNT_NAME,BusinessPartnerBank.VALIDITY_START_DATE,BusinessPartnerBank.VALIDITY_END_DATE,BusinessPartnerBank.IBAN,BusinessPartnerBank.IBAN_VALIDITY_START_DATE,BusinessPartnerBank.BANK_ACCOUNT,BusinessPartnerBank.BANK_ACCOUNT_REFERENCE_TEXT,BusinessPartnerBank.COLLECTION_AUTH_IND,BusinessPartnerBank.CITY_NAME,BusinessPartnerBank.AUTHORIZATION_GROUP]

All fields of the BusinessPartnerBank entity.

Static _defaultServicePath

_defaultServicePath: string = "/sap/opu/odata/sap/API_BUSINESS_PARTNER"

Default url path for the according service.

Static _entityName

_entityName: string = "A_BusinessPartnerBank"

Technical entity name for BusinessPartnerBank.

Static _keyFields

_keyFields: Array<Selectable<BusinessPartnerBank>> = [BusinessPartnerBank.BUSINESS_PARTNER, BusinessPartnerBank.BANK_IDENTIFICATION]

All key fields of the BusinessPartnerBank entity.

Static _keys

_keys: object = BusinessPartnerBank._keyFields.reduce((acc: { [keys: string]: Selectable<BusinessPartnerBank> }, field: Selectable<BusinessPartnerBank>) => {acc[field.fieldName] = field;return acc;}, {})

Mapping of all key field names to the respective static field property BusinessPartnerBank.

Type declaration

Static _serviceName

_serviceName: string = "API_BUSINESS_PARTNER"
deprecated

Since v1.0.1 Use _defaultServicePath instead. Technical service name for BusinessPartnerBank.

Methods

Protected getCurrentMapKeys

  • getCurrentMapKeys(): Entity
  • Returns a map of all defined fields in entity to their current values.

    Returns Entity

    Entity with all defined entity fields

getCustomField

  • getCustomField(fieldName: string): any
  • Custom field value getter.

    Parameters

    • fieldName: string

      The name of the custom field

    Returns any

    The value of the corresponding custom field

getCustomFields

  • getCustomFields(): MapType<any>
  • Returns a map that contains all entity custom fields.

    Returns MapType<any>

    A map of all defined custom fields in the entity

getUpdatedCustomFields

  • getUpdatedCustomFields(): MapType<any>
  • Returns all updated custom field properties compared to the last known remote state.

    Returns MapType<any>

    A map containing all updated custom properties, with their new values

getUpdatedProperties

  • getUpdatedProperties(): Entity
  • Returns all changed properties compared to the last known remote state. The returned properties does not include custom fields. Use getUpdatedCustomFields, if updated custom fields are needed.

    Returns Entity

    Entity with all properties that changed

hasCustomField

  • hasCustomField(fieldName: string): boolean
  • Validates whether a custom field exists in the entity.

    Parameters

    • fieldName: string

      The name of the custom field to update

    Returns boolean

    A boolean value, that indicates whether a custom field is defined in entity

initializeCustomFields

  • initializeCustomFields(customFields: MapType<any>): this
  • Sets all retrieved custom fields in entity.

    Parameters

    • customFields: MapType<any>

      Extracted custom fields from a retrieved entity

    Returns this

    A boolean value, that indicates the existence of the field in entity

Protected isConflictingCustomField

  • isConflictingCustomField(customFieldName: string): boolean
  • Validates whether a field name does not conflict with an original field name and thus can be defined as custom fields.

    Parameters

    • customFieldName: string

      Field name to check

    Returns boolean

    Boolean value that describes whether a field name can be defined as custom field

setCustomField

  • setCustomField(fieldName: string, value: any): this
  • Sets a new custom field in the entity or updates it. Throws an error, if the provided custom field name is already defined by an original field in entity.

    Parameters

    • fieldName: string

      The name of the custom field to update

    • value: any

      The value of the field

    Returns this

    The entity itself, to facilitate method chaining

setOrInitializeRemoteState

  • setOrInitializeRemoteState(state?: MapType<any>): this
  • Initializes or sets the remoteState of the entity. This function is called on all read, create and update requests. This function should be called after initializeCustomFields, if custom fields are defined.

    Parameters

    • Optional state: MapType<any>

      State to be set as remote state

    Returns this

    The entity itself, to facilitate method chaining

setVersionIdentifier

  • setVersionIdentifier(etag: string | undefined): this
  • Set the ETag version identifier of the retrieved entity.

    Parameters

    • etag: string | undefined

      The returned ETag version of the entity

    Returns this

    The entity itself, to facilitate method chaining

toJSON

  • toJSON(): object
  • Overwrites the default toJSON method so that all instance variables as well as all custom fields of the entity are returned.

    Returns object

    An object containing all instance variables + custom fields.

    • [key: string]: any

Static builder

Static customField

  • Returns a selectable object that allows the selection of custom field in a get request for the entity BusinessPartnerBank.

    Parameters

    • fieldName: string

      Name of the custom field to select

    Returns CustomField<BusinessPartnerBank>

    A builder that constructs instances of entity type BusinessPartnerBank.

Static Protected customFieldSelector

  • customFieldSelector<EntityT>(fieldName: string, entityConstructor: Constructable<EntityT>): CustomField<EntityT>
  • Type parameters

    • EntityT: Entity

    Parameters

    • fieldName: string
    • entityConstructor: Constructable<EntityT>

    Returns CustomField<EntityT>

Static Protected entityBuilder

  • entityBuilder<EntityT, EntityTypeForceMandatoryT>(entityConstructor: Constructable<EntityT, EntityTypeForceMandatoryT>): EntityBuilderType<EntityT, EntityTypeForceMandatoryT>
  • Type parameters

    • EntityT: Entity

    • EntityTypeForceMandatoryT

    Parameters

    • entityConstructor: Constructable<EntityT, EntityTypeForceMandatoryT>

    Returns EntityBuilderType<EntityT, EntityTypeForceMandatoryT>

Static requestBuilder

  • Returns a request builder to construct requests for operations on the BusinessPartnerBank entity type.

    Returns BusinessPartnerBankRequestBuilder

    A BusinessPartnerBank request builder.