视图名称:一次性账户的客户行项目
视图类型:基础
视图代码:
点击查看代码
@EndUserText.label: 'One-Time Account Data for Customer Items'
@Analytics: { dataCategory:#DIMENSION}
@Analytics.internalName:#LOCAL
@VDM.viewType: #BASIC
@AbapCatalog.sqlViewName: 'IONETIMECUSTOMER'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey:true
@AbapCatalog.buffering.status: #NOT_ALLOWED
@AbapCatalog.buffering.type: #NONE
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.serviceQuality:#C
@ObjectModel.usageType.sizeCategory: #M
@ObjectModel.usageType.dataClass:#MIXED
@ObjectModel.representativeKey: 'AccountingDocumentItem'
@ObjectModel.supportedCapabilities: [ #CDS_MODELING_DATA_SOURCE , #CDS_MODELING_ASSOCIATION_TARGET ]
@Metadata.allowExtensions:true
@Metadata.ignorePropagatedAnnotations: true
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #BLOCKED_DATA_EXCLUDED
@AccessControl.privilegedAssociations: ['_Address']define view I_OneTimeAccountCustomeras select from bsecassociation [1..1] to I_CompanyCode as _CompanyCode on $projection.CompanyCode = _CompanyCode.CompanyCodeassociation [1..1] to I_JournalEntry as _JournalEntry on $projection.CompanyCode = _JournalEntry.CompanyCodeand $projection.AccountingDocument = _JournalEntry.AccountingDocumentand $projection.FiscalYear = _JournalEntry.FiscalYearassociation [0..1] to I_FiscalYearForCompanyCode as _FiscalYear on $projection.FiscalYear = _FiscalYear.FiscalYearand $projection.CompanyCode = _FiscalYear.CompanyCodeassociation [0..1] to I_Address as _Address on $projection.AddressID = _Address.AddressIDassociation [1..1] to I_OperationalAcctgDocItem as _OperationalAcctgDocItem on _OperationalAcctgDocItem.CompanyCode = $projection.CompanyCodeand _OperationalAcctgDocItem.AccountingDocument = $projection.AccountingDocumentand _OperationalAcctgDocItem.FiscalYear = $projection.FiscalYearand _OperationalAcctgDocItem.AccountingDocumentItem = $projection.AccountingDocumentItemassociation [1..1] to I_CustomerCompany as _CustomerCompany on _CustomerCompany.CompanyCode = $projection.CompanyCodeand _CustomerCompany.Customer = $projection.Customer
{@ObjectModel.foreignKey.association: '_CompanyCode'key bsec.bukrs as CompanyCode,@ObjectModel.foreignKey.association: '_JournalEntry'key bsec.belnr as AccountingDocument,@ObjectModel.foreignKey.association: '_FiscalYear'key bsec.gjahr as FiscalYear,key bsec.buzei as AccountingDocumentItem,cast(bsec.name1 as ad_name1) as BusinessPartnerName1,cast(bsec.name2 as ad_name2) as BusinessPartnerName2,cast(bsec.name3 as ad_name3) as BusinessPartnerName3,cast(bsec.name4 as ad_name4) as BusinessPartnerName4,bsec.land1 as Country,cast(bsec.ort01 as ad_city1) as CityName,bsec.pfach as POBox,bsec.pstl2 as POBoxPostalCode,bsec.pstlz as PostalCode,bsec.regio as Region,bsec.stcd1 as TaxID1,bsec.stcd2 as TaxID2,bsec.stcd3 as TaxID3,bsec.stcd4 as TaxID4,bsec.stcd5 as TaxID5,bsec.stras as StreetAddressName,bsec.stcdt as TaxNumberType,bsec.adrnr as AddressID,bsec.intad as AccountingClerkInternetAddress,cast(bsec.stkzn as bu_natural_person) as IsNaturalPerson,bsec.begru as AuthorizationGroup,case bsec.xcpdk when 'X' then cast('' as farp_isalternativepayer) else cast ('X' as farp_isalternativepayer)end as PayerIsAlternativePayer,_OperationalAcctgDocItem.Customer as Customer,_CompanyCode,_JournalEntry,_FiscalYear,_Address,_OperationalAcctgDocItem,_CustomerCompany
}
where_OperationalAcctgDocItem.FinancialAccountType = 'D'
事务代码:一次性客户的行项目
视图结构:
字段名称 |
技术名称 |
公司代码 |
COMPANYCODE |
凭证编号 |
ACCOUNTINGDOCUMENT |
会计年度 |
FISCALYEAR |
项目 |
ACCOUNTINGDOCUMENTITEM |
名称 |
BUSINESSPARTNERNAME1 |
名称 2 |
BUSINESSPARTNERNAME2 |
名称 3 |
BUSINESSPARTNERNAME3 |
名称 4 |
BUSINESSPARTNERNAME4 |
国家/地区 |
COUNTRY |
城市 |
CITYNAME |
邮政信箱 |
POBOX |
邮箱邮政编码 |
POBOXPOSTALCODE |
邮政编码 |
POSTALCODE |
地区 |
REGION |
税号 1 |
TAXID1 |
税号 2 |
TAXID2 |
税号3 |
TAXID3 |
税号4 |
TAXID4 |
税号 5 |
TAXID5 |
街道 |
STREETADDRESSNAME |
税号类型 |
TAXNUMBERTYPE |
地址 |
ADDRESSID |
员工的互联网 |
ACCOUNTINGCLERKINTERNETADDRESS |
自然人 |
ISNATURALPERSON |
权限组 |
AUTHORIZATIONGROUP |
是备选付款方 |
PAYERISALTERNATIVEPAYER |
客户 |
CUSTOMER |