Which Field Differentiates A Table From Client-Dependent and Client-Independent?
Which Field Differentiates A Table From Client-Dependent and Client-Independent?
Which Field Differentiates A Table From Client-Dependent and Client-Independent?
Client-dependent tables contains a column of type CLNT as the first key field. This field
is often named MANDT (and less often CLIENT). Client-independent tables do not have
this field. These last can be accessed from any client unlike client-dependent tables.
Full Size
When open SQL ABAP statements apply to a client-dependent table, SAP automatically
adds the client selection in the WHERE clause. For example SELECT * FROM mara
WHERE matnr LIKE '1%' will be automatically translated into SELECT * FROM mara
WHERE mandt = sy-mandt AND matnr LIKE '1%' (where sy-mandt is the
client where the program runs). If you try to do client selection yourself, it is ignored,
except if you add the CLIENT SPECIFIED keyword.
back to top
Cluster tables and Pooled tables have many to one relationship with the underlying
database.
A table pool or table cluster should ideally be used for storing control information such as
screen number sequences, small program data and documentation. Data used for business
transactions should be stored in transparent tables
A table pool corresponds to a table in the database in which all records from the pooled
tables assigned to it are stored.
Several logical data records from different cluster tables can be stored together in one
physical record in a table cluster.
• A pooled table cannot have the name having more than 10 characters.
• All the key fields of the pooled table must be of character data type.
• In pooled tables, the maximum length of the key field/data fields should not
exceed the length of varkey/vardata of the pool respectively.
• Pooled tables have 2 key fields tabname(Holds the name of pooled table, its
CHAR of length 10) and varkey(Contains all key fields of the corresponding table
,its CHAR max length 110). Tabname and varkey are used to retrieve data.
• They also have Dataln(Contains length of the content in the field,its INT2 type)
and Vardata (This is where actual data of a field is stored)
• In cluster table the records having the same key are stored in a single key in the
cluster.
• If there is an overflow of the data records a continuation record is created with the
same table key.
Detailed information on pooled and cluster table can be found at
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21f083446011d189700000e832
2d00/content.htm
Full Size
back to top
The Table has a physical storage of data whereas views do not have physical storage of
data.
The view is derived from one or more tables which is created only with the required
fields from the database table(s). It can also be created with table inner joins and
specifying conditions for data retrieval.
back to top
back to top
No. You can use only projection view or database view in your ABAP program.
back to top
back to top
Two step: Two screens namely the overview screen and Single screen are created. The
user can see the key fields in the first screen and can further go on to edit further details.
back to top
How do you activate the database table after making changes to it?
After making changes to the table, in order to reflect the changes go to transaction SE14
and Choose Edit and then choose Activate and Adjust Database.
OR
You can directly activate it from the SE11. Goto Utilities-> Database Object -> Database
Utility -> Activate and Adjust Database.
back to top
The programs are stored in the table TADIR and the development class packages in
TDEVC.
back to top
I have recently added a few fields to a custom table. But I don't get these fields in
the table maintenance program?
You have to delete and recreate your own existing table maintenance program to see your
new fields.
I had faced similar problem, I re-generated the view maintenance and I could see newly
added fields in the maintenance program.
back to top
Whenever you need to create new records in the database table use INSERT. Whenever
using INSERT be sure that a duplicate entry having the same values for the primary key
fields are not present. Else it may throw a dump.
When you use MODIFY it makes a check for the matching key field values. If present it
modifies the matching record, else it creates a new record in the database table.
back to top
Update will update the existing records in the table. Whereas Modify will modify/update
the existing records and if the record is not found then the record will be inserted.
• UPDATE dbtab SET column1 = field1 [column2 = field2, etc.] WHERE logexp
• UPDATE dbtab FROM wa
• UPDATE dbtab FROM TABLE itab
back to top
Go to transaction SE11, open your database table. Choose the menu, Goto->Indexes to
create index. Give your index name and choose the fields of the table. Be careful, an
additional index may vanish with the next upgrade or hotpackage.
back to top
The Check Table is the dependent table to which the relationship is defined using foreign
keys. The contents of the check table field are shown in the input help for the referenced
field.
If you use a check table to check values, only data that is stored in database tables is used
in the check. If the allowed values are restricted due to inheritance or dependencies while
you are classifying an object, these restrictions are not checked.
The Value table is the table attached to a field at the domain level, where the entry to the
field can be only from the value table. They are not used in the Input Help.
When you define a domain that all the table fields or structure components referring to
this domain should be checked against a certain table. This information can be stored in
the domain by entering a value table.
The basic difference between value table and check table is check table can be used as a
input help for a field on which check table is assigned. Value table contents are never
used for input help.
back to top
While establishing foreign key relation between check table and foreign key table if at the
domain level value table is provided then the system will propose that value table as
check table if you accept this proposal then value table will becomes check table.
back to top
The Domain specifies the Technical attributes of the field such as the data type, length
and the value range.
An Elementary Type is defined by the built-in data type, length and possibly the number
of decimal places. These type attributes can either be defined directly in the data element
or copied from a domain .
A Reference Type defines the types of reference variables in ABAP programs.back to top
When I create new entries in the table the field values are always in Uppercase. How
do I get the data with mixed case?
The reason for this is that the Domain for the field in the table might have Lowercase
checkbox unchecked. Check the Lowercase checkbox to preserve the case of your data.
back to top
What is the need of reference table and reference field in Currency/Quantity fields?
The reference table and reference field are the fields which specify the currency key or
Unit of Measure. Suppose if the user specifies a currency amount say 1000$, the currency
amount field would indicate the amount 1000 and the currency key indicates that the
currency specified is in Dollars.
back to top
Create Z-Structure with the fields needed and append the structure to the standard table
by using the option append structure within table display.
We can enhance the standard tables by using Append structures and customizing
includes.
Append structures allow you to attach fields to a table without actually having to modify
the table itself. Table enhancements using append structures therefore do not have to be
planned by SAP developers. An append structure can only belong to exactly one table.
In contrast, includes allow you to use the same structure in multiple tables. The include
statement must already exist in the SAP table or structure. Table enhancements using
includes do, however, have to be planned by SAP developers.
back to top
After creating the table in the menu click on Utilities -> TMG (or transaction code ).
There Enter the authorization group like &NC&. Enter one existing function group. Give
package name. Select the radio button One step if you want to display entries in one
screen or Two step if you want to display entries in two screens. Click on Find screen
numbers button in application tool bar.Select the radio button propose or some thing to
assign one screen to your new TMG. Click on create.
back to top
Table REPOSRC contains the Report Source Code, but it can be correctly read only by
READ REPORT abap statement.
Transparent tables :
An elementary type is defined by the built-in data type, length and possibly the number of
decimal places.
What is a Matchcode?
This is just another kind of search help provided by the ABAP Workbench via ABAP
Dictionary. It is defined in ABAP Dictionary. This was replaced by search help from 4.0
above.
Before 4.0 input helps were defined by creating matchcodes and help views, these objects
are converted to search helps with the same name.
An elementary search help can be created by using a matchcode ID. And collective
search help is created by using a matchcode object. When Matchcodes are attached to
input fields these attachments are converted to the collective search helps to the
corresponding screen fields.
back to top
back to top
• A R/3 system allows multiple users to access the same object at a given point of
time by lock mechanism. When one person is editing the program/transaction
these locks are set and released accordingly by function modules. These function
modules are generated automatically by the Lock Object definition in ABAP
dictionary.
back to top
This attribute of table maintenance decide about whether table records can be created or
not using table maintenance generator or whether the entries can be viewed only.This
attribute donot have effect on program.Programmatically one can create entries in table
having any value for this attribute
back to top
Database Tables like DD08L provide the information about the relationships between
different database tables.
back to top