Skip to Content
author's profile photo Former Member
Former Member

Create customized TYPE in SE24

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Apr 09, 2008 at 07:06 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.