cancel
Showing results for 
Search instead for 
Did you mean: 

Where to declare intrernal table in smartform

Former Member
0 Kudos

Hi,

Kindly do suggest me,

i had to declare internal table with header line in smartform

as i had to collect data.

so where and how i had to declare it ,

points will be surely awarded.

Priya.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

First Create the types in Global Definations -->types

Declare the Table type for That.

and then declare in Global definations--Global Data

<internal Table> TYPE <TABLE TYPE>

Regards

Sandipan

Former Member
0 Kudos

hi,

thanks for the reply .

i had declare in types (tab)

types : begin of it_group.

include structure zgroup.

types : end of it_group.

types : wa_group type table of it_group.

and in global data

wa_group type it_group.

but then also when i am collecting data its giving that wa_group is not internal table.

can u tell me where am i wrong.

Former Member
0 Kudos

Hi,

In Global definiton-Types tab, do as following.

types : begin of str_group.

include structure zgroup.

types : end of str_group.

types : t_group type table of str_group.

In Global definition-Genral tab,

it_group type t_group "Internal Table

wa_group type str_group "Work Area

Close ur threads, once solved.

Regards,

Prabhu.

former_member184657
Active Contributor
0 Kudos

go to INITILIZATION tab and in the "output parameters" box type the name of ur work area

pk

Former Member
0 Kudos

Hi,

Sandipan has already told you the answer. You have declared wa_group twice (once as a type and once as a work area). Follow the answer you have already been given.

Regards,

Nick

Former Member
0 Kudos

Hi,

Follow it

In Types Write the code.


types : begin of it_group.
include structure zgroup.
types : end of it_group.

types: t_it_group TYPE TABLE OF it_group.

In Global Data write

wa_group type it_group.

i_it_group type t_it_group."InterNal Table

It will not give the error.

Regards

Sandipan

Former Member
0 Kudos

Hi,

sorry for late rewarding you marks as i not able to access sdn due to technical problem.

Thanks my problem is solved.

Former Member
0 Kudos

Hi Priya,

It would be nice, if u can check ur another post regarding header problem in copies of smartform and let me know, is that solution works fine or not.

Regards,

Prabhu

Former Member
0 Kudos

hi,

A bit of problem is solved ,

i had created four pages and in taht all four pages header changes according to the need.

but if data will overflow from first page , then it will have problem, so that part is not solved,

As per the thread answer page protection was asked to use , but i cannt aas my second third and fourth page have Final window,

and it works only in main window.

so somewhat of problem is not yet solved.

Former Member
0 Kudos

Hi Priya,

I've given u soln in that thread, please check the next page of that thread and let me know!!

Regards,

Prabhu

Answers (1)

Answers (1)

venkat_o
Active Contributor
0 Kudos

Hi Priya, Check this. Corrected. Under TYPES tab.

types : begin of t_group.
include structure zgroup.
types : end of t_group.
types : it_group type table of t_group.
Under Global data Tab
it_group type it_group.
Check by changing like this. It works.You can another name for the internal table in the Global data tab. Regards, Venkat.O