2009 Dec 04 1:23 PM
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
2009 Dec 04 1:27 PM
2009 Dec 04 1:27 PM
2009 Dec 04 1:30 PM
Hi Micky,
I tried this, but when I try to declare one table at tab tables, gives me an error.
Regards,
Ricardo
2009 Dec 04 1:47 PM
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
2009 Dec 04 1:51 PM
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.
2009 Dec 04 2:11 PM
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
2009 Dec 04 2:24 PM
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.
2009 Dec 04 2:28 PM
did you activate your TOP include before using it in function module parameter?
2009 Dec 04 2:36 PM
2009 Dec 04 2:36 PM
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.
2009 Dec 04 2:49 PM