C_Creditmemorequestfs
Credit Memo Request
C_Creditmemorequestfs is a Consumption CDS View that provides data about "Credit Memo Request" in SAP S/4HANA. It reads from 1 data source (I_CreditMemoRequest) and exposes 44 fields with key field CreditMemoRequest. It has 5 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CreditMemoRequest | CMR | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | C_Q2CCustomerQuickView | _SoldToPartyVH | $projection.SoldToParty = _SoldToPartyVH.Customer |
| [0..*] | C_CreditmemorequestItemfs | _CreditmemorequestItemfs | $projection.CreditMemoRequest = _CreditmemorequestItemfs.CreditMemoRequest |
| [0..*] | C_SDDocumentPartnerCard | _SDDocumentPartnerCard | $projection.CreditMemoRequest = _SDDocumentPartnerCard.SDDocument and _SDDocumentPartnerCard.SDDocumentItem = '000000' |
| [0..1] | I_SDDocumentPersonnel | _EmployeeResponsible | $projection.CreditMemoRequest= _EmployeeResponsible.SDDocument and _EmployeeResponsible.PartnerFunction = 'ZM' |
| [1] | E_SalesDocumentBasic | _Extension | $projection.CreditMemoRequest = _Extension.SalesDocument |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CCREDITMRFS | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| Search.searchable | true | view | |
| EndUserText.label | Credit Memo Request | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| UI.headerInfo.typeName | Credit Memo Request | view | |
| UI.headerInfo.typeNamePlural | Credit Memo Requests | view | |
| UI.headerInfo.title.type | #STANDARD | view | |
| UI.headerInfo.title.value | SalesDocumentTypeName | view | |
| Consumption.semanticObject | CreditMemoRequest | view |
Fields (44)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CreditMemoRequest | I_CreditMemoRequest | CreditMemoRequest | |
| SalesDocumentTypeName | ||||
| CreditMemoRequestType | CreditMemoRequestType | Sales Doc. Type | ||
| SoldToParty | I_CreditMemoRequest | SoldToParty | Sold-to Party | |
| SoldToPartyName | ||||
| ShipToParty | ||||
| ShipToPartyName | ||||
| OverallSDProcessStatus | I_CreditMemoRequest | OverallSDProcessStatus | ||
| OverallOrdReltdBillgStatus | I_CreditMemoRequest | OverallOrdReltdBillgStatus | ||
| int1asBillingBlockCriticality | ||||
| HeaderBillingBlockReason | I_CreditMemoRequest | HeaderBillingBlockReason | Billing Block | |
| TotalCreditCheckStatus | I_CreditMemoRequest | TotalCreditCheckStatus | ||
| OverallSDDocumentRejectionSts | I_CreditMemoRequest | OverallSDDocumentRejectionSts | ||
| CreditMemoReqApprovalReason | I_CreditMemoRequest | CreditMemoReqApprovalReason | Approval Request Reason | |
| SDApprovalReasonName | ||||
| SalesDocApprovalStatus | I_CreditMemoRequest | SalesDocApprovalStatus | ||
| int1asCrdtMemoReqApprvlStsCritlty | ||||
| TotalNetAmount | TotalNetAmount | Total Net Amount | ||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| OrganizationDivision | I_CreditMemoRequest | OrganizationDivision | Org. Division | |
| DistributionChannel | I_CreditMemoRequest | DistributionChannel | RefDistCh-Cust/Mat. | |
| SalesOrganization | I_CreditMemoRequest | SalesOrganization | Sales Organization | |
| PersonnelendasEmployee | ||||
| SDDocumentReason | I_CreditMemoRequest | SDDocumentReason | Order Reason | |
| ResponsibleEmployeeName | ||||
| CreditMemoRequestDate | I_CreditMemoRequest | CreditMemoRequestDate | Document Date | |
| PurchaseOrder | I_CreditMemoRequest | PurchaseOrderByCustomer | Purchase Order Number | |
| CustomerPurchaseOrderDate | I_CreditMemoRequest | CustomerPurchaseOrderDate | Purchase Order Date | |
| CreatedByUser | I_CreditMemoRequest | CreatedByUser | User Name | |
| CreatedByUserDescription | ||||
| CreationDate | I_CreditMemoRequest | CreationDate | Time Stamp | |
| LastChangedByUser | I_CreditMemoRequest | LastChangedByUser | User Name | |
| LastChangedByUserDescription | ||||
| _CreditmemorequestItemfs | _CreditmemorequestItemfs | |||
| _SDDocumentPartnerCard | _SDDocumentPartnerCard | |||
| _OverallSDProcessStatus | _OverallSDProcessStatus | |||
| _HeaderBillingBlockReason | _HeaderBillingBlockReason | |||
| _OverallOrdReltdBillgStatus | _OverallOrdReltdBillgStatus | |||
| _OverallSDDocumentRejectionSts | _OverallSDDocumentRejectionSts | |||
| _SoldToPartyVH | _SoldToPartyVH | |||
| _SDDocumentReason | _SDDocumentReason | |||
| _SalesDocApprovalStatus | _SalesDocApprovalStatus | |||
| _CreditMemoReqApprovalReason | _CreditMemoReqApprovalReason | |||
| _TotalCreditCheckStatus | _TotalCreditCheckStatus |
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_Creditmemorequestfs.
-- 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: CCREDITMRFS
CREATE VIEW C_Creditmemorequestfs AS
SELECT
CMR.CreditMemoRequest AS CreditMemoRequest,
concat_with_space( CMR._CreditMemoRequestType._Text[1: Language=$session.system_language ].SalesDocumentTypeName, ltrim(CreditMemoRequest, '0'), 1 ) AS SalesDocumentTypeName,
CreditMemoRequestType,
CMR.SoldToParty AS SoldToParty,
cast('' as ad_namtext ) AS SoldToPartyName,
cast( CMR._Partner[PartnerFunction='WE'].Customer as kunwe ) AS ShipToParty,
cast('' as ad_namtext ) AS ShipToPartyName,
CMR.OverallSDProcessStatus AS OverallSDProcessStatus,
CMR.OverallOrdReltdBillgStatus AS OverallOrdReltdBillgStatus,
cast( case when CMR.HeaderBillingBlockReason != '' then 1 else 0 end as abap.int1) as BillingBlockCriticality AS int1asBillingBlockCriticality,
CMR.HeaderBillingBlockReason AS HeaderBillingBlockReason,
CMR.TotalCreditCheckStatus AS TotalCreditCheckStatus,
CMR.OverallSDDocumentRejectionSts AS OverallSDDocumentRejectionSts,
CMR.CreditMemoReqApprovalReason AS CreditMemoReqApprovalReason,
_CreditMemoReqApprovalReason._SDApprovalReasonT[1: Language=$session.system_language].SDApprovalReasonName AS SDApprovalReasonName,
CMR.SalesDocApprovalStatus AS SalesDocApprovalStatus,
TotalNetAmount,
TransactionCurrency,
CMR.OrganizationDivision AS OrganizationDivision,
CMR.DistributionChannel AS DistributionChannel,
CMR.SalesOrganization AS SalesOrganization,
case _EmployeeResponsible.Personnel when '00000000' then '' else _EmployeeResponsible.Personnel end as Employee AS PersonnelendasEmployee,
CMR.SDDocumentReason AS SDDocumentReason,
cast('' as ad_namtext ) AS ResponsibleEmployeeName,
CMR.CreditMemoRequestDate AS CreditMemoRequestDate,
CMR.PurchaseOrderByCustomer AS PurchaseOrder,
CMR.CustomerPurchaseOrderDate AS CustomerPurchaseOrderDate,
CMR.CreatedByUser AS CreatedByUser,
CMR._CreatedByUser.UserDescription AS CreatedByUserDescription,
CMR.CreationDate AS CreationDate,
CMR.LastChangedByUser AS LastChangedByUser,
CMR._LastChangedByUser.UserDescription AS LastChangedByUserDescription
FROM I_CreditMemoRequest AS CMR
LEFT OUTER JOIN C_Q2CCustomerQuickView AS _SoldToPartyVH ON SoldToParty = _SoldToPartyVH.Customer -- association [0..1]
LEFT OUTER JOIN C_CreditmemorequestItemfs AS _CreditmemorequestItemfs ON CreditMemoRequest = _CreditmemorequestItemfs.CreditMemoRequest -- association [0..*]
LEFT OUTER JOIN C_SDDocumentPartnerCard AS _SDDocumentPartnerCard ON CreditMemoRequest = _SDDocumentPartnerCard.SDDocument AND _SDDocumentPartnerCard.SDDocumentItem = '000000' -- association [0..*]
LEFT OUTER JOIN I_SDDocumentPersonnel AS _EmployeeResponsible ON CreditMemoRequest= _EmployeeResponsible.SDDocument AND _EmployeeResponsible.PartnerFunction = 'ZM' -- association [0..1]
LEFT OUTER JOIN E_SalesDocumentBasic AS _Extension ON CreditMemoRequest = _Extension.SalesDocument -- association [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