14.01.2020 Views

ABAP_to_the_Future

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Customization Options with User-Defined Plug-Ins 1.4

Create Representa-

Right-click the ReallyScaryMonster project, and choose

tion; you’ll see the screen shown in Figure 1.25.

Figure 1.25 Creating a Class Diagram

After pressing the Next button, you’ll see a screen with three sections (Figure

1.26). In the middle is the area where yo u’ll create your cl ass diagram, on the

right are all the things you can drag onto the screen, and at the bottom are the

properties of whatever th e cursor is on at any given instant, which you can

change. (In Chapter 12, you will see th at the graphical editor in Web Dynpro

ABAP is just like this.)

Create a base class with two subclasses th at inherit from the base class. Give all

three some properties; in the subclass, make some of the green and blue monsters’

attributes protected or private, and give the main class one method (called

an “operation” in UML speak). You can do all of this by dragging things around

the screen; when you place yo ur cursor on anything (such as an attribute), you

will see a list of properties at the bottom of the screen.

Select the REALLY_SCARY_MONSTER Model.UML node, right-click it, and choose UML

2 ABAP 폷 Generate ABAP code . (Reminder: this menu option would not have

been there if you hadn’t installed the UML2ABAP plug-in!)

75

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!