the procedure to create tables in abap

16
DATA DICTIONARY DATA DICTIONARY HOW TO CREATE TABLE IN DATADICTIONARY: HOW TO CREATE TABLE IN DATADICTIONARY: To create tables, select To create tables, select database table: ZKA_EMP database table: ZKA_EMP . All user- . All user- created tables must start with Y or Z. created tables must start with Y or Z. Eg: Eg: ZKA_EMP ZKA_EMP . Then click on the . Then click on the CREATE CREATE button. button. In the In the Attributes(tab) Attributes(tab) screen, Enter the short description as screen, Enter the short description as EMPLOYEE DETAILS . EMPLOYEE DETAILS . Delivery class Delivery class : Under multiple entries, select : Under multiple entries, select A-Application -Application table ( Master and transaction data). table ( Master and transaction data). Check the box for the Check the box for the Table maintenance allowed Table maintenance allowed . .

Upload: ambeshtripathi

Post on 12-Nov-2014

734 views

Category:

Documents


1 download

DESCRIPTION

Any type of doubt you have in ABAP Please contact me [email protected] you need such type of notes then mail [email protected]

TRANSCRIPT

Page 1: The Procedure to Create Tables in ABAP

DATA DICTIONARYDATA DICTIONARY

HOW TO CREATE TABLE IN DATADICTIONARY: HOW TO CREATE TABLE IN DATADICTIONARY:

To create tables, select To create tables, select database table: ZKA_EMPdatabase table: ZKA_EMP. All user-created tables must start . All user-created tables must start with Y or Z. with Y or Z. Eg: Eg: ZKA_EMPZKA_EMP. Then click on the . Then click on the CREATE CREATE button. button.

In the In the Attributes(tab) Attributes(tab) screen, Enter the short description as screen, Enter the short description as EMPLOYEE DETAILS . EMPLOYEE DETAILS . Delivery classDelivery class: Under multiple entries, select : Under multiple entries, select AA-Application table ( Master and -Application table ( Master and transaction data). transaction data). Check the box for the Check the box for the Table maintenance allowedTable maintenance allowed. .

Page 2: The Procedure to Create Tables in ABAP

DATA DICTIONARYDATA DICTIONARY

Now select the Now select the fields (tab), fields (tab), Field name EMPNO and field type Field name EMPNO and field type ZKA_EMPNO ZKA_EMPNO and and check the primary key check box. Field name EMPNO and field type check the primary key check box. Field name EMPNO and field type ZKA_EMPNO ZKA_EMPNO and check the primary key check box and save the screen. and check the primary key check box and save the screen.

Page 3: The Procedure to Create Tables in ABAP

DATA DICTIONARYDATA DICTIONARY

Page 4: The Procedure to Create Tables in ABAP

DATA DICTIONARYDATA DICTIONARY

Now double click on the field type and u will get CREATE DATA ELEMENT Now double click on the field type and u will get CREATE DATA ELEMENT SCREEN, click on YES. SCREEN, click on YES.

Page 5: The Procedure to Create Tables in ABAP

DATA DICTIONARYDATA DICTIONARY

Enter the short text Enter the short text EMPLOYEE NO EMPLOYEE NO and the domain name and the domain name ZKA_EMPNOZKA_EMPNO. .

Page 6: The Procedure to Create Tables in ABAP

DATA DICTIONARYDATA DICTIONARY

Now double click on the domain name Now double click on the domain name ZKA_EMPNO ZKA_EMPNO and enter the following details. and enter the following details. Short text Short text : : EMPLOYEE NO. EMPLOYEE NO. Data Type Data Type : : NUMCNUMC(Click on the RIS button and select NUMC from that) (Click on the RIS button and select NUMC from that)

No. of characters No. of characters : As per the requirement. : As per the requirement.

Page 7: The Procedure to Create Tables in ABAP

DATA DICTIONARYDATA DICTIONARYNote: If the field is employee name then u need to select the data type to be CHAR and Note: If the field is employee name then u need to select the data type to be CHAR and required no of characters. required no of characters.

Now Now SAVE (CTRL + S) , SAVE (CTRL + S) , Click on the Click on the CHECK CHECK button or button or (CTRL + F2), (CTRL + F2), and should getand should get NO INCONSISTENSIES FOUND in the status bar. Then click on the NO INCONSISTENSIES FOUND in the status bar. Then click on the ACTIVATE ACTIVATE button button (CTRL + F3). (CTRL + F3).

Page 8: The Procedure to Create Tables in ABAP

DATA DICTIONARYDATA DICTIONARY

Now click on the Now click on the BACK BACK button and then, button and then, SAVE(CTRL+S), CHECK(CTRL+F2) & SAVE(CTRL+S), CHECK(CTRL+F2) & ACTIVATE(CTRL+F3). ACTIVATE(CTRL+F3). Click the Click the BACK BACK button and u will be in the main dictionary button and u will be in the main dictionary screen. screen.

Page 9: The Procedure to Create Tables in ABAP

DATA DICTIONARYDATA DICTIONARY

Now click on the Now click on the NEW ROWS NEW ROWS button to enter as many fields u would prefer. button to enter as many fields u would prefer.

Once all the fields with the data element and the domain is set up, the table need to be Once all the fields with the data element and the domain is set up, the table need to be activated as a whole. To activate the table the technical settings should be saved. activated as a whole. To activate the table the technical settings should be saved. Before u activate, u need to set up the technical settings by clicking on the Before u activate, u need to set up the technical settings by clicking on the TECHNICALTECHNICAL SETTINGS SETTINGS button. button.

Page 10: The Procedure to Create Tables in ABAP

DATA DICTIONARYDATA DICTIONARY

Click BACK to get to the main screen and Click BACK to get to the main screen and SAVE, CHECK AND ACTIVATE SAVE, CHECK AND ACTIVATE the table.the table. In order to give the input values(new entries), click In order to give the input values(new entries), click UTILITIESUTILITIESTABLE TABLE CONTENTSCONTENTSCREATE ENTRIES. CREATE ENTRIES.

Page 11: The Procedure to Create Tables in ABAP

DATA DICTIONARYDATA DICTIONARY

Once the values are saved, click the Once the values are saved, click the BACK BACK button and click on the button and click on the CONTENTSCONTENTS, then , then the the EXECUTE EXECUTE button to see the output. button to see the output.

Page 12: The Procedure to Create Tables in ABAP

DATA DICTIONARYDATA DICTIONARY

Page 13: The Procedure to Create Tables in ABAP

DATA DICTIONARYDATA DICTIONARY

So when we click on the So when we click on the EXECUTE EXECUTE button, we get the output in the table format. button, we get the output in the table format. Thus the table is created. Thus the table is created.

Page 14: The Procedure to Create Tables in ABAP

DATA DICTIONARYDATA DICTIONARY