P_JournalEntryOneTimeAcctReuse
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)
| Source | Alias | Join Type |
|---|---|---|
| I_JournalEntryOneTimeAccount | I_JournalEntryOneTimeAccount | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | OneTimeAccountSourceDocType | |||
| KEY | OneTimeAccountSourceDocument | |||
| KEY | OneTimeAccountSourceDocItem | |||
| KEY | CompanyCode | CompanyCode | ||
| KEY | AccountingDocument | AccountingDocument | ||
| KEY | FiscalYear | FiscalYear | ||
| KEY | AccountingDocumentItem | AccountingDocumentItem | ||
| KEY | OneTimeAccountImageType | |||
| CompanyCodeForEdit | CompanyCode | |||
| AccountingDocumentForEdit | AccountingDocument | |||
| FiscalYearForEdit | FiscalYear | |||
| AccountingDocumentItemForEdit | AccountingDocumentItem | |||
| OneTimeAccountBPSalutationText | OneTimeAccountBPSalutationText | |||
| Language | Language | |||
| BusinessPartnerName1 | BusinessPartnerName1 | |||
| BusinessPartnerName2 | BusinessPartnerName2 | |||
| BusinessPartnerName3 | BusinessPartnerName3 | |||
| BusinessPartnerName4 | BusinessPartnerName4 | |||
| StreetName | StreetName | |||
| POBox | POBox | |||
| POBoxIsWithoutNumber | POBoxIsWithoutNumber | |||
| POBoxPostalCode | POBoxPostalCode | |||
| PostOfficeBankAccount | PostOfficeBankAccount | |||
| CityName | CityName | |||
| PostalCode | PostalCode | |||
| Country | Country | |||
| Region | Region | |||
| EmailAddress | EmailAddress | |||
| AddressID | AddressID | |||
| BankInternalID | BankInternalID | |||
| BankCountry | BankCountry | |||
| BankAccount | BankAccount | |||
| BankControlKey | BankControlKey | |||
| BankReference | BankReference | |||
| SWIFTCode | _Bank | SWIFTCode | ||
| Bank | _Bank | Bank | ||
| IBAN | _IBAN | IBAN | ||
| QuickResponseIBAN | ||||
| IBANValidityStartDate | _IBAN | IBANValidityStartDate | ||
| PaymentRecipient | PaymentRecipient | |||
| PaymentSystem | PaymentSystem | |||
| AliasType | AliasType | |||
| BPBankAccountAliasName | BPBankAccountAliasName | |||
| VATRegistration | ||||
| DataExchangeInstructionKey | DataExchangeInstructionKey | |||
| DataMediumExchangeIndicator | DataMediumExchangeIndicator | |||
| TaxID1 | TaxID1 | |||
| TaxID2 | TaxID2 | |||
| TaxID3 | TaxID3 | |||
| TaxID4 | TaxID4 | |||
| TaxID5 | TaxID5 | |||
| AccountTaxType | AccountTaxType | |||
| TaxNumberType | TaxNumberType | |||
| IsNaturalPerson | IsNaturalPerson | |||
| OneTmeAcctIsEqualizationTxSubj | OneTmeAcctIsEqualizationTxSubj | |||
| BusinessType | BusinessType | |||
| IndustryType | IndustryType | |||
| IsVATLiable | IsVATLiable | |||
| RepresentativeName | RepresentativeName | |||
| OneTimeAcctCntrySpecificRef1 | OneTimeAcctCntrySpecificRef1 | |||
| OneTimeAcctCntrySpcfcRef1Text | ||||
| OneTimeAccountTransactionType | ||||
| FiscalPeriod | _AccountingDocument | FiscalPeriod | ||
| TransactionCurrency | _AccountingDocument | TransactionCurrency | ||
| IsReversal | _AccountingDocument | IsReversal | ||
| IsReversed | _AccountingDocument | IsReversed | ||
| AddressAndBankIsSetManually | _OperationalAcctgDocItem | AddressAndBankIsSetManually | ||
| FinancialAccountType | _OperationalAcctgDocItem | FinancialAccountType | ||
| Customer | _OperationalAcctgDocItem | Customer | ||
| Supplier | _OperationalAcctgDocItem | Supplier | ||
| InvoiceReference | _OperationalAcctgDocItem | InvoiceReference | ||
| InvoiceReferenceFiscalYear | _OperationalAcctgDocItem | InvoiceReferenceFiscalYear | ||
| PostingKey | _OperationalAcctgDocItem | PostingKey | ||
| SpecialGLCode | _OperationalAcctgDocItem | SpecialGLCode | ||
| IsSalesRelated | _OperationalAcctgDocItem | IsSalesRelated | ||
| DocumentDate | _OperationalAcctgDocItem | DocumentDate | ||
| GLAccount | _OperationalAcctgDocItem | GLAccount | ||
| SpecialGLTransactionType | _OperationalAcctgDocItem | SpecialGLTransactionType | ||
| ClearingAccountingDocument | _OperationalAcctgDocItem | ClearingAccountingDocument | ||
| HasPaymentOrder | _OperationalAcctgDocItem | HasPaymentOrder | ||
| DebitCreditCode | _OperationalAcctgDocItem | DebitCreditCode | ||
| FollowOnDocumentType | _OperationalAcctgDocItem | FollowOnDocumentType | ||
| BPBankAccountInternalID | _OperationalAcctgDocItem | BPBankAccountInternalID | ||
| PaytSlipWthRefSubscriber | _OperationalAcctgDocItem | PaytSlipWthRefSubscriber | ||
| PaytSlipWthRefReference | _OperationalAcctgDocItem | PaytSlipWthRefReference | ||
| AlternativePayeePayer | _OperationalAcctgDocItem | AlternativePayeePayer | ||
| IsOneTimeAccount | IsOneTimeAccount | |||
| OneTimeAcctBankDetIsFromPayt | OneTimeAcctBankDetIsFromPayt | |||
| LastChangeDate | _AccountingDocument | LastChangeDate | ||
| 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 |
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'One Time Account Reuse'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
serviceQuality: #X,
sizeCategory: #S,
dataClass: #MIXED
}
@VDM.private:true
@VDM.viewType: #COMPOSITE
define view entity P_JournalEntryOneTimeAcctReuse
as select from I_JournalEntryOneTimeAccount
association [1..1] to I_Customer as _Customer on $projection.Customer = _Customer.Customer
association [1..1] to I_Supplier as _Supplier on $projection.Supplier = _Supplier.Supplier
association [0..1] to I_FinancialAccountType as _FinancialAccountType on $projection.FinancialAccountType = _FinancialAccountType.FinancialAccountType
association [0..*] to I_GlAccountTextInCompanycode as _GLAccountText on $projection.CompanyCode = _GLAccountText.CompanyCode
and $projection.GLAccount = _GLAccountText.GLAccount
association [0..*] to I_AccountType as _AccountTaxTypeText on $projection.FinancialAccountType = _AccountTaxTypeText.AccountType
and $projection.AccountTaxType = _AccountTaxTypeText.AccountTaxType
association [0..*] to I_AR_TaxNumberTypeText as _TaxNumberTypeText on $projection.TaxNumberType = _TaxNumberTypeText.TaxNumberType
{
//Key Fields
key cast('' as fota_sourcedoctype) as OneTimeAccountSourceDocType, //For creation
key cast('' as fota_sourcedocid) as OneTimeAccountSourceDocument, //For creation
key cast('0000000000' as posnr_acc) as OneTimeAccountSourceDocItem, //For creation
@ObjectModel.foreignKey.association: '_CompanyCode'
key CompanyCode,
@ObjectModel.foreignKey.association: '_AccountingDocument' //For Change & Display
key AccountingDocument, //For Change & Display
@ObjectModel.foreignKey.association: '_FiscalYear'
key FiscalYear, //For Change & Display
key AccountingDocumentItem, //For Change & Display
key cast ('' as fota_image_type) as OneTimeAccountImageType, //For Draft Data Status Record Use
//Key Fields for edit
@ObjectModel.editableFieldFor: 'CompanyCode'
CompanyCode as CompanyCodeForEdit,
@ObjectModel.editableFieldFor: 'AccountingDocument'
AccountingDocument as AccountingDocumentForEdit,
@ObjectModel.editableFieldFor: 'FiscalYear'
FiscalYear as FiscalYearForEdit,
@ObjectModel.editableFieldFor: 'AccountingDocumentItem'
AccountingDocumentItem as AccountingDocumentItemForEdit,
//Address Fields
OneTimeAccountBPSalutationText,
@Consumption.valueHelpDefinition: [{ entity: {element: 'Language' , name: 'I_OneTimeAccountLanguageVH' }}]
Language,
BusinessPartnerName1,
BusinessPartnerName2,
BusinessPartnerName3,
BusinessPartnerName4,
StreetName,
POBox,
POBoxIsWithoutNumber,
POBoxPostalCode,
PostOfficeBankAccount,
CityName,
PostalCode,
@Consumption.valueHelpDefinition: [{ entity: {element: 'Country', name: 'C_CountryVHTemp' }} ]
Country,
@Consumption.valueHelpDefinition: [{ entity: {element: 'Region', name: 'C_RegionVHTemp' },
additionalBinding: [{ element: 'Country',
localElement: 'Country' }]}]
Region,
EmailAddress,
AddressID,
//Bank fields
@Consumption.valueHelpDefinition: [{ entity: {element: 'BankInternalID' , name: 'I_Bank_Acct_VH' },
additionalBinding: [{ element: 'BankCountry',
localElement: 'BankCountry' }]} ]
BankInternalID,
@Consumption.valueHelpDefinition: [{ entity: {element: 'Country' , name: 'C_CountryVHTemp' }} ]
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,
//Tax Fields
cast(_OperationalAcctgDocItem.VATRegistration as farp_stceg preserving type) as VATRegistration,
@Consumption.valueHelpDefinition: [{ entity: {element: 'DataExchangeInstructionKey' , name: 'C_PaytRequestInstructionKeyVH' }} ]
DataExchangeInstructionKey,
@Consumption.valueHelpDefinition: [{ entity: {element: 'DataMediumExchangeIndicator' , name: 'C_DataMediumExchangeVHTemp' }} ]
DataMediumExchangeIndicator,
TaxID1,
TaxID2,
TaxID3,
TaxID4,
TaxID5,
@Consumption.valueHelpDefinition: [{ entity: {element: 'AccountTaxType' , name: 'C_AccountTaxTypeValHelpTmp' }} ]
AccountTaxType,
@Consumption.valueHelpDefinition: [{ entity: {element: 'TaxNumberType' , name: 'I_AR_TaxNumberType' }} ]
TaxNumberType,
@Semantics.booleanIndicator
IsNaturalPerson,
@Semantics.booleanIndicator
OneTmeAcctIsEqualizationTxSubj,
BusinessType,
IndustryType,
IsVATLiable,
RepresentativeName,
//GLO Country Specific Fields
OneTimeAcctCntrySpecificRef1,
cast('' as scrtext_m) as OneTimeAcctCntrySpcfcRef1Text,
//Internal Technical Fields
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,
@ObjectModel.foreignKey.association: '_FinancialAccountType'
_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,
@Semantics.booleanIndicator
_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,
@Semantics.booleanIndicator
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,
//Association
_CompanyCode,
_Customer,
_Supplier,
_AccountingDocument,
_OperationalAcctgDocItem,
_FiscalYear,
_Address,
_IBAN,
_Bank,
_FinancialAccountType,
_CountryText,
_BankCountryText,
_LanguageText,
_GLAccountText,
_DMEIndicatorText,
_AccountTaxTypeText,
_TaxNumberTypeText
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BANK_2",
"I_IBAN",
"I_JOURNALENTRY",
"I_JOURNALENTRYONETIMEACCOUNT",
"I_OPERATIONALACCTGDOCITEM"
],
"ASSOCIATED":
[
"I_ACCOUNTTYPE",
"I_ADDRESS",
"I_AR_TAXNUMBERTYPETEXT",
"I_BANK_2",
"I_COMPANYCODE",
"I_COUNTRYTEXT",
"I_CUSTOMER",
"I_FINANCIALACCOUNTTYPE",
"I_FISCALYEARFORCOMPANYCODE",
"I_GLACCOUNTTEXTINCOMPANYCODE",
"I_IBAN",
"I_JOURNALENTRY",
"I_LANGUAGETEXT",
"I_ONETIMEACCTDATAMDMEXCHTEXT",
"I_OPERATIONALACCTGDOCITEM",
"I_SUPPLIER"
],
"BASE":
[
"I_JOURNALENTRYONETIMEACCOUNT"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA