Application Development 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: 

type-pools in class

Former Member
0 Kudos

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

former_member184578
Active Contributor
0 Kudos

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

3 REPLIES 3

former_member184578
Active Contributor
0 Kudos

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

0 Kudos

... its not working in SE24.

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