P_SRVCTRANSACTIONISSUEITEMC004
P_SRVCTRANSACTIONISSUEITEMC004 is a CDS View in S/4HANA. 1 CDS views read from this table.
CDS Views using this table (1)
| View | Type | Join | VDM | Description |
|---|---|---|---|---|
| P_ServiceOrderIssueKey | view | union_all | COMPOSITE |
@AbapCatalog:
{
sqlViewName: 'PSRVCISSITMC004',
compiler.compareFilter: true,
preserveKey: true,
dataMaintenance: #DISPLAY_ONLY
}
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM:
{
private: true,
viewType: #COMPOSITE
}
define view P_SrvcTransactionIssueItemC004
as select distinct from I_ServiceDocumentItemEnhcd as Item
inner join I_ServiceDocumentItemSuccssr_2 as Link on Link.ServiceDocumentItemCharUUID = Item.ServiceDocumentItemCharUUID
and Link.ServiceDocumentItmRelationType = 'VONA' // Predecessor/Sucessor Relationship
and Link.ServiceDocumentItemObjectType = Item.ServiceDocumentItemObjectType // only relevant in dev. system due to bad data
inner join I_ServiceDocumentItemEnhcd as Successor on Successor.ServiceDocumentItemObjectType = Link.ServiceDocItmSuccssrBusObjType
and Successor.ServiceDocumentItemCharUUID = Link.ServiceDocItmSuccssrCharUUID
and Successor.ServiceObjectType = 'BUS2000117' // Successor is a service confirmation
{
key Item.ServiceObjectType,
key Item.ServiceDocument,
key Item.ServiceDocumentItem,
key cast ( 'C001' as crms4_service_issue ) as CustMgmtIssue,
key cast ( 'C004' as crms4_srvc_conf_issue ) as SrvcConfIssue,
Item._ServiceDocument.ServiceDocumentType,
Item._ServiceDocument.SoldToPartyCountry as Country,
Item._ServiceDocument.Region,
Item._ServiceDocument.ServiceRisk,
Item._ServiceDocument.ServiceDocumentProblemCategory,
@ObjectModel.foreignKey.association: '_TransactionCurrency'
@Semantics.currencyCode:true
Item._ServiceDocument.TransactionCurrency,
@DefaultAggregation: #SUM
@Semantics: { amount : {currencyCode: 'TransactionCurrency'} }
Item.ServiceDocItemGrossAmount as SrvcOrdGrossAmount,
Item.Industry,
// Organization Unit fields
Item.ServiceOrganization,
Item.SalesOrganization,
Item.SalesOffice,
Item.SalesGroup,
Item.DistributionChannel,
Item.Division,
// Sales related fields (ex. BP)
Item.SoldToPartyCountry,
Item.SoldToPartyRegion,
Item.SoldToParty,
Item.ResponsibleEmployee,
Item.ContactPerson,
Item.ServiceTeam,
Item.ServiceEmployee,
// Status fields
Item.ServiceDocItemRejectionReason,
Item.ServiceDocumentItemStatus,
Item.ServiceDocumentItemHasError,
Item.BillingBlockReason,
Item.ServiceDocItemBillingStatus,
Item.SrvcDocItmIsReleasedForBilling,
Item.SrvcDocItemTransferStatus,
Item.RefInHouseRepairIsExisting,
// Various attributes
Item.RequestedServiceStartDateTime,
Item.RequestedServiceEndDateTime,
Item.PlannedServiceStartDateTime,
Item.PlannedServiceEndDateTime,
//SLA Dueby Date
Item.SrvcDocItemSLADueByDateTime,
Item.ResponseProfile,
Item.ServiceProfile,
Item.ServiceFirstResponseByDateTime,
Item.RefBusinessSolutionOrder,
Item.RefBusinessSolutionOrderItem,
Item._ServiceDocument._TransactionCurrency
}
where
Item.ServiceObjectType = 'BUS2000116' // Service Order
and Item._ServiceDocument.ServiceDocumentIsRejected <> 'X' // Service transaction is not rejected
and Item._ServiceDocument.ServiceDocumentIsReleased = 'X' // Service Order is Released
and Item._ServiceDocument.ServiceDocumentIsQuotation <> 'X' // Service Order is not a quotation
and Item.RefInHouseRepairIsExisting is initial
and Item._ServiceDocument.ServiceDocumentTemplateType = ' '
and(
Successor._ServiceDocument.ServiceConfirmationIsFinal = ' '
or Successor._ServiceDocument.ServiceConfirmationIsFinal = 'N'
) // Service Confirmation not Final
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SERVICEDOCUMENTENHCD",
"I_SERVICEDOCUMENTITEMENHCD",
"I_SERVICEDOCUMENTITEMSUCCSSR_2"
],
"ASSOCIATED":
[
"I_CURRENCY"
],
"BASE":
[
"I_SERVICEDOCUMENTENHCD"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/