Service Order Item with Solution Order Perspective

The service order item view contains service order header and item data enhanced with calculated key figures and master data associations to organizational, customer, product and other master data. It also contains specific restricted and calculated key figures with a solution order perspective, e.g. Net Value of Service Order Items based on Solution Order in Company Code Currency. This key figure for example only contains net value from service order items which are part of an solution order. Technically this is done by restricting the key figure in a way, that the fields RefBusinessSolutionOrder and RefBusinessSolutionOrderItem are not empty.

The following lineage diagram shows the entities described in this chapter:

Data Extraction for Service Order (LT)

The local table Data Extraction for Service Order (LT) (SAP_SRV_IL_C_SERVICEORDERITEMDEX) is based on the CDS-View Data Extraction for Service Order (C_SERVICEORDERITEMDEX, SQL Name: CSRVCORDITMDEX) from SAP S/4HANA Cloud. Find more information on the CDS view in the SAP S/4HANA documentation.

Create a new Replication Flow or add this CDS view to an existing one, map the target in the Replication Flow to the delivered local table SAP_SRV_IL_C_ SERVICEORDERITEMDEX to replicate the data into this local table.

Service Order Item (IL)

The inbound layer view Service Order Item (IL) (SAP_SRV_IL_SrvcOrderItem_V2) is based on the local table Data Extraction for Service Order (LT) (SAP_SRV_IL_C_SERVICEORDERITEMDEX). Minor adjustments, like deriving Created on, Changed on date from Created on, Changed on timestamp are done. Also the Business Names of the fields are adjusted to be more descriptive. Fields that are not useful for the SAP Datasphere models are hidden in the projection.

The following table lists all the calculations in the inbound layer

Calculated Column

Transformation Rule

Created At - Date

TO_DATE(ServiceDocCreationDateTime)

Created At - Time

TO_TIME(ServiceDocCreationDateTime)

Changed At - Date

TO_DATE(ServiceDocChangedDateTime)

Changed At - Time

TO_TIME(ServiceDocChangedDateTime)

Posting Date

TO_DATE(PostingDate)

Profit CenterDeterminationDate

TO_DATE(ProfitCenterDeterminationDate)

ExchangeRateDate

TO_DATE(ExchangeRateDate)

Requested Service Start Date

TO_DATE(RequestedServiceStartDate)

Requested Service End Date

TO_DATE(RequestedServiceEndDate)

Planned Service Start Date

TO_DATE(PlannedServiceStartDate)

Planned Service End Date

TO_DATE(PlannedServiceEndDate)

Sales Organization Org Unit

SUBSTRING(SalesOrganizationOrgUnitID,3,8)

Sales Office Org Unit

SUBSTRING(SalesOfficeOrgUnitID,3,8)

Sales Group Org Unit

SUBSTRING(SalesGroupOrgUnitID,3,8)

Service Organization

SUBSTRING(ServiceOrganization,3,8)

Responsible Organizational Unit (Sales)

SUBSTRING(ResponsibleSalesOrganization,3,8)

Responsible Organizational Unit (Service)

SUBSTRING(ResponsibleServiceOrganization,3,8)

Service Order Item (HL)

The harmonization layer view Service Order Item (HL) (SAP_SRV_HL_SrvcOrderItem_V2) uses the inbound layer view Service Order Item (IL) and adds a filter on the field Order Error Status (ServiceDocumentHasError), as only records without errors are relevant for reporting.

Formula: ServiceDocumentHasError = ''

In addition in this view Master Data and Text Views are associated to provide attributes and text and measures in transaction currency are converted to the company code currency of the sales organization. Currency conversion is done with client setting ‘000’, ensure that the currency conversion tables have been replicated accordingly, see Chapter 3.5.

Key Figure

Type

Transformation Rule

Invoice Value in Company Code Currency

(InvoiceAmount_CC_CUR)

Currency Measure

Source Amount Column: Invoice Value in Transaction Currency

Source Currency: Transaction Currency

Target Currency: Statistics Currency

Reference Date: Posting Date

Client: 000

Conversion Rate: M

Released Value in Company Code Currency

(SrvcDocItmReldAmt_CC_CUR)

Currency Measure

Source Value Column: Released Amount in Transaction Currency

source Currency: Transaction Currency

Target Currency: Reference Currency

Reference Date: Posting Date

Client: 000

Conversion Rate: M

Net Value in Company Code Currency

(ServiceDocItemNetAmount_CC_CUR)

Currency Measure

Source Value Column: Net Amount in Transaction Currency

Source Currency: Transaction Currency

Target Currency: Statistics Currency

Reference Date: Posting Date

Client: 000

Conversion Rate: M

Gross Value in Company Code Currency

(SrvcDocItemGrossAmount_CC_CUR)

Currency Measure

Source Value Column: Gross Amount in Transaction Currency

Source Currency: Transaction Currency

Target Currency: Reference Currency

Reference Date: Posting Date

Client: 000

Conversion Rate: M

No. of Service Order Items

Calculated Measure

Constant Value: 1

Service Order Overdue

Calculated Measure

Case

when ServiceDocumentIsOpen = 'X' and RequestedServiceEndDate < CURRENT_DATE

then 'X'

else ''

end

Service Order Item with Solution Order Perspective (RL - S/4HANA Cloud)

In the reporting layer Analytic Model Service Order Item with Solution Order Perspective (RL - S/4HANA Cloud)(SAP_SOL_RL_SrvcOrderItemSolOrder_V2) further measures like number of service order items and additional measures related to service order item based on the item status are calculated. Some measures are with solution order perspective, they only include service order items which have a reference to a solution order and solution order item. In the Analytic Model only some attributes/dimensions of the underlying transactional and master data views are exposed. If additional attributes/dimensions are needed, they have to be selected in the analytical model.

Following calculated/ restricted measures are created in this view:

Key Figure

Type

Value Calculation / Restriction

No. of open Service Order Items

(NoOpenSrvcOrderItems)

Restricted measure

No. of Service Order Items restricted to Service Document Item Open Status = 'X'

No. of open Service Order Items based on Solution Orders

(NoOpenSrvcOrderItems_SO)

Restricted measure

No. of Service Order Items restricted to Service Document Item Open Status = 'X' and Reference Business Solution Order IS NOT NULL and Reference Business Solution Order Item != '000000'

No. of open Service Orders (NoOpenSrvcOrders)

Restricted measure

No. of Service Orders

restricted to Service Document Item Open Status = 'X'

No. of overdue Service Order Items

(NoOverdueSrvcOrderItems)

Restricted measure

No. of Service Order Items restricted to Service Order Overdue = ‘X’

No. of overdue Service Order Items based on Solution Orders

(NoOverdueSrvcOrderItems_SO)

Restricted measure

No. of Service Order Items restricted to Service Order Overdue = 'X' and Reference Business Solution Order IS NOT NULL and Reference Business Solution Order Item != '000000'

No. of Service Orders (NoServiceOrders)

Calculated measure

Count Distinct Measure

Dimension Service Document

No. of Service Orders Items based on Solution Orders (NoSrvcOrderItems_SO)

Restricted measure

No. of Service Order Items restricted to Reference Business Solution Order IS NOT NULL and Reference Business Solution Order Item != '000000'

Net Value of Service Order Items based on Solution Orders in Company Code Currency

(SrvcDocItmNetAmnt_SO_CC_CUR)

Restricted measure

Net Value in Company Code Currency restricted to Reference Business Solution Order IS NOT NULL and Reference Business Solution Order Item != '000000'

Net Value of open Service Order Items in Company Code Currency

(SrvcDocOpnItmNetAmnt_CC_CUR)

Restricted measure

Net Value in Company Code Currency restricted to Service Document Item Open Status = 'X'

Net Value of open Service Order Items based on Solution Orders in Company Code Currency

(SrvcDocOpnItmNetAmnt_SO_CC_CUR)

Restricted measure

Net Value in Company Code Currency restricted to Service Document Item Open Status = 'X' AND Reference Business Solution Order IS NOT NULL and Reference Business Solution Order Item != '000000'

Net Value of overdue Service Order Items in Company Code Currency

(SrvcDocOdueItmNetAmnt_CC_CUR)

Restricted measure

Net Value in Company Code Currency restricted to Service Oder Overdue

Net Value of overdue Service Order Items based on Solution Orders in Company Code Currency

(SrvcDocOdueItmNetAmnt_SO_CC_CUR)

Restricted measure

Net Value in Company Code Currency restricted to Service Order Overdue = ‘X’ AND Reference Business Solution Order IS NOT NULL and Reference Business Solution Order Item != '000000'