R_PaymentMethodValueHelp

DDL: R_PAYMENTMETHODVALUEHELP Type: view_entity COMPOSITE Package: ODATA_CA_BUM_WF

Select: Payment Method

R_PaymentMethodValueHelp is a Composite CDS View that provides data about "Select: Payment Method" in SAP S/4HANA. It reads from 1 data source (I_PaymentMethod) and exposes 3 fields with key fields CompanyCodeCountry, PaymentMethod. Part of development package ODATA_CA_BUM_WF.

Data Sources (1)

SourceAliasJoin Type
I_PaymentMethod _PaymentMethod from

Annotations (13)

NameValueLevelField
ObjectModel.dataCategory #VALUE_HELP view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.representativeKey PaymentMethod view
ObjectModel.resultSet.sizeCategory #XS view
Consumption.ranked true view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
Search.searchable true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MASTER view
EndUserText.label Select: Payment Method view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY CompanyCodeCountry Country
KEY PaymentMethod PaymentMethod
PaymentMethodName PaymentMethodName
@AbapCatalog.viewEnhancementCategory: [#NONE]
@ObjectModel.dataCategory:#VALUE_HELP
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ObjectModel.representativeKey:'PaymentMethod'
@ObjectModel : { resultSet.sizeCategory: #XS }
@Consumption.ranked:true
@Metadata.ignorePropagatedAnnotations: true
@VDM: {
  viewType: #COMPOSITE,
  lifecycle.contract.type: #SAP_INTERNAL_API
}
@Search.searchable: true
@ObjectModel.usageType:{
  serviceQuality: #C,
  sizeCategory: #XL,
  dataClass: #MASTER
}
@EndUserText.label: 'Select: Payment Method'
define view entity R_PaymentMethodValueHelp
  as select from I_PaymentMethod as _PaymentMethod
{
      @UI.hidden: true
  key Country as CompanyCodeCountry,
      @ObjectModel.text.element:  [ 'PaymentMethodName' ]
      @Search: { defaultSearchElement: true, ranking: #HIGH }
      @UI.textArrangement: #TEXT_FIRST
  key PaymentMethod,
      @Semantics.text:true
      PaymentMethodName
}




























//  as select from R_PaymentMethod as _MappingTableForPaymentMethods

//  //Payment Method Text

//  association [0..1] to R_PaymentMethodText as _PaymentMethodText   on  _PaymentMethodText.PaymentMethodInEmplCentral = _MappingTableForPaymentMethods.PaymentMethodInEmplCentral

//                                                                    and _PaymentMethodText.Language                   = $session.system_language

//  //FI Payment Method Text

//  association [0..1] to I_PaymentMethodText as _FIPaymentMethodText on  _FIPaymentMethodText.Country       = $projection.CompanyCodeCountry

//                                                                    and _FIPaymentMethodText.PaymentMethod = $projection.PaymentMethod

//                                                                    and _FIPaymentMethodText.Language      = $session.system_language

//  association [0..1] to I_CurrencyText      as _CurrencyText        on  _CurrencyText.Currency = $projection.PaymentCurrency

//                                                                    and _CurrencyText.Language = $session.system_language

//

//{

//          @UI.hidden: true

//  key     _MappingTableForPaymentMethods.CompanyCodeCountry,

//          @UI.hidden: true

//  key     _MappingTableForPaymentMethods. BankCountryKey,

//          @EndUserText: { label: 'Payment Currency', quickInfo: 'Payment Currency' }

//          @UI: { lineItem:[ { position: 30, label: 'Payment Currency'   } ] }

//          @ObjectModel.text.element:  [ 'CurrencyName' ]

//          @Search: { defaultSearchElement: true, ranking: #HIGH }

//          @UI.textArrangement: #TEXT_FIRST

//  key     _MappingTableForPaymentMethods.PaymentCurrency,

//          @EndUserText: { label: 'Payment Method', quickInfo: 'Payment Method' }

//          @UI: { lineItem:[ { position: 10, label: 'Payment Method'   } ] }

//          @ObjectModel.text.element:  [ 'PaymentMethodDescription' ]

//          @UI.textArrangement: #TEXT_FIRST

//  key     _MappingTableForPaymentMethods.PaymentMethodInEmplCentral, //Payment Method

//          @Search.defaultSearchElement:true

//          @Search.fuzzinessThreshold:0.9

//          @UI.textArrangement: #TEXT_FIRST

//          @ObjectModel.text.element:  [ 'PaymentMethodName' ]

//          @EndUserText.label: 'FI Accounting Payment Method'

//          @UI: { lineItem:[ { position: 20, label: 'FI Accounting Payment Method' } ] }

//  key     _MappingTableForPaymentMethods.PaymentMethod, //FI Payment Method

//          //        @UI.hidden                 : true

//          //        @EndUserText: { label: 'Is Check Existing' }

//          //        case

//          //          when _MappingTableForPaymentMethods.PaymentMethodInEmplCentral = '06' //Check

//          //          then cast( 'X' as boolean ) //Check

//          //          else cast( ' ' as boolean ) //Bank Transfer

//          //          end                                         as ChequeIsExisting,

//          //        @UI.hidden                 : true

//          //        @EndUserText: { label: 'Is Payment Existing' }

//          //        case

//          //          when _MappingTableForPaymentMethods.PaymentMethodInEmplCentral = '05' //Bank Transfer

//          //          then cast( 'X' as boolean ) //Bank Transfer

//          //          else cast( ' ' as boolean ) //Check

//          //          end                                  as PaymentIsEnabled,

//          @Semantics.text: true

//          @Search: { defaultSearchElement: true, fuzzinessThreshold: 0.9 }

//          _PaymentMethodText.PaymentMethodDescription, //Text from Payment Method

//          @Semantics.text: true

//          @Search: { defaultSearchElement: true, fuzzinessThreshold: 0.9 }

//          _FIPaymentMethodText.PaymentMethodDescription as PaymentMethodName, //Text from FI Payment Method

//          @Semantics.text: true

//          @Search: { defaultSearchElement: true, fuzzinessThreshold: 0.9 }

//          _CurrencyText.CurrencyName                    as CurrencyName

//}



//define view entity R_PaymentMethodValueHelp

//R_PaymentMethod

//  as select from fap_h2r_pm_map as _MappingTableForPaymentMethods

//  //    left outer to one join dd07t          as _PaymentMethodText on  _PaymentMethodText.domname    = 'WFD_PAYMENT_METHOD'

//  //                                                                and _PaymentMethodText.domvalue_l = _MappingTableForPaymentMethods.payt_method_in_ec

//  //                                                                and _PaymentMethodText.as4local   = 'A'

//  //                                                                and _PaymentMethodText.ddlanguage = $session.system_language

//

//  association [0..1] to R_PaymentMethodText as _PaymentMethodText   on  _PaymentMethodText.WorkerPaymentMethod = _MappingTableForPaymentMethods.payt_method_in_ec

//

//  association [0..1] to I_CurrencyText      as _CurrencyText        on  _CurrencyText.Currency = $projection.PaymentCurrency

//                                                                    and _CurrencyText.Language = $session.system_language

//  association [0..1] to I_PaymentMethodText as _FIPaymentMethodText on  _FIPaymentMethodText.Country       = $projection.BankCountryKey

//                                                                    and _FIPaymentMethodText.PaymentMethod = $projection.PaymentMethod

//                                                                    and _FIPaymentMethodText.Language      = $session.system_language


//{

//        @UI.hidden: true

//  key   _MappingTableForPaymentMethods.cntry_for_comp_code                             as CompanyCodeCountry,

//        @UI.hidden: true

//  key   _MappingTableForPaymentMethods.cntry_for_recv_bank                             as BankCountryKey,

//        @EndUserText: { label: 'Payment Currency', quickInfo: 'Payment Currency' }

//        @UI: { lineItem:[ { position: 30, label: 'Payment Currency'   } ] }

//        @ObjectModel.text.element:  [ 'CurrencyName' ]

//        @Search: { defaultSearchElement: true, ranking: #HIGH }

//        @UI.textArrangement: #TEXT_FIRST

//  key   _MappingTableForPaymentMethods.payt_currency                                   as PaymentCurrency,

//        @EndUserText: { label: 'Payment Method', quickInfo: 'Payment Method' }

//        @UI: { lineItem:[ { position: 10, label: 'Payment Method'   } ] }

//        @ObjectModel.text.element:  [ 'PaymentMethodName' ]

//        @UI.textArrangement: #TEXT_FIRST

//  key   cast( _MappingTableForPaymentMethods.payt_method_in_ec as wfd_payment_method ) as WorkerPaymentMethod,

//        @Search.defaultSearchElement:true

//        @Search.fuzzinessThreshold:0.9

//        @UI.textArrangement: #TEXT_FIRST

//        @ObjectModel.text.element:  [ 'PaymentMethodDescription' ]

//        @EndUserText.label: 'FI Accounting Payment Method'

//        @UI: { lineItem:[ { position: 20, label: 'FI Accounting Payment Method' } ] }

//        _MappingTableForPaymentMethods.payt_method                                     as PaymentMethod, //FI Payment Method

//        @Semantics.text: true

//        @Search: { defaultSearchElement: true, fuzzinessThreshold: 0.9 }

//        _CurrencyText.CurrencyName                                                     as CurrencyName,

//        @Semantics.text: true

//        @Search: { defaultSearchElement: true, fuzzinessThreshold: 0.9 }

//        _FIPaymentMethodText.PaymentMethodDescription, //From FI Payment Method

//        @Semantics.text: true

//        @Search: { defaultSearchElement: true, fuzzinessThreshold: 0.9 }

//        _PaymentMethodText.PaymentMethodName //From Payment Method

//}