‎2007 Sep 21 11:11 AM
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.
‎2007 Sep 21 11:19 AM
hi
i think u need to give it as itab standard table of ekko.......may be thats the reason for error
regards
vikram
‎2007 Sep 21 11:35 AM
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
‎2007 Sep 21 11:47 AM
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
‎2007 Sep 21 12:38 PM
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>
‎2007 Sep 21 12:49 PM
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.