P_SRVCDOCITEMPARTNER
Service Transaction Item Partner
P_SRVCDOCITEMPARTNER is a CDS View in S/4HANA. Service Transaction Item Partner. It contains 7 fields. 3 CDS views read from this table.
CDS Views using this table (3)
| View | Type | Join | VDM | Description |
|---|---|---|---|---|
| I_SubscriptionOrderItemPartner | view_entity | from | COMPOSITE | Item Partner |
| I_SubscrpnContrItmPrtn | view_entity | from | COMPOSITE | Partner of Contract Item |
| R_SrvcContrItemPartnerTP | view_entity | from | TRANSACTIONAL | Service Contract Item Partner - TP |
Fields (7)
| Key | Field | CDS Fields | Used in Views |
|---|---|---|---|
| KEY | CustMgmtBusinessPartner | CustMgmtBusinessPartner | 3 |
| KEY | CustMgmtPartnerFunction | CustMgmtPartnerFunction | 3 |
| KEY | ServiceDocument | ServiceContract,SubscriptionContract | 2 |
| KEY | ServiceDocumentItem | ServiceContractItem,SubscriptionContractItem | 2 |
| CustMgmtPartFunctionCategory | CustMgmtPartFunctionCategory | 3 | |
| CustMgmtPartnerIsMainPartner | CustMgmtPartnerIsMainPartner | 2 | |
| ServiceObjectType | ServiceObjectType | 2 |
@AccessControl.authorizationCheck: #NOT_REQUIRED
@Metadata.ignorePropagatedAnnotations: true
@VDM.private: true
@VDM.viewType: #COMPOSITE
@EndUserText.label: 'Service Transaction Item Partner'
define view entity P_SrvcDocItemPartner
as select from I_ServiceDocumentItemEnhcd as ItemEnhcd
inner join I_CustMgmtPartner as Partner on ItemEnhcd.ServiceDocument = Partner.CustMgmtDocument
and Partner.CustMgmtDocumentItem = ItemEnhcd.SrvcDocItmPartReferenceItem
and ItemEnhcd.ServiceObjectType = Partner.CustMgmtObjectType
inner join P_SrvcDocItemAdmissiblePartner as PartnerFunction on Partner.CustMgmtPartnerFunction = PartnerFunction.CustMgmtPartnerFunction
and PartnerFunction.ServiceDocItemCategory = ItemEnhcd.ServiceDocItemCategory
//associating to I_SrvcMgmtPartnerFunctionText since the Language also needs to be passed in the condition
association[1..1] to I_SrvcMgmtPartnerFunctionText as _PartnerFunctionText on $projection.CustMgmtPartnerFunction = _PartnerFunctionText.CustMgmtPartnerFunction
and _PartnerFunctionText.Language = $session.system_language
{
key ItemEnhcd.ServiceObjectType,
key ItemEnhcd.ServiceDocument,
key ItemEnhcd.ServiceDocumentItem,
key Partner.CustMgmtPartnerFunction,
key Partner.CustMgmtBusinessPartner,
Partner.CustMgmtPartFunctionCategory,
Partner.CustMgmtPartnerIsMainPartner,
Partner.AddressID,
Partner.AddressPersonID,
Partner.AddressObjectType,
Partner._BusinessPartner as _BusinessPartner,
_PartnerFunctionText
}