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

Internal Table in SmartForms

Former Member
0 Likes
399

Hi,

I wish to define an Internal table at global level in smart forms.

I want it in the form and not in the driver program.

Any idea how do we do this?

Thanks

3 REPLIES 3
Read only

Former Member
0 Likes
381

Hi,

at the first page : In the Global settings -->Global definitions -->types.

example:

types:

begin of ty_itab occurs 0,

f1 type mara-matnr,

f2 type makt-MAKTX,

end of ty_itab.

data:

i_itab type ty_itab.

Regards,

rama.

Read only

bpawanchand
Active Contributor
0 Likes
381

HI

in the TYPES tab you define the structure of the table and down to that you define the table

as below

types :

begin of fs_tab,

bukrs like ekko-bukrs,

ebeln like ekko-ebeln,

end of fs_tab.

types :

t_tab type standard table of fs_tab.

and in the GLOBAL DATA deine a varibale of the t_tab as below

i_tab type t_tab

your issue is solved

Regards

Pavan

Edited by: Pavan Bhamidipati on Jul 22, 2008 12:46 PM

Read only

former_member673464
Active Contributor
0 Likes
381

hi,

You can declare the table in types of global definition and use the same types for declaration of internal tables in the global data. You can declare internal tables in the global data tab for dictionary objects also.

Regards,

Veeresh