cancel
Showing results for 
Search instead for 
Did you mean: 

Defining an internal table in a smartform

Former Member
0 Kudos

Hi All,

I need to define an internal table within the smartform which is not a component of the form interface. I need this internal table which should be global within the smartform but not a form interface parameter. I tried to define it in the global definitions option as "it_tab like zstructure"...but the error message being displayed is that 'for the internal table it_tab, the occurs n specification is missing'. Pls help.

Accepted Solutions (0)

Answers (1)

Answers (1)

shishupalreddy
Active Contributor
0 Kudos

hi ,

You can declare under global data declarations but that should be without headerline.

later at the instance of that itab you have to declare explicit headerline to work with that itab.

regards,

Former Member
0 Kudos

Where should I declare explicit header line? I cant do this within the program lines coz I want this internal table to be globally available within the smartform.

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

In Global definitions->Global Data,declare

mara type mara

itab type standard table of mara

wa type mara

Then inside the smartform,you can access both itab and workarea.

Kindly reward points by clicking the star on the left of reply,if it helps.