SEARCH HELP:
-SE11 -Search Help –Names –Create – Elementary Search Help- Short Description.
In Selection methods, enter a table or view.
We cant enter here maintenance view.
In Search Help parameter, enter the field names.
Select check box – importing and exporting.
First Line LPOs = 1, SPOs = 1
Second Line LPOs = 2, SPOs = 2
…and so on…
-Save Check and Activate.
ATTACHING SEARCH HELP TO THE TABLE:
Open the Table in change mode
Place cursor where you want to create F4 help.
Click on search help button.
Enter the search help name and press enter (copy).
Save Check and Activate.
Dialog Type:
1. Display values immediately: As soon as F4 is pressed, values will be displayed.
2. Display values with restrictions: As soon as F4 is pressed, restriction box is displayed.
3. Dialogue depending on set of values: In this option, if number of values is less than 100, it behaves as display values immediately, if more than 100, behaves as dialogue with value restrictions.
Importing – Values are copied from screen to search help
Exporting – Values are copied from hit list to screen fields.
If we have two fields in F4 Plant and Material:
For locking we can see: Plant is not copied, rather material is copied, but user can choose material based on plant.
SPOs – Position of field in hitlist
LPOs – Position of field in restriction box.
Activation – When we activate any object, a series of SQL statements will be generated which will trigger database to create object in database.
Showing posts with label data dictonary. Show all posts
Showing posts with label data dictonary. Show all posts
Tuesday, January 6, 2009
Lock Objects
Lock Objects: Are used for synchronizing the access by multiple users for a single object.
Lock Objects start with ‘e’
Whenever we activate lock objects ( eg : EMARA), automatically two function modules will be created:
1. Enqueue_EMARA to lock the object
2. Dequeue_EMARA to release the lock.
SM12 is the transaction code to analyze the locks.
Creating Lock Objects:
- SE11 - Select lock object radio button – Enter lock object name (eg – emara)
- Enter short description – Enter Primary table name – enter lock mode
– enter secondary tables.
example - While creating Sales Order, MM02 should not change the material attributes.
Whenever we do changes to an object, there are other dependent objects which should not changed by any other objects.
Click on Lock Parameter – all key fields will appear, we can change it.
Save Check and Activate.
Automatically system gives two function modules.
Order of a lock mechanism:
Lock
Read
Change
Release
Lock Objects start with ‘e’
Whenever we activate lock objects ( eg : EMARA), automatically two function modules will be created:
1. Enqueue_EMARA to lock the object
2. Dequeue_EMARA to release the lock.
SM12 is the transaction code to analyze the locks.
Creating Lock Objects:
- SE11 - Select lock object radio button – Enter lock object name (eg – emara)
- Enter short description – Enter Primary table name – enter lock mode
– enter secondary tables.
example - While creating Sales Order, MM02 should not change the material attributes.
Whenever we do changes to an object, there are other dependent objects which should not changed by any other objects.
Click on Lock Parameter – all key fields will appear, we can change it.
Save Check and Activate.
Automatically system gives two function modules.
Order of a lock mechanism:
Lock
Read
Change
Release
Structures
STRUCTURES: It is a group of logically related fields.
Difference between Structure and tables
- Table contains data, structure doesn’t contain data.
- Table must have key fields, structure doesn’t require key fields
There are two types of Structures:
- Include Structure
- Append Structure
Creating Structures:
1. SE11
2. Select Datatype radio button
3. Enter Structure name
4. Click on create
5. Select structure radio button
6. Enter short description
7. Components tab – enter field names, component type enter data element
8. Save Check and Activate
Including a structure: Can be included in any number of tables.
Appending Structure:
- Open a table in change mode
- Click on append structure button
- System proposes a name which we can modify.
But the name should start with Y or Z.
Append structure is always done at the end of structure.
Generally naming convention for fields of append structure are starting with ZZ.
If we have a table with Lchar (long character) as a field datatype, it append at last of the table, we can not have append in that case.
• Include Structure are pre-planned.
• Append Structures are not pre-planned.
• Both are part of enhancements.
Difference between Structure and tables
- Table contains data, structure doesn’t contain data.
- Table must have key fields, structure doesn’t require key fields
There are two types of Structures:
- Include Structure
- Append Structure
Creating Structures:
1. SE11
2. Select Datatype radio button
3. Enter Structure name
4. Click on create
5. Select structure radio button
6. Enter short description
7. Components tab – enter field names, component type enter data element
8. Save Check and Activate
Including a structure: Can be included in any number of tables.
Appending Structure:
- Open a table in change mode
- Click on append structure button
- System proposes a name which we can modify.
But the name should start with Y or Z.
Append structure is always done at the end of structure.
Generally naming convention for fields of append structure are starting with ZZ.
If we have a table with Lchar (long character) as a field datatype, it append at last of the table, we can not have append in that case.
• Include Structure are pre-planned.
• Append Structures are not pre-planned.
• Both are part of enhancements.
Views
Views: They are virtual tables.
- Projection View (can make changes if the view contains a single table).
- Database View (one or more than one table) using inner join
When we create a database view on more than one table, we can not change the underlying table values by using the view.
- Maintenance View
- Uses outer join
- It allows changing values in the underlying tables.
- Help View
- Uses Outer Join
- Uses for F4 help
Creating Projection View:
- Go to TCODE SE11
- Select Radio Button
- Enter View Name
- Click Create
- Select Project View Radio Button
- Enter Short Description
- Enter Basis Table (Database Table)
- Click on Table Fields
- Select the required Fields
- Select Maintain Status Tab.
- Read and Change.
Creating Database View:
- Go to TCODE SE11
- Select Radio Button
- Enter View Name
- Click Create
- Select Database View Radio Button
- Enter Short Description
- Enter Basis Table (Database Table)
- Enter Table Name in tables column
- Click on relationship
- Select relationships and click on copy.
Between 2 tables can select only one relationship.
- Click on View fields
- Click on table fields
- Select a table and click choose
- Select fields of table and enter.
- Do same for other table.
- In select conditions tab: Enter condition based on which need to be displayed.
- Save, Check and Activate.
NOTE: Check Table is Foreign Key Table.
Maintenance View: Create same a database view. But after activating, we need to create table maintenance generator.
We can write selection query using common fields also ( foreign key fields are never mandatory).
HELP VIEW: Similar to database view.
Friday, January 2, 2009
Data Dictionary Notes
Data Dictionary exists in R/3 Repository. R/3 Repository is in Database but the full image is available in Application Server for real time processing.
Data Dictionary stores and manages metadata i.e. centrally manages the metadata.
Domain = Technical Attributes.
It is a reusable object which contains technical attributes of a field.
Data Element = Short Description + Technical Description
Data Element is a reusable object which contains short description or a business context and technical attributes about a field.
We can not assign a domain directly to a field, rather we assign domain to a data element and data element to a field.
To create a field there are two methods, can be named as : Bottom up and Top Down.
Bottom Up method: Domain Data Element Table
Top Down: method Table Data Element Domain.
Steps to create domain:
1. Goto SE11.
2. Select domain radio button and click create
3. Enter domain name
(Naming convention: user defined object will start with Y or Z)
4. Click Create
5. Enter Short Description
6. Enter Datatype and no. of characters.
7. Save
8. Enter the package name OR Click on Local Object if you don’t want to assign to any package.
9. Check
10. Activate.
Steps to create Data Element
1. Goto TCODE SE11
2. Select data type zdept-phone
3. Click on create (F5).
4. Select Data Element
5. Enter short description ( more meaningful the better)
6. In Datatype tab Enter Domain
7. Click on Field Label
8. Enter field labels of short, medium and long
9. Save Check and Activate (ctrl + S, Ctrl + F2, Ctrl F3)
In case you want to add further description: Click on documentation.
Steps to Create Table:
1. Goto TCODE SE11
2. Select Database Table radio button
3. Enter Table name
4. Click on create
5. Enter Short Description
6. In delivery class enter A.
Delivery class (there r seven delivery classes)
7. Select A (application table, master transaction data)
8. Select check box
9. Click on fields tab
10. You can write fields names
11. Select key & int checkboxes (1st filed must,
should be primary key)
12. Click on the data element/direct type
13. Then data type will be enabled
14. Enter data & length
15. Place at cursor at sal (if ur write Sal then ) & click
on currency/quant fields
16. (Sal asks reference table i.e. same table name & ref
field is Sal type.)
17. Click on fields
18. Save(ctr+s)
19. local object
20. click on technical settings
21. type data class(APPLO)
22. click (bcoz A is master data so data class is APPLO)
23. size category 0
24. save
25. back(F3)
26. activate ( ctr F3)
27. to add records utilities – table contents – create entries
28. then you can type records
29. save
30. reset & store another records
31. back
32. to display the records utilities – tale contents – display
NOTE: - All key fields should come first.
-If a data element doesn’t exist, first double click on data element and it takes you to data element browser.
- For more info refer ABAP for newbie: Creating the database tables
Creating Table Maintenance Generator: because end user will not be able to access SE11.
Prerequisites: Need to have function group.
Function Groups SE80 Dropdown Select function group.
Enter function group name short description Save.
Open the Database Table in change mode
Utilities Table Maintenance generator.
Authorization Group Enter &nc& (for no authorization).
Enter function group name.
Select Maintenance type as one step.
Over the View Screen Click on find screen number.
Save and activate.
Creating Transaction Code for a table:
1. Goto SE93
2. Enter desired TCODE name
3. Click on Create (F5)
4. Enter Short Text.
5. Transaction with parameters
6. Transaction SM30
7. Click on GUI attribute
8. Name of screen field ( VIEWNAME UPDATE)
9. Give Value as ZDEPT_DETAILS i.e. the table name.
Domain Data type, description
Attributes Decimal Places for Decimal data type.
Allows to enter how many decimal places.
It is enabled for only data type.
Output Length When the display format is different than that of input format, we use output length,
Generally Output Length will be same or more than input length,
Color Color Code
Yellow 1
Red 2
Green 3
White 4
Conversion Routines ZCLR
CONVERSION_EXIT_ZCLR_INPUT YELLOW 1.
CONVERSION_EXIT_ZCLR_OUTPUT 1 YELLOW
Whenever input storage format is different from output display format (format or value), we use conversion routines.
Eg: if zclr is conversion routine, which we assign in a domain, then create two function modules
1. Conversion_exit_zclr_input
2. Conversion_exit_zclr_output
Sign
To display values with leading sign – we use sign for integers.
Lower Case:
Into the database, everything is taken as upper case, if one wants to make it as mixed case – select this check box.
Value Range In order to restrict the entries into the field, specify single value limit or intervals (value range).
Tables
Delivery Class – Specifies how table data should behave during a client copy or while upgrade.
Data Browser / Table View Maintenance
1 – Display maintenance allowed - We can create entries into the table, we can change and we can display.
2 – Display maintenance allowed with restrictions. We can only display the data in this case user creates data through transaction.
3 – Display Maintenance not allowed. You cannot do maintenance.
Technical Settings specify how effectively we are managing table in the Database.
Data Class:
Master Data – APPL 0
Transactional Data – APPL1
Organizational Data APPL2
SIZE Category: Specifies in which portion of database, table is stored.
Size Category 0 – 0 to 24000
When 24,001 record is entered, database allocates another 24,000 records to memory but database has to take overhead of storing extra records.
NOTE: Initial chunk is same for all size category that of 24,000.
Data Dictionary stores and manages metadata i.e. centrally manages the metadata.
Domain = Technical Attributes.
It is a reusable object which contains technical attributes of a field.
Data Element = Short Description + Technical Description
Data Element is a reusable object which contains short description or a business context and technical attributes about a field.
We can not assign a domain directly to a field, rather we assign domain to a data element and data element to a field.
To create a field there are two methods, can be named as : Bottom up and Top Down.
Bottom Up method: Domain Data Element Table
Top Down: method Table Data Element Domain.
Steps to create domain:
1. Goto SE11.
2. Select domain radio button and click create
3. Enter domain name
(Naming convention: user defined object will start with Y or Z)
4. Click Create
5. Enter Short Description
6. Enter Datatype and no. of characters.
7. Save
8. Enter the package name OR Click on Local Object if you don’t want to assign to any package.
9. Check
10. Activate.
Steps to create Data Element
1. Goto TCODE SE11
2. Select data type zdept-phone
3. Click on create (F5).
4. Select Data Element
5. Enter short description ( more meaningful the better)
6. In Datatype tab Enter Domain
7. Click on Field Label
8. Enter field labels of short, medium and long
9. Save Check and Activate (ctrl + S, Ctrl + F2, Ctrl F3)
In case you want to add further description: Click on documentation.
Steps to Create Table:
1. Goto TCODE SE11
2. Select Database Table radio button
3. Enter Table name
4. Click on create
5. Enter Short Description
6. In delivery class enter A.
Delivery class (there r seven delivery classes)
7. Select A (application table, master transaction data)
8. Select check box
9. Click on fields tab
10. You can write fields names
11. Select key & int checkboxes (1st filed must,
should be primary key)
12. Click on the data element/direct type
13. Then data type will be enabled
14. Enter data & length
15. Place at cursor at sal (if ur write Sal then ) & click
on currency/quant fields
16. (Sal asks reference table i.e. same table name & ref
field is Sal type.)
17. Click on fields
18. Save(ctr+s)
19. local object
20. click on technical settings
21. type data class(APPLO)
22. click (bcoz A is master data so data class is APPLO)
23. size category 0
24. save
25. back(F3)
26. activate ( ctr F3)
27. to add records utilities – table contents – create entries
28. then you can type records
29. save
30. reset & store another records
31. back
32. to display the records utilities – tale contents – display
NOTE: - All key fields should come first.
-If a data element doesn’t exist, first double click on data element and it takes you to data element browser.
- For more info refer ABAP for newbie: Creating the database tables
Creating Table Maintenance Generator: because end user will not be able to access SE11.
Prerequisites: Need to have function group.
Function Groups SE80 Dropdown Select function group.
Enter function group name short description Save.
Open the Database Table in change mode
Utilities Table Maintenance generator.
Authorization Group Enter &nc& (for no authorization).
Enter function group name.
Select Maintenance type as one step.
Over the View Screen Click on find screen number.
Save and activate.
Creating Transaction Code for a table:
1. Goto SE93
2. Enter desired TCODE name
3. Click on Create (F5)
4. Enter Short Text.
5. Transaction with parameters
6. Transaction SM30
7. Click on GUI attribute
8. Name of screen field ( VIEWNAME UPDATE)
9. Give Value as ZDEPT_DETAILS i.e. the table name.
Domain Data type, description
Attributes Decimal Places for Decimal data type.
Allows to enter how many decimal places.
It is enabled for only data type.
Output Length When the display format is different than that of input format, we use output length,
Generally Output Length will be same or more than input length,
Color Color Code
Yellow 1
Red 2
Green 3
White 4
Conversion Routines ZCLR
CONVERSION_EXIT_ZCLR_INPUT YELLOW 1.
CONVERSION_EXIT_ZCLR_OUTPUT 1 YELLOW
Whenever input storage format is different from output display format (format or value), we use conversion routines.
Eg: if zclr is conversion routine, which we assign in a domain, then create two function modules
1. Conversion_exit_zclr_input
2. Conversion_exit_zclr_output
Sign
To display values with leading sign – we use sign for integers.
Lower Case:
Into the database, everything is taken as upper case, if one wants to make it as mixed case – select this check box.
Value Range In order to restrict the entries into the field, specify single value limit or intervals (value range).
Tables
Delivery Class – Specifies how table data should behave during a client copy or while upgrade.
Data Browser / Table View Maintenance
1 – Display maintenance allowed - We can create entries into the table, we can change and we can display.
2 – Display maintenance allowed with restrictions. We can only display the data in this case user creates data through transaction.
3 – Display Maintenance not allowed. You cannot do maintenance.
Technical Settings specify how effectively we are managing table in the Database.
Data Class:
Master Data – APPL 0
Transactional Data – APPL1
Organizational Data APPL2
SIZE Category: Specifies in which portion of database, table is stored.
Size Category 0 – 0 to 24000
When 24,001 record is entered, database allocates another 24,000 records to memory but database has to take overhead of storing extra records.
NOTE: Initial chunk is same for all size category that of 24,000.
Subscribe to:
Posts (Atom)