当前位置:网站首页>SAP SEGW 事物码里的 ABAP Editor
SAP SEGW 事物码里的 ABAP Editor
2022-07-05 12:39:00 【汪子熙】
因为可以为 Entity Type 的属性,设置 EDM 类型和内部 ABAP 类型,所以必须对这些类型进行验证,以确保值之间没有不匹配的情况发生。
这种类型的不匹配可能会导致数据丢失,以 DateTime 和 Date 为例,前者类型比后者类型的限制更严格,因此会导致数据丢失。
如果 EDM 类型和 ABAP 类型不兼容,则返回错误提示。
使用 ABAP 类型编辑器和相应的 ABAP 字段名定义关于属性的附加类型信息,方便 ABAP 类型和 EDM 类型之间的映射。
使用ABAP类型编辑器来定义关于属性和相应的ABAP字段名的附加类型信息。为了方便ABAP类型和EDM类型之间的映射,您可以选择要使用的确定模式,实体或复杂类型的结构绑定,运行时对象生成器的显式赋值或确定。
如果您选择了实体或复杂类型的结构绑定,系统将根据需要为实体或复杂类型分配一个ABAP结构。自动ABAP类型赋值派生自EDM类型。您可以在实体类型或复杂类型级别上分配ABAP结构,但不能在单个属性级别上分配。分配的ABAP结构随后被生成器使用。如果在设计时没有指定ABAP结构,生成器会根据显示的信息生成一个新的结构。
如果选择显式赋值,则可以维护类别,随后可用于此类别的字段就可以输入了。不适用的字段仍然是只读的。如果实际需求中,特别不期望发生自动赋值,请使用显式赋值。注意,结构绑定会覆盖所有已维护的显式赋值。
ABAP 类型和 EDM 类型之间的精确关联并不总是能够 100% 实现,因为它们的各个方面,并且自动确定相应的 ABAP 或 EDM 类型可能不是完美匹配的。因此,开发人员必须始终检查已确定的类型映射,以确保选择了可能的最佳匹配。
Service Builder 包括一个验证检查,用于确定可能的不一致性,并显示适当的警告消息,以便防止通过 ABAP 类型映射到 EDM 类型和/或反过来可能出现的数据丢失。这种检查区分了潜在的数据丢失、可能的转换错误和 ABAP 类型的适用性。
边栏推荐
- 10 minute fitness method reading notes (3/5)
- 你的下一台电脑何必是电脑,探索不一样的远程操作
- NFT: how to make money with unique assets?
- About LDA model
- Install rhel8.2 virtual machine
- HiEngine:可媲美本地的云原生内存数据库引擎
- Pytorch two-layer loop to realize the segmentation of large pictures
- 在家庭智能照明中应用的测距传感芯片4530A
- 国内市场上的BI软件,到底有啥区别
- Making and using the cutting tool of TTF font library
猜你喜欢
NPM install reports an error
Get the variable address of structure member in C language
非技术部门,如何参与 DevOps?
Oppo Xiaobu launched Obert, a large pre training model, and promoted to the top of kgclue
Vonedao solves the problem of organizational development effectiveness
Anaconda creates a virtual environment and installs pytorch
ActiveMQ installation and deployment simple configuration (personal test)
From the perspective of technology and risk control, it is analyzed that wechat Alipay restricts the remote collection of personal collection code
Simply take stock reading notes (3/8)
Pytorch two-layer loop to realize the segmentation of large pictures
随机推荐
Install rhel8.2 virtual machine
Wechat enterprise payment to change access, open quickly
国内市场上的BI软件,到底有啥区别
Pytoch loads the initialization V3 pre training model and reports an error
UNIX socket advanced learning diary - advanced i/o functions
Distributed solution - completely solve website cross domain requests
非技术部门,如何参与 DevOps?
Four common problems of e-commerce sellers' refund and cash return, with solutions
前几年外包干了四年,秋招感觉人生就这样了..
Distributed cache architecture - cache avalanche & penetration & hit rate
Oppo Xiaobu launched Obert, a large pre training model, and promoted to the top of kgclue
Detailed structure and code of inception V3
Anaconda creates a virtual environment and installs pytorch
Summary of C language learning problems (VS)
Redis master-slave configuration and sentinel mode
Ecplise development environment configuration and simple web project construction
Introduction to relational model theory
Transactions from December 27 to 28, 2021
Flume common commands and basic operations
Principle of universal gbase high availability synchronization tool in Nanjing University