CDS标准视图:总计应收款 I_TotalAccountsReceivables

news/2025/1/10 9:38:16/文章来源:https://www.cnblogs.com/guanxing/p/18663338

视图名称:总计应收款 I_TotalAccountsReceivables

视图类型:参数

视图代码:

点击查看代码
@AbapCatalog.sqlViewName: 'IFITOTALACCTRBLS'
@AbapCatalog.compiler.compareFilter:true
@AbapCatalog.preserveKey:true
@VDM.viewType: #COMPOSITE
@EndUserText.label: 'Total Accounts Receivables'
@Analytics: { dataCategory: #CUBE }
@Analytics.internalName: #LOCAL   // released with Cloud 1808 and OP 1809 hence no design studio usage before
@Search.searchable: false // I_Region is annotated as true, hence this new must have an annotation for searchable
@Metadata.ignorePropagatedAnnotations: true
@Metadata.allowExtensions:true
@AccessControl.authorizationCheck:#CHECK
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.sizeCategory: #XXL
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.supportedCapabilities: [ #ANALYTICAL_PROVIDER, #CDS_MODELING_DATA_SOURCE ]
@AccessControl.personalData.blocking: #REQUIRED
@AbapCatalog.viewEnhancementCategory: [ #PROJECTION_LIST , #GROUP_BY ]define view I_TotalAccountsReceivableswith parameters@Environment.systemField: #SYSTEM_DATEP_TodayDate             : sydate,    // this is rather a key date, we refrain from renaming it to be compatibleP_NetDueInterval1InDays : farp_net_due_interval1,P_NetDueInterval2InDays : farp_net_due_interval2,P_NetDueInterval3InDays : farp_net_due_interval3,P_DisplayCurrency       : vdm_v_display_currency,P_ExchangeRateType      : kurstas select from P_TotalAccountsReceivables12(P_TodayDate:             :P_TodayDate,P_NetDueInterval1InDays: :P_NetDueInterval1InDays,P_NetDueInterval2InDays: :P_NetDueInterval2InDays,P_NetDueInterval3InDays: :P_NetDueInterval3InDays,P_DisplayCurrency:       :P_DisplayCurrency,P_ExchangeRateType:      :P_ExchangeRateType)association [0..1] to I_CompanyCode                as _Company                    on  _Company.CompanyCode = $projection.CompanyCodeassociation [0..1] to I_Customer                   as _Customer                   on  _Customer.Customer = $projection.Customerassociation [0..1] to I_CustomerCompany            as _CustomerCompany            on  _CustomerCompany.CompanyCode = $projection.CompanyCodeand _CustomerCompany.Customer    = $projection.Customerassociation [0..1] to I_FinancialAccountType       as _FinancialAccountType       on  _FinancialAccountType.FinancialAccountType = $projection.FinancialAccountTypeassociation [0..1] to I_AccountingClerk            as _AccountingClerk            on  _AccountingClerk.CompanyCode     = $projection.CompanyCodeand _AccountingClerk.AccountingClerk = $projection.AccountingClerkassociation [0..1] to I_Country                    as _CustomerCountry            on  _CustomerCountry.Country = $projection.CustomerCountryassociation [0..1] to I_Region                     as _CustomerRegion             on  _CustomerRegion.Region  = $projection.CustomerRegionand _CustomerRegion.Country = $projection.CustomerCountryassociation [0..1] to I_Currency                   as _DisplayCurrency            on  _DisplayCurrency.Currency = $projection.DisplayCurrencyassociation [0..1] to I_Currency                   as _CompanyCodeCurrency        on  _CompanyCodeCurrency.Currency = $projection.CompanyCodeCurrencyassociation [0..1] to I_SpecialGLCode              as _SpecialGLCode              on  _SpecialGLCode.SpecialGLCode        = $projection.SpecialGLCodeand _SpecialGLCode.FinancialAccountType = 'D'association [0..1] to I_ChartOfAccounts            as _ChartOfAccounts            on  _ChartOfAccounts.ChartOfAccounts = $projection.ChartOfAccountsassociation [0..1] to I_GLAccountInChartOfAccounts as _GLAccountInChartOfAccounts on  _GLAccountInChartOfAccounts.ChartOfAccounts = $projection.ChartOfAccountsand _GLAccountInChartOfAccounts.GLAccount       = $projection.GLAccountassociation [0..1] to I_GLAccountInChartOfAccounts as _ReconciliationAccount      on  _ReconciliationAccount.ChartOfAccounts = $projection.ChartOfAccountsand _ReconciliationAccount.GLAccount       = $projection.ReconciliationAccountassociation [0..1] to I_CustomerAccountGroup       as _CustomerAccountGroup       on  _CustomerAccountGroup.CustomerAccountGroup = $projection.CustomerAccountGroupassociation [0..1] to I_CustomerClassification     as _CustomerClassification     on  _CustomerClassification.CustomerClassification = $projection.CustomerClassification// associations are declared here in sum for better overview; in runtime the joins are exceuted on appropriate level// Foreign Key Associations declare the dimension cube (I-View) from which the property values are derived of by Analytical Engine (see report RSRTS_ODP_DIS)
{@ObjectModel.foreignKey.association: '_Company'key CompanyCode,@ObjectModel.foreignKey.association: '_Customer'key Customer,@ObjectModel.foreignKey.association: '_GLAccountInChartOfAccounts'key GLAccount,@ObjectModel.foreignKey.association: '_SpecialGLCode'key SpecialGLCode,key cast( NetDueIntervalText as farp_netdue_intvl_text )                            as NetDueIntervalText,@ObjectModel.foreignKey.association: '_FinancialAccountType'cast( 'D' as fis_koart )                                                        as FinancialAccountType,// switch to association to make it unique (dependent from key field company) and keep it out of key; can't be removed as query exposes CompanyCodeCurrency already// and odata (i.e. query) changes shall be compatible@ObjectModel.foreignKey.association: '_CompanyCodeCurrency'_Company.Currency                                                               as CompanyCodeCurrency,//  @ObjectModel.foreignKey.association: '_ExchangeRate'ExchangeRateType,@ObjectModel.foreignKey.association: '_CustomerCountry'cast( _Customer._StandardAddress._Country.Country as farp_land1 )               as CustomerCountry,@ObjectModel.foreignKey.association: '_CustomerRegion'_Customer._StandardAddress._Region.Region                                       as CustomerRegion,@ObjectModel.foreignKey.association: '_AccountingClerk'cast( _CustomerCompany.AccountingClerk as farp_busab )                          as AccountingClerk,@ObjectModel.foreignKey.association: '_ChartOfAccounts'cast( _Company.ChartOfAccounts as fis_ktopl )                                   as ChartOfAccounts,@ObjectModel.foreignKey.association: '_ReconciliationAccount'cast( _CustomerCompany.ReconciliationAccount as farp_akont )                    as ReconciliationAccount,// fields for authorization checks via DCLcast( _Customer.AuthorizationGroup as fis_customer_basic_auth_grp )             as CustomerBasicAuthorizationGrp,_CustomerCompany.AuthorizationGroup                                             as CustomerFinsAuthorizationGrp,@ObjectModel.foreignKey.association: '_CustomerAccountGroup'_Customer.CustomerAccountGroup                                                  as CustomerAccountGroup,@ObjectModel.foreignKey.association: '_CustomerClassification'_Customer.CustomerClassification                                                as CustomerClassification,@Semantics.currencyCode:true@ObjectModel.foreignKey.association: '_DisplayCurrency'DisplayCurrency,@DefaultAggregation: #SUM@Semantics.amount.currencyCode: 'DisplayCurrency'cast( sum( TotalAmountInDisplayCrcy ) as farp_total_amount_display_crcy )       as TotalAmountInDisplayCrcy,@DefaultAggregation: #SUM@Semantics.amount.currencyCode: 'DisplayCurrency'cast( sum( TotalNotOvrdAmtInDspCrcy ) as farp_tot_not_ovrd_amt_dspcrcy )        as TotalNotOvrdAmtInDspCrcy,@DefaultAggregation: #SUM@Semantics.amount.currencyCode: 'DisplayCurrency'cast( sum( TotalOverdueAmtInDspCrcy )  as farp_total_overdue_amt_dspcrcy)       as TotalOverdueAmtInDspCrcy,@DefaultAggregation: #SUM@Semantics.amount.currencyCode: 'DisplayCurrency'cast( sum( NetDueIntvl1AmtInDspCrcy ) as farp_netdue_intvl1_amt_dspcrcy )       as NetDueIntvl1AmtInDspCrcy,@DefaultAggregation: #SUM@Semantics.amount.currencyCode: 'DisplayCurrency'cast( sum( NetDueIntvl2AmtInDspCrcy ) as farp_netdue_intvl2_amt_dspcrcy )       as NetDueIntvl2AmtInDspCrcy,@DefaultAggregation: #SUM@Semantics.amount.currencyCode: 'DisplayCurrency'cast( sum( NetDueIntvl3AmtInDspCrcy ) as farp_netdue_intvl3_amt_dspcrcy )       as NetDueIntvl3AmtInDspCrcy,@DefaultAggregation: #SUM@Semantics.amount.currencyCode: 'DisplayCurrency'cast( sum( NetDueIntvl4AmtInDspCrcy ) as farp_netdue_intvl4_amt_dspcrcy )       as NetDueIntvl4AmtInDspCrcy,_Company,_Customer,_CustomerCompany,_AccountingClerk,_CustomerCountry,_CustomerRegion,_FinancialAccountType,_SpecialGLCode,_GLAccountInChartOfAccounts,_ReconciliationAccount,_ChartOfAccounts,_DisplayCurrency,_CompanyCodeCurrency,_CustomerClassification,_CustomerAccountGroup
}group byCompanyCode,Customer,GLAccount,SpecialGLCode,NetDueIntervalText,_Company.Currency,ExchangeRateType,_Customer._StandardAddress._Country.Country,_Customer._StandardAddress._Region.Region,_CustomerCompany.AccountingClerk,_Company.ChartOfAccounts,_CustomerCompany.ReconciliationAccount,_Customer.AuthorizationGroup,_CustomerCompany.AuthorizationGroup,_Customer.CustomerAccountGroup,_Customer.CustomerClassification,DisplayCurrency

事务代码:参数

净额到期间隔1:第一个间隔距离关键日期最大天数的
全额付款到期间隔2:第二个间隔距离关键日期最大天数的
净额到期间隔3:第三个间隔距离关键日期最大天数的
汇率类型:汇率类型
CDATE:当前日期
显示货币:显示的货币类型

视图结构:

字段名称 技术名称
公司代码 COMPANYCODE
客户 CUSTOMER
总账科目 GLACCOUNT
特殊总账 SPECIALGLCODE
全额付款到期日间隔 NETDUEINTERVALTEXT
财务科目类型 FINANCIALACCOUNTTYPE
货币 COMPANYCODECURRENCY
汇率类型 EXCHANGERATETYPE
国家/地区代码 CUSTOMERCOUNTRY
地区 CUSTOMERREGION
会计员 ACCOUNTINGCLERK
科目表 CHARTOFACCOUNTS
对账科目 RECONCILIATIONACCOUNT
客户基本权限组 CUSTOMERBASICAUTHORIZATIONGRP
权限 CUSTOMERFINSAUTHORIZATIONGRP
客户科目组 CUSTOMERACCOUNTGROUP
客户分类 CUSTOMERCLASSIFICATION
显示货币 DISPLAYCURRENCY
总金额 TOTALAMOUNTINDISPLAYCRCY
未来金额 TOTALNOTOVRDAMTINDSPCRCY
逾期金额 TOTALOVERDUEAMTINDSPCRCY
1 期到期期间金额 NETDUEINTVL1AMTINDSPCRCY
2 期到期期间金额 NETDUEINTVL2AMTINDSPCRCY
3 期到期期间金额 NETDUEINTVL3AMTINDSPCRCY
4 期到期期间金额 NETDUEINTVL4AMTINDSPCRCY

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.hqwc.cn/news/867024.html

如若内容造成侵权/违法违规/事实不符,请联系编程知识网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

CefSharp.WinForms指定了低版本108.4.130,可是生成后的dll版却是121.3.7.0

问题: CefSharp.WinForms指定了低版本108.4.130 生成的libcef.dll版本却是121.3.7.0, 分析: 之前有指定版本121.3.7.0并生成过。怀疑用的是之前的版本,然后之前的版本的缓存在本地的哪个位置。于是删除项目底下 packages\CefSharp.WinForms.108.4.130 packages\CefSharp.Co…

API 风格选对了,文档写好了,项目就成功了一半!

在前后端开发中,API文档和API风格设计是提高开发效率、减少沟通成本、确保系统稳定性的关键环节。一个清晰、易用的API文档可以帮助前端开发者快速理解接口的使用方法,而完善的测试则能尽早发现潜在问题,避免上线后出现故障。接下来,我们将从 API风格设计 和 API 文档 两个…

macOS的PrivilegedHelperTools文件夹

在 macOS 上,/Library/PrivilegedHelperTools 文件夹是一个特殊的位置,用于存放可以以更高权限运行的辅助工具或守护进程。这些工具通常由各种应用程序安装,以执行需要超出普通应用程序沙箱权限的任务,例如Proxy的应用,常见都是带有helper的应用。让我们更详细地了解这个目…

CDS标准视图:预期应收 I_FutureAccountsReceivables

视图名称:预期应收 视图类型:参数 视图代码:点击查看代码 //Documentation about annotations can be found at http://help.sap.com searching for CDS annotations //Inserted by VDM CDS Suite Plugin @ObjectModel.usageType.sizeCategory: #XXL //Inserted by VDM CDS …

如何在服务器上查看当前运行的PHP版本?

要查看主机当前运行的PHP版本,您可以按照以下步骤操作。这种方法简单且适用于大多数Web服务器环境。步骤 描述1 创建一个新的PHP文件,例如info.php。2 在文件中添加以下代码: php<br>phpinfo();<br>3 将该文件上传到您的Web服务器的根目录。4 在浏览器中访问ht…

如何解决“此网站无法提供安全连接,使用了不受支持的协议”的问题?

当您访问某个网站时,如果遇到“此网站无法提供安全连接,使用了不受支持的协议”的错误提示,通常是因为客户端浏览器和服务器之间的TLS协议版本不匹配。以下是详细的解决方法:解决方案 适用对象 具体步骤客户端解决方案 用户 1. 更新浏览器:确保您的浏览器是最新版本,因为…

使用宝塔面板上传网站后,为什么网站打开速度变慢?如何优化以提升速度?

在使用宝塔面板上传网站后,如果网站打开速度变慢,通常需要排除网速和硬件问题。以下是一些常见的优化方法,可以帮助显著提升PHP网站的执行速度和数据库读取速度。 常见原因:PHP配置不当:PHP的默认配置可能不适合您的网站需求,导致执行效率低下。 数据库性能问题:MySQL配…

电脑分屏---播放不同的声音

在工作中,一台电脑两个显示器是常见办公模式,那么如何做到两个显示器播放不同的声音的呢? 常见的需求就是:一边看电视、一边打游戏 准备: 1、3.5mm的外接音箱,插入到电脑后面的绿色孔。【红色孔:音频输入、常用于连接麦克风;绿色孔:音频输出、常用于链接耳机/音箱;蓝…

C#MAUI 安卓请求http错误

报错:One or more errors occurred. (Connection failure) 在window端请求http https都没有问题,但是在安卓端请求http就会报错。 这是由于安卓从底层禁止了明文请求,需要设置打开 示例<application android:allowBackup="true" android:icon="@mipmap/ap…

在使用 PbootCMS 的 IP 黑名单功能时,如果发现只能添加 10 多条 IP 地址,多了保存不了,通常是因为 ay_config 表中存储 IP 黑名单的字段长度有限

1. 备份数据库 在进行任何数据库操作之前,请务必备份数据库,以防数据丢失。mysqldump -u your_username -p your_database_name > backup.sql2. 登录数据库管理工具 使用 phpMyAdmin 或其他数据库管理工具登录到您的 MySQL 数据库。 3. 修改 ay_config 表结构找到 ay_conf…

显著增加 PbootCMS IP 黑名单可以存储的 IP 地址数量

通过修改 ay_config 表结构中的 value 字段类型,可以显著增加 PbootCMS IP 黑名单可以存储的 IP 地址数量。确保在进行数据库操作之前备份数据库,并在修改后验证设置是否生效。如有任何问题,可以参考官方文档或寻求专业的技术支持。 以下是具体的 SQL 语句示例:ALTER TABLE…

bat命令大全完整版

常用的BAT命令列表,分为文件操作、流程控制、网络操作等几类: 文件和目录操作cd:更改当前目录 md 或 mkdir:创建目录 rd 或 rmdir:删除空目录 copy:复制文件 move:移动文件或重命名文件 del 或 erase:删除文件 ren 或 rename:重命名文件或目录 type:显示文本文件内容…