cancel
Showing results for 
Search instead for 
Did you mean: 

Error message about pre-defined type in Smartforms

Former Member
0 Kudos

Dear friends,

I have download my own smartforms from ECC5 and upload into ECC6, there are no any error when I upload & download the form. But when I check the syntax error or activate my form,

it's raise the error message as ""IT_HTEXT" is not a pre-defined type or a type from a type group."

I tried to check my own data declaration at Global Definition > Tab: type

*********************************************

TYPES: BEGIN OF ty_htext,

htext TYPE tdline, "Text of Header

END OF ty_htext.

TYPES: it_htext TYPE TABLE OF ty_htext.

*********************************************

the syntax still appear and I go to check my Import Parameter at Form Interface > Tab: Import

Parameter name Type assignment Associated Type

IT_HTEXT TYPE IT_HTEXT

the parameter still appear, I don't known why I got this error in ECC6. I go to check this form again in ECC5 , it is OK.

Please advised,

SeMs,

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello,

In global settings, click on Global data, under the types tab

declare the same

TYPES: BEGIN OF ty_htext,

htext TYPE tdline, "Text of Header

END OF ty_htext.

and now in the Global data tab

it_htext will be the variable name

type table of is the type assignment

ty_htext will be the assiociated Type.

This will work.

Former Member
0 Kudos

Dear Tama's and Sudhakar Pedhad,

Thanks you both for swift reply.....

I have tried your solution already, but the same error stills appear. Please advise again.

Ps. the reason that I defined IT_HTEXT TYPE IT_HTEXT at Import Parameter, because I want import its value to use in my form.

Many Thanks,

SeMs,

Former Member
0 Kudos

Hi!

Is it only a mistype?

Parameter name Type assignment Associated Type

IT_HTEXT TYPE IT_HTEXT

I think it should be better:

IT_HTEXT TYPE TY_HTEXT.

Regards

Tamá