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.

1

ABAP in Eclipse

IMPORTING

id_number_of_heads TYPE i

RETURNING

value(rd_monster_number) TYPE i.

ENDCLASS. "Laboratory Definition

CLASS lcl_laboratory IMPLEMENTATION.

METHOD main.

* Local Variables

DATA: ld_monster_number TYPE i,

ld_number_of_heads TYPE i.

ld_monster_number = create_monster( ld_number_of_heads ).

ENDMETHOD.

METHOD create_monster.

ENDMETHOD.

ENDCLASS. "Laboratory Implementation

Listing 1.5 Automatically Created Method Implementation

Figure 1.13 Autocreation of a Method

52

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

Saved successfully!

Ooh no, something went wrong!