Options
All
  • Public
  • Public/Protected
  • All
Menu

Business Partner Contact

Hierarchy

  • Entity
    • BusinessPartnerContact

Implements

Index

Properties

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 "*".

businessPartnerCompany

businessPartnerCompany: string

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

businessPartnerPerson

businessPartnerPerson: string

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

isStandardRelationship

isStandardRelationship: boolean

Standard Relationship. States whether the relationship is a standard relationship. If several relationships of the BP relationship category contact person have been defined for, you can set the indicator standard relationship for one of these relationships.A relationship that is marked as a standard relationship can be used whenA certain scenario automatically selects a contact personThe contact person responsible is not knownYou can give this indicator to only one business partner relationship of a BP relationship category for a particular period. Another relationship of the same relationship category can be indicated as the standard relationship only if the periods for the relationship do not overlap or coincide.

nullable

relationshipCategory

relationshipCategory: string

Business Partner Relationship Category. A relationship may exist between two business partners. The business partner relationship category characterizes the features of the relationship. A distinction is made between a one-way and an undirected business partner relationship category. In a one-way relationship category, the relationship extends from one partner to another, but not vice versa.Marriage (undirected)Employee (one-way)Contact person (one-way). Maximum length: 6.

nullable

relationshipNumber

relationshipNumber: string

BP Relationship Number. The business partner relationship number is an internal number that identifies the business partner relationship set. Maximum length: 12.

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

toContactAddress

toContactAddress: BpContactToAddress[]

One-to-many navigation property to the BpContactToAddress entity.

toContactRelationship

toContactRelationship: BpContactToFuncAndDept

One-to-one navigation property to the BpContactToFuncAndDept entity.

validityEndDate

validityEndDate: Moment

Validity Date (Valid To).

validityStartDate

validityStartDate: Moment

Validity Date (Valid From).

nullable

versionIdentifier

versionIdentifier: string

ETag version identifier accessor.

returns

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

Static BUSINESS_PARTNER_COMPANY

BUSINESS_PARTNER_COMPANY: StringField<BusinessPartnerContact> = new StringField('BusinessPartnerCompany', BusinessPartnerContact, 'Edm.String')

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

Static BUSINESS_PARTNER_PERSON

BUSINESS_PARTNER_PERSON: StringField<BusinessPartnerContact> = new StringField('BusinessPartnerPerson', BusinessPartnerContact, 'Edm.String')

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

Static IS_STANDARD_RELATIONSHIP

IS_STANDARD_RELATIONSHIP: BooleanField<BusinessPartnerContact> = new BooleanField('IsStandardRelationship', BusinessPartnerContact, 'Edm.Boolean')

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

Static RELATIONSHIP_CATEGORY

RELATIONSHIP_CATEGORY: StringField<BusinessPartnerContact> = new StringField('RelationshipCategory', BusinessPartnerContact, 'Edm.String')

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

Static RELATIONSHIP_NUMBER

RELATIONSHIP_NUMBER: StringField<BusinessPartnerContact> = new StringField('RelationshipNumber', BusinessPartnerContact, 'Edm.String')

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

Static TO_CONTACT_ADDRESS

TO_CONTACT_ADDRESS: Link<BusinessPartnerContact, BpContactToAddress> = new Link('to_ContactAddress', BusinessPartnerContact, BpContactToAddress)

Static representation of the one-to-many navigation property toContactAddress for query construction. Use to reference this property in query operations such as 'select' in the fluent request API.

Static TO_CONTACT_RELATIONSHIP

TO_CONTACT_RELATIONSHIP: OneToOneLink<BusinessPartnerContact, BpContactToFuncAndDept> = new OneToOneLink('to_ContactRelationship', BusinessPartnerContact, BpContactToFuncAndDept)

Static representation of the one-to-one navigation property toContactRelationship 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<BusinessPartnerContact> = new DateField('ValidityEndDate', BusinessPartnerContact, 'Edm.DateTime')

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<BusinessPartnerContact> = new DateField('ValidityStartDate', BusinessPartnerContact, 'Edm.DateTime')

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: (StringField<BusinessPartnerContact> | DateField<BusinessPartnerContact> | BooleanField<BusinessPartnerContact> | Link<BusinessPartnerContact, BpContactToAddress> | OneToOneLink<BusinessPartnerContact, BpContactToFuncAndDept>)[] = [BusinessPartnerContact.RELATIONSHIP_NUMBER,BusinessPartnerContact.BUSINESS_PARTNER_COMPANY,BusinessPartnerContact.BUSINESS_PARTNER_PERSON,BusinessPartnerContact.VALIDITY_END_DATE,BusinessPartnerContact.VALIDITY_START_DATE,BusinessPartnerContact.IS_STANDARD_RELATIONSHIP,BusinessPartnerContact.RELATIONSHIP_CATEGORY,BusinessPartnerContact.TO_CONTACT_ADDRESS,BusinessPartnerContact.TO_CONTACT_RELATIONSHIP]

All fields of the BusinessPartnerContact entity.

Static _defaultServicePath

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

Default url path for the according service.

Static _entityName

_entityName: string = "A_BusinessPartnerContact"

Technical entity name for BusinessPartnerContact.

Static _keyFields

_keyFields: Array<Selectable<BusinessPartnerContact>> = [BusinessPartnerContact.RELATIONSHIP_NUMBER, BusinessPartnerContact.BUSINESS_PARTNER_COMPANY, BusinessPartnerContact.BUSINESS_PARTNER_PERSON, BusinessPartnerContact.VALIDITY_END_DATE]

All key fields of the BusinessPartnerContact entity.

Static _keys

_keys: any = BusinessPartnerContact._keyFields.reduce((acc: any, field) => {acc[field.fieldName] = field;return acc;}, {})

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

Static _serviceName

_serviceName: string = "API_BUSINESS_PARTNER"

Technical service name for BusinessPartnerContact.

Methods

Protected getCurrentMapKeys

  • getCurrentMapKeys(): this
  • Returns this

getUpdatedProperties

  • getUpdatedProperties(): this
  • Returns all changed properties compared to the last known remote state.

    Returns this

    Entity with all properties that changed

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.

    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): this
  • Set the ETag version identifier of the retrieved entity.

    Parameters

    • etag: string

      The returned ETag version of the entity

    Returns this

    The entity itself, to facilitate method chaining

Static builder

Static Protected entityBuilder

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

    • EntityT: Entity

    • JsonT

    Parameters

    • entityConstructor: Constructable<EntityT>

    Returns EntityBuilderType<EntityT, JsonT>

Static requestBuilder

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

    Returns BusinessPartnerContactRequestBuilder

    A BusinessPartnerContact request builder.