I_PaymentCardTP_2

DDL: I_PAYMENTCARDTP_2 Type: view_entity TRANSACTIONAL

BP Payment Card TP view

I_PaymentCardTP_2 is a Transactional CDS View that provides data about "BP Payment Card TP view" in SAP S/4HANA. It reads from 1 data source (I_Paymentcard) and exposes 15 fields with key fields BusinessPartner, PaymentCardID, PaymentCardType, CardNumber. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_Paymentcard I_Paymentcard from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_PaymentCardMasterTmpTP _CardMasterDetails $projection.CardNumber = _CardMasterDetails.PaymentCardNumber and $projection.PaymentCardType = _CardMasterDetails.PaymentCardType
[0..1] I_PaymentCardMasterTmpTP _CardMaster

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label BP Payment Card TP view view
AccessControl.personalData.blocking #REQUIRED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
Metadata.ignorePropagatedAnnotations true view

Fields (15)

KeyFieldSource TableSource FieldDescription
KEY BusinessPartner BusinessPartner
KEY PaymentCardID PaymentCardID
KEY PaymentCardType PaymentCardType
KEY CardNumber CardNumber
PaymentCardForEditID PaymentCardID
IsStandardCard IsStandardCard
CardDescription CardDescription
CardIssuingBank
PaymentCardLock
CardHolderName
ValidityEndDate
MaskedCardNumber
_BusinessPartner _BusinessPartner
_CardMaster _CardMaster
_CardMasterDetails _CardMasterDetails
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'BP Payment Card TP view'
//@AccessControl.authorizationCheck: #CHECK

@AccessControl.personalData.blocking: #REQUIRED
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
//@Search.searchable: true

@VDM.viewType: #TRANSACTIONAL
@VDM.lifecycle.contract.type: #SAP_INTERNAL_API
@Metadata.ignorePropagatedAnnotations: true

define view entity I_PaymentCardTP_2 as select from I_Paymentcard 
association  to parent I_BusinessPartnerTP_2   as _BusinessPartner on  $projection.BusinessPartner = _BusinessPartner.BusinessPartner
//                                                                   and $projection.BPDrftUUID = _BusinessPartner.BPDrftUUID


 // association [1..1] to I_PAYMENTCARDMASTERTP_2 as _CardDetails     on  $projection.CardNumber      = _CardDetails.PaymentCardNumber

   //                                                               and $projection.PaymentCardType = _CardDetails.PaymentCardType

                                                                  
  composition [0..1] of I_PaymentCardMasterTmpTP as _CardMaster 
  association [0..1] to I_PaymentCardMasterTmpTP as _CardMasterDetails on $projection.CardNumber      = _CardMasterDetails.PaymentCardNumber
                                                                  and $projection.PaymentCardType = _CardMasterDetails.PaymentCardType                                                                  
                                                                    
{
//    key cast ( hextobin('00000000000000000000000000000000') as sysuuid_x ) as BPDrftUUID,

//    key cast ( hextobin('00000000000000000000000000000000') as sysuuid_x ) as BPPaymentCardDrftUUID,

    key BusinessPartner,
    key PaymentCardID,
    key PaymentCardType,
    key CardNumber,
    PaymentCardID as PaymentCardForEditID,
    IsStandardCard,
    CardDescription,
    
    cast ('' as cc_issbank) as CardIssuingBank,
    cast ('' as cc_lock) as PaymentCardLock,
    cast ('' as ccname) as CardHolderName,
    cast ('00000000' as cc_datbi) as ValidityEndDate,
    cast ('' as dp_mask_number) as MaskedCardNumber,
    //_CardMasterDetails.CardIssuingBank,

    //_CardMasterDetails.PaymentCardLock,

    
    //cast ( '' as char1024 ) as Registration_URL,

    //cast ( hextobin('00000000000000000000000000000000') as sysuuid_x ) as Session_ID,

    //cast ( hextobin('00000000000000000000000000000000') as sysuuid_x ) as CARDMASTERDRAFTUUID,

    _BusinessPartner,
    //_CardDetails,

    _CardMaster,
    _CardMasterDetails
    //_CardMasterDetails._PaymentCardTypeText

    
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_PAYMENTCARD"
],
"ASSOCIATED":
[
"I_BUSINESSPARTNERTP_2",
"I_PAYMENTCARDMASTERTMPTP"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/