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

Create customized TYPE in SE24

Former Member
0 Likes
1,841

Hi Guru,

I have a TYPE declared as below in ZABC_TOP in SE38.


TYPES: BEGIN OF t_imp,
         matnr       TYPE matnr,
         charg       TYPE charg_d,
         ldest       TYPE z_printer,
         description TYPE z_description,
         layout      TYPE zpp_char50,
       END OF t_imp.

My question is how do I define this in interface parameter ASSOCIATED TYPE declaration as I need to create a return value from a METHOD in t_imp.

Appreciate if could provide the step by step guideline and exampke to do the above.

Thanks in advance.

Hi Guru,

I have a TYPE declared as below in ZABC_TOP in SE38.


TYPES: BEGIN OF t_imp,
         matnr       TYPE matnr,
         charg       TYPE charg_d,
         ldest       TYPE z_printer,
         description TYPE z_description,
         layout      TYPE zpp_char50,
       END OF t_imp.

My question is how do I define this in interface parameter ASSOCIATED TYPE declaration as I need to create a return value from a METHOD in t_imp.

Appreciate if could provide the step by step guideline and exampke to do the above.

Thanks in advance.

2 REPLIES 2
Read only

Sm1tje
Active Contributor
0 Likes
1,162

sorry about previous reply, thought you were using a local class, but you are talking about SE24. Again sorry.

When you have declared this only at the top include. You can't use it in the global class. But what you can do is declare it separately in the class as well at top level. However, when doing so, you can't use it in the interface declaration of a method since it is only global within the class, but not for the outside' world. If you really need it than I would suggest to declare the type globally in SE11.

Edited by: Micky Oestreich on Apr 9, 2008 9:07 AM

Read only

Former Member
0 Likes
1,162

Hi Micky,

Thanks for sharing the information. Appreciate so much