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

smartform error

Former Member
0 Likes
614

Hi,

By using smartforms i going to display three fields.

so created a smartform . on the global definition declared an internal table saying ITAB TYPE EKKO.

created a table with header, main area and footer. On the main area created the cells with text and writen as &EKPO_EBELN& etc.

created a print program selected the fields from ekpo table and passed that internal table to this smartform.

while checking the forms it gives an error message that 'ITAB is neither specified under "TABLES" nor defined as an internal table."

I have specified the ITAB on tables in Data tab like 'ITAB into ITAB".

Can anyone explain me why this msg occurs and what is the solution for that.

Regards,

phyrose.

5 REPLIES 5
Read only

Former Member
0 Likes
587

hi

i think u need to give it as itab standard table of ekko.......may be thats the reason for error

regards

vikram

Read only

Former Member
0 Likes
587

Your table should be defined in the interface of the Smartform, not the global data. Without this how can you pass the data you have read in your print program to the form?

Also, you should declare a work area for your table and specify this in the INTO part of the data tab.

Regards,

Nick

Read only

Former Member
0 Likes
587

hi again

in global definitions

make it

VARIABLE NAME TYPE ASSIGNMENT ASSOCIATED TYPE

ITAB type standard table of EKKO

ITAB type EKKO

reward if useful

vikram

Read only

KN-Nampoothiry
Active Participant
0 Likes
587

Hi,

You need to declare the itab in the Global Interface. Then you can pass the table to the smartforms.

Then since you are using the smartforms, use tables option and directly.

there you can specify the itab and no need to code as loop at and all.

This will be easier to manage as you can specify the header ,footer and other conditions also for the table.

Once you have declared it in interface it won't give the error.

Reply if any other issues.

<b>Reward if Useful</b>

Read only

Former Member
0 Likes
587

hi,

I think <b>ITAB</b> is ur table in which u have data and passing through program..

So declare it in form interface under table, if u passing it through report.

and declare one more table say <b>wa_itab</b> in global definition.

and in loop .

u have to loop from <b>itab</b> to <b>wa_itab</b>.

Hope it will work.