Alv Templet (Using Oops)
Alv Templet (Using Oops)
Alv Templet (Using Oops)
ALV Template
Using OOPS
PREPARED BY : HARIPRASAD
TABLE OF CONTENTS
APPENDIX ....................................................................................................................................................9
GLOSSARY..............................................................................................................................................9
APPENDIX ....................................................................................................................................................9
GLOSSARY..............................................................................................................................................9
1. INTRODUCTION.
This document contains brief information about ALV, object oriented programming in
ABAP. A template program of ALV written using OOP.
A reader get make you of this template program for the simple ALV, Interactive ALV
and Editable ALV requirements. This document explains every steps as per the programmers
point of view.
The ALV grid control provides typical list functions as Sorting, Filtering, Summing, etc.,
while also give the opportunity to develop user functions where needed.
As per the end-user perspective, It is an UI element, which is for displaying tabular data and
provides standard functionality like sorting, filtering, subtotal, choose columns, persistence of
settings, etc.
As per the developers perspective, It is a set of APIs, can be used in any application and
offers the rendering functionality of tabular data. It also provides generic services like sorting,
etc.
Generic services can be enhanced by application specific functionality. It supports different
flavors of presentation.
Reporting with ALV, we can get the following extra features compare to normal list display.
1. Standard data interface.
2. Function tool bar.
3. Displaying of data in the customized fashion.
4. Heading or Title.
5. No limit of GUI.
6. Programming of additional functionality as per the user requirement.
We have 2 main category of list based on the ABAP list processor and SAP control framework.
Objects:
Objects represent abstract or concrete objects of the real world. An object is a section of program
code that has data (called attributes) and provides services called methods (sometimes also
known as operations or functions). Methods typically work with private data in the object
(attributes, also known as the object state), that are only visible within the object. This
guarantees the internal consistency of the object, since the data is only changed
by the methods, not by the user. This ensures that the object is consistent in itself.
Classes
Classes are program code that describes objects. Technically, an object is an instance
of a
class. In theory, you can create an infinite number of objects from a single class
definition. Each instance of a class (object) has its own values for its attributes.
Object References
In a program, you identify and address objects using a unique object reference. They
allow
you to access the attributes and methods of an object.
In object-oriented programming, objects usually have the following characteristics:
Encapsulation
Objects restrict the external visibility of their resources (attributes and methods). Each
object
hat an interface that determines how other objects or applications can use it. The
implementation of the object is encapsulated (not visible outside the class).
Polymorphism
Methods with the same name can behave differently in different classes. In object-
oriented
programming, you can use interfaces to address methods with the same name in
different
objects. The form of address always remains the same, but the actual method
implementation is class-specific, and can be different in each class.
Inheritance
You can derive a class from another class. A derived class (subclass) inherits the data
and
methods of its superclass. You can add new methods to a subclass, or redefine existing
methods. Redefined methods have the same name and interface as the original
method.
Their classes are therefore polymorphous, too.
________________________________________________________________
2 16.06.2005 SAP AG
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
R/3 System
________________________________________________________________
o Object-oriented Tools
o Object-oriented Modeling
APPENDIX
Glossary