2009 Oct 12 2:12 PM
Hello experts,
In my smartform print program, I have created a dynamic internal table using method CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE where in my dynamic internal table <DYN_TABLE> is declared as
FIELD-SYMBOLS: <DYN_TABLE> TYPE STANDARD TABLE,
<DYN_WA>.I am populating <DYN_TABLE> and passing it on to my smartform. Now my question is, inside my smartform, how can I declare this dynamic table <DYN_TABLE> in form interface? Please let me know. Thanks.
Hello experts,
In my smartform print program, I have created a dynamic internal table using method CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE where in my dynamic internal table <DYN_TABLE> is declared as
FIELD-SYMBOLS: <DYN_TABLE> TYPE STANDARD TABLE,
<DYN_WA>.I am populating <DYN_TABLE> and passing it on to my smartform. Now my question is, inside my smartform, how can I declare this dynamic table <DYN_TABLE> in form interface? Please let me know. Thanks.
2009 Oct 12 2:42 PM
In the tables tab of form interface,just declare a table without refering to any associated type.
Just pass that dynamic internal table from program .
Hope this works.
2009 Oct 12 2:44 PM
as per my understanding,
interfafce element need type.
what you can do is export the dynamic table from the driver program and import it in the global initialization part of the smartform.
post in smartforms forum to get specific answer//
2009 Oct 12 2:50 PM
HI soumya prakash,
In interfaces the parameters for table can be declared without type.
It adopts the structure of the passed table when the interface is called.
2009 Oct 12 2:52 PM
2009 Oct 12 2:56 PM
In Table section of Form interface I tried type assignments 'Table' and 'Type Table' with Associated type as a blank. Still I get an error saying 'only table types may be used as the reference type for a table parameter'. Any ideas please.
2009 Oct 12 3:03 PM
I think so soumya is correct.
But i dont see any problems while using the same in Function module interfaces.
2009 Oct 12 3:05 PM
adrian,
i dont know about declaring the interface element as any table, but what i know is EXPORT and IMPORT will definitely work..
2009 Oct 12 3:22 PM