当前位置:网站首页>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 类型的适用性。
边栏推荐
- How can labels/legends be added for all chart types in chart. js (chartjs.org)?
- 跨平台(32bit和64bit)的 printf 格式符 %lld 输出64位的解决方式
- 滴滴开源DELTA:AI开发者可轻松训练自然语言模型
- 2021.12.16-2021.12.20 empty four hand transaction records
- Taobao short video, why the worse the effect
- stm32和电机开发(从架构图到文档编写)
- VoneDAO破解组织发展效能难题
- Taobao order interface | order flag remarks, may be the most stable and easy-to-use interface
- 单独编译内核模块
- Taobao order amount check error, avoid capital loss API
猜你喜欢

Migrate data from Mysql to neo4j database

Transactions from January 6 to October 2022
![[figure neural network] GNN from entry to mastery](/img/e2/bb045fb03bc255b8659f9ca7cdd26b.jpg)
[figure neural network] GNN from entry to mastery

Taobao short video, why the worse the effect

【Nacos云原生】阅读源码第一步,本地启动Nacos

Database connection pool & jdbctemplate

Constructing expression binary tree with prefix expression

Pytoch implements tf Functions of the gather() function

Principle of universal gbase high availability synchronization tool in Nanjing University

Taobao order interface | order flag remarks, may be the most stable and easy-to-use interface
随机推荐
Docker configures redis and redis clusters
Distributed solution - Comprehensive decryption of distributed task scheduling platform -xxljob
关于 SAP UI5 getSAPLogonLanguage is not a function 的错误消息以及 API 版本的讨论
Lepton 无损压缩原理及性能分析
Taobao order amount check error, avoid capital loss API
Transactions from January 14 to 19, 2022
Simply take stock reading notes (1/8)
Kotlin变量
Super efficient! The secret of swagger Yapi
Install rhel8.2 virtual machine
Kotlin variable
CVPR 2022 | single step 3D target recognizer based on sparse transformer
10 minute fitness method reading notes (1/5)
Alipay transfer system background or API interface to avoid pitfalls
OPPO小布推出预训练大模型OBERT,晋升KgCLUE榜首
Principle of universal gbase high availability synchronization tool in Nanjing University
How to connect the API interface of Taobao open platform (super detailed)
C language structure is initialized as a function parameter
Kotlin process control and circulation
2021.12.16-2021.12.20 empty four hand transaction records