P_JournalEntryOneTimeAcctReuse

DDL: P_JOURNALENTRYONETIMEACCTREUSE Type: view_entity COMPOSITE

One Time Account Reuse

P_JournalEntryOneTimeAcctReuse is a Composite CDS View that provides data about "One Time Account Reuse" in SAP S/4HANA. It reads from 1 data source (I_JournalEntryOneTimeAccount) and exposes 118 fields with key fields OneTimeAccountSourceDocType, OneTimeAccountSourceDocument, OneTimeAccountSourceDocItem, CompanyCode, AccountingDocument. It has 6 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_JournalEntryOneTimeAccount I_JournalEntryOneTimeAccount from

Associations (6)

CardinalityTargetAliasCondition
[1..1] I_Customer _Customer $projection.Customer = _Customer.Customer
[1..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier
[0..1] I_FinancialAccountType _FinancialAccountType $projection.FinancialAccountType = _FinancialAccountType.FinancialAccountType
[0..*] I_GlAccountTextInCompanycode _GLAccountText $projection.CompanyCode = _GLAccountText.CompanyCode and $projection.GLAccount = _GLAccountText.GLAccount
[0..*] I_AccountType _AccountTaxTypeText $projection.FinancialAccountType = _AccountTaxTypeText.AccountType and $projection.AccountTaxType = _AccountTaxTypeText.AccountTaxType
[0..*] I_AR_TaxNumberTypeText _TaxNumberTypeText $projection.TaxNumberType = _TaxNumberTypeText.TaxNumberType

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label One Time Account Reuse view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (118)

KeyFieldSource TableSource FieldDescription
KEY OneTimeAccountSourceDocType
KEY OneTimeAccountSourceDocument
KEY OneTimeAccountSourceDocItem
KEY CompanyCode CompanyCode Receiver Company Code
KEY AccountingDocument AccountingDocument Journal Entry
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY AccountingDocumentItem AccountingDocumentItem Posting View Item
KEY OneTimeAccountImageType
CompanyCodeForEdit CompanyCode Receiver Company Code
AccountingDocumentForEdit AccountingDocument Journal Entry
FiscalYearForEdit FiscalYear G/L Fiscal Year
AccountingDocumentItemForEdit AccountingDocumentItem Posting View Item
OneTimeAccountBPSalutationText OneTimeAccountBPSalutationText Title
Language Language Report Text Language
BusinessPartnerName1 BusinessPartnerName1 Name
BusinessPartnerName2 BusinessPartnerName2 Name 2
BusinessPartnerName3 BusinessPartnerName3 Name 3
BusinessPartnerName4 BusinessPartnerName4 Name 4
StreetName StreetName Text
POBox POBox PO Box
POBoxIsWithoutNumber POBoxIsWithoutNumber PO Box w/o No.
POBoxPostalCode POBoxPostalCode PO Box Postal Code
PostOfficeBankAccount PostOfficeBankAccount Curr.Acct or Ref.No.
CityName CityName Name
PostalCode PostalCode Postal Code
Country Country Venue: Ctry/Reg
Region Region Venue Region
EmailAddress EmailAddress E-Mail Address
AddressID AddressID Ship-to address
BankInternalID BankInternalID Bank Key
BankCountry BankCountry Bank Ctry/Rgn. Key
BankAccount BankAccount Bank acct
BankControlKey BankControlKey Control Key
BankReference BankReference Payment Reference
SWIFTCode _Bank SWIFTCode SWIFT/BIC
Bank _Bank Bank Bank Number
IBAN _IBAN IBAN IBAN House Bank
QuickResponseIBAN
IBANValidityStartDate _IBAN IBANValidityStartDate IBAN Valid From
PaymentRecipient PaymentRecipient Pmnt Recipient
PaymentSystem PaymentSystem Payment System
AliasType AliasType Alias Type
BPBankAccountAliasName BPBankAccountAliasName Bank Account Alias
VATRegistration
DataExchangeInstructionKey DataExchangeInstructionKey Instruction Key
DataMediumExchangeIndicator DataMediumExchangeIndicator DME Rec. Code
TaxID1 TaxID1 Tax Number 1
TaxID2 TaxID2 Tax Number 2
TaxID3 TaxID3 Tax Number 3
TaxID4 TaxID4 Tax Number 4
TaxID5 TaxID5 Tax Number 5
AccountTaxType AccountTaxType Tax Type
TaxNumberType TaxNumberType Tax number type
IsNaturalPerson IsNaturalPerson Natural person
OneTmeAcctIsEqualizationTxSubj OneTmeAcctIsEqualizationTxSubj Equalizatn tax
BusinessType BusinessType Type of Business
IndustryType IndustryType Type of Industry
IsVATLiable IsVATLiable Liable for VAT
RepresentativeName RepresentativeName Rep's Name
OneTimeAcctCntrySpecificRef1 OneTimeAcctCntrySpecificRef1 Country/Region Specific Reference 1
OneTimeAcctCntrySpcfcRef1Text
OneTimeAccountTransactionType
FiscalPeriod _AccountingDocument FiscalPeriod Tax period
TransactionCurrency _AccountingDocument TransactionCurrency Transaction Currency
IsReversal _AccountingDocument IsReversal Reversal doc.
IsReversed _AccountingDocument IsReversed Reversed?
AddressAndBankIsSetManually _OperationalAcctgDocItem AddressAndBankIsSetManually Address and Bank is Set Manually
FinancialAccountType _OperationalAcctgDocItem FinancialAccountType Fin. Account Type
Customer _OperationalAcctgDocItem Customer Sold-to Party
Supplier _OperationalAcctgDocItem Supplier Supplier
InvoiceReference _OperationalAcctgDocItem InvoiceReference Invoice Reference
InvoiceReferenceFiscalYear _OperationalAcctgDocItem InvoiceReferenceFiscalYear Invoice Reference Fiscal Year
PostingKey _OperationalAcctgDocItem PostingKey Posting Key
SpecialGLCode _OperationalAcctgDocItem SpecialGLCode Special G/L Ind
IsSalesRelated _OperationalAcctgDocItem IsSalesRelated Is Sales Related
DocumentDate _OperationalAcctgDocItem DocumentDate Journal Entry Date
GLAccount _OperationalAcctgDocItem GLAccount General Ledger
SpecialGLTransactionType _OperationalAcctgDocItem SpecialGLTransactionType Transact.Type
ClearingAccountingDocument _OperationalAcctgDocItem ClearingAccountingDocument Clearing Journal Entry
HasPaymentOrder _OperationalAcctgDocItem HasPaymentOrder Payment Sent
DebitCreditCode _OperationalAcctgDocItem DebitCreditCode Single-Character Flag
FollowOnDocumentType _OperationalAcctgDocItem FollowOnDocumentType Follow-On Document Type
BPBankAccountInternalID _OperationalAcctgDocItem BPBankAccountInternalID BP Bank Account
PaytSlipWthRefSubscriber _OperationalAcctgDocItem PaytSlipWthRefSubscriber PBC/POR Number
PaytSlipWthRefReference _OperationalAcctgDocItem PaytSlipWthRefReference QR Reference
AlternativePayeePayer _OperationalAcctgDocItem AlternativePayeePayer Alternative Payee/Payer
IsOneTimeAccount IsOneTimeAccount One-time acct
OneTimeAcctBankDetIsFromPayt OneTimeAcctBankDetIsFromPayt Transfer Bank Details
LastChangeDate _AccountingDocument LastChangeDate Time Stamp
OneTimeAccountAuthznGroup
OneTimeAccountDataAgingDate
OneTimeAccountFieldStatusValue
OneTimeAcctDetnIsNotRequired
AcctgDocHasQuickRspBillgSupp
IBANIsQuickResponse
OneTimeAcctChgIsNotAllowed
ReferenceAccountForIBAN
QuickRepIBANIsUsdInOneTmeAcct
SEPAMandtIsUsdInOneTimeAcct
OneTimeAccountIsCreatedFromAPI
QuickRepRefEditIsSupported
_CompanyCode _CompanyCode
_Customer _Customer
_Supplier _Supplier
_AccountingDocument _AccountingDocument
_OperationalAcctgDocItem _OperationalAcctgDocItem
_FiscalYear _FiscalYear
_Address _Address
_IBAN _IBAN
_Bank _Bank
_FinancialAccountType _FinancialAccountType
_CountryText _CountryText
_BankCountryText _BankCountryText
_LanguageText _LanguageText
_GLAccountText _GLAccountText
_DMEIndicatorText _DMEIndicatorText
_AccountTaxTypeText _AccountTaxTypeText
_TaxNumberTypeText _TaxNumberTypeText

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 P_JournalEntryOneTimeAcctReuse.
-- 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 P_JournalEntryOneTimeAcctReuse AS
SELECT
  cast('' as fota_sourcedoctype) AS OneTimeAccountSourceDocType,
  cast('' as fota_sourcedocid) AS OneTimeAccountSourceDocument,
  cast('0000000000' as posnr_acc) AS OneTimeAccountSourceDocItem,
  CompanyCode,
  AccountingDocument,
  FiscalYear,
  AccountingDocumentItem,
  cast ('' as fota_image_type) AS OneTimeAccountImageType,
  CompanyCode AS CompanyCodeForEdit,
  AccountingDocument AS AccountingDocumentForEdit,
  FiscalYear AS FiscalYearForEdit,
  AccountingDocumentItem AS AccountingDocumentItemForEdit,
  OneTimeAccountBPSalutationText,
  Language,
  BusinessPartnerName1,
  BusinessPartnerName2,
  BusinessPartnerName3,
  BusinessPartnerName4,
  StreetName,
  POBox,
  POBoxIsWithoutNumber,
  POBoxPostalCode,
  PostOfficeBankAccount,
  CityName,
  PostalCode,
  Country,
  Region,
  EmailAddress,
  AddressID,
  BankInternalID,
  BankCountry,
  BankAccount,
  BankControlKey,
  BankReference,
  _Bank.SWIFTCode AS SWIFTCode,
  _Bank.Bank AS Bank,
  _IBAN.IBAN AS IBAN,
  cast('' as qriban ) AS QuickResponseIBAN,
  _IBAN.IBANValidityStartDate AS IBANValidityStartDate,
  PaymentRecipient,
  PaymentSystem,
  AliasType,
  BPBankAccountAliasName,
  cast(_OperationalAcctgDocItem.VATRegistration as farp_stceg preserving type) AS VATRegistration,
  DataExchangeInstructionKey,
  DataMediumExchangeIndicator,
  TaxID1,
  TaxID2,
  TaxID3,
  TaxID4,
  TaxID5,
  AccountTaxType,
  TaxNumberType,
  IsNaturalPerson,
  OneTmeAcctIsEqualizationTxSubj,
  BusinessType,
  IndustryType,
  IsVATLiable,
  RepresentativeName,
  OneTimeAcctCntrySpecificRef1,
  cast('' as scrtext_m) AS OneTimeAcctCntrySpcfcRef1Text,
  cast('' as fota_transactiontype) AS OneTimeAccountTransactionType,
  _AccountingDocument.FiscalPeriod AS FiscalPeriod,
  _AccountingDocument.TransactionCurrency AS TransactionCurrency,
  _AccountingDocument.IsReversal AS IsReversal,
  _AccountingDocument.IsReversed AS IsReversed,
  _OperationalAcctgDocItem.AddressAndBankIsSetManually AS AddressAndBankIsSetManually,
  _OperationalAcctgDocItem.FinancialAccountType AS FinancialAccountType,
  _OperationalAcctgDocItem.Customer AS Customer,
  _OperationalAcctgDocItem.Supplier AS Supplier,
  _OperationalAcctgDocItem.InvoiceReference AS InvoiceReference,
  _OperationalAcctgDocItem.InvoiceReferenceFiscalYear AS InvoiceReferenceFiscalYear,
  _OperationalAcctgDocItem.PostingKey AS PostingKey,
  _OperationalAcctgDocItem.SpecialGLCode AS SpecialGLCode,
  _OperationalAcctgDocItem.IsSalesRelated AS IsSalesRelated,
  _OperationalAcctgDocItem.DocumentDate AS DocumentDate,
  _OperationalAcctgDocItem.GLAccount AS GLAccount,
  _OperationalAcctgDocItem.SpecialGLTransactionType AS SpecialGLTransactionType,
  _OperationalAcctgDocItem.ClearingAccountingDocument AS ClearingAccountingDocument,
  _OperationalAcctgDocItem.HasPaymentOrder AS HasPaymentOrder,
  _OperationalAcctgDocItem.DebitCreditCode AS DebitCreditCode,
  _OperationalAcctgDocItem.FollowOnDocumentType AS FollowOnDocumentType,
  _OperationalAcctgDocItem.BPBankAccountInternalID AS BPBankAccountInternalID,
  _OperationalAcctgDocItem.PaytSlipWthRefSubscriber AS PaytSlipWthRefSubscriber,
  _OperationalAcctgDocItem.PaytSlipWthRefReference AS PaytSlipWthRefReference,
  _OperationalAcctgDocItem.AlternativePayeePayer AS AlternativePayeePayer,
  IsOneTimeAccount,
  OneTimeAcctBankDetIsFromPayt,
  _AccountingDocument.LastChangeDate AS LastChangeDate,
  cast(OneTimeAccountAuthznGroup as begru) AS OneTimeAccountAuthznGroup,
  cast(OneTimeAccountDataAgingDate as data_temperature) AS OneTimeAccountDataAgingDate,
  cast('' as char70 ) AS OneTimeAccountFieldStatusValue,
  cast(' ' as xfeld ) AS OneTimeAcctDetnIsNotRequired,
  cast(' ' as xfeld ) AS AcctgDocHasQuickRspBillgSupp,
  cast(' ' as xfeld ) AS IBANIsQuickResponse,
  cast(' ' as xfeld ) AS OneTimeAcctChgIsNotAllowed,
  cast(' ' as fota_ref_account_for_iban ) AS ReferenceAccountForIBAN,
  cast(' ' as xfeld ) AS QuickRepIBANIsUsdInOneTmeAcct,
  cast(' ' as xfeld ) AS SEPAMandtIsUsdInOneTimeAcct,
  cast(' ' as xfeld ) AS OneTimeAccountIsCreatedFromAPI,
  cast(' ' as xfeld ) AS QuickRepRefEditIsSupported
FROM I_JournalEntryOneTimeAccount
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer  -- association [1..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier  -- association [1..1]
LEFT OUTER JOIN I_FinancialAccountType AS _FinancialAccountType ON FinancialAccountType = _FinancialAccountType.FinancialAccountType  -- association [0..1]
LEFT OUTER JOIN I_GlAccountTextInCompanycode AS _GLAccountText ON CompanyCode = _GLAccountText.CompanyCode AND GLAccount = _GLAccountText.GLAccount  -- association [0..*]
LEFT OUTER JOIN I_AccountType AS _AccountTaxTypeText ON FinancialAccountType = _AccountTaxTypeText.AccountType AND AccountTaxType = _AccountTaxTypeText.AccountTaxType  -- association [0..*]
LEFT OUTER JOIN I_AR_TaxNumberTypeText AS _TaxNumberTypeText ON TaxNumberType = _TaxNumberTypeText.TaxNumberType  -- association [0..*]
;