A_SrvcTransMasterAgreement
Master Agreement Header
A_SrvcTransMasterAgreement is a Consumption CDS View that provides data about "Master Agreement Header" in SAP S/4HANA. It reads from 1 data source (R_SrvcTransMstrAgrmtTP) and exposes 29 fields with key field SrvcTransMstrAgrmtID. It has 4 associations to related views. Part of development package CRMS4_SOM_LEGACY.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| R_SrvcTransMstrAgrmtTP | R_SrvcTransMstrAgrmtTP | projection |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | A_SvTrMtAgrReltdSbscrOrd | _RelatedSbscrOrd | $projection.SrvcTransMstrAgrmtID = _RelatedSbscrOrd.CustMgmtMasterAgreement |
| [0..*] | A_SvTrMtAgrReltdSolnQtn | _RelatedSolnQtn | $projection.SrvcTransMstrAgrmtID = _RelatedSolnQtn.CustMgmtMasterAgreement |
| [0..*] | A_SvTrMtAgrReltdSbscrContr | _RelatedSbscrContr | $projection.SrvcTransMstrAgrmtID = _RelatedSbscrContr.CustMgmtMasterAgreement |
| [0..1] | E_SrvcTransMasterAgreement | _Extension | $projection.SrvcTransMstrAgrmtID = _Extension.SrvcTransMstrAgrmtID |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Master Agreement Header | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| OData.entityType.name | MasterAgreement_Type | view | |
| ObjectModel.representativeKey | SrvcTransMstrAgrmtID | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.lifecycle.contract.type | #PUBLIC_REMOTE_API | view |
Fields (29)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SrvcTransMstrAgrmtID | SrvcTransMstrAgrmtID | ||
| SrvcTransMstrAgrmtUUID | SrvcTransMstrAgrmtUUID | |||
| SrvcTransMstrAgrmtType | SrvcTransMstrAgrmtType | |||
| ServiceDocumentType | ServiceDocumentType | Transaction Type | ||
| PostingDate | PostingDate | Posting Date for GR | ||
| ServiceDocumentDescription | ServiceDocumentDescription | |||
| Language | Language | Report Text Language | ||
| ServiceDocCreationDateTime | ServiceDocCreationDateTime | |||
| ServiceDocumentCreatedByUser | ServiceDocumentCreatedByUser | |||
| ServiceDocChangedDateTime | ServiceDocChangedDateTime | |||
| ServiceDocumentChangedByUser | ServiceDocumentChangedByUser | |||
| SrvcTransMstrAgrmtStrtDteTme | SrvcTransMstrAgrmtStrtDteTme | |||
| SrvcTransMstrAgrmtEndDteTme | SrvcTransMstrAgrmtEndDteTme | |||
| SalesOrganization | SalesOrganization | Sales Organization | ||
| DistributionChannel | DistributionChannel | RefDistCh-Cust/Mat. | ||
| Division | Division | Internal Division ID | ||
| SalesOffice | SalesOffice | Sales Office | ||
| SalesGroup | SalesGroup | Sales Group | ||
| SoldToParty | SoldToParty | Sold-to Party | ||
| PersonResponsible | PersonResponsible | Person Responsible | ||
| ContactPerson | ContactPerson | Contact Person Key | ||
| PayerParty | PayerParty | Payer | ||
| SrvcTransMstrAgrmtIsOpen | SrvcTransMstrAgrmtIsOpen | |||
| SrvcTransMstrAgrmtIsReleased | SrvcTransMstrAgrmtIsReleased | |||
| SrvcTransMstrAgrmtIsRejected | SrvcTransMstrAgrmtIsRejected | |||
| SrvcTransMstrAgrmtStatus | SrvcTransMstrAgrmtStatus | |||
| _RelatedSbscrOrd | _RelatedSbscrOrd | |||
| _RelatedSolnQtn | _RelatedSolnQtn | |||
| _RelatedSbscrContr | _RelatedSbscrContr |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view A_SrvcTransMasterAgreement.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
CREATE VIEW A_SrvcTransMasterAgreement AS
SELECT
SrvcTransMstrAgrmtID,
SrvcTransMstrAgrmtUUID,
SrvcTransMstrAgrmtType,
ServiceDocumentType,
PostingDate,
ServiceDocumentDescription,
Language,
ServiceDocCreationDateTime,
ServiceDocumentCreatedByUser,
ServiceDocChangedDateTime,
ServiceDocumentChangedByUser,
SrvcTransMstrAgrmtStrtDteTme,
SrvcTransMstrAgrmtEndDteTme,
SalesOrganization,
DistributionChannel,
Division,
SalesOffice,
SalesGroup,
SoldToParty,
PersonResponsible,
ContactPerson,
PayerParty,
SrvcTransMstrAgrmtIsOpen,
SrvcTransMstrAgrmtIsReleased,
SrvcTransMstrAgrmtIsRejected,
SrvcTransMstrAgrmtStatus
FROM R_SrvcTransMstrAgrmtTP
LEFT OUTER JOIN A_SvTrMtAgrReltdSbscrOrd AS _RelatedSbscrOrd ON SrvcTransMstrAgrmtID = _RelatedSbscrOrd.CustMgmtMasterAgreement -- association [0..*]
LEFT OUTER JOIN A_SvTrMtAgrReltdSolnQtn AS _RelatedSolnQtn ON SrvcTransMstrAgrmtID = _RelatedSolnQtn.CustMgmtMasterAgreement -- association [0..*]
LEFT OUTER JOIN A_SvTrMtAgrReltdSbscrContr AS _RelatedSbscrContr ON SrvcTransMstrAgrmtID = _RelatedSbscrContr.CustMgmtMasterAgreement -- association [0..*]
LEFT OUTER JOIN E_SrvcTransMasterAgreement AS _Extension ON SrvcTransMstrAgrmtID = _Extension.SrvcTransMstrAgrmtID -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA