C_PaymentRequestVariantVH is a Consumption CDS View that provides data about "Payment Request Template Value Help" in SAP S/4HANA. It reads from 1 data source (I_PaytReqVariantAdministration) and exposes 57 fields with key field PaymentRequestVariant. It has 2 associations to related views. Part of development package ODATA_PROCESS_FF_PAYMENTS.
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_PaymentRequestVariantVH.-- 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.CREATE VIEW C_PaymentRequestVariantVH ASSELECT
_PaymentRequestVariantAdmin.PaymentRequestVariant AS PaymentRequestVariant,
cast(_PaymentRequestVariantAdmin.PaymentRequestType as farp_payrq_type) AS PaymentRequestType,
_PaymentRequestVariantAdmin.CreatedByUser AS CreatedByUser,
_PaymentRequestVariantAdmin.PaymentRequestVariantText AS PaymentRequestVariantText,
_PaymentData.PayingCompanyCode AS PayingCompanyCode,
_PaymentData.HouseBank AS HouseBank,
_PaymentData.HouseBankAccount AS HouseBankAccount,
_PaymentData.PaymentRequestCurrency AS PaymentRequestCurrency,
_PaymentData.PaymentRequestAmountInPaytCrcy AS PaymentRequestAmountInPaytCrcy,
_PaymentData.PaymentRequestAmountInCCCrcy AS PaymentRequestAmountInCCCrcy,
_PaymentData.CompanyCodeCurrency AS CompanyCodeCurrency,
_PaymentData.PaymentMethod AS PaymentMethod,
_PaymentData.ReferenceTypeText AS ReferenceTypeText,
_PaymentData.IsSinglePayment AS IsSinglePayment,
_PaymentData.DataExchangeInstructionKey AS DataExchangeInstructionKey,
_PaymentData.DataExchangeInstruction1 AS DataExchangeInstruction1,
_PaymentData.DataExchangeInstruction2 AS DataExchangeInstruction2,
_PaymentData.DataExchangeInstruction3 AS DataExchangeInstruction3,
_PaymentData.DataExchangeInstruction4 AS DataExchangeInstruction4,
_PaymentData.StateCentralBankPaymentReason AS StateCentralBankPaymentReason,
_PaymentData.SupplyingCountry AS SupplyingCountry,
_PaymentData.BankChain AS BankChain,
_PaymentData.PaymentMethodSupplement AS PaymentMethodSupplement,
_PaymentData.PaymentReference AS PaymentReference,
_PaymentData.TaxID1 AS TaxID1,
case PaymentRequestType when 'FI-AR-PR' then _CustomerVariant.CustomerName when 'FI-AP-PR' then _SupplierVariant._Supplier.SupplierName when 'FI-BL' then _PostingData.PayeeName else _PostingData.PayeeName endas PayeeName AS PayeeNameendasPayeeName,
_PostingData.BankAccountHolderName AS BankAccountHolderName,
_PostingData.BankDetailReference AS BankDetailReference,
_PostingData.FinancialAccountType AS FinancialAccountType,
_PostingData.CustomerSupplierAccount AS CustomerSupplierAccount,
_PostingData.PayeeTitle AS PayeeTitle,
case PaymentRequestType when 'FI-AR-PR' then _CustomerVariant.PostalCode when 'FI-AP-PR' then _SupplierVariant._Supplier.PostalCode when 'FI-BL' then _PostingData.PayeePostalCode else _PostingData.PayeePostalCode endas PayeePostalCode AS PayeePostalCodeendasPayeePostalCode,
_PostingData.PayeePOBox AS PayeePOBox,
_PostingData.POBoxPostalCode AS POBoxPostalCode,
_PostingData.PayeeAdditionalName2 AS PayeeAdditionalName2,
_PostingData.PayeeAdditionalName3 AS PayeeAdditionalName3,
_PostingData.PayeeAdditionalName4 AS PayeeAdditionalName4,
case PaymentRequestType when 'FI-AR-PR' then _CustomerVariant.CityName when 'FI-AP-PR' then _SupplierVariant._Supplier.CityName when 'FI-BL' then _PostingData.PayeeCityName else _PostingData.PayeeCityName endas PayeeCityName AS PayeeCityNameendasPayeeCityName,
case PaymentRequestType when 'FI-AR-PR' then _CustomerVariant.StreetName when 'FI-AP-PR' then _SupplierVariant._Supplier.StreetName when 'FI-BL' then _PostingData.PayeeStreet else _PostingData.PayeeStreet endas PayeeStreet AS PayeeStreetendasPayeeStreet,
case PaymentRequestType when 'FI-AR-PR' then _CustomerVariant.Country when 'FI-AP-PR' then _SupplierVariant._Supplier.Country when 'FI-BL' then _PostingData.PayeeCountry else _PostingData.PayeeCountry endas PayeeCountry AS PayeeCountryendasPayeeCountry,
_PostingData.PayeeRegion AS PayeeRegion,
_PostingData.PayeeLanguage AS PayeeLanguage,
_PostingData.PayeeFaxNumber AS PayeeFaxNumber,
_BPPostingData.Supplier AS Supplier,
_BPPostingData.Customer AS Customer,
case PaymentRequestType when 'FI-AR-PR' then _CustomerVariant.BankCountry when 'FI-AP-PR' then _SupplierVariant.BankCountry when 'FI-BL' then _PostingData.PayeeBankCountry else _PostingData.PayeeBankCountry endas PayeeBankCountry AS PayeeBankCountryendasPayeeBankCountry,
case PaymentRequestType when 'FI-AR-PR' then _CustomerVariant.BankAccount when 'FI-AP-PR' then _SupplierVariant.BankAccount when 'FI-BL' then _PostingData.PayeeBankAccount else _PostingData.PayeeBankAccount endas PayeeBankAccount AS PayeeBankAccountendasPayeeBankAccount,
case PaymentRequestType when 'FI-AR-PR' then _CustomerVariant.CompanyCode when 'FI-AP-PR' then _SupplierVariant.CompanyCode when 'FI-BL' then _PostingData.CompanyCode else _PostingData.CompanyCode endas CompanyCode AS CompanyCodeendasCompanyCode,
case PaymentRequestType when 'FI-AR-PR' then _CustomerVariant.BusinessArea when 'FI-AP-PR' then _SupplierVariant.BusinessArea when 'FI-BL' then _PostingData.BusinessArea else _PostingData.BusinessArea endas BusinessArea AS BusinessAreaendasBusinessArea,
case PaymentRequestType when 'FI-AR-PR' then _CustomerVariant.DocumentItemText when 'FI-AP-PR' then _SupplierVariant.DocumentItemText when 'FI-BL' then _PostingData.DocumentItemText else _PostingData.DocumentItemText endas DocumentItemText AS DocumentItemTextendasDocumentItemText,
case PaymentRequestType when 'FI-AR-PR' then _CustomerVariant.IBAN when 'FI-AP-PR' then _SupplierVariant.IBAN when 'FI-BL' then '' else '' endas PayeeIBAN AS IBANwhenFIBLthenelseendasPayeeIBAN,
case PaymentRequestType when 'FI-AR-PR' then _CustomerVariant.PaymentSystem when 'FI-AP-PR' then _SupplierVariant.PaymentSystem when 'FI-BL' then _PostingData.PaymentSystem else '' endas PaymentSystem AS PaymentSystemelseendasPaymentSystem,
case PaymentRequestType when 'FI-AR-PR' then _CustomerVariant.AliasType when 'FI-AP-PR' then _SupplierVariant.AliasType when 'FI-BL' then _PostingData.AliasType else '' endas AliasType AS AliasTypeelseendasAliasType,
_BPPostingData._Supplier.SupplierAccountGroup AS SupplierAccountGroup,
_BPPostingData._Supplier.AuthorizationGroup AS SupplierFinsAuthorizationGrp,
_BPPostingData._Customer.CustomerAccountGroup AS CustomerAccountGroup,
_BPPostingData._Customer.AuthorizationGroup AS CustomerFinsAuthorizationGrp
FROM I_PaytReqVariantAdministration AS _PaymentRequestVariantAdmin
LEFTOUTERJOIN C_PaytRequestCustomerVariant AS _CustomerVariant ON PaymentRequestVariant = _CustomerVariant.PaymentRequestVariant -- association [1..1]LEFTOUTERJOIN C_PaytRequestSupplierVariant AS _SupplierVariant ON PaymentRequestVariant = _SupplierVariant.PaymentRequestVariant -- association [1..1]
;