2007 Aug 13 9:45 AM
hi all
i would like to know if i can write any name for 1. class 2. object. 3. method???
how many class (es) are available ? pl provide the list of classes
how many method (s) are available ? pl provide the list of methods
and same for objects pl.
thanx
rocky
2007 Aug 14 12:06 PM
Hi,
You can't use numbers or specials characters as class name you must follow the
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/92/c2b084bc1d11d2958700a0c94260a5/frameset.htm">ABAP Objects naming conventions</a>.
To know how many class exists you can use SE24 transaction to get a all Global classes in your system. But the local classes you cannot get.
I suggest you to read these materials to get a good base of knowledge in abap objects.
<a href="/people/dirk.feeken/blog/2007/07/06/abap-trial-version-for-newbies-part-17--your-first-abap-object Trial Version for Newbies: Part 17 - Your first ABAP Object</a>
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1591ec90-0201-0010-3ba8-cdcd500b17cf">ABAP Code Sample for Objects</a>
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2503f09c-0801-0010-dc89-80bab376e4b8">Object Oriented ABAP - Local and Global classes</a>
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b6cae890-0201-0010-ef8b-f970a9c41d47">ABAP Code Sample to Learn Basic Concept of Object-Oriented Programming</a>
<a href="https://sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/37c5db90-0201-0010-3a9b-d0a5288f3c15">Eight Reasons Why Every ABAP Developer Should Give ABAP Objects a Second Look</a>
<a href="https://sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/3e59b790-0201-0010-88aa-bc8a7f95f6fb">Why use ABAP Objects</a>
<a href="https://media.sdn.sap.com/public/eclasses/teched04/ABAP151_files/Default.htm#nopreload=1">ABAP Objects for Java Developers</a>
Regards.
Marcelo Ramos
hi all
i would like to know if i can write any name for 1. class 2. object. 3. method???
how many class (es) are available ? pl provide the list of classes
how many method (s) are available ? pl provide the list of methods
and same for objects pl.
thanx
rocky
2007 Aug 14 7:25 AM
Hi Rocky,
Yes you can write very well name for class object and methods.But iam not clear where exactly you would lik to add/mention these names.
List of classes and methods can not be provided unless you specifically ask for what you exactly you mean or for what you need these classes or methods.
<b>Reward if found useful.</b>
Thank you
Regards,
Harish
2007 Aug 14 10:37 AM
Hi Rocky,
nameing rules are the same as for all SAP objects, however there are some naming conventions you might like to use.
You can get a list of global classes using the Repository Information System via SE80. Similarly a list of the methods in each class.
However, you questions suggest that you don't yet fully understand what classes, methods and objects are. Perhaps you should start in the<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/abap+objects&">abap Objects</a> section of the Wiki.
Cheers
Graham
2007 Aug 14 12:06 PM
Hi,
You can't use numbers or specials characters as class name you must follow the
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/92/c2b084bc1d11d2958700a0c94260a5/frameset.htm">ABAP Objects naming conventions</a>.
To know how many class exists you can use SE24 transaction to get a all Global classes in your system. But the local classes you cannot get.
I suggest you to read these materials to get a good base of knowledge in abap objects.
<a href="/people/dirk.feeken/blog/2007/07/06/abap-trial-version-for-newbies-part-17--your-first-abap-object Trial Version for Newbies: Part 17 - Your first ABAP Object</a>
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1591ec90-0201-0010-3ba8-cdcd500b17cf">ABAP Code Sample for Objects</a>
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2503f09c-0801-0010-dc89-80bab376e4b8">Object Oriented ABAP - Local and Global classes</a>
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b6cae890-0201-0010-ef8b-f970a9c41d47">ABAP Code Sample to Learn Basic Concept of Object-Oriented Programming</a>
<a href="https://sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/37c5db90-0201-0010-3a9b-d0a5288f3c15">Eight Reasons Why Every ABAP Developer Should Give ABAP Objects a Second Look</a>
<a href="https://sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/3e59b790-0201-0010-88aa-bc8a7f95f6fb">Why use ABAP Objects</a>
<a href="https://media.sdn.sap.com/public/eclasses/teched04/ABAP151_files/Default.htm#nopreload=1">ABAP Objects for Java Developers</a>
Regards.
Marcelo Ramos
2007 Aug 15 5:44 PM