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-Pool

Former Member
0 Likes
3,233

Hi...

How to use Class-Pool in report program.

Can u give me sample code.

Thanks in advance.

Kalpanashri Rajendran.

1 ACCEPTED SOLUTION
Read only

Former Member
8 REPLIES 8
Read only

Former Member
0 Likes
2,498

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

.

Read only

Former Member
0 Likes
2,498

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

Read only

Former Member
Read only

0 Likes
2,498

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

Read only

matt
Active Contributor
0 Likes
2,498

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

Read only

Former Member
Read only

raja_narayanan2
Active Participant
0 Likes
2,498

<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

Read only

narin_nandivada3
Active Contributor
0 Likes
2,498

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