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

smart forms

Former Member
0 Likes
1,278

Please use a sensible subject for your posts in future

hi all...

can I use Internal table Type in form Interface....

actualy In Global type I declared ...

types: <itab_type>

and in data tab

Itab Type standard table of <Itab_type>

and then In the form Interface I declared in Table tab

Mtab like Itab

can I do like this....???

when debugging it gives Syntax error.....??

plz suggest....???

thanks

Edited by: Matt on Apr 17, 2009 12:08 PM

1 ACCEPTED SOLUTION
Read only

matt
Active Contributor
0 Likes
1,262

Please use a sensible subject for your posts in future

11 REPLIES 11
Read only

Former Member
0 Likes
1,262

Hi Surjit,

One way of using an Internal table as a type in the Form interface is as follows:

Create a new Z structure (SE11) using your internal table as reference.

Now use this to declare in your form interface.

Hope it helps.

Read only

0 Likes
1,262

can't i use my Local type....

...

is there not any other way than SE11...??

........

Read only

0 Likes
1,262

No u cant use ur local type in the form interface. But if u create an internal table suppose itab in global definitions of ur smartform and then use this table for creating table in ur form interface under tables it should wrk ( itab1 like itab)

Read only

0 Likes
1,262

thats wt m trying to do sir...

bt it is showing Syntactically correct but producing Short Dump as "syntax_error".

.

Read only

Former Member
0 Likes
1,262

Hello Surjit

Create the table type in SE11 and you should be ok. The system is giving you a syntax error because you are specifing a locally defined table type as part of the smartform interface and therefore the calling program does not know the table type.

Dave.

Read only

Former Member
0 Likes
1,261

hi,

u need to creat zstructure in se11 then only it will accepts.

Read only

0 Likes
1,261

means... i can't pass values from a Dynamically created I_TAB to form..????

Read only

Former Member
0 Likes
1,261

hi Surjith,

Instead of creating a structure in the Dictionary, you can simply use the EXPORT and IMPORT

parameters.

Create the structure you want in the smartform using the types ex:- t_structure

In the driver program fill the table t_structure and export it to some memory ID,

now in the smart form import from the same memory ID in the t_structure from the same

memory ID.

I guess this will resolve your problem

Regards,

jaya rama kumar

Read only

0 Likes
1,261

will it be best practice to Export more than 10 fields of I_TAB to the abap memory....???

Read only

Former Member
0 Likes
1,261

HI Surijit

Create the table type in se11 for the table and include that in the form interface..

Regards,

Sravanthi

Read only

matt
Active Contributor
0 Likes
1,263

Please use a sensible subject for your posts in future