This is just a quick reference on how to write a class definition, implementation, and object instantiation in SAP ABAP. In order to use ABAP objects you must have ECC 6 or greater, I think.
CLASS lc_name DEFINITION. PUBLIC SECTION. METHODS do_something IMPORTING pv_something EXPORTING pv_another. ENDLCASS. CLASS lc_name IMPLEMENTATION. METHOD do_something. ... do your things here ... ENDMETHOD. ENDCLASS. DATA lo_name TYPE REF TO lc_name. CREATE OBJECT lo_name lo_name->do_something( EXPORTING pv_something = lv_something CHANGING pv_another = lv_another).