Uploaded by shrithva

ABAP ASSIGNMENT 1

advertisement
ABAP TASKS
Task 1 – 30th September 2022
Problem statement
Create table YSDM_DET with fields:
- Emp No
- Emp Name
- Mobile Num
- Address
2. Create table with YSDM_SAL with fields
- Emp No
- Designation
- Salary
Try to use all data dictionary concepts on this 2 tables including check tables
OBJECT NAMES –
1. Database table ( check table ) – YSDM_DET
2. Database table 2 – YSDM_SAL
3. Database view – YSDM_TEST_DB
4. Projection view – YSDM_TEST_PRJ
5. Help view – YSDM_TEST_HELP
6. Maintenance view – YSDM_TEST_MAINT
7. ELEMENTARY SEARCH(YSDM_DET) – YSDM_ELEM_SCH
8. ELEMENTARY SEARCH(YSDM_SAL) – YSDM_ELEM_SCH2
9. COLLECTIVE SEARCH – YSDM_COLL_SCH
10. LOCK(WRITE) – EYLOCK1
DDIC OVERVIEW –
Task execution.
I made the Table YSDM_DET with having the following contents in it –
I made the second table YSDM_SAL with the following contents on it –
TYPES OF VIEWS –
A view is similar to the database table, but it does not contain any physical data; instead it derives data
from different tables and acts like a virtual table (table without any existence).
We make use of JOINS to create VIEWS.
TYPES OF VIEWS
FUNCTION
READ / WRITE
USES WHICH JOIN
Database view
Combines matching records from
table.
we can minimize the fields by
projecting only required fields and
rest fields will be filtered out. Read
and Write.
The help view is created on two or
more than two tables, specifically
for the "Search-helps" in DDIC.
Read only.
allows us to maintain the data of
several tables for one application
at a time.
Read only
Inner join
Projection View
Help View
Maintenance
View
Read and write
Read only
Outer Join
Read and Write
Outer Join
Creation of foreign key
Projection view –
MAINTAINANCE VIEW
/OSM30 to display the view.
HELP VIEW
Here if you can see, mob no and address is coming from YSDM_DET and empno, desng and salary is
coming from YSDM_SAL.
Structures –
Deep structure-
Nested structure –
Elementary search help
Created for Employee number
LOCKS
WRITE LOCK
On YSDM_SAL
Download