You are on page 1of 3

Exercise1:

1. Create the following two table with respective domains and data elements:

Table 1: Z<##>PO_HEADER

FIELD KEY DATA
ELEMENT
DOMAIN DATA
TYPE
LABEL
MANDT X MANDT MANDT CHAR( 3) Cl i ent
EBELN X Z<##>EBELN Z<##>EBELN CHAR( 10) PO Doc
Number
BSTYP Z<##>BSTYP Z<##>BSTYP CHAR( 1) PO Doc
Cat egor y
BSART Z<##>BSART Z<##>BSART CHAR( 4) PO Doc Type
AEDAT Z<##>AEDAT Z<##>AEDAT DATE Rec Dat e
ERNAM Z<##>ERNAM Z<##>ERNAM CHAR( 12) Per son
Responsi bl e
LI FNR Z<##>LI FNR Z<##>LI FNR CHAR( 10) Vendor
Number


Table 2: Z<##>PO_ITEM

FIELD KEY DATA
ELEMENT
DOMAIN DATA TYPE LABEL
MANDT X MANDT MANDT CHAR( 3) Cl i ent
EBELN X Z<##>EBELN Z<##>EBELN CHAR( 10) PO Doc
Number
EBELP X Z<##>EBELP Z<##>EBELP NUMC( 5) I t emNO
MATNR Z<##>MATNR Z<##>MATNR CHAR( 18) Mat er i al
Number
WERKS Z<##>WERKS Z<##>WERKS CHAR( 4) Pl ant
LGORT Z<##>LGORT Z<##>LGORT CHAR( 4) St or age
Loc
MENGE Z<##>MENGE Z<##>MENGE QUAN( 13, 3) Or der
Quant i t y
NETWR Z<##>NETWR Z<##>NETWR CURR( 13, 2) Pr i ce


2. Create a Foreign key relationship between tables Z<##>PO_HEADER
(EBELN) and Z<##>PO_ITEM (EBELN).
3. Execute Table Maintenance Generator on both the tables.
4. Populate each table with 15 records.



Exercise2:

1. Create a Projection view Z<##>V_POITEM on the database table
Z<##>PO_ITEM. Pick the following fields :
1. EBELN
2. EBELP
3. MATNR
4. WERKS
5. LGORT


2. Create a Database view Z<##>V_PODATA on the database table
Z<##>PO_HEADER, Z<##>PO_ITEM. Pick the following fields from the
respective table and build a join condition on the table:
1. EBELN (Z<##>PO_HEADER)
2. BSTYP (Z<##>PO_HEADER)
3. LIFNR (Z<##>PO_HEADER)
4. MATNR (Z<##>PO_ITEM)
5. MAKTX (Z<##>PO_ITEM)
6. MENGE (Z<##>PO_ITEM)
7. NETWR (Z<##>PO_ITEM)

3. Create a Maintenance view Z<##>MV_PODATA on the database table
Z<##>PO_HEADER, Z<##>PO_ITEM. Pick the following fields from the
respective table and build a join condition on the table:
1. EBELN (Z<##>PO_HEADER)
2. EBELP (Z<##>PO_ITEM)
3. BSTYP (Z<##>PO_HEADER)
4. LIFNR (Z<##>PO_HEADER)
5. MATNR (Z<##>PO_ITEM)
6. MAKTX (Z<##>PO_ITEM)
7. MENGE (Z<##>PO_ITEM)
8. NETWR (Z<##>PO_ITEM)
Do a Table Maintenance Generator on this view to modify/update the data in both
the tables.











Exercise3:

1. Create an Elementary Search Help object using the database table
Z<##>PO_HEADER for the field EBELN. Fields to be included in the search
help:
a. EBELN
b. BSTYP
c. BSART

Attach the newly create elementary search help object to the PO Doc number (EBELN)
field of the database table Z<##>PO_HEADER.


2. Create the following Help views for the database table Z<##>PO_ITEM, with
the following fields
1. MATNR
2. MAKTX

1. Get all records where (NAME: Z<##>HV_PODETAILS1)
Plant (WERKS) =<A constant value from your table>.
2. Get all records where (NAME: Z<##>HV_PODETAILS2)
Price (NETWR) >1000.
3. Get all records where (NAME: Z<##>HV_PODETAILS2)
Storage Location (LGORT) =<A constant value from your table>


Create elementary search help object with each of the above mentioned help view.
1. Z<##>ESH_PO1
2. Z<##>ESH_PO2
3. Z<##>ESH_PO3


Create collective search help object with each of the search help object created.
Z<##>CSH_PO1


Attach the new created collective search help object to the material number (MATNR)
field of the database table Z<##>.PO_ITEM.

You might also like