cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform Table Declaration Problem

Former Member
0 Kudos

Hi All,

I have created a structure for item details in SE11,

i have created a table in form interface like below

GT_ITEM type <Structure name >

when i use this internal table in main window table it is giving error

can some one suggest me how to declare a table

Thanks

Surendra

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Suri,

You have to declare internal table under Form Interface-->Tables. Declare IT_TABLE LIKE Z123. Here Z123 will be the structure which you have created in SE11.

Thanks & Regards,

Faheem.

Former Member
0 Kudos

Hi Faheem ,

Thanks for ur responce

i have declared it in form interface importing in that it is giving error:(

can you please tel the solution how to declare in importing

Surendra

Former Member
0 Kudos

Hi Suri,

What error you are getting? Have you declared as I mentioned : Internal Table name LIKE DDIC Structure ?

Thanks & Regards,

Faheem.

Former Member
0 Kudos

hi suri,

u r importing single value u can decalre that in importing option.

u r importing table u can decalre it as in table option .

thanks,

anji.

Moderator message: please do not use SMS speak.

Edited by: Thomas Zloch on Nov 12, 2010 1:18 PM

Former Member
0 Kudos

Hi Faheem,

if i declare like that it is giving error like

"<DDID Structure name>" must be a flat structure. You cannot use internal tables, strings, references, or structures as components. .

Former Member
0 Kudos

Hi Suri,

Have you declared under Form Interface-->Tables as


Parameter name  Type Assignment  Associated Type
IT_FINAL             LIKE          ZSTRUCTURE

If yes then check whether you have used the same internal table name in Global data?

Thanks & Regards,

Faheem.

Former Member
0 Kudos

Hi Faheem ,

I Faheem i have used same as you mentioned

but i didnt declare it in global data how to declare it in global data

is that necessary to declare it in global data

Duplicate Post

Edited by: Suri551 on Nov 12, 2010 6:25 PM

Former Member
0 Kudos

Hi Faheem ,

I have used same as you mentioned

but i didnt declare it in global data how to declare it in global data

is that necessary to declare it in global data

Former Member
0 Kudos

Hi Suri,

After declaring internal table in Tables have you declared a work area for that in Global data. Declare Work Area under Global Data tab as : WA_FINAL TYPE ZSTRUCTURE.

Use this work area in your main window under Tables as IT_FINAL INTO WA_FINAL.

Thanks & Regards,

Faheem.

Former Member
0 Kudos

Hi Faheem,

I did what you said

when i execute the form it is going short dump

""<DDID Structure Name>" must be a flat structure. You cannot use internal table"

"s, strings, references, or structures as components. ."

" "

" "

Former Member
0 Kudos

Hi..

Just create a Table Type in ABAP repository se11. The table type should use the structure you created as Line Type.

Now in form Interface -> Tables, declare ITAB TYPE <TAB_TYPE>.

You can declare the work are for IT_TAB in global data.

Regards,

Karthik

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi Suri,

You can try as below:

If you are declaring at Importing tab you can declare like below:

GS_str TYPE ztr.

If you are declaring TABLE tab, you can declare as below:

it_tab LIKE itab.

Regards,

Venkat.

SuhaSaha
Advisor
Advisor
0 Kudos

Hello,

Is it a DDIC structure or is it defined inside the SF ?

BR,

Suhas

Former Member
0 Kudos

Hi Suhas,

it is customised DDIC structure

Former Member
0 Kudos

hello friend,

use as 'LIKE'.

<INTERNALTABLE> LIKE <DATATYPE>.

K.

THANKS,

ANJI.

Former Member
0 Kudos

Hi Davuluria ,

Thanks for responce

if i delcare through like

"<Structure name >" must be a flat structure. You cannot use internal tables, strings, references, or structures as components. .

Former Member
0 Kudos

Change

GT_ITEM type <Structure name >

to

GT_ITEM type table of <Structure name >

Regards

Nitesh

Former Member
0 Kudos

Hi Nitesh,

Thanks for responce.

TYPE TABLE OF

is not allowing in form interface

Thanks

Surendra

Former Member
0 Kudos

hello friend,

may be its giving type conflict

check once.

thanks,

anji.