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.

Top-Down Development 15.2

Creating a DDL in Eclipse

The first step in coding a CDS view is to create a new DDL in your lovely ABAP in

Eclipse development environment (you cann ot create this in SE80). You do this

by selecting the package in which you want to create the view and following the

menu path New 폷 Other ABAP Repository Object 폷 Dictionary 폷 DDL Source

(see Figure 15.2).

Figure 15.2 Creating a DDL Source: Part 1

After selecting the DDL source option and clicking Next, the screen shown in Figure

15.3 appears.

Enter a name, such as ZCDS_MONSTERS, and a description, and click Next. If this is

not a local object, then you’ll be asked for a transport request. After you choose

one, click Finish. For a local object, just click Finish. A blank screen appears with

the CDS view name at the top.

Why the Blank Screen?

As has been stressed often before, in Eclipse there is no concept of form-based programming

like you see with transactions su ch as SE37 and SE24, in which you have to

put parameters and method names in certain boxes. In Eclipse, everything is based on

source code, and naturally CDS views are no exception. You have to code everything

yourself, and that’s a Good Thing.

661

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

Saved successfully!

Ooh no, something went wrong!