P_ManageSEPAMandate
SEPA Mandate
P_ManageSEPAMandate is a Composite CDS View that provides data about "SEPA Mandate" in SAP S/4HANA. It reads from 1 data source (I_SEPAMandate) and exposes 88 fields with key field SEPAMandateUUID. It has 16 associations to related views. Part of development package ODATA_MANAGE_SEPA_MANDATES.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_SEPAMandate | I_SEPAMandate | from |
Associations (16)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_SEPAApplication | _Application | $projection.SEPAMandateApplication = _Application.SEPAMandateApplication |
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_CompanyCode | _PayingCompanyCode | $projection.PayingCompanyCode = _PayingCompanyCode.CompanyCode |
| [0..1] | I_CompanyCode | _CAStandardCompanyCode | $projection.CAStandardCompanyCode = _CAStandardCompanyCode.CompanyCode |
| [0..1] | I_BusinessPartner | _BusinessPartner | $projection.BusinessPartner = _BusinessPartner.BusinessPartner |
| [0..1] | I_Customer | _Customer | $projection.Customer = _Customer.Customer |
| [1..1] | I_SEPAMandateStatus | _SEPAMandateStatus | $projection.SEPAMandateStatus = _SEPAMandateStatus.SEPAMandateStatus |
| [1..1] | I_SEPAMandateStatusChgReason | _SEPAChangeReason | $projection.SEPAMandateApplication = _SEPAChangeReason.SEPAMandateApplication and $projection.SEPAMandateStatus = _SEPAChangeReason.SEPAMandateStatus and $projection.SEPAMandateStatusChangeReason = _SEPAChangeReason.SEPAMandateStatusChangeReason |
| [0..*] | I_ManageSEPASenderTypeText | _SEPASenderTypeText | $projection.SEPAMandateSenderType = _SEPASenderTypeText.SEPAMandateSenderType |
| [0..*] | I_BusinessObjTypeText | _SEPAReferenceTypeText | $projection.SEPAMandateReferenceType = _SEPAReferenceTypeText.BusinessObjectType |
| [0..*] | I_BusinessObjTypeText | _SEPARecipientTypeText | $projection.SEPAMandateRecipientType = _SEPARecipientTypeText.BusinessObjectType |
| [1..1] | I_SEPAPaymentType | _SEPAPaymentType | $projection.SEPAPaymentType = _SEPAPaymentType.SEPAPaymentType |
| [0..*] | I_BusinessObjTypeText | _FirstUseObjTypeText | $projection.SEPAMandateFirstUseObjTypeCode = _FirstUseObjTypeText.BusinessObjectType |
| [0..*] | I_BusinessObjTypeText | _LastUseObjTypeText | $projection.SEPAMandateLastUseObjTypeCode = _LastUseObjTypeText.BusinessObjectType |
| [1..1] | I_User | _CreatedByUser | $projection.SEPAMandateCreatedByUser = _CreatedByUser.UserID |
| [1..1] | I_User | _OriglCreatedByUser | $projection.OriglSEPAMandateCreatedByUser = _OriglCreatedByUser.UserID |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PMNGSEPA | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (88)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SEPAMandateUUID | SEPAMandateUUID | Mandate ID | |
| SEPAMandateApplication | SEPAMandateApplication | Application | ||
| SEPAMandate | SEPAMandate | SEPA Mandate | ||
| ValidityStartDate | ValidityStartDate | Validity Start Date | ||
| ValidityEndDate | ValidityEndDate | ValidTo | ||
| SEPAMandateCreationDate | SEPAMandateCreationDate | Entered On | ||
| SEPAMandateIsLocked | SEPAMandateIsLocked | Global Lock | ||
| SEPAMandateCreatedByUser | User Name | |||
| SEPAMandateStatus | SEPAMandateStatus | Workflow Status | ||
| SEPAMandateStatusName | ||||
| SEPAMandateReferenceType | SEPAMandateReferenceType | SettlmtRefDocCat | ||
| SEPAMandateReferenceTypeName | ||||
| SEPAMandateReference | SEPAMandateReference | Technical Object | ||
| SEPAMandateReferenceDesc | Explanation | |||
| SEPAMandateSenderType | SND/RCV type | |||
| SEPAMandateSenderTypeName | ||||
| SEPAMandateSender | SEPAMandateSender | ID of Sender | ||
| SEPAMandateRecipientType | SEPAMandateRecipientType | Totals rec.type | ||
| SEPAMandateRecipientTypeName | ||||
| SEPAMandateRecipient | SEPAMandateRecipient | Record ID | ||
| MaximumNumberOfHits | ||||
| SenderType | ||||
| CAMassRunDate | CAMassRunDate | Date ID | ||
| CAMassRunID | CAMassRunID | Run ID | ||
| SEPAPaymentType | SEPAPaymentType | Payment Type | ||
| SEPAPaymentTypeName | ||||
| SEPAMandateFirstUseObjTypeCode | SEPAMandateFirstUseObjTypeCode | Type of First Usage | ||
| SEPAMandateFirstUseObjTypeText | ||||
| SEPAMandateFirstUsePaymentDoc | SEPAMandateFirstUsePaymentDoc | Key | ||
| SEPAMandateLastUseObjTypeCode | SEPAMandateLastUseObjTypeCode | Type of Last Usage | ||
| SEPAMandateLastUseObjTypeText | ||||
| SEPAMandateCreditor | SEPAMandateCreditor | Creditor ID | ||
| SEPAMandateSenderIBAN | SEPAMandateSenderIBAN | IBAN | ||
| SEPAMandateSenderBankSWIFTCode | SEPAMandateSenderBankSWIFTCode | SWIFT/BIC | ||
| SEPAMandateFirstUsePaymentRun | SEPAMandateFirstUsePaymentRun | First Payment Run | ||
| SEPAMandateLastUseDate | Date | |||
| SEPAMandateFirstUseDate | Date | |||
| SEPAMandateVersion | SEPAMandateVersion | Meas.plan.vers. | ||
| SEPAMandateIsB2BMandate | SEPAMandateIsB2BMandate | B2B Mandate | ||
| OriginalSEPAMandateCreditor | OriginalSEPAMandateCreditor | Origin. Cred. | ||
| OriginalSEPAMandate | OriginalSEPAMandate | Orig. Mandate | ||
| SEPAMandateLastUsePaymentDoc | SEPAMandateLastUsePaymentDoc | ID of Last Usage | ||
| SEPAMandateAlternativePayer | SEPAMandateAlternativePayer | ID Alt. Debtor | ||
| SEPASignatureCityName | SEPASignatureCityName | Location | ||
| SEPASignatureDate | SEPASignatureDate | Signature | ||
| SEPAMandateChangeReason | SEPAMandateChangeReason | ReasonForChange | ||
| SEPAMandateStatusChangeReason | SEPAMandateStatusChangeReason | Return/Change Reason | ||
| SEPAMandateStsChangeReasonName | ||||
| SEPAMandateLockStartDate | SEPAMandateLockStartDate | |||
| SEPAMandateLockEndDate | SEPAMandateLockEndDate | |||
| SEPAMandateAlternativePyeName | SEPAMandateAlternativePyeName | Name Alt. Payee | ||
| SEPAMandateAlternativePayee | SEPAMandateAlternativePayee | ID Alt. Payee | ||
| SEPAMandateOrganizationalUnit1 | SEPAMandateOrganizationalUnit1 | Organization ID | ||
| SEPAMandateOrganizationalUnit2 | SEPAMandateOrganizationalUnit2 | Organization ID | ||
| SEPAMandateOrganizationalUnit3 | SEPAMandateOrganizationalUnit3 | Organization | ||
| SEPAMandateOrganizationalUnit4 | SEPAMandateOrganizationalUnit4 | Organization | ||
| OriglSEPAMandateCreatedByUser | OriglSEPAMandateCreatedByUser | Created (Orig) | ||
| OriglSEPAMandateCreationDate | OriglSEPAMandateCreationDate | Created On | ||
| SEPAMandateAlternativePyrName | SEPAMandateAlternativePyrName | |||
| SEPAMandateSenderExternalID | SEPAMandateSenderExternalID | |||
| SenderLastName | SenderLastName | Last Name | ||
| SenderFirstName | SenderFirstName | First Name | ||
| SenderStreetName | SenderStreetName | Street | ||
| SenderHouseNumber | SenderHouseNumber | House Number | ||
| SenderPostalCode | SenderPostalCode | Postal Code | ||
| SenderCityName | SenderCityName | City | ||
| SenderCountry | SenderCountry | Country/Reg. | ||
| RecipientName1 | RecipientName1 | Name 1 | ||
| RecipientName2 | RecipientName2 | Name 2 | ||
| RecipientStreetName | RecipientStreetName | Street | ||
| RecipientHouseNumber | RecipientHouseNumber | House Number | ||
| RecipientPostalCode | RecipientPostalCode | Postal Code | ||
| RecipientCityName | RecipientCityName | City | ||
| RecipientCountry | RecipientCountry | Country/Reg. | ||
| _Application | _Application | |||
| _CompanyCode | _CompanyCode | |||
| _PayingCompanyCode | _PayingCompanyCode | |||
| _BusinessPartner | _BusinessPartner | |||
| _Customer | _Customer | |||
| _SEPAPaymentType | _SEPAPaymentType | |||
| _SEPAMandateStatus | _SEPAMandateStatus | |||
| _FirstUseObjTypeText | _FirstUseObjTypeText | |||
| _LastUseObjTypeText | _LastUseObjTypeText | |||
| _CreatedByUser | _CreatedByUser | |||
| _SEPAChangeReason | _SEPAChangeReason | |||
| _OriglCreatedByUser | _OriglCreatedByUser | |||
| _SEPAReferenceTypeText | _SEPAReferenceTypeText | |||
| _SEPARecipientTypeText | _SEPARecipientTypeText |
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 P_ManageSEPAMandate.
-- 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.
-- SQL view name: PMNGSEPA
CREATE VIEW P_ManageSEPAMandate AS
SELECT
SEPAMandateUUID,
SEPAMandateApplication,
SEPAMandate,
ValidityStartDate,
ValidityEndDate,
SEPAMandateCreationDate,
SEPAMandateIsLocked,
cast(SEPAMandateCreatedByUser as sepa_cds_ernam preserving type) AS SEPAMandateCreatedByUser,
SEPAMandateStatus,
_SEPAMandateStatus._Text[1:Language =$session.system_language].SEPAMandateStatusName AS SEPAMandateStatusName,
SEPAMandateReferenceType,
cast(_SEPAReferenceTypeText[1:Language =$session.system_language].BusinessObjectTypeDescription as fsepa_ref_type_name preserving type ) AS SEPAMandateReferenceTypeName,
SEPAMandateReference,
cast( SEPAMandateReferenceDesc as sepa_cds_ref_desc preserving type ) AS SEPAMandateReferenceDesc,
cast( SEPAMandateSenderType as sepa_cds_snd_type preserving type ) AS SEPAMandateSenderType,
_SEPASenderTypeText[1:Language =$session.system_language].SEPAMandateSenderTypeName AS SEPAMandateSenderTypeName,
SEPAMandateSender,
SEPAMandateRecipientType,
_SEPARecipientTypeText[1:Language =$session.system_language].BusinessObjectTypeDescription AS SEPAMandateRecipientTypeName,
SEPAMandateRecipient,
cast(250 as sepa_cds_maxnum) AS MaximumNumberOfHits,
cast('' as sepa_cds_snd_type) AS SenderType,
CAMassRunDate,
CAMassRunID,
SEPAPaymentType,
_SEPAPaymentType._Text[1:Language =$session.system_language].SEPAPaymentTypeName AS SEPAPaymentTypeName,
SEPAMandateFirstUseObjTypeCode,
cast(_FirstUseObjTypeText[1:Language =$session.system_language].BusinessObjectTypeDescription as fsepa_firstuse_doctype_name preserving type ) AS SEPAMandateFirstUseObjTypeText,
SEPAMandateFirstUsePaymentDoc,
SEPAMandateLastUseObjTypeCode,
cast(_LastUseObjTypeText[1:Language =$session.system_language].BusinessObjectTypeDescription as fsepa_lastuse_doctype_name preserving type ) AS SEPAMandateLastUseObjTypeText,
SEPAMandateCreditor,
SEPAMandateSenderIBAN,
SEPAMandateSenderBankSWIFTCode,
SEPAMandateFirstUsePaymentRun,
cast( SEPAMandateLastUseDate as sepa_cds_lastuse_date preserving type ) AS SEPAMandateLastUseDate,
cast( SEPAMandateFirstUseDate as sepa_cds_firstuse_date preserving type ) AS SEPAMandateFirstUseDate,
SEPAMandateVersion,
SEPAMandateIsB2BMandate,
OriginalSEPAMandateCreditor,
OriginalSEPAMandate,
SEPAMandateLastUsePaymentDoc,
SEPAMandateAlternativePayer,
SEPASignatureCityName,
SEPASignatureDate,
SEPAMandateChangeReason,
SEPAMandateStatusChangeReason,
_SEPAChangeReason._Text[1:Language =$session.system_language].SEPAMandateStsChangeReasonName AS SEPAMandateStsChangeReasonName,
SEPAMandateLockStartDate,
SEPAMandateLockEndDate,
SEPAMandateAlternativePyeName,
SEPAMandateAlternativePayee,
SEPAMandateOrganizationalUnit1,
SEPAMandateOrganizationalUnit2,
SEPAMandateOrganizationalUnit3,
SEPAMandateOrganizationalUnit4,
OriglSEPAMandateCreatedByUser,
OriglSEPAMandateCreationDate,
SEPAMandateAlternativePyrName,
SEPAMandateSenderExternalID,
SenderLastName,
SenderFirstName,
SenderStreetName,
SenderHouseNumber,
SenderPostalCode,
SenderCityName,
SenderCountry,
RecipientName1,
RecipientName2,
RecipientStreetName,
RecipientHouseNumber,
RecipientPostalCode,
RecipientCityName,
RecipientCountry
FROM I_SEPAMandate
LEFT OUTER JOIN I_SEPAApplication AS _Application ON SEPAMandateApplication = _Application.SEPAMandateApplication -- association [1..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _PayingCompanyCode ON PayingCompanyCode = _PayingCompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CAStandardCompanyCode ON CAStandardCompanyCode = _CAStandardCompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN I_BusinessPartner AS _BusinessPartner ON BusinessPartner = _BusinessPartner.BusinessPartner -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer -- association [0..1]
LEFT OUTER JOIN I_SEPAMandateStatus AS _SEPAMandateStatus ON SEPAMandateStatus = _SEPAMandateStatus.SEPAMandateStatus -- association [1..1]
LEFT OUTER JOIN I_SEPAMandateStatusChgReason AS _SEPAChangeReason ON SEPAMandateApplication = _SEPAChangeReason.SEPAMandateApplication AND SEPAMandateStatus = _SEPAChangeReason.SEPAMandateStatus AND SEPAMandateStatusChangeReason = _SEPAChangeReason.SEPAMandateStatusChangeReason -- association [1..1]
LEFT OUTER JOIN I_ManageSEPASenderTypeText AS _SEPASenderTypeText ON SEPAMandateSenderType = _SEPASenderTypeText.SEPAMandateSenderType -- association [0..*]
LEFT OUTER JOIN I_BusinessObjTypeText AS _SEPAReferenceTypeText ON SEPAMandateReferenceType = _SEPAReferenceTypeText.BusinessObjectType -- association [0..*]
LEFT OUTER JOIN I_BusinessObjTypeText AS _SEPARecipientTypeText ON SEPAMandateRecipientType = _SEPARecipientTypeText.BusinessObjectType -- association [0..*]
LEFT OUTER JOIN I_SEPAPaymentType AS _SEPAPaymentType ON SEPAPaymentType = _SEPAPaymentType.SEPAPaymentType -- association [1..1]
LEFT OUTER JOIN I_BusinessObjTypeText AS _FirstUseObjTypeText ON SEPAMandateFirstUseObjTypeCode = _FirstUseObjTypeText.BusinessObjectType -- association [0..*]
LEFT OUTER JOIN I_BusinessObjTypeText AS _LastUseObjTypeText ON SEPAMandateLastUseObjTypeCode = _LastUseObjTypeText.BusinessObjectType -- association [0..*]
LEFT OUTER JOIN I_User AS _CreatedByUser ON SEPAMandateCreatedByUser = _CreatedByUser.UserID -- association [1..1]
LEFT OUTER JOIN I_User AS _OriglCreatedByUser ON OriglSEPAMandateCreatedByUser = _OriglCreatedByUser.UserID -- association [1..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