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

Pass dynamic internal table to smartform

Former Member
0 Likes
1,321

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.

8 REPLIES 8
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,148

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.

Read only

Former Member
0 Likes
1,148

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//

Read only

0 Likes
1,148

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.

Read only

0 Likes
1,148

keshu,

you may be correct.. i nvr tried that..

Read only

0 Likes
1,148

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.

Read only

0 Likes
1,148

I think so soumya is correct.

But i dont see any problems while using the same in Function module interfaces.

Read only

0 Likes
1,148

adrian,

i dont know about declaring the interface element as any table, but what i know is EXPORT and IMPORT will definitely work..

Read only

matt
Active Contributor
0 Likes
1,148

Duplicated in Form Printing. This thread locked.