Options
All
  • Public
  • Public/Protected
  • All
Menu

This class represents the entity "A_SalesOrder" of service "API_SALES_ORDER_SRV". This service is part of the following communication scenarios: Sales Order Integration (SAP_COM_0109). See https://api.sap.com/api/API_SALES_ORDER_SRV for more information.

Hierarchy

  • Entity
    • SalesOrder

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • Returns SalesOrder

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 assignmentReference

assignmentReference: undefined | string

Assignment number. The allocation is additional information in the customer line item of the journal entry. The line items of an account are displayed in sort sequence according to the content of the field.The allocation number is set in the billing document in accordance with control in document flow and transferred to the financial journal entry.It is possible to set the customer purchase order number, the customer order number, the delivery number or the external delivery number as allocation numbers.The field is a separating criterion in the billing document. Maximum length: 18.

nullable

Optional completeDeliveryIsDefined

completeDeliveryIsDefined: undefined | false | true

Complete Delivery Defined for Each Sales Order?. Indicates whether a sales order must be delivered completely in a single delivery or whether the order can be partially delivered and completed over a number of deliveries.

nullable

Optional createdByUser

createdByUser: undefined | string

Name of Person Who Created Object. Maximum length: 12.

nullable

Optional creationDate

creationDate: Moment

Date on Which Record Was Created.

nullable

Optional customerPaymentTerms

customerPaymentTerms: undefined | string

Terms of Payment Key. Key for defining payment terms composed of cash discount percentages and payment periods. It is used in sales orders, purchase orders, and invoices. Terms of payment provide information for:Cash managementDunning proceduresPayment transactionsData can be entered in the field for the terms of payment key in various ways as you enter a business transaction:In most business transactions, the system defaults the key specified in the master record of the customer/vendor in question.In some transactions (for example, credit memos), however, the system does not default the key from the master record. Despite this, you can use the key from the customer/vendor master record by entering "*" in the field.Regardless of whether or not a key is defaulted from the master record, you can manually enter a key during document entry at:item level in sales ordersheader level in purchase orders and invoicesMaster records have separate areas for Financial Accounting, Sales, and Purchasing. You can specify different terms of payment keys in each of these areas. When you then enter a business transaction, the application in question will use the key specified in its area of the master record. Maximum length: 4.

nullable

Optional customerPurchaseOrderDate

customerPurchaseOrderDate: Moment

Customer Reference Date. The date that appears on the customer's purchase order. This date can be, for example, the date on which the customer created the purchase order.

nullable

Optional customerPurchaseOrderType

customerPurchaseOrderType: undefined | string

Customer Purchase Order Type. The way in which the sales document (the inquiry or sales order, for example) arrives from the customer. You can record here whether the sales document arrived, for example, by telephone, mail, or fax.Enter one of the values predefined for your system. Maximum length: 4.

nullable

Optional customerTaxClassification1

customerTaxClassification1: undefined | string

Alternative Tax Classification. Indicates whether the system takes account of taxes that are related to the customer for pricing (such as value-added tax). The system copies the tax classification from the tax information stored in the customer master record of the goods recipient. During pricing, the system uses the tax classification and the country key (which identifies the customer location) to determine the relevant taxes. You can enter a different (alternative) tax classification in the order. Maximum length: 1.

nullable

Optional deliveryBlockReason

deliveryBlockReason: undefined | string

Delivery Block (Document Header). Indicates if an entire sales document (a sales order, for example) is blocked for delivery. The system can propose a delivery block on header level according to sales document type. Users can also enter a block manually. A block in the header applies to the entire sales document.The system only proposes a delivery block at header level if delivery blocks have been assigned to the corresponding delivery type using the Define Reasons for Blocking in Shipping and the Assign Blocking Reasons to Delivery Types configuration steps.Additional InformationUsers can also block a sales document manually at schedule line level.The settings made in these configuration steps do not influence any delivery blocks set at schedule line level.The system can block delivery automatically for certain sales document types (for example, sales orders without charge) where it is important that someone checks the details before shipping takes place. Maximum length: 2.

nullable

Optional distributionChannel

distributionChannel: undefined | string

Distribution Channel. The way in which products or services reach the customer. Typical examples of distribution channels are wholesale, retail, or direct sales. You can maintain information about customers and materials by sales organization and distribution channel. Within a sales organization you can deliver goods to a given customer through more than one distribution channel.You can assign a distribution channel to one or more sales organizations. If, for example, you have numerous sales organizations, each sales organization may use the "Wholesale" distribution channel.For each combination of sales organization and distribution channel, you can further assign one or more of the divisions that are defined for the sales organization. You can, for example, assign "Food" and "Non-food" divisions to the "Wholesale" distribution channel. A particular combination of sales organization, distribution channel, and division is known as a sales area. Maximum length: 2.

nullable

Optional headerBillingBlockReason

headerBillingBlockReason: undefined | string

Billing Block in SD Document. Indicates if the entire sales document is blocked for billing. The system can propose the billing block according to the type of sales document. The billing block applies to the entire document. You can block or unblock the entire document manually in the header. If you want to block only a particular item, enter a value at the item level.You may want to apply a billing block to certain documents so that prices can be checked before further processing. Maximum length: 2.

nullable

Optional incotermsClassification

incotermsClassification: undefined | string

Incoterms (Part 1). Commonly used trading terms that comply with the standards established by the International Chamber of Commerce (ICC). Incoterms specify internationally recognized procedures that the shipper and the receiving party must follow for the shipping transaction to be completed successfully.If goods are shipped through a port of departure, the appropriate Incoterm might be: FOB ("Free On Board"). You can provide further details (for example, the name of the port) in the secondary Incoterm field: FOB Boston, for example. Maximum length: 3.

nullable

Optional incotermsLocation1

incotermsLocation1: undefined | string

Incoterms Location 1. Provides additional information for the primary Incoterm. For Incoterms 2010, this field represents:

  1. For sea and inland waterway transport - Port of Shipment2. For any mode of transport - Place of Delivery 2010Incoterms are divided as follows:Group 1: Rules for any mode or modes of transport (including by vessel)Incoterms Incoterms Description Location 1 EXW Ex Works Place of DeliveryFCA Free Carrier Place of DeliveryCPT Carriage Paid To Place of DestinationCIP Carriage & Insurance Paid To Place of DestinationDAF Delivered at Frontier Place of DeliveryDDP Delivered Duty Paid Place of DestinationDDU Delivered Duty Unpaid Place of DestinationGroup 2: Rules for sea and inland waterwaysIncoterms Incoterms Description Location 1 FAS Free Alongside Ship Port of ShipmentFOB Free On Board Port of ShipmentCFR Cost & Freight Port of DestinationCIF Cost Insurance & Freight Port of DestinationDEQ Delivered Eq Quay (Duty Paid) Port of DestinationDES Delivered Ex Ship Port of DestinationIf the primary incoterm is specified as FOB “Free on Board”, the second field provides details of the port from which the delivery leaves, such as FOB Boston. Maximum length: 70.
nullable

Optional incotermsLocation2

incotermsLocation2: undefined | string

Incoterms Location 2. Provides additional information for the Incoterms. This field is only available for C-Clauses (if customized appropriately). Note the following for the incoterms versions below: No Version:This field is disabledIncoterm Version 2000This field is disabled as part of standard delivery unless a customer decides to enable it by the way of Customizing for Sales and Distribution under Master Data -> Business Partners -> Customers -> Billing Document -> Incoterms -> Map Incoterms to Versions.Incoterm Version 2010For this version, the field represents:Sea and inland waterway transport - Port of DestinationAny mode of transport - Place of Destination2010 Incoterms are divided as follows:Group 1: Rules for any mode or modes of transport (including by vessel)Incoterms Incoterms Description Location 2CPT Carriage Paid To Place of DestinationCIP Carriage & Insurance Paid To Place of DestinationGroup 2: Rules for sea and inland waterwaysIncoterms Incoterms Description Location 2CFR Cost & Freight Port of DestinationCIF Cost Insurance & Freight Port of Destination. Maximum length: 70.

nullable

Optional incotermsTransferLocation

incotermsTransferLocation: undefined | string

Incoterms (Part 2). Additional information for the primary Incoterm. If the primary Incoterm is, for example, FOB ("Free on Board"), then the second field provides details of the port from which the delivery leaves (for example, "FOB Boston"). Maximum length: 28.

nullable

Optional incotermsVersion

incotermsVersion: undefined | string

Incoterms Version. An incoterms version is an edition containing a list of international terms for transportation that is defined by the International Chamber of Commerce (ICC). Maximum length: 4.

nullable

Optional lastChangeDate

lastChangeDate: Moment

Date of Last Change.

nullable

Optional lastChangeDateTime

lastChangeDateTime: Moment

UTC Time Stamp in Long Form (YYYYMMDDhhmmssmmmuuun). The UTC timestamp displays date and time according to UTC (Universal Coordinated Time). In order to convert local time into a UTC time stamp, which makes it easier to compare times, the local time must be converted according to your time zone. The ABAP command convert is available for this purpose.Even if the time zone that the conversion is based on can be redetermined from Customizing or master data, we still recommend that you save the time zone.The internal structure of the high-resolution UTC time stamp is logically organized in date and time sections in a packed decimal format (YYYYMMDDhhmmssmmmuuun), which depicts the year, month, day, hour,second, millisecond, microsecond and the first decimal of the nanoseconds. Please note that the hardware that is normally used does not fully support a resolution of 100 nanoseconds, which is available in the structure.See also GET TIME STAMPA UTC time stamp in short form is also available.

nullable

Optional organizationDivision

organizationDivision: undefined | string

Division. A way of grouping materials, products, or services. The system uses divisions to determine the sales areas and the business areas for a material, product, or service. A product or service is always assigned to just one division. From the point of view of sales and distribution, the use of divisions lets you organize your sales structure around groups of similar products or product lines. This allows the people in a division who process orders and service customers to specialize within a manageable area of expertise.If a sales organization sells food and non-food products through both retail and wholesaledistribution channels each distribution channel could then be further split into food and non-food divisions. Maximum length: 2.

nullable

Optional overallSdDocumentRejectionSts

overallSdDocumentRejectionSts: undefined | string

Overall Rejection Status of All Document Items. Displays the rejection status of the entire sales document. The system determines the total status from the status of all individual items in the sales document. The status message tells you whether the sales document has been partially or completely rejected or whether nothing has been rejected. Maximum length: 1.

nullable

Optional overallSdProcessStatus

overallSdProcessStatus: undefined | string

Overall Processing Status of Document. The processing status of the entire sales document. The system determines the status of the entire sales document by taking into account the status of all header-related information and the status of all individual items. The status message tells you whether processing of the sales document is open, in progress, or complete. Maximum length: 1.

nullable

Optional overallTotalDeliveryStatus

overallTotalDeliveryStatus: undefined | string

Overall Delivery Status for all Items. Maximum length: 1.

nullable

Optional paymentMethod

paymentMethod: undefined | string

Payment Method. Payment method with which this item is to be paid. If you enter a payment method, then only this payment method can be used in automatic payment transactions. Unless you enter a payment method, one of the payment methods that was allowed in the master record is selected in the payment program according to specified rules.For document entry or document changes, you only enter a payment method if you want to switch off the automatic payment method selection of the payment program. Maximum length: 1.

nullable

Optional pricingDate

pricingDate: Moment

Date for Pricing and Exchange Rate. The date that determines date-related pricing elements, such as conditions and foreign exchange rate. You can use the pricing date as a selection criterion when you process billing documents collectively.The system proposes the current date. You can change it manually in the document. If you change the pricing date, the system recalculates pricing for the entire document. If the date is in the past, you receive a warning before you can continue.Determining the ProposalIn the order: You can customize the order type to determine a proposal, such as the current date or the requested delivery date as the pricing date.In the billing document: The billing date is proposed as the pricing date.

nullable

Optional purchaseOrderByCustomer

purchaseOrderByCustomer: undefined | string

Customer Reference. Number that the customer uses to uniquely identify a purchasing document (e.g. an inquiry or a purchase order). The number creates the link between the customer purchase order and the sales document that you create. You can use the number used by the customer during correspondence with the customer to find certain document information. If the number refers to a purchase order, you can also print it on the documents that you send to the customer (e.g. on the delivery note). Maximum length: 35.

nullable

Optional referenceSdDocument

referenceSdDocument: undefined | string

Document Number of the Reference Document. Identifies the sales order to which the delivery refers. Maximum length: 10.

nullable

Optional referenceSdDocumentCategory

referenceSdDocumentCategory: undefined | string

Document Category of Preceding SD Document. Specifies the sales document category of the preceding sales, delivery, or billing document. Maximum length: 4.

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 requestedDeliveryDate

requestedDeliveryDate: Moment

Requested Delivery Date. The date that the system automatically suggests as the delivery date for schedule lines when you create further items in the sales document. As a rule, the system suggests the current date. However, if you change the requested delivery date in the header (for example, to a future date), and then create a new item, the system proposes the new date for any schedule lines you create. If you change the date of an existing schedule line, the system advises you that it will only apply the new date to further schedule lines you create and will not change the dates of other existing schedule lines.

nullable

Optional salesDistrict

salesDistrict: undefined | string

Sales District. A geographical sales district or region. Each customer can be assigned to a sales district. You can use sales districts to apply pricing conditions. When you want to generate sales statistics, you can use sales districts as a selection criteria.The system can propose a value from the customer master record of the sold-to party. You can change the value manually in the document at the header or item level. Maximum length: 6.

nullable

Optional salesDocApprovalStatus

salesDocApprovalStatus: undefined | string

Sales Document Approval Status. States whether a sales document is relevant for approvals and, if so, which approval stage it is in. Maximum length: 1.

nullable

Optional salesGroup

salesGroup: undefined | string

Sales Group. A group of sales people who are responsible for processing sales of certain products or services. By using sales groups you can designate different areas of responsibility within a sales office. When you generate sales statistics, you can use the sales group as one of the selection criteria.If sales office personnel service both retail and wholesale markets, you can assign a sales group to each market.You assign each salesperson to a sales group in his or her user master record. You assign each customer to a particular sales group in the customer's master record. Maximum length: 3.

nullable

Optional salesOffice

salesOffice: undefined | string

Sales Office. A physical location (for example, a branch office) that has responsibility for the sale of certain products or services within a given geographical area. When you create sales statistics, you can use a sales office as one of the selection criteria. When you print out order confirmations, you can include the address of the sales office.You can assign each customer to a sales office in the customer master record.Within a sales office you can establish sales groups (for example, departments) with specific sales responsibilities. Each person who works in the sales office can be assigned to a sales group in his or her user master record. Each customer can also be assigned to a particular sales group in the customer master record. Maximum length: 4.

nullable

salesOrder

salesOrder: string

Sales Order. Maximum length: 10.

Optional salesOrderApprovalReason

salesOrderApprovalReason: undefined | string

Approval Request Reason ID. States in which cases an approval is needed. Whenever an approval request reason is set and the corresponding workflow is defined, the sales document is considered relevant for approvals. The approval request reason consists of an ID and a description.You define that for customer ABC, sales quotations always have to be approved. The system automatically sets this reason when a sales quotation for this customer is created. It cannot be released without sending it to an approver first. Maximum length: 4.

nullable

Optional salesOrderDate

salesOrderDate: Moment

Document Date (Date Received/Sent). The date on which you want the sales document (the sales order, for example) to become effective for sales management purposes. When you want to generate a list of sales documents or sales statistics, the document date you enter determines which sales documents are selected. You can define the document date to meet the needs of your organization.For sales orders, for example, you can define the document date as the date when the order actually arrives at your offices. Alternatively, you could define it as the date when the order was written up by a field sales representative.The system proposes the current date. You can change it manually in the sales document.

nullable

Optional salesOrderType

salesOrderType: undefined | string

Sales Order Type. Maximum length: 4.

nullable

Optional salesOrganization

salesOrganization: undefined | string

Sales Organization. An organizational unit responsible for the sale of certain products or services. The responsibility of a sales organization may include legal liability for products and customer claims. You can assign any number of distribution channels and divisions to a sales organization. A particular combination of sales organization, distribution channel, and division is known as a sales area. Maximum length: 4.

nullable

Optional sdDocumentReason

sdDocumentReason: undefined | string

Order Reason (Reason for the Business Transaction). Indicates the reason for creating the sales document. You can freely define order reasons according to the needs of your organization. When you generate sales statistics, you can use the order reason as one of the selection criteria.Enter one of the values predefined for your system. If you are creating a credit or debit memo request, you must enter an order reason.If the order reason specifies, for example, that a customer placed a sales order as a result of contact at a trade fair, you can later generate statistics for all sales orders that were placed at trade fairs. Maximum length: 3.

nullable

Optional shippingCondition

shippingCondition: undefined | string

Shipping Conditions. General shipping strategy for the delivery of goods from the vendor to the customer. You can define shipping conditions in your system which correspond to the requirements of your company. You can specify a shipping condition in the customer master and in the vendor master.Shipping point determination (outbound delivery):The loading group, the plant and the shipping condition determine the shipping point that will be proposed by the system.Route determination (outbound delivery):Apart from the country and the geographical region of the shipping point, the ship-to party and the transportation group, the shipping condition determines the route that the system proposes in the order for the delivery of the goods. In the delivery, the route proposal also takes the weight group into account.A particular customer always requires immediate delivery. You enter the appropriate shipping condition into the customer master record. This means that when you process orders for this customer, the system automatically proposes the express mail room as a shipping point and the quickest way to the airport as a route.If a shipping condition has been assigned to a sales document type in Customizing, this condition will be proposed by the system in the corresponding sales document. If there is no assignment, the system copies the relevant data from the corresponding customer master record of the sold-to party. You cannot change this value during delivery processing. The shipping condition will not be copied from the delivery into the shipment. The shipping condition is one of several criteria for selecting deliveries when you create a shipment. You can enter a shipping condition manually in the shipment where it only serves as a characteristic for grouping shipments. Maximum length: 2.

nullable

Optional shippingType

shippingType: undefined | string

Shipping Type. Shipping type (for example, by road or rail) that has been selected for the transportation of the goods for the shipment legs. During automatic shipment leg determination, all legs created or only the main, direct, or return legs are assigned to this shipping type, depending on the type of leg determination.You can enter the shipment type for the main, direct or return legs in the shipping header. The value is proposed depending on the requirement in the shipment type.By setting the status "planned", you have the shipping type copied from the respective deliveries into the shipment header, provided:The shipping type is identical in all the deliveries.The shipping type in the shipment header is not already filled.See also: Leg determination. Maximum length: 2.

nullable

Optional soldToParty

soldToParty: undefined | string

Sold-To Party. The customer who orders the goods or services. The sold-to party is contractually responsible for sales orders. Maximum length: 10.

nullable

Optional taxDepartureCountry

taxDepartureCountry: undefined | string

Tax Departure Country. For tax determination, the country of departure is used as the plant country. A different country needs to be entered for certain internal European transactions (chain transactions). Maximum length: 3.

nullable

toItem

toItem: SalesOrderItem[]

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

toPartner

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

toPaymentPlanItemDetails

toPaymentPlanItemDetails: SlsOrdPaymentPlanItemDetails[]

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

toPricingElement

toPricingElement: SalesOrderHeaderPrElement[]

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

toText

toText: SalesOrderText[]

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

Optional totalCreditCheckStatus

totalCreditCheckStatus: undefined | string

Overall Status of Credit Checks. Maximum length: 1.

nullable

Optional totalNetAmount

totalNetAmount: BigNumber

Net Value of the Sales Order in Document Currency. The total value of all items in the sales document, after any discounts and surcharges are taken into account. The value is expressed in the document currency.

nullable

Optional transactionCurrency

transactionCurrency: undefined | string

SD document currency. The currency that applies to the document (for example, to a sales order or an invoice). The system proposes the document currency from the customer master record of the sold-to party. You can change the currency manually in the document. If you change the currency, the system recalculates prices for the entire document. Maximum length: 5.

nullable

Optional vatRegistrationCountry

vatRegistrationCountry: undefined | string

Tax Destination Country. For tax determination, the country of the ship-to party is used as the tax country of destination. A different country needs to be entered for certain internal European transactions (chain transactions). Maximum length: 3.

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<SalesOrder> = new AllFields('*', SalesOrder)

All fields selector.

Static ASSIGNMENT_REFERENCE

ASSIGNMENT_REFERENCE: StringField<SalesOrder> = new StringField('AssignmentReference', SalesOrder, 'Edm.String')

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

Static COMPLETE_DELIVERY_IS_DEFINED

COMPLETE_DELIVERY_IS_DEFINED: BooleanField<SalesOrder> = new BooleanField('CompleteDeliveryIsDefined', SalesOrder, 'Edm.Boolean')

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

Static CREATED_BY_USER

CREATED_BY_USER: StringField<SalesOrder> = new StringField('CreatedByUser', SalesOrder, 'Edm.String')

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

Static CREATION_DATE

CREATION_DATE: DateField<SalesOrder> = new DateField('CreationDate', SalesOrder, 'Edm.DateTime')

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

Static CUSTOMER_PAYMENT_TERMS

CUSTOMER_PAYMENT_TERMS: StringField<SalesOrder> = new StringField('CustomerPaymentTerms', SalesOrder, 'Edm.String')

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

Static CUSTOMER_PURCHASE_ORDER_DATE

CUSTOMER_PURCHASE_ORDER_DATE: DateField<SalesOrder> = new DateField('CustomerPurchaseOrderDate', SalesOrder, 'Edm.DateTime')

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

Static CUSTOMER_PURCHASE_ORDER_TYPE

CUSTOMER_PURCHASE_ORDER_TYPE: StringField<SalesOrder> = new StringField('CustomerPurchaseOrderType', SalesOrder, 'Edm.String')

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

Static CUSTOMER_TAX_CLASSIFICATION_1

CUSTOMER_TAX_CLASSIFICATION_1: StringField<SalesOrder> = new StringField('CustomerTaxClassification1', SalesOrder, 'Edm.String')

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

Static DELIVERY_BLOCK_REASON

DELIVERY_BLOCK_REASON: StringField<SalesOrder> = new StringField('DeliveryBlockReason', SalesOrder, 'Edm.String')

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

Static DISTRIBUTION_CHANNEL

DISTRIBUTION_CHANNEL: StringField<SalesOrder> = new StringField('DistributionChannel', SalesOrder, 'Edm.String')

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

Static HEADER_BILLING_BLOCK_REASON

HEADER_BILLING_BLOCK_REASON: StringField<SalesOrder> = new StringField('HeaderBillingBlockReason', SalesOrder, 'Edm.String')

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

Static INCOTERMS_CLASSIFICATION

INCOTERMS_CLASSIFICATION: StringField<SalesOrder> = new StringField('IncotermsClassification', SalesOrder, 'Edm.String')

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

Static INCOTERMS_LOCATION_1

INCOTERMS_LOCATION_1: StringField<SalesOrder> = new StringField('IncotermsLocation1', SalesOrder, 'Edm.String')

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

Static INCOTERMS_LOCATION_2

INCOTERMS_LOCATION_2: StringField<SalesOrder> = new StringField('IncotermsLocation2', SalesOrder, 'Edm.String')

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

Static INCOTERMS_TRANSFER_LOCATION

INCOTERMS_TRANSFER_LOCATION: StringField<SalesOrder> = new StringField('IncotermsTransferLocation', SalesOrder, 'Edm.String')

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

Static INCOTERMS_VERSION

INCOTERMS_VERSION: StringField<SalesOrder> = new StringField('IncotermsVersion', SalesOrder, 'Edm.String')

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

Static LAST_CHANGE_DATE

LAST_CHANGE_DATE: DateField<SalesOrder> = new DateField('LastChangeDate', SalesOrder, 'Edm.DateTime')

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

Static LAST_CHANGE_DATE_TIME

LAST_CHANGE_DATE_TIME: DateField<SalesOrder> = new DateField('LastChangeDateTime', SalesOrder, 'Edm.DateTimeOffset')

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

Static ORGANIZATION_DIVISION

ORGANIZATION_DIVISION: StringField<SalesOrder> = new StringField('OrganizationDivision', SalesOrder, 'Edm.String')

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

Static OVERALL_SD_DOCUMENT_REJECTION_STS

OVERALL_SD_DOCUMENT_REJECTION_STS: StringField<SalesOrder> = new StringField('OverallSDDocumentRejectionSts', SalesOrder, 'Edm.String')

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

Static OVERALL_SD_PROCESS_STATUS

OVERALL_SD_PROCESS_STATUS: StringField<SalesOrder> = new StringField('OverallSDProcessStatus', SalesOrder, 'Edm.String')

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

Static OVERALL_TOTAL_DELIVERY_STATUS

OVERALL_TOTAL_DELIVERY_STATUS: StringField<SalesOrder> = new StringField('OverallTotalDeliveryStatus', SalesOrder, 'Edm.String')

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

Static PAYMENT_METHOD

PAYMENT_METHOD: StringField<SalesOrder> = new StringField('PaymentMethod', SalesOrder, 'Edm.String')

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

Static PRICING_DATE

PRICING_DATE: DateField<SalesOrder> = new DateField('PricingDate', SalesOrder, 'Edm.DateTime')

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

Static PURCHASE_ORDER_BY_CUSTOMER

PURCHASE_ORDER_BY_CUSTOMER: StringField<SalesOrder> = new StringField('PurchaseOrderByCustomer', SalesOrder, 'Edm.String')

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

Static REFERENCE_SD_DOCUMENT

REFERENCE_SD_DOCUMENT: StringField<SalesOrder> = new StringField('ReferenceSDDocument', SalesOrder, 'Edm.String')

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

Static REFERENCE_SD_DOCUMENT_CATEGORY

REFERENCE_SD_DOCUMENT_CATEGORY: StringField<SalesOrder> = new StringField('ReferenceSDDocumentCategory', SalesOrder, 'Edm.String')

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

Static REQUESTED_DELIVERY_DATE

REQUESTED_DELIVERY_DATE: DateField<SalesOrder> = new DateField('RequestedDeliveryDate', SalesOrder, 'Edm.DateTime')

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

Static SALES_DISTRICT

SALES_DISTRICT: StringField<SalesOrder> = new StringField('SalesDistrict', SalesOrder, 'Edm.String')

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

Static SALES_DOC_APPROVAL_STATUS

SALES_DOC_APPROVAL_STATUS: StringField<SalesOrder> = new StringField('SalesDocApprovalStatus', SalesOrder, 'Edm.String')

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

Static SALES_GROUP

SALES_GROUP: StringField<SalesOrder> = new StringField('SalesGroup', SalesOrder, 'Edm.String')

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

Static SALES_OFFICE

SALES_OFFICE: StringField<SalesOrder> = new StringField('SalesOffice', SalesOrder, 'Edm.String')

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

Static SALES_ORDER

SALES_ORDER: StringField<SalesOrder> = new StringField('SalesOrder', SalesOrder, 'Edm.String')

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

Static SALES_ORDER_APPROVAL_REASON

SALES_ORDER_APPROVAL_REASON: StringField<SalesOrder> = new StringField('SalesOrderApprovalReason', SalesOrder, 'Edm.String')

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

Static SALES_ORDER_DATE

SALES_ORDER_DATE: DateField<SalesOrder> = new DateField('SalesOrderDate', SalesOrder, 'Edm.DateTime')

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

Static SALES_ORDER_TYPE

SALES_ORDER_TYPE: StringField<SalesOrder> = new StringField('SalesOrderType', SalesOrder, 'Edm.String')

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

Static SALES_ORGANIZATION

SALES_ORGANIZATION: StringField<SalesOrder> = new StringField('SalesOrganization', SalesOrder, 'Edm.String')

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

Static SD_DOCUMENT_REASON

SD_DOCUMENT_REASON: StringField<SalesOrder> = new StringField('SDDocumentReason', SalesOrder, 'Edm.String')

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

Static SHIPPING_CONDITION

SHIPPING_CONDITION: StringField<SalesOrder> = new StringField('ShippingCondition', SalesOrder, 'Edm.String')

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

Static SHIPPING_TYPE

SHIPPING_TYPE: StringField<SalesOrder> = new StringField('ShippingType', SalesOrder, 'Edm.String')

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

Static SOLD_TO_PARTY

SOLD_TO_PARTY: StringField<SalesOrder> = new StringField('SoldToParty', SalesOrder, 'Edm.String')

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

Static TAX_DEPARTURE_COUNTRY

TAX_DEPARTURE_COUNTRY: StringField<SalesOrder> = new StringField('TaxDepartureCountry', SalesOrder, 'Edm.String')

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

Static TOTAL_CREDIT_CHECK_STATUS

TOTAL_CREDIT_CHECK_STATUS: StringField<SalesOrder> = new StringField('TotalCreditCheckStatus', SalesOrder, 'Edm.String')

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

Static TOTAL_NET_AMOUNT

TOTAL_NET_AMOUNT: BigNumberField<SalesOrder> = new BigNumberField('TotalNetAmount', SalesOrder, 'Edm.Decimal')

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

Static TO_ITEM

TO_ITEM: Link<SalesOrder, SalesOrderItem> = new Link('to_Item', SalesOrder, SalesOrderItem)

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

Static TO_PARTNER

TO_PARTNER: Link<SalesOrder, SalesOrderHeaderPartner> = new Link('to_Partner', SalesOrder, SalesOrderHeaderPartner)

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

Static TO_PAYMENT_PLAN_ITEM_DETAILS

TO_PAYMENT_PLAN_ITEM_DETAILS: Link<SalesOrder, SlsOrdPaymentPlanItemDetails> = new Link('to_PaymentPlanItemDetails', SalesOrder, SlsOrdPaymentPlanItemDetails)

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

Static TO_PRICING_ELEMENT

TO_PRICING_ELEMENT: Link<SalesOrder, SalesOrderHeaderPrElement> = new Link('to_PricingElement', SalesOrder, SalesOrderHeaderPrElement)

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

Static TO_TEXT

TO_TEXT: Link<SalesOrder, SalesOrderText> = new Link('to_Text', SalesOrder, SalesOrderText)

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

Static TRANSACTION_CURRENCY

TRANSACTION_CURRENCY: StringField<SalesOrder> = new StringField('TransactionCurrency', SalesOrder, 'Edm.String')

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

Static VAT_REGISTRATION_COUNTRY

VAT_REGISTRATION_COUNTRY: StringField<SalesOrder> = new StringField('VATRegistrationCountry', SalesOrder, 'Edm.String')

Static representation of the vatRegistrationCountry 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<SalesOrder> | DateField<SalesOrder> | BigNumberField<SalesOrder> | BooleanField<SalesOrder> | Link<SalesOrder, SalesOrderItem> | Link<SalesOrder, SalesOrderHeaderPartner> | Link<SalesOrder, SlsOrdPaymentPlanItemDetails> | Link<SalesOrder, SalesOrderHeaderPrElement> | Link<SalesOrder, SalesOrderText>> = [SalesOrder.SALES_ORDER,SalesOrder.SALES_ORDER_TYPE,SalesOrder.SALES_ORGANIZATION,SalesOrder.DISTRIBUTION_CHANNEL,SalesOrder.ORGANIZATION_DIVISION,SalesOrder.SALES_GROUP,SalesOrder.SALES_OFFICE,SalesOrder.SALES_DISTRICT,SalesOrder.SOLD_TO_PARTY,SalesOrder.CREATION_DATE,SalesOrder.CREATED_BY_USER,SalesOrder.LAST_CHANGE_DATE,SalesOrder.LAST_CHANGE_DATE_TIME,SalesOrder.PURCHASE_ORDER_BY_CUSTOMER,SalesOrder.CUSTOMER_PURCHASE_ORDER_TYPE,SalesOrder.CUSTOMER_PURCHASE_ORDER_DATE,SalesOrder.SALES_ORDER_DATE,SalesOrder.TOTAL_NET_AMOUNT,SalesOrder.TRANSACTION_CURRENCY,SalesOrder.SD_DOCUMENT_REASON,SalesOrder.PRICING_DATE,SalesOrder.REQUESTED_DELIVERY_DATE,SalesOrder.SHIPPING_CONDITION,SalesOrder.COMPLETE_DELIVERY_IS_DEFINED,SalesOrder.SHIPPING_TYPE,SalesOrder.HEADER_BILLING_BLOCK_REASON,SalesOrder.DELIVERY_BLOCK_REASON,SalesOrder.INCOTERMS_CLASSIFICATION,SalesOrder.INCOTERMS_TRANSFER_LOCATION,SalesOrder.INCOTERMS_LOCATION_1,SalesOrder.INCOTERMS_LOCATION_2,SalesOrder.INCOTERMS_VERSION,SalesOrder.CUSTOMER_PAYMENT_TERMS,SalesOrder.PAYMENT_METHOD,SalesOrder.ASSIGNMENT_REFERENCE,SalesOrder.REFERENCE_SD_DOCUMENT,SalesOrder.REFERENCE_SD_DOCUMENT_CATEGORY,SalesOrder.CUSTOMER_TAX_CLASSIFICATION_1,SalesOrder.TAX_DEPARTURE_COUNTRY,SalesOrder.VAT_REGISTRATION_COUNTRY,SalesOrder.SALES_ORDER_APPROVAL_REASON,SalesOrder.SALES_DOC_APPROVAL_STATUS,SalesOrder.OVERALL_SD_PROCESS_STATUS,SalesOrder.TOTAL_CREDIT_CHECK_STATUS,SalesOrder.OVERALL_TOTAL_DELIVERY_STATUS,SalesOrder.OVERALL_SD_DOCUMENT_REJECTION_STS,SalesOrder.TO_ITEM,SalesOrder.TO_PARTNER,SalesOrder.TO_PAYMENT_PLAN_ITEM_DETAILS,SalesOrder.TO_PRICING_ELEMENT,SalesOrder.TO_TEXT]

All fields of the SalesOrder entity.

Static _defaultServicePath

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

Default url path for the according service.

Static _entityName

_entityName: string = "A_SalesOrder"

Technical entity name for SalesOrder.

Static _keyFields

_keyFields: Array<Selectable<SalesOrder>> = [SalesOrder.SALES_ORDER]

All key fields of the SalesOrder entity.

Static _keys

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

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

Type declaration

Static _serviceName

_serviceName: string = "API_SALES_ORDER_SRV"
deprecated

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

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.

    deprecated

    Since 1.12.0. Will be removed in version 2.0.

    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

  • customField(fieldName: string): CustomField<SalesOrder>
  • Returns a selectable object that allows the selection of custom field in a get request for the entity SalesOrder.

    Parameters

    • fieldName: string

      Name of the custom field to select

    Returns CustomField<SalesOrder>

    A builder that constructs instances of entity type SalesOrder.

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 SalesOrder entity type.

    Returns SalesOrderRequestBuilder

    A SalesOrder request builder.