Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

hi

Former Member
0 Likes
477

Hi guys i need some concept on ooabap can any one pprovide me.

thanks

sadaa

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
452

hi sadaa,

OOABAP: it is basically an object oriented programing we have to touch the c and c++ for it.

OOABAP is used to develop BSP/PCUI applications and also anthing involved object oriented like BADIs, SmartForms..etc.where as ABAP is used to develop traditional programs in R/3.

http://www.esnips.com/web/ooabap

1. What is the differences between ABAP and OO ABAP.

A. OOABAP is used to develop BSP/PCUI applications and also anthing involved object oriented like BADIs, SmartForms..etc.where as ABAP is used to develop traditional programs in R/3.

2. Explain OOABAP.

Local Classes

1. What is an Object Oriented ABAP?

2. What is an Object Oriented approach?

A. Programs are organized into classes and objects and the functionalities are

embedded into methods of a class.

3. What are the features of Object Oriented?

4. What are the attributes of OO Programming?

A. Abstraction, encapsulation, Inheritance and Ploymorphism.

5. Define Class and the syntax?

6. What are the components of a class and define them.

A. A Class basically contains the following:-

Attributes:- Any data,constants,types declared within a class form the attribute of the class.

Methods:- Block of code, providing some functionality offered by the class. Can be compared to function modules.

Events:- A mechanism set within a class which can help a class to trigger methods of other class.

Interfaces:- Interfaces are independent structures that you can implement in a class to extend the scope of that class.

7. Define different sections of a Class.

A. A Class puts its components under three distinct sections:-

Public Section:- Components placed here form the external interface of the class – they are visible to all users of the class as well as to methods within the class and to methods of subclasses*

Protected Section:- Components placed in protected section are visible to the children of the class(subclass) as well as within the class

Private Section:-Components placed here are accessible by the class itself.

8. Explain differences between the different sections of a class.

9. What is the difference between the Instance and Static Components.

A. Instance components exist separately in each instance (object) of the class and are referred using instance component selector using ‘à’.

Static components only exist once per class and are valid for all instances of the class. They are declared with the

CLASS-DATA keyword.

Static components can be used without even creating an instance of the class and are referred to using static component selector ‘ =>’ .

10. What is the use of the keyword ‘DEFINITION DIFFERED ‘.

A. Used to refer to a class at some point in a code and the class is not defined

before the line.

11. How do you create an Object?

A. To create an object , the following steps need to be followed:-

Step 1: Create a reference variable with reference to the class.

DATA : IMPORTING.. [)] TYPE type ..

EXPORTING.. [)] TYPE type ..

CHANGING.. [)] TYPE type ..

RETURNING VALUE(.

...

ENDINTERFACE.

18. Define key word ‘FRIENDS’ and its purpose.

19. Define EVENTS with syntax.

A. An Event is a mechanism set within the class which helps the class to trigger the

methods within the same class or in other classes.

Events are declared in declaration part of class and raised in its methods.

20. Describe Handling Events.

A. Events are handled using the special methods. To handle an event, a method must

• be defined as event handler method for that event.

• be registered at runtime for that event.

Using the SET HANDLER statement, the link between trigger and handler is established dynamically in the program. The trigger and handler can be object or class. When an event is triggered, the corresponding event handler methods are executed in all registered handling classes.

For each SET HANDLER statement, the system creates an entry in an event handler table, where handlers table belongs to each class or instance that can trigger instance or static events. Event handler table is invisible to the users and contains the names of the handling methods and references to the registered handling instances.

Global Classes

1. What is a Class Builder and its features.

2. What are the differences between Global and Local Classes.

Global Classes Local Classes

 Global Classes & Interfaces are declared in Class Builder (SE24) in the ABAP Work bench.

 Global Classes & Interfaces are stored centrally in *Class Pools in the class library in the R/3 Repository.

 All of the ABAP Programs in R/3 system can access Global Classes & Interfaces.  Local Classes & Interfaces are declared in ABAP Programs.

 Local Classes & Interfaces can only be used in the prog. in which they are declared.

3. What are the Class and Interface Pools. Explain

A. Classes and Interfaces that are declared globally are stored in special ABAP programs that are called Class Pools (Type K) or Interface Pools (Type J) which acts as a container for respective object types. The programs are automatically generated by Class Builder when you create class or interfaces.

A class pool is comparable to a module pool or function group. It contains both declarative and executable ABAP statements, but cannot be started on its own. Instead, the system can only execute the statements in the class pool on request, that is, when the CREATE OBJECT statement occurs to create instances of the class.

An Interface pools do not contain any executable statements. Instead, they are used as containers for interface definitions. When you implement an interface in a class, the interface definition is implicitly included in the class definition.

4. What are the Exceptions?

A. An exception is a situation that occurs during the execution of an ABAP program,

which renders a normal program continuation pointless.

5. Explain about control structure of Exceptions.

6. Explain about ‘Final’ and ‘Only Modeled’ in Global Classes.

A. Final option completes the inheritance hierarchy since Final class may not create any further subclasses.

If Only Modeled is checked the class is not included in the class pool and you will not be able to address it at runtime or test it.

refer this one also

saptechnical.com

thanks

swamy

3 REPLIES 3
Read only

Former Member
0 Likes
453

hi sadaa,

OOABAP: it is basically an object oriented programing we have to touch the c and c++ for it.

OOABAP is used to develop BSP/PCUI applications and also anthing involved object oriented like BADIs, SmartForms..etc.where as ABAP is used to develop traditional programs in R/3.

http://www.esnips.com/web/ooabap

1. What is the differences between ABAP and OO ABAP.

A. OOABAP is used to develop BSP/PCUI applications and also anthing involved object oriented like BADIs, SmartForms..etc.where as ABAP is used to develop traditional programs in R/3.

2. Explain OOABAP.

Local Classes

1. What is an Object Oriented ABAP?

2. What is an Object Oriented approach?

A. Programs are organized into classes and objects and the functionalities are

embedded into methods of a class.

3. What are the features of Object Oriented?

4. What are the attributes of OO Programming?

A. Abstraction, encapsulation, Inheritance and Ploymorphism.

5. Define Class and the syntax?

6. What are the components of a class and define them.

A. A Class basically contains the following:-

Attributes:- Any data,constants,types declared within a class form the attribute of the class.

Methods:- Block of code, providing some functionality offered by the class. Can be compared to function modules.

Events:- A mechanism set within a class which can help a class to trigger methods of other class.

Interfaces:- Interfaces are independent structures that you can implement in a class to extend the scope of that class.

7. Define different sections of a Class.

A. A Class puts its components under three distinct sections:-

Public Section:- Components placed here form the external interface of the class – they are visible to all users of the class as well as to methods within the class and to methods of subclasses*

Protected Section:- Components placed in protected section are visible to the children of the class(subclass) as well as within the class

Private Section:-Components placed here are accessible by the class itself.

8. Explain differences between the different sections of a class.

9. What is the difference between the Instance and Static Components.

A. Instance components exist separately in each instance (object) of the class and are referred using instance component selector using ‘à’.

Static components only exist once per class and are valid for all instances of the class. They are declared with the

CLASS-DATA keyword.

Static components can be used without even creating an instance of the class and are referred to using static component selector ‘ =>’ .

10. What is the use of the keyword ‘DEFINITION DIFFERED ‘.

A. Used to refer to a class at some point in a code and the class is not defined

before the line.

11. How do you create an Object?

A. To create an object , the following steps need to be followed:-

Step 1: Create a reference variable with reference to the class.

DATA : IMPORTING.. [)] TYPE type ..

EXPORTING.. [)] TYPE type ..

CHANGING.. [)] TYPE type ..

RETURNING VALUE(.

...

ENDINTERFACE.

18. Define key word ‘FRIENDS’ and its purpose.

19. Define EVENTS with syntax.

A. An Event is a mechanism set within the class which helps the class to trigger the

methods within the same class or in other classes.

Events are declared in declaration part of class and raised in its methods.

20. Describe Handling Events.

A. Events are handled using the special methods. To handle an event, a method must

• be defined as event handler method for that event.

• be registered at runtime for that event.

Using the SET HANDLER statement, the link between trigger and handler is established dynamically in the program. The trigger and handler can be object or class. When an event is triggered, the corresponding event handler methods are executed in all registered handling classes.

For each SET HANDLER statement, the system creates an entry in an event handler table, where handlers table belongs to each class or instance that can trigger instance or static events. Event handler table is invisible to the users and contains the names of the handling methods and references to the registered handling instances.

Global Classes

1. What is a Class Builder and its features.

2. What are the differences between Global and Local Classes.

Global Classes Local Classes

 Global Classes & Interfaces are declared in Class Builder (SE24) in the ABAP Work bench.

 Global Classes & Interfaces are stored centrally in *Class Pools in the class library in the R/3 Repository.

 All of the ABAP Programs in R/3 system can access Global Classes & Interfaces.  Local Classes & Interfaces are declared in ABAP Programs.

 Local Classes & Interfaces can only be used in the prog. in which they are declared.

3. What are the Class and Interface Pools. Explain

A. Classes and Interfaces that are declared globally are stored in special ABAP programs that are called Class Pools (Type K) or Interface Pools (Type J) which acts as a container for respective object types. The programs are automatically generated by Class Builder when you create class or interfaces.

A class pool is comparable to a module pool or function group. It contains both declarative and executable ABAP statements, but cannot be started on its own. Instead, the system can only execute the statements in the class pool on request, that is, when the CREATE OBJECT statement occurs to create instances of the class.

An Interface pools do not contain any executable statements. Instead, they are used as containers for interface definitions. When you implement an interface in a class, the interface definition is implicitly included in the class definition.

4. What are the Exceptions?

A. An exception is a situation that occurs during the execution of an ABAP program,

which renders a normal program continuation pointless.

5. Explain about control structure of Exceptions.

6. Explain about ‘Final’ and ‘Only Modeled’ in Global Classes.

A. Final option completes the inheritance hierarchy since Final class may not create any further subclasses.

If Only Modeled is checked the class is not included in the class pool and you will not be able to address it at runtime or test it.

refer this one also

saptechnical.com

thanks

swamy

Read only

Former Member
0 Likes
452

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20...

General Tutorial for OOPS

check all the below links

http://www.sapgenie.com/abap/OO/index.htm

http://www.geocities.com/victorav15/sapr3/abap_ood.html

http://www.brabandt.de/html/abap_oo.html

Check this cool weblog:

/people/thomas.jung3/blog/2004/12/08/abap-persistent-classes-coding-without-sql

/people/thomas.jung3/blog/2004/12/08/abap-persistent-classes-coding-without-sql

http://help.sap.com/saphelp_nw04/helpdata/en/c3/225b6254f411d194a60000e8353423/frameset.htm

http://www.sapgenie.com/abap/OO/

http://www.sapgenie.com/abap/OO/index.htm

http://help.sap.com/saphelp_nw04/helpdata/en/c3/225b5654f411d194a60000e8353423/content.htm

http://www.esnips.com/doc/375fff1b-5a62-444d-8ec1-55508c308b17/prefinalppt.ppt

http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf

http://www.esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt

http://www.allsaplinks.com/

http://www.sap-img.com/

http://www.sapgenie.com/

http://help.sap.com

http://www.sapgenie.com/abap/OO/

http://www.sapgenie.com/abap/OO/index.htm

http://www.sapgenie.com/abap/controls/index.htm

http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf

http://www.esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf

http://www.sapgenie.com/abap/OO/index.htm

http://help.sap.com/saphelp_erp2005/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm

http://www.sapgenie.com/abap/OO/

these links

http://help.sap.com/saphelp_47x200/helpdata/en/ce/b518b6513611d194a50000e8353423/content.htm

For funtion module to class

http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b5954f411d194a60000e8353423/content.htm

for classes

http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b5c54f411d194a60000e8353423/content.htm

for methods

http://help.sap.com/saphelp_47x200/helpdata/en/08/d27c03b81011d194f60000e8353423/content.htm

for inheritance

http://help.sap.com/saphelp_47x200/helpdata/en/dd/4049c40f4611d3b9380000e8353423/content.htm

for interfaces

http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b6254f411d194a60000e8353423/content.htm

Check these links.

http://www.henrikfrank.dk/abapuk.html

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20...

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20...

Go through the below links,

For Materials:

1) http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf -- Page no: 1291

2) http://esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt

3) http://esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf

4) http://esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf

5) http://esnips.com/doc/92be4457-1b6e-4061-92e5-8e4b3a6e3239/Object-Oriented-ABAP.ppt

6) http://esnips.com/doc/448e8302-68b1-4046-9fef-8fa8808caee0/abap-objects-by-helen.pdf

7) http://esnips.com/doc/39fdc647-1aed-4b40-a476-4d3042b6ec28/class_builder.ppt

😎 http://www.amazon.com/gp/explorer/0201750805/2/ref=pd_lpo_ase/102-9378020-8749710?ie=UTF8

OO ABAP links:

1) http://www.erpgenie.com/sap/abap/OO/index.htm

2) http://help.sap.com/saphelp_nw04/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm

go through these links

http://www.erpgenie.com/abap/index.htm

http://sic.fh-lu.de/sic/bic.nsf/(vJobangebote)/EC8AD2AE0349CE92C12572200026FDB8/$File/Intern%20or%20...

http://help.sap.com/saphelp_nw2004s/helpdata/en/43/41341147041806e10000000a1553f6/frameset.htm

http://help.sap.com/saphelp_47x200/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm

ABAP_OBJECTS_ENJOY_0 Template for Solutions of ABAP Object Enjoy Course

ABAP_OBJECTS_ENJOY_1 Model Solution 1: ABAP Objects Enjoy Course

ABAP_OBJECTS_ENJOY_2 Model Solution 2: ABAP Objects Enjoy Course

ABAP_OBJECTS_ENJOY_3 Model Solution 3: ABAP Objects Enjoy Course

ABAP_OBJECTS_ENJOY_4 Model Solution 4: ABAP Objects Enjoy Course

ABAP_OBJECTS_ENJOY_5 Model Solution 5: ABAP Objects Enjoy Course

DEMO_ABAP_OBJECTS Complete Demonstration for ABAP Objects

DEMO_ABAP_OBJECTS_CONTROLS GUI Controls on Screen

DEMO_ABAP_OBJECTS_EVENTS Demonstration of Events in ABAP Objects

DEMO_ABAP_OBJECTS_GENERAL ABAP Objects Demonstration

DEMO_ABAP_OBJECTS_INTERFACES Demonstration of Interfaces in ABAP Objects

DEMO_ABAP_OBJECTS_METHODS Demonstration of Methods in ABAP Objects

DEMO_ABAP_OBJECTS_SPLIT_SCREEN Splitter Control on Screen

check these also

check the below links lot of info and examples r there

http://www.sapgenie.com/abap/OO/index.htm

http://www.geocities.com/victorav15/sapr3/abap_ood.html

http://www.brabandt.de/html/abap_oo.html

Check this cool weblog:

/people/thomas.jung3/blog/2004/12/08/abap-persistent-classes-coding-without-sql

/people/thomas.jung3/blog/2004/12/08/abap-persistent-classes-coding-without-sql

http://help.sap.com/saphelp_nw04/helpdata/en/c3/225b6254f411d194a60000e8353423/frameset.htm

http://www.sapgenie.com/abap/OO/

http://www.sapgenie.com/abap/OO/index.htm

http://help.sap.com/saphelp_nw04/helpdata/en/c3/225b5654f411d194a60000e8353423/content.htm

http://www.esnips.com/doc/375fff1b-5a62-444d-8ec1-55508c308b17/prefinalppt.ppt

http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf

http://www.esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt

http://www.allsaplinks.com/

http://www.sap-img.com/

http://www.sapgenie.com/

http://help.sap.com

http://www.sapgenie.com/abap/OO/

http://www.sapgenie.com/abap/OO/index.htm

http://www.sapgenie.com/abap/controls/index.htm

http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf

http://www.esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf

http://www.sapgenie.com/abap/OO/index.htm

http://help.sap.com/saphelp_erp2005/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm

http://www.sapgenie.com/abap/OO/

these links

http://help.sap.com/saphelp_47x200/helpdata/en/ce/b518b6513611d194a50000e8353423/content.htm

For funtion module to class

http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b5954f411d194a60000e8353423/content.htm

for classes

http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b5c54f411d194a60000e8353423/content.htm

for methods

http://help.sap.com/saphelp_47x200/helpdata/en/08/d27c03b81011d194f60000e8353423/content.htm

for inheritance

http://help.sap.com/saphelp_47x200/helpdata/en/dd/4049c40f4611d3b9380000e8353423/content.htm

for interfaces

http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b6254f411d194a60000e8353423/content.htm

For Materials:

1) http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf -- Page no: 1291

2) http://esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt

3) http://esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf

4) http://esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf

5) http://esnips.com/doc/92be4457-1b6e-4061-92e5-8e4b3a6e3239/Object-Oriented-ABAP.ppt

6) http://esnips.com/doc/448e8302-68b1-4046-9fef-8fa8808caee0/abap-objects-by-helen.pdf

7) http://esnips.com/doc/39fdc647-1aed-4b40-a476-4d3042b6ec28/class_builder.ppt

😎 http://www.amazon.com/gp/explorer/0201750805/2/ref=pd_lpo_ase/102-9378020-8749710?ie=UTF8

1) http://www.erpgenie.com/sap/abap/OO/index.htm

2) http://help.sap.com/saphelp_nw04/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm

Reward points..

Read only

Former Member
0 Likes
452

/message/4881852#4881852 [original link is broken]

Reward points..