14.01.2020 Views

ABAP_to_the_Future

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Bottom-Up Development 15.3

Figure 15.8 Creating an External View

Once a view exists in SE11, inside your ABAP code you can define internal tables

based upon the view and do a normal SELECT statement, as in Listing 15.15.

DATA: lt_monsters TYPE STANDARD TABLE OF zev_monstrous_view.

SELECT *

FROM zev_monstrous_view

INTO CORRESPONDING FIELDS OF lt_monsters.

Listing 15.15 Calling an External View from an ABAP Program

15.3.2 Building and Calling Database Proxies

The first step in the proce s of creating and coding a stored procedure via bottomup

development is to create the proced ure directly inside the SAP HANA development

environment. During the creation of a store d procedure, you need to

specify the import and export parameters and write the SQLScript to retrieve the

data; the code in the stored procedure will look rather like that inside an AMDP

implementation (refer back to Section 15.2 .2). The creation of this stored procedure

in SAP HANA is, of course, not an ABAP task and thus won’t be discussed in

more detail.

679

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

Saved successfully!

Ooh no, something went wrong!