SAP---ABAP

Saturday, November 24, 2007




>>>PREVIOUS>>>




Question Database




Q5) what is a domain?


A domain specifies the technical characteristics and the allowed values of a field.

Domains are linked to fields via data elements. In other words, fields are assigned to data elements, and data elements are assigned to domains. You cannot directly assign fields to domains.

The technical characteristics of a field are the field’s type and length. These are also referred to as the field’s format.

The allowed values of a field define what is acceptable input for that field. These may be listed explicitly or may be specified by reference to a value table.

Domains can exist independently in the ABAP Dictionary.

Just as multiple fields may be assigned to the same data element, multiple data elements may be assigned to the same domain.

As with data elements, pre-defined domains exist in the system and are available for your use. If an SAP R/3-supplied domain matches the characteristics you require, use the pre-defined domain. If you wish to change the domain’s allowed values, however, you must create your own domain.

In addition to the characteristics listed previously, domains can also specify a fields output characteristics, such as output length and whether or not lowercase letters are permitted for that domain.

By defining valid values for a domain, automatic validation is provided for any fields that point to that domain. This includes validation at the ABAP Dictionary level (if a program tries to insert invalid data, an error will occur) as well as at the screen level (users will not be permitted to enter invalid data).

Additionally, users can obtain a list of possible entries (for fields pointing to domains with allowed values) by pressing function key F4.




Q6) what is a foreign key?


A foreign key is a field (or combination of fields) that represents the primary key of another table.



Foreign keys are used for:


– Maintaining data integrity

– Providing additional texts in the online help system

– Creating other dictionary objects that are defined over multiple tables
(such as views)



Q7) what is a value table?


The table containing the set of allowed values attached to a domain.



Q8) what is a check table?


The table that is referenced by a foreign key. A check table is either identical to a value table, or is another table containing a subset of the records in a value table.



Q9) what is a foreign key table?


The table containing fields that are the primary key of the other table. The foreign key table is also known own as the “dependent” or “child” table.

When creating foreign key relationships, you should always specify the cardinality of that relationship. Here is a reminder of the possible values for each side of the n : m notation that SAP uses to specify cardinality.


Q10) How many table types are there in SAP ABAP dictionary?



There are 5 different table types in the SAP ABAP Dictionary:


* Transparent tables

* Structures

* Pool tables

* Cluster tables

* Views




>>>NEXT>>>





No comments: