SAP Data Elements and Domains
http://sapstack.com/abap/data-elements-and-domains/#create%20a%20domain
While creating a table in data dictionary each table field is assigned to a data element. Each data element is in turn assigned to a domain.
- Domain describes the technical attributes such as data type and length of a table field.
- Data Element gives the field labels and documentation for the table field.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
In this tutorial you will get the idea about the difference between data elements and domains and the steps for creating them.
Data elements and domains are SAP data dictionary objects that can be created using the transaction code SE11. Both of these describe the characteristics of a data field.
Steps to create a domain Steps to create a data element
What is data element?
Data element describes the semantic characteristics of a field like description and online help. A user can view this by pressing F1 help button on a field.
What is a domain?
Domain objects stores the technical characteristics of a field like its data type, decimal places, data length and value range.
Step by step procedure to create a domain
Step 1: Enter transaction code SE11 (or go to the path Tools->ABAP/4 Workbench, Development->ABAP/4 Dictionary)
Step 2: In Object name field enter the name of data element.
Step 3: Choose the domain radio button and press the create button. (Next window will appear)
Step 4: Enter a description (short text) for that domain
Step 5: Enter data type field and length field..
Step 6: Press Activate button
Step 7: Enter the local object button.
Step 8: For going back to the dictionary initial screen press back button.
Step by step procedure to create a data element
Step 1: Enter transaction code SE11 (or go to the path Tools->ABAP/4 Workbench, Development->ABAP/4 Dictionary)
Step 2: In Object name field enter the name of data element.
Step 3: Choose the data element radio button and press the create button. (Next window will appear)
Step 4: Enter a title (short text) for that data element.
Step 5: Enter the domain name and press enter (This domain should be active.).Then its data type and length will be displayed there from the domain values.
Step 6: Enter the field labels.( short with maximum 10 characters, medium with maximum 15 characters, long with maximum 20 characters, Header field length should be equal or less than the output length of the domain)
Step 7: Press Save button (Another screen will be displayed)
Step 8: Enter the local object button.
Step 9: Enter the documentation button. Another screen will be displayed. Here we need to enter the documentation of the field. By default first line will contain the character &DEFINITION&. Don’t change that, and start to enter the description from the second line)
Step 10: Press save and then back button on the screen.
Step 11: Press Activate button (Now our data element is activated and ready)
Step 12: For going back to the dictionary initial screen press back button.
As per the hierarchy we can say that table field objects contains domain objects and domain objects contains data elements (tables ->fields -> Domains -> data elements)
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 上周热点回顾(2.24-3.2)
2013-12-25 Are You Making a Good First Impression?