ABAP Class02
ABAP Class02
The below pop-up with be shown. Choose data element and press
the tick button
Enter a description for this data element that you are creating . which in our case is “Recurring Customer First
Name “ and then choose the radio button for “Predefined Type” shown below.
If you already know the datatype you wish to use, you can type it in or else, just press the button shown
below. Alternatively, use the F4 button on your keyboard to bring up all the possible values for this field.
This new window shows the list of all data types. The name should be a character string and hence
CHAR should be selected.
Also, type in the Length as shown below .
Now, we maintain the field labels by switching to the Field Label tab. Fill in one or more of these labels as shown below.
Now we do the standard Save , Check and Activate steps in SAP
The below message at the bottom left of the screen confirms the save:
S - These tables are System table delivered by SAP with predefined data as part of system.
W - System table for system administration data. A system table in the delivery
class W usually delivered with predefined data by SAP.
Data browser/table view editing allows you to edit the contents of the table, create entries into the
table, delete entries from the table using table maintenance tools.
Table maintenance tools are data browser (Transaction SE16), table/view maintenance (Transaction
SM30/SM31) and Generate Table maintenance Dialog (Transaction SE54)
There are four options in data browser/table view editing
Display/Maintenance allowed with restrictions
If we select this option in dropdown, using data browser (Transaction SE16) display of the
table contents is possible but no maintenance is allowed.
Using table/view maintenance (Transaction SM30/SM31) display and maintenance of the
table/view is not allowed.
Using Generate Table Maintenance Dialog (Transaction SE54) tool only display of the
table contents is allowed no maintenance.
Display/Maintenance Allowed
If we select this option in dropdown, using data browser (Transaction SE16) display of the
table contents as well as maintenance of table/view is allowed.
Using table/view maintenance (Transaction SM30/SM31) display and maintenance of the
table/view is allowed.
Using Generate Table Maintenance Dialog (Transaction SE54) tool display of the table
contents and maintenance is allowed
Display/Maintenance Not Allowed
If we select this option in dropdown, using data browser (Transaction SE16) display of the
table contents as well as maintenance is not allowed.
Using table/view maintenance (Transaction SM30/SM31) display and maintenance of the
table/view is not allowed.
Using Generate Table Maintenance Dialog (Transaction SE54) tool display of the table
contents as well as maintenance is not allowed.
Only Display Allowed
If we select this option in dropdown, using data browser (Transaction SE16) display of the
table contents is possible but no maintenance is allowed.
Using table/view maintenance (Transaction SM30/SM31) display is allowed and
maintenance of the table/view is not allowed.
Using Generate Table Maintenance Dialog (Transaction SE54) tool only display of the table
contents is allowed no maintenance.
You will reach the below screen where you need to fill in a description for this table and a delivery class. All the
custom tables we create will be to hold master and transaction data and those are class ‘A’ objects. Fill in these
values here
On clicking this, we see that the data element column gets grayed out and the Datatype, Length,
Decimal places and Short Description field have become active.
Here we enter the datatype NUMC and not CHAR because we assume that he customer number
is a character string consisting only of numbers in this example. The length and description are
also as specified.
Quantity Sold with technical name ZQUAN_SOLD. These are key figure values and hence have special
data types available. Let’s do a F4 on the data type field to search for the right data type. As seen below,
there is a data type by the name of QUAN specifically for Quantities.
Here we select QUAN and add a short description for it.
For the final field, we will use the data element “Recurring Customer First Name” To use a
Data Element, we need to switch over using the button marked below
Enter the technical name of the data element in the data element column ZREC_FNAME
and press enter. As seen below, the data type and short description fields get filled
automatically and that is why you should use more data elements in your design if you
are planning to add the same fields across multiple tables.
Add a field name to this row and also mark Customer Number as the key field using the check-box in
front of it as shown below.
Now if you’ve noticed, we added a field called Quantity and one for units but how will the system
know that the unit field is linked to this Quantity field? To make this link, switch to the
Currency/Quantity Fields tab. Here you will see a blank area in front of the Quantity field asking for
the reference table and reference field for the unit. In our case, the Reference table is ZCUST_REV
itself since the unit field is here and the Ref field is ZUNIT_SOLD.
Fill up the required information as shown below.
We are almost done here. There is a minor setting you need to specify to avoid getting warnings in
activation. From the Menu bar as shown below, select the “Enhancement Category” option.
You will get the pop-up like below. Press the tick button.
Mark the option shown below to allow future enhancements (field additions) to this table with Character
or Numeric fields. You can also choose the “Deep” option to allow all enhancement types to be applied
to this table. For now, choose one and press the copy button.
Now, save and activate You should reach the below screen
Using F4 helps to understand the possible values for this field.
Next, we fill out the size category which is the number of records expected in that table
I expect less data and hence choose Category 0 and then press the save button on top and then the green
back button to go back.
When back, activate the table and the table would now be ready to use.