C_MM_PaymentTermValueHelp

DDL: C_MM_PAYMENTTERMVALUEHELP SQL: CMMPAYTTRM_VH Type: view CONSUMPTION

Payment Term Value Help

C_MM_PaymentTermValueHelp is a Consumption CDS View that provides data about "Payment Term Value Help" in SAP S/4HANA. It reads from 1 data source (I_PaymentTermsConditions) and exposes 9 fields with key fields PaymentTerms, PaymentTermsValidityMonthDay. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_PaymentTermsConditions PaymentTermsCond from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_PaymentTermsText _TermsText $projection.PaymentTerms = _TermsText.PaymentTerms

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName CMMPAYTTRM_VH view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #CONSUMPTION view
Search.searchable true view
ObjectModel.representativeKey PaymentTerms view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #S view
EndUserText.label Payment Term Value Help view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY PaymentTerms PaymentTerms Pyt Terms
KEY PaymentTermsValidityMonthDay PaymentTermsValidityMonthDay Day Limit
PaymentTermsName
PaytTrmsCndnExplanationText
CashDiscount1Days CashDiscount1Days Days from Baseline Date for Payment
CashDiscount1Percent CashDiscount1Percent Disc. Percent 1
CashDiscount2Days CashDiscount2Days Days from Baseline Date for Payment
CashDiscount2Percent CashDiscount2Percent Disc. Percent 2
NetPaymentDays NetPaymentDays Net Pmt Terms Period

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_MM_PaymentTermValueHelp.
-- 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: CMMPAYTTRM_VH

CREATE VIEW C_MM_PaymentTermValueHelp AS
SELECT
  PaymentTerms,
  PaymentTermsValidityMonthDay,
  _TermsText[1: Language = $session.system_language].PaymentTermsName AS PaymentTermsName,
  cast (_Text[1: Language = $session.system_language].PaymentTermsConditionDesc as mm_pymnt_term_expl) AS PaytTrmsCndnExplanationText,
  CashDiscount1Days,
  CashDiscount1Percent,
  CashDiscount2Days,
  CashDiscount2Percent,
  NetPaymentDays
FROM I_PaymentTermsConditions AS PaymentTermsCond
LEFT OUTER JOIN I_PaymentTermsText AS _TermsText ON PaymentTerms = _TermsText.PaymentTerms  -- association [0..*]
;