‎2009 Apr 17 6:57 AM
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
‎2009 Apr 17 11:09 AM
‎2009 Apr 17 7:09 AM
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.
‎2009 Apr 17 7:13 AM
can't i use my Local type....
...
is there not any other way than SE11...??
........
‎2009 Apr 17 7:24 AM
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)
‎2009 Apr 17 7:37 AM
thats wt m trying to do sir...
bt it is showing Syntactically correct but producing Short Dump as "syntax_error".
.
‎2009 Apr 17 7:10 AM
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.
‎2009 Apr 17 7:40 AM
hi,
u need to creat zstructure in se11 then only it will accepts.
‎2009 Apr 17 7:45 AM
means... i can't pass values from a Dynamically created I_TAB to form..????
‎2009 Apr 17 7:59 AM
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
‎2009 Apr 17 8:09 AM
will it be best practice to Export more than 10 fields of I_TAB to the abap memory....???
‎2009 Apr 17 8:09 AM
HI Surijit
Create the table type in se11 for the table and include that in the form interface..
Regards,
Sravanthi
‎2009 Apr 17 11:09 AM