ABAP Freak Show – July 15th – ABAP OO Tutorial Part 3


This is part 3 of the 5 part series on ABAP OO. In this part we will expand the lessons of the previous tutorial and look at a special type of class in ABAP – the Persistent Object. Persistent Objects are an OO-based approach to the types of data access that you would normally perform with SQL statements. With Persistent Objects you don’t code any SQL statements. Instead a class is generated for you that contains SET and GET methods for reading and updating data. ABAP Persistent Objects also contain the functional for more complex update scenarios – like V2 Asynchronous updates.

You can also download all the source code from all 5 tutorials. Just be sure to look at the ReadMe.pdf file for important tips on installing the source code.
http://abap-sdn-examples-tpj.googlecode.com/files/AFS_OO_Tutorials_Source_Code.zip

You can download a high resolution version MP4 version of the video here:
http://blip.tv/file/get/Thomas_jung-AFSJuly162009ABAPOOPart3265.mp4

You can download an iPod/iPhone version of the video here:
http://blip.tv/file/get/Thomas_jung-AFSJuly162009ABAPOOPart3597.mp4

Tags: , ,

2 responses to “ABAP Freak Show – July 15th – ABAP OO Tutorial Part 3”

  1. Simon says :

    Hi Thomas,

    I was wondering if there was an equivalent in ABAP of JavaDocs or a good description of the OS API somewhere; something that explains what all the framework objects are for and how to use them?

    Thanks,
    Simon

  2. Thomas Jung says :

    Short answer is that there really isn’t something centralized like JavaDocs for ABAP. There are few places you should look. The in-workbench help is probably the closest to JavaDocs. The in-workbench documentation (which can always be accessed from transaction ABAPHELP or by pressing F1 in the editor while focused on a keyword) provides quite robust documentation for any of the ABAP keywords and many of the core concepts as well as a section for System Classes and Interfaces. In 7.02 we have also added syntax diagrams and embedded the example applications directly into this online help. You can also export this help documentation to HTML.

    What you won’t find in this help is some of the system classes – like persistent objects. This is documented in the NetWeaver section of the help.sap.com. For instance all of object services can be found here:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/ab/9d0a3ad259cd58e10000000a11402f/frameset.htm

    General Object Services can be found here:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/82/7e432710a111d2a1fd00a0c943858e/frameset.htm

    Then there are framework specific APIs. For example the ones for Web Dynpro ABAP are documented here:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/64/be5b4150b38147e10000000a1550b0/frameset.htm

    Finally some of the system classes that are intended for customer usage as APIs are documented in the class builder interface itself inside SE80. These are generally the classes that start with the naming convention CL_ABAP* or CL_SYSTEM*. From the editor press the class documentation button, although for many the good documentation is at the method level. Select the method and press the documentation button from the method toolbar.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: