‎2014 Dec 04 6:02 AM
Hi all,
I am just having a doubt regarding the SAP smart forms i am just trying the select options in smartforms for that i created a structure and the i just passed the structure name in the form interface table column i specified
I_vbeln type zselect_opttest
When i tried to activated it. It throwing . Only table types may be used as the reference type for a table parameter. it throwing error what i have to do for this .
With thanks,
Maha.
‎2014 Dec 04 6:05 AM
Hi Mahalakshmi,
Use TYPES there and declare internal table in GLOBAL DATA.
‎2014 Dec 04 6:17 AM
Hi,
If you want to declare internal tables in table parameters of the form interface then use Type statement with refer to structure and if you declare parameters in global data then those internal tables are local then you cant use in driver program.
Thanks,
Sree
‎2014 Dec 04 6:19 AM
Hi Mahalakshmi,
Please declare a table type for your structure in SE11 and use that table type her in form interface.
Hope this helps.
Regards
Sri
‎2014 Dec 04 6:33 AM
Hi,
Use LIKE instead of TYPE. When using a structure to define a table in TABLES section of interface use LIKE and not TYPES.
Regards,
Ashish
‎2014 Dec 04 7:07 AM
Hi,
If you want to pass the strcture to the smartform, please pass it as import parameter rather than Tables parameter.
If you want this strcture as a table parameter, then create a table type for this strcture using SE11 and use this table type in declaration.
Please let us know if your question is solved or not.
Regards,
Praphulla