I_PaymentTermsText

DDL: I_PAYMENTTERMSTEXT Type: view BASIC

Payment Term - Text

I_PaymentTermsText is a Basic CDS View that provides data about "Payment Term - Text" in SAP S/4HANA. It reads from 1 data source (P_PaymentTermsTextTblFunc) and exposes 7 fields with key fields Language, PaymentTerms. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
P_PaymentTermsTextTblFunc P_PaymentTermsTextTblFunc from

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_Language _Language $projection.Language = _Language.Language
[1..1] I_PaymentTerms _PaymentTerms $projection.PaymentTerms = _PaymentTerms.PaymentTerms
[0..1] I_CustomerPaymentTermsText _CustomerPaymentTermsText $projection.PaymentTerms = _CustomerPaymentTermsText.CustomerPaymentTerms and $projection.Language = _CustomerPaymentTermsText.Language

Annotations (17)

NameValueLevelField
AbapCatalog.sqlViewName IFIPAYMENTTERMST view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
Analytics.dataExtraction.enabled true view
Analytics.internalName #LOCAL view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Payment Term - Text view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.dataCategory #TEXT view
ObjectModel.modelingPattern #LANGUAGE_DEPENDENT_TEXT view
ObjectModel.representativeKey PaymentTerms view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #CUSTOMIZING view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
VDM.viewType #BASIC view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY Language Language
KEY PaymentTerms PaymentTerms
PaymentTermsName _CustomerPaymentTermsText CustomerPaymentTermsName
PaymentTermsDescription
_PaymentTerms _PaymentTerms
_CustomerPaymentTermsText _CustomerPaymentTermsText
_Language _Language
@AbapCatalog: {
    sqlViewName: 'IFIPAYMENTTERMST',
    compiler.compareFilter:true,
    preserveKey:true
    }
@AccessControl:{
    authorizationCheck: #NOT_REQUIRED
    }
@Analytics:{
    dataExtraction.enabled: true,
    internalName: #LOCAL
    }
@ClientHandling:{
    algorithm: #SESSION_VARIABLE
    }
@EndUserText: {
    label: 'Payment Term - Text'
    }
@Metadata: {
    ignorePropagatedAnnotations: true
    }
@ObjectModel: {
    dataCategory: #TEXT,
    modelingPattern:  #LANGUAGE_DEPENDENT_TEXT,
    representativeKey: 'PaymentTerms',
    supportedCapabilities: [
                            #LANGUAGE_DEPENDENT_TEXT,
                            #EXTRACTION_DATA_SOURCE,
                            #CDS_MODELING_ASSOCIATION_TARGET,
                            #CDS_MODELING_DATA_SOURCE,
                            #SQL_DATA_SOURCE
                            ],
    usageType.serviceQuality: #A,
    usageType.sizeCategory: #M,
    usageType.dataClass: #CUSTOMIZING
    }
@VDM: {
    lifecycle.contract.type: #PUBLIC_LOCAL_API,
    viewType: #BASIC
    }

define view I_PaymentTermsText
  as select from P_PaymentTermsTextTblFunc ( P_SAPClient : $session.client )
  association [0..1] to I_Language                 as _Language                 on  $projection.Language = _Language.Language
  association [1..1] to I_PaymentTerms             as _PaymentTerms             on  $projection.PaymentTerms = _PaymentTerms.PaymentTerms
  association [0..1] to I_CustomerPaymentTermsText as _CustomerPaymentTermsText on  $projection.PaymentTerms = _CustomerPaymentTermsText.CustomerPaymentTerms
                                                                                and $projection.Language     = _CustomerPaymentTermsText.Language
{
      @Semantics.language: true
      @ObjectModel.foreignKey.association: '_Language'
  key Language,
      @ObjectModel.foreignKey.association: '_PaymentTerms'
      @ObjectModel.text.element:['PaymentTermsName', 'PaymentTermsDescription']
  key PaymentTerms,
      @Semantics.text: true
      _CustomerPaymentTermsText.CustomerPaymentTermsName              as PaymentTermsName,
      @Semantics.text: true
      cast( PaymentTermsDescription as farp_paytterms_desc preserving type ) as PaymentTermsDescription,
      _PaymentTerms,
      _CustomerPaymentTermsText,
      _Language

}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CUSTOMERPAYMENTTERMSTEXT"
],
"ASSOCIATED":
[
"I_CUSTOMERPAYMENTTERMSTEXT",
"I_LANGUAGE",
"I_PAYMENTTERMS"
],
"BASE":
[],
"ANNO_REF":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/