‎2008 Aug 18 1:28 PM
Hi...
How to use Class-Pool in report program.
Can u give me sample code.
Thanks in advance.
Kalpanashri Rajendran.
‎2008 Aug 19 6:29 AM
Hi
check this link
http://help.sap.com/saphelp_nw70/helpdata/en/21/682f8b277e11d2954e0000e8353423/content.htm
regards,
sowjanya.
‎2008 Aug 18 1:42 PM
Class pools serve as containers for exactly one global class. Besides the global class, they can contain global types and local classes/interfaces to be used in the global class. A class pool is loaded into memory by using one of its components. For example, a public method can be called from any ABAP program or via a transaction code connected to the method. You maintain class pools in the class builder.
CLASS-POOL
Statement for class pools at the beginning of the program. Class pools are programs of type K and are used as containers for global classes. The statement CLASS-POOL is not entered by the programmer but generated by the Class Builder.
Tks venkat
.
‎2008 Aug 18 2:10 PM
Hi Kalpanashri Rajendran,
Hope these links help you ,
http://www.sapnet.ru/viewtopic.php?p=2436&sid=3b2730efb153274f734906dd3ba0640d
http://tknight.org/sdn/show/10066
Regards,
Sreekar.Kadiri
‎2008 Aug 19 6:29 AM
Hi
check this link
http://help.sap.com/saphelp_nw70/helpdata/en/21/682f8b277e11d2954e0000e8353423/content.htm
regards,
sowjanya.
‎2008 Aug 19 6:42 AM
thank u...........
can u tell me how to access the class-pool in se38 program...
example ....
class-pool.
create object zclass.
call method zclass->display.
...
...
...
this is my code can u tell me how to execute it...
i tried to execute in report program & module pool but getting error tht only one report or program statement can be used...
But i want to test the program using class-pool statement..
similarly i want to convert local class to a global class when i tried tht by import local class program its not working...
Can u give me some idea...
Thanks in advance.
Kalpanashri Rajendran
‎2008 Aug 19 10:32 AM
You can ONLY created class-pools, which are global classes, through SE24. You cannot create them through SE38.
If you had read the help on CLASS-POOL, you would have read:
"The CLASS-POOL statement must be the first statement of a standalone program, after any Include programs have been called. It introduces a class pool. Class pools are maintained in the Class Builder in the ABAP Workbench. A main programfor a global class, including a CLASS-POOL statement, is generated automatically. The MESSAGE-ID addition to the CLASS-POOL statement has the same meaning as for the REPORT statement. "
And perhaps answered your own question.
matt
‎2008 Aug 19 6:45 AM
Hi,
Check this link
http://help.sap.com/saphelp_nw04/helpdata/en/ec/d9ab291b0b11d295400000e8353423/content.htm
Regards
Abhijeet
‎2008 Aug 19 7:59 AM
<Removed cut and paste of [online help|http://help.sap.com/saphelp_nw04/helpdata/en/ec/d9ab291b0b11d295400000e8353423/content.htm] which is exactly what was referenced in the preceeding answer! Points unsassigned.>
Regards
Raja Narayanan
Edited by: Mike Pokraka on Aug 19, 2008 10:54 AM
‎2008 Aug 25 9:39 AM
Hi,
Check this link about Class-pool
http://help.sap.com/search/highlightContent.jsp
and also the below link in detail about class-pool
http://help.sap.com/saphelp_nw70/helpdata/EN/ec/d9ab291b0b11d295400000e8353423/frameset.htm
For program regarding Class-pool.. search for standard programs with the help of process defined in this thread
Hope this would help you.
Good luck
Narin