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.
No comments:
Post a Comment