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

type-pools in class

Former Member
0 Likes
3,114

Hey guys,

did someone of you recognized the strange behaviour of the ABAP workbench if you insert TYPE-POOLS in public section of the calss. If you than add a method to the class as PUBLIC, the TYPE-POOLS definition get lost. How could i use TYPE-POOLS within my class?

thx,

M.

1 ACCEPTED SOLUTION
Read only

Kiran_Valluru
Active Contributor
0 Likes
1,429

Hi,

Use type-pools in the first line of class and also in public section.

like.,

class zcl_testclass definition.

type-pools: <type_pool>.

public-section.

type-pools: <type_pool>.

methods: method_name

endclass.

hope this helps u.,

Thanks & Regards,

Kiran

Hey guys,

did someone of you recognized the strange behaviour of the ABAP workbench if you insert TYPE-POOLS in public section of the calss. If you than add a method to the class as PUBLIC, the TYPE-POOLS definition get lost. How could i use TYPE-POOLS within my class?

thx,

M.

3 REPLIES 3
Read only

Kiran_Valluru
Active Contributor
0 Likes
1,430

Hi,

Use type-pools in the first line of class and also in public section.

like.,

class zcl_testclass definition.

type-pools: <type_pool>.

public-section.

type-pools: <type_pool>.

methods: method_name

endclass.

hope this helps u.,

Thanks & Regards,

Kiran

Read only

0 Likes
1,429

... its not working in SE24.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
1,429

Hello,

Did you try adding the Type-pools in the "forward declaration" section of the class?

You can find this in the "Properties" tab of the class!

BR,

Suhas