ADT in Eclipse

Programming with Eclipse

‘(C) Brandeis Consulting’

Interface IF_OO_ADT_CLASSRUN

Classes that implement the interface IF_OO_ADT_CLASSRUN can be executed directly in Eclipse. The method if_oo_adt_classrun~main is called.
The importing parameter OUT has a method WRITE that can be used to output character strings to the console.

Signature of the WRITE method

write  
 importing data  type any  
           name  type string optional  
 returning value(output)  type ref to if_oo_adt_classrun_out  
CLASS zbc_string_functions DEFINITION
  PUBLIC
  
FINAL
  CREATE PUBLIC .
PUBLIC SECTION.
INTERFACES if_oo_adt_classrun.
ENDCLASS.
CLASS zbc_string_functions IMPLEMENTATION.
METHOD if_oo_adt_classrun~main.
out->write( ‘Hello World’ ).
ENDMETHOD.
ENDCLASS.
‘(C) Brandeis Consulting’

Edit mode

Concept and icons for

  • Locks => Lock icon
  • Unsecured objects => *
  • Inactive objects => Gray diamond
‘(C) Brandeis Consulting’

Exercise: Hello World Create class

Create a class with the interface IF_OO_ADT_CLASSRUN.
Implement the method MAIN
Output the text ‘HELLO WORLD’.

‘(C) Brandeis Consulting’

Tools

  • Element Info
  • Data Preview
  • SQL Console
  • Transport Organizer
  • Quickfixes
  • CDS Tools
  • Annotations
  • Version Management
  • Code Templates
  • Refactoring
‘(C) Brandeis Consulting’

Core Data Services

Brief overview of what this entails.
Modeling, RAP, ABAP SQL

‘(C) Brandeis Consulting’

Refactoring

  • Extract methods
  • Rename
  • Convert inline declarations to variables/parameters/attributes
  • ...
‘(C) Brandeis Consulting’

Templates

Doing the same coding over and over again? Templates can help you here:
Working with Templates

‘(C) Brandeis Consulting’