‎2007 Jun 06 4:26 AM
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
‎2007 Jun 06 4:29 AM
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
‎2007 Jun 06 4:29 AM
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
‎2007 Jun 06 4:32 AM
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
‎2007 Jun 06 4:37 AM
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
‎2007 Jun 06 4:43 AM
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
‎2007 Jun 06 5:24 AM
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
‎2007 Jun 06 5:32 AM
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
‎2007 Jun 06 5:42 AM
hi naren,
Can you please explain or provide a link regarding INSTANCE.
regards
prabhu
‎2007 Jun 06 5:46 AM
Hi,
Check this link
http://help.sap.com/saphelp_nw2004s/helpdata/en/c3/225b5f54f411d194a60000e8353423/content.htm
Thanks,
Naren