C_MngJrnlEntrAltvPayerPayeeVH
Permitted Alternative Payer and Payee
C_MngJrnlEntrAltvPayerPayeeVH is a Consumption CDS View that provides data about "Permitted Alternative Payer and Payee" in SAP S/4HANA. It reads from 2 data sources (I_SuplrPmtdAltvPayee, R_MngJrnlEntrCustPmtdAltvPayer) and exposes 19 fields with key fields CustomerSupplier, CompanyCode, AlternativePayeePayer, FinancialAccountType, CompanyCode. It has 2 associations to related views. Part of development package ODATA_MANAGE_JOURNAL_ENTRY_V2.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_SuplrPmtdAltvPayee | _Supplier | from |
| R_MngJrnlEntrCustPmtdAltvPayer | R_MngJrnlEntrCustPmtdAltvPayer | union |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Supplier | _Payee | $projection.AlternativePayeePayer = _Payee.Supplier |
| [1..1] | I_Customer | _Payer | $projection.AlternativePayeePayer = _Payer.Customer |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Permitted Alternative Payer and Payee | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| ObjectModel.dataCategory | #VALUE_HELP | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.representativeKey | CustomerSupplier | view |
Fields (19)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CustomerSupplier | Supplier | Supplier | |
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | AlternativePayeePayer | Payer | ||
| KEY | FinancialAccountType | |||
| OrganizationBPName1 | _Payee | OrganizationBPName1 | Name 1 | |
| CityName | _Payee | CityName | Name | |
| StreetName | _Payee | StreetName | Text | |
| AuthorizationGroup | AuthorizGroup | |||
| IsBusinessPurposeCompleted | Purpose Completed | |||
| CustomerkeyCustomerasCustomerSupplier | ||||
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | AlternativePayeePayer | CustomerPermittedPayer | Payer | |
| KEY | FinancialAccountType | |||
| OrganizationBPName1 | _Payer | OrganizationBPName1 | Name 1 | |
| CityName | _Payer | CityName | Name | |
| StreetName | _Payer | StreetName | Text | |
| AuthorizationGroup | AuthorizationGroup | AuthorizGroup | ||
| IsBusinessPurposeCompleted | IsBusinessPurposeCompleted | Purpose Completed | ||
| DataControllerSet | DataControllerSet | Data Ctrlr. Set |
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 C_MngJrnlEntrAltvPayerPayeeVH.
-- 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 C_MngJrnlEntrAltvPayerPayeeVH AS
SELECT
Supplier AS CustomerSupplier,
CompanyCode,
cast( SupplierAlternativePayee as fac_empfb preserving type ) AS AlternativePayeePayer,
cast('K' as fis_koart) AS FinancialAccountType,
_Payee.OrganizationBPName1 AS OrganizationBPName1,
_Payee.CityName AS CityName,
_Payee.StreetName AS StreetName,
_Supplier._SupplierCompany.AuthorizationGroup AS AuthorizationGroup,
_Supplier._SupplierCompany.IsBusinessPurposeCompleted AS IsBusinessPurposeCompleted,
_Supplier._Supplier.DataControllerSet AS CustomerkeyCustomerasCustomerSupplier,
DataControllerSet
FROM I_SuplrPmtdAltvPayee AS _Supplier
LEFT OUTER JOIN I_Supplier AS _Payee ON AlternativePayeePayer = _Payee.Supplier -- association [1..1]
LEFT OUTER JOIN I_Customer AS _Payer ON AlternativePayeePayer = _Payer.Customer -- association [1..1]
-- UNION with additional select branch(es): R_MngJrnlEntrCustPmtdAltvPayer
;
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