在SE11表中检查初始值initial value,ABAP中的初始值和空值
来源:互联网 发布:淘宝店铺图片 编辑:程序博客网 时间:2024/05/16 10:40
1、在开发中遇到这样的情况:一个表使用了一段时间之后需要增加一些字段,而表中已经存在数据了。
2、SE16(N)查看数据时,SAP把具有初始值和空值的字段都显示为初始值,但是在查询语句中,它们在数据库中的行为是不一样的。
3、While designing new table, we often enable the initial value check to set the initial value for the field based on the datatype.
A field can also be created in the database as NOT NULL if the initial flag isnot set in the ABAP Dictionary.
To see the default value of each field check
Utilities -> Database object ->Display in the maintenance screen of the corresponding table.
But in select query there are some impact
NULL means that physically nothing is stored in the database. If a database field is defined as CHAR with, say, 80 characters, the NULL value will not waste that space.
When NULL values are transfered from the database, they are converted to the ABAP initial value. But if existing database tables are extended appending new field(s), those fields get stored as NULL values for the existing database records. A WHERE <field> = SPACE will not retrieve the recors with NULL values for the field.
If such a null field is used in WHERE clause, no problem if specifying any values except initial.
If selection of records with initial fields is required and you do not know if NULL values exist, select
WHERE ( <field> = space or <field> is NULL ).
So we have to check this aspect of table while doing programming.
4、There is an option to convert all the null values to their respective initial values in transaction SE14. The 'Force Conversion' option available in Menu option 'Extras' will adjust the table replacing NULL will the initial values. Just thought of sharing it here。
- 在SE11表中检查初始值initial value,ABAP中的初始值和空值
- 在 PowerDesigner 中 identity 的初始值 和 递增量
- iCmdShow初始值在哪里
- iOS:初始值、零值、空值(一)--变量及判断
- 注意CGFloat默认初始值在Debug和Release版本中是不一样的
- 在Django数据库中添加具有初始值的字段
- int 和Integer创建对象在内存中的初始值不同
- PropertySelection组件如何设置的value初始值
- java中快速创建带初始值的List和Map
- Ex、En和He初始值
- 【abap】数据字典SE11及Data Type中的Structure和Table Type
- 定义自动编号字段的初始值和步进值
- 自定义数据库自动编号初始值和步进值
- 自定义数据库自动编号初始值和步进值
- html有个文档,它的value的初始值为0,有一个按钮,单击按钮,使得文本框中的值加1。
- 关于初始值
- iOS:初始值、零值、空值(二)--方法及程序行
- 日期初始值在表里的显示问题
- [二分优化] hdu 1950 Bridging signals
- AutoCompleteTextView的使用及属性详解
- [Repost]Selenium ElementNotVisibleException: Cannot click on element
- 《浪潮之巅》 10没落的贵族--摩托罗拉公司
- sdibt 1251 进化树问题
- 在SE11表中检查初始值initial value,ABAP中的初始值和空值
- MMU的使用:地址映射
- Spring bean 集合注入
- Matlab图像处理函数:regionprops
- android基础知识13:AndroidManifest.xml文件解析
- Netty框架中使用protocol buffer协议
- 分享8个超棒的基于HTML5和jQuery的开发教程
- 征服 Kestrel<转>
- nginx常见性能参数解析