2007 Apr 17 12:47 PM
1. could any one plz explain me the steps of creating z- tables,while working with z tables is it necessary (indexes)?wat r indexes,wat is the purpose of z tables?
2.wat is a check table ,and wat is a value table?explain me this?with example?
1. could any one plz explain me the steps of creating z- tables,while working with z tables is it necessary (indexes)?wat r indexes,wat is the purpose of z tables?
2.wat is a check table ,and wat is a value table?explain me this?with example?
2007 Apr 17 12:49 PM
2007 Apr 17 12:50 PM
hi,
get me your email id i got a document regarding this
regards,
Navneeth.K
2007 Apr 17 12:51 PM
hi
ztables are created for customer specific requirements.
indexes are created when you are not able to fetch data using primary keys and when the performace is poor while fetching the data.
it is not necessary that u have to create an index while creating a table.
<u>Value Table</u>
This is maintained at Domain Level.
When ever you create a domain , you can entered allowed values. For example you go to Domain SHKZG - Debit/credit indicator. Here only allowed values is H or S.
When ever you use this Domain, the system will forces you to enter only these values.
This is a sort of master check . To be maintained as a customization object. This mean that if you want to enter values to this table you have to create a development request & transport the same.
<u>Check table</u>
For example you have Employee master table & Employee Transaction table.
When ever an employee Transacts we need to check whether that employee exists , so we can refer to the employee master table.
This is nothing but a Parent & Child relationship . Here data can be maintained at client level , no development involved.
As per DBMS what we call foregin key table, is called as check table in SAP.
There is 1 more important Difference in Value Table and Check Table is that:
1. The contents of the check will be used as an input help(F4 Help) for a particular field on which a check table is assigned.
But the contents of Value Table are never used in Input Help.
The Heirarchy which decides from where to used the Input Help is:
1. Input help defined explicitly in ABAP Program or Dialog Module.
2. Input Help Attached to the referenced Database Table field.
3. Using the contents of Check Table as an input help if neither (1) or (2) help are there.
4. Input help from Fixed value or Value range given in Domain.
create tables
<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21eb6e446011d189700000e8322d00/frameset.htm">Creating tables</a>
regards,
madhu
2007 Apr 17 12:51 PM
2007 Apr 17 12:52 PM
hi,
In the initial screen of the ABAP Dictionary, select object class Database table, enter the table name and choose Create.
The maintenance screen for the table is displayed.
Enter an explanatory short text in the field Short text.
You can for example find the table at a later time using this short text.
On the Delivery and Maintenance tab, enter the delivery class of the table.
On this tab, choose an entry from the dropdown box for the Data Browser/Table View Maintenance field. Choose Table maintenance allowed on this tab page if users with the corresponding authorization may change the data in the table using the Data Browser (Transaction SE16).
On the Fields tab page, enter the table fields. Perform the following steps for each table field:
Enter a name for the table field in the column Fields. The field name may only contain letters, digits and underlining, and it must begin with a letter. A field name may not be longer than 16 characters.
Select the Key column if the field should be part of the table key.
Enter the name of a data element in field Field type. In this case the field takes the data type, length, decimal places and short text from this data element. If there is no suitable data element, you can go to the data element maintenance screen by entering a name and double-clicking.
With Data element/Direct type, you can directly enter the data type, field length, decimal places and short text. Press this key again if you want to enter data elements for further fields.
Only a limited functionality is provided for fields without data elements. No foreign keys or fixed values may be defined for such fields, and there is no F1 help.
You must also define the reference field and reference table on tab page Currency/quantity fields for fields of types CURR (currency) and QUAN (quantity)
You also can include the fields of an existing structure in the table. Note that the field names in the structure may not be longer than 16 places in this case.
Maintain the technical settings for the table. The corresponding maintenance screen is displayed with Goto -> Technical settings.
The technical settings are a separate object and can be activated and transported separately from the table.
Maintain (if necessary) the foreign key relationships of the table to other tables.
The corresponding maintenance screen is displayed if you place the cursor on the check field and choose .
Create (if necessary) secondary indexes for the table.
To do this choose Goto -> Indexes.
Save the table.
A dialog box appears in which you have to assign the table a development class.
For tables with the Delivery Class G or E, you must also maintain a customer namespace (key block of the table) for the table entries. SAP cannot change table entries or import new entries in the customer namespace during upgrades. To navigate to the appropriate maintenance transaction, choose Define Customer Namespace on the Attributes tab.
During activation, the table and all the indexes on the table are automatically created in the database (if not explicitly excluded when the index was defined). You can display the table definition in the database with Utilities -> Database object -> Display.
At activation, the runtime object for the table is also created. You can display the runtime object with Utilities -> Runtime object -> Display.
Constraints
All the key fields of a table must be stored together at the beginning of the table. A non-key field may not occur between two key fields.
A maximum of 16 key fields per table is permitted. The maximum length of the table key is 255.
If the key length is greater than 120, there are restrictions when transporting table entries. The key can only be specified up to a maximum of 120 places in a transport. If the key is larger than 120, table entries must be transported generically.
A table may not have more than 249 fields. The sum of all field lengths is limited to 1962 (whereby fields with data type LRAW and LCHR are not counted).
Fields of types LRAW or LCHR must be at the end of the table. Only one such field is allowed per table. There must also be a field of type INT2 directly in front of such a field. The actual length of the field can be entered there by the database interface.
Also have a lok at below link.
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eb6e446011d189700000e8322d00/content.htm
if useful reward points
2007 Apr 17 12:52 PM
Hi Murli Mohan,
2.
Check Table is for Field level Validation whereas Value table is for Domain Level Validations.
Value Table proposes table for check table.
I think you are clear with this.
more elaborate.
**************************
<b>Check Table</b>
The Check Table is the table used by system to check if a data exist or not exist.
While creating a table if you want to be sure that a field can have some values
and these are in a certain table, you can give IT this table as CHECK TABLE.
<b>Value Table</b>
This is maintained at Domain Level.
When ever you create a domain , you can entered allowed values. For example you go to Domain SHKZG - Debit/credit indicator.
Here only allowed values is H or S.
When ever you use this Domain, the system will forces you to enter only these values.
This is a sort of master check . .
To be maintained as a customization object.
This mean that if you want to enter values to this table you have to create a development request & transport the same.
Differences:
1)Check table will carry out the check for input values for the table field being entered in any application
and value table will provide values on F4 help for that table field.
2)The check table defines the foreign keys and is part of the table definition.
The value table is part of the domain definition.
Hope this resolves your query.
Reward all the helpful answers.
Regards
2007 Apr 17 12:53 PM
go to se11.
create table with ur desired fields and types.
no its not necessary to create index for z table.
plz reward points if it helps.