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

Class building

Former Member
0 Likes
925

hi,

Please explain in detail how to build class and its advantages and disadvantages,

provide some links and samples.

points will be rewarded.

regards

prabhu

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
897

Hi,

You can create a class in SE24 which can be used in all the programs..

You can also create a class locally in the program..Which can be used only within the program

Check this link for standard sap help.

http://help.sap.com/saphelp_nw2004s/helpdata/en/ee/e440a670a111d1b44c0000e8a52bed/content.htm

Thanks,

Naren

8 REPLIES 8
Read only

Former Member
0 Likes
898

Hi,

You can create a class in SE24 which can be used in all the programs..

You can also create a class locally in the program..Which can be used only within the program

Check this link for standard sap help.

http://help.sap.com/saphelp_nw2004s/helpdata/en/ee/e440a670a111d1b44c0000e8a52bed/content.htm

Thanks,

Naren

Read only

0 Likes
897

hi naren

thank u,

can you please give me more inputs, like procedures to create the CLASS.

because i tried many times in se24 and failed.

regards

prabhu

Read only

Former Member
0 Likes
897

hi,

A class is a set of objects that share a common

structure and a common behavior.”

Ex: ICICI S.Acc.

The type of an object is known as its Class

Abstract description of an object

Object Oriented approach:

Emphasis on data

Programs are organized into classes and objects and the functionalities are embedded into methods of a class.

Data can be hidden and cannot be accessed by external sources.

New data and functions can be easily added whenever necessary

ABAP objects

Please check this online document (starting page 1291).

http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf

Also check this links as well.

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

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

http://www.futureobjects.de/content/intro_oo_e.html

http://www.sap-img.com/abap/business-add-in-you-need-to-understand-abap-oo-interface-concept.htm

/people/ravikumar.allampallam/blog/2005/02/11/abap-oo-in-action

Read only

Former Member
0 Likes
897

Hi,

Go to SE24..

Give the class name..lets say Z_CL_TEST_1

Press create button..

Choose class in the radio button..

Check this link for details..

http://help.sap.com/saphelp_nw04/helpdata/en/ee/e440ac70a111d1b44c0000e8a52bed/content.htm

Thanks,

Naren

Read only

0 Likes
897

hi Naren,

please tell me the major difference between CLASS and INTERFACE ,

please give me an example where CLASS is required and INTERFACE is required.

regards

prabhu

Read only

Former Member
0 Likes
897

Hi,

Class contains method where you can write code in it.

Interface contains method where you cannot write code..

You cannot create an instance for an Interface. But for a class you can create an instance..

THanks,

Naren

Read only

0 Likes
897

hi naren,

Can you please explain or provide a link regarding INSTANCE.

regards

prabhu

Read only

Former Member