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 Groups

Former Member
0 Likes
1,059

Hello all,

I need use a type group CIHAL in a Z fuction that I am creating.

On this type group I have the type parameters to declare the TAB tables.

I know that this type group is used on fuction CBIH_IA30_IAL_READ, but I don´t know where it´s declared ou used in this function.

Anyone has any idea how can I use this type group?

Cheers,

Ricardo

1 ACCEPTED SOLUTION
Read only

Sm1tje
Active Contributor
0 Likes
1,027

Maybe by declaring it in your Z-function (TOP include).

10 REPLIES 10
Read only

Sm1tje
Active Contributor
0 Likes
1,028

Maybe by declaring it in your Z-function (TOP include).

Read only

Former Member
0 Likes
1,027

Hi Micky,

I tried this, but when I try to declare one table at tab tables, gives me an error.

Regards,

Ricardo

Read only

Sm1tje
Active Contributor
0 Likes
1,027

What table are you trying to add in tables tab? What TYPE from type pools?

BTW: What error is that? Are you perhaps using TYPE in stead of LIKE?

Edited by: Micky Oestreich on Dec 4, 2009 2:49 PM

Read only

Former Member
0 Likes
1,027

I need to use the type group CIHAL.

I using like a model, function group CBIH_IA30_IAL_READ.

In the TAB TABLES, you will see the parameter X_API_HEADER_TAB with type CIHAL_IALHAPI_TAB_TYPE. If you click this type, you go to the type group CIHAL.

I need this same declaration on my Z function, but I don´t know how o use this type group.

Read only

Sm1tje
Active Contributor
0 Likes
1,027

I don't seem to have this problem. I declared type pools in my TOP include, and created tables parameter like this:

IT_TAB TYPE CIHAL_IALHAPI_TAB_TYPE

Read only

Former Member
0 Likes
1,027

Micky,

I put the code

type-pools: cihal.

and when I try to put IT_TAB TYPE CIHAL_IALHAPI_TAB_TYPE

The activation returns me the error message:

CIHAL_IALHAPI_TAB_TYPE is not pre-defined type or a type from a type group.

Read only

Sm1tje
Active Contributor
0 Likes
1,027

did you activate your TOP include before using it in function module parameter?

Read only

Former Member
0 Likes
1,027

yes

Read only

Pawan_Kesari
Active Contributor
0 Likes
1,027

Could you please check this..

Double click on function group name in SE80, then in next dialog box hit 'Main Program' button, then goto the TOP include which should be the first include . You should see 'type-pools: cihal' there, just under the FUNCTION-POOL statement.

If it is not there then put it there.

Read only

Former Member
0 Likes
1,027

Thank you all.

The problem is solved!

Regards,

Ricardo