21.03.2013 Views

Object Oriented ABAP

Object Oriented ABAP

Object Oriented ABAP

SHOW MORE
SHOW LESS

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

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

Maintain existing global classes or interfaces.<br />

Create new global classes and interfaces.<br />

Implement inheritance between global classes.<br />

Create compound interfaces.<br />

Create and specify the attributes, methods, and events of global classes and<br />

interfaces.<br />

Define internal types in classes.<br />

Implement methods.<br />

Redefine methods.<br />

Maintain local auxiliary classes.<br />

Test classes or interfaces in a simulated runtime environment.<br />

6. What are the constraints?<br />

We cannot define object types on the basis of graphical object modeling.<br />

7. Note before creating global classes and interfaces:<br />

Global classes and interfaces that we create in the Class Builder are stored in the class<br />

library and administered by the R/3 Repository: they therefore have the same namespace<br />

as all other Repository objects. It is therefore necessary to have naming conventions for<br />

object types and their components and to use them uniformly within program<br />

development.<br />

8. Naming Conventions in <strong>ABAP</strong> <strong>Object</strong>s:<br />

The following naming convention has been conceived for use within the SAP namespace. If<br />

we do not observe the naming conventions for object types (classes and interfaces),<br />

conflicts will occur when the system creates persistent classes, since it will be unable to<br />

generate the necessary co-classes.<br />

9. Conventions for <strong>Object</strong> Types:<br />

Class in the class library CL_<br />

Interfaces in the class library IF_<br />

Local classes in programs<br />

(recommendation)<br />

Local interfaces in programs<br />

(recommendation)<br />

LCL_<br />

LIF_

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

Saved successfully!

Ooh no, something went wrong!