cancel
Showing results for 
Search instead for 
Did you mean: 

Make a type from the assistance class visible on the component controller.

Former Member
0 Kudos

Hi All,

I need help making a type I declared in the assistance class visible on the component controller.

My case is bellow.

1. I have a internal table which is "type table of " that I need to pass as parameter.

2. To pass it as table I had to create a new type in the assistance class.

3. Now the value is passed to the parameter but when I go about using the same type on a component controller method or one of the views the type is no longer recognized.

How I make that new type recognized in this methods as well?

Thank you.

Best regards,

Elena

Accepted Solutions (1)

Accepted Solutions (1)

ramakrishnappa
Active Contributor
0 Kudos

Hi Elena,

You can achieve your requirement as below

  • Let us say you have class name zcl_my_class
  • Go to TYPES tab of class and create a type TT_MY_TABLE and set the visibility property to PUBLIC
  • Now, you can access this type outside class as zcl_my_class=>TT_MY_TABLE

Hope this helps you.

Regards,

Rama

Former Member
0 Kudos

Hi Rama,

Thank you, this is the way I called it in the end.

Best regards,

Elena

Answers (1)

Answers (1)

former_member197475
Active Contributor
0 Kudos

Hi Elena,

If you want to use your type structure throught the life cycle process, then just create a Structure in SE11 and create a Table Type for it.

Such that you can use it at Class, View and even in Compenent level.

BR,

RAM.

Former Member
0 Kudos

Thank you Ramakrishnan for the answer but as this is a client specific component, I rather have it only on that particular component.

Best regards,

Elena