I_RepetitiveCode

DDL: I_REPETITIVECODE SQL: IRPTVCODE Type: view BASIC

Basic View for Repetitive Code

I_RepetitiveCode is a Basic CDS View that provides data about "Basic View for Repetitive Code" in SAP S/4HANA. It reads from 2 data sources (I_CompanyCode, fibl_rpcode) and exposes 23 fields with key fields PayingCompanyCode, HouseBank, RepetitiveCode. It has 2 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_CompanyCode companycode inner
fibl_rpcode rpcode from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_PaymentMethod _PaytMeth $projection.PaymentMethod = _PaytMeth.PaymentMethod and $projection.CompanyCodeCountry = _PaytMeth.Country
[1..1] fibl_rpcode_tdef _Reference rpcode.bukrs = _Reference.bukrs and rpcode.hbkid = _Reference.hbkid and rpcode.rpcode = _Reference.rpcode

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName IRPTVCODE view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #BASIC view
EndUserText.label Basic View for Repetitive Code view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.serviceQuality #C view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (23)

KeyFieldSource TableSource FieldDescription
KEY PayingCompanyCode bukrs Value
KEY HouseBank hbkid House Bank
KEY RepetitiveCode rpcode Repetitive Code
HouseBankAccount hktid House Bank Account
PayeeCompanyCode pbukr Target Company Code
PayeeHouseBank partn Ptr/cus
PayeeHouseBankAccount parta Bank Details
PaymentMethod zlsch Pymt Meth.
Currency waers Transaction Currency
BankCountry banks Bank Ctry/Rgn. Key
CompanyCodeCountry I_CompanyCode Country Venue: Ctry/Reg
PaymentMethodName _PaytMeth PaymentMethodName Text
RepetitiveCodeReferenceText _Reference rp_text Reference Text
PaymentReference _Reference paymt_ref Payment Ref.
DataExchangeInstructionKey _Reference instr_key Instruction Key
DataExchangeInstruction1 _Reference instr1 Instruct. Key 1
DataExchangeInstruction2 _Reference instr2 Instruct. Key 2
DataExchangeInstruction3 _Reference instr3 Instruct. key 3
DataExchangeInstruction4 _Reference instr4 Instruct. key 4
IsSinglePayment _Reference xpore Individual Payt
StateCentralBankPaymentReason _Reference scbank_ind SCB Ind.
SupplierCountry _Reference supcountry Supply C/R
PaymentMethodSupplement _Reference pmtmthsupl Pmnt Meth. Sup.

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 I_RepetitiveCode.
-- 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: IRPTVCODE

CREATE VIEW I_RepetitiveCode AS
SELECT
  bukrs AS PayingCompanyCode,
  hbkid AS HouseBank,
  rpcode AS RepetitiveCode,
  hktid AS HouseBankAccount,
  pbukr AS PayeeCompanyCode,
  partn AS PayeeHouseBank,
  parta AS PayeeHouseBankAccount,
  zlsch AS PaymentMethod,
  waers AS Currency,
  banks AS BankCountry,
  companycode.Country AS CompanyCodeCountry,
  _PaytMeth.PaymentMethodName AS PaymentMethodName,
  _Reference.rp_text AS RepetitiveCodeReferenceText,
  _Reference.paymt_ref AS PaymentReference,
  _Reference.instr_key AS DataExchangeInstructionKey,
  _Reference.instr1 AS DataExchangeInstruction1,
  _Reference.instr2 AS DataExchangeInstruction2,
  _Reference.instr3 AS DataExchangeInstruction3,
  _Reference.instr4 AS DataExchangeInstruction4,
  _Reference.xpore AS IsSinglePayment,
  _Reference.scbank_ind AS StateCentralBankPaymentReason,
  _Reference.supcountry AS SupplierCountry,
  _Reference.pmtmthsupl AS PaymentMethodSupplement
FROM fibl_rpcode AS rpcode
INNER JOIN I_CompanyCode AS companycode ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_PaymentMethod AS _PaytMeth ON PaymentMethod = _PaytMeth.PaymentMethod AND CompanyCodeCountry = _PaytMeth.Country  -- association [1..1]
LEFT OUTER JOIN fibl_rpcode_tdef AS _Reference ON rpcode.bukrs = _Reference.bukrs AND rpcode.hbkid = _Reference.hbkid AND rpcode.rpcode = _Reference.rpcode  -- association [1..1]
;