‎2007 May 22 11:45 AM
HI ALL,
WHEN I DEFINE TABLE IN SMART FORM AND WRITE IN ITS DATA TAB IT_TAB2 INTO WIT_TAB
NOW WHEN I ACIVATE THIS FORM THEN AN ERROR MESSAGE COME.
%MYTAB1 "IT_TAB2" is neither specified under "TABLES"nor defined as an internal table.
I ALREADY DEFINE BOTH IT_TAB2 AND WIT_TAB IN GLOBAL DEFINATION
MUKESH
‎2007 May 22 12:37 PM
Hi,
In the global defenition you shoud define the table it_tab2 as
IT_TAB2 TYPE TABLE OF Tablename or
Define a table type ZTY_XXXXX in se11 corresponding to the database table and define as
IT_TAB2 TYPE ZTY_XXXX
‎2007 May 22 11:47 AM
‎2007 May 22 11:48 AM
hi..
Depending on the situtation you have to declare in the input or output parameters above the program lines.
This may help you .
regards,
veeresh
‎2007 May 22 11:51 AM
First define types in the global declaration with the structure of the required internal table and then where the internal table is required for the first time, write a code at that place and define the internal table as defined generally.
U cannot define the internal table in the global declarations.
Reward if useful.
Cheers,
Sharadendu
‎2007 May 22 12:07 PM
HI
FIRST I CREATE A STRUCTURE OF MY TYPE. SAY ITAB.
THEN IN SMART FORM IN GLOBAL DECLATION I DEFINE
IT_ITAB TYPE ITAB
THEN IN IN INITILISATION IN INPUT OUTPUT I FEDD IT_ITAB BOTH SIDE
NOW AFTER CREATING TABLE IN MAIN WINDOW
AND PUT UNDER DATA TAB
SAY IT_ITAB INTO WIT_ITAB
THEN ERROR COME
PL. HELP
MUKESH
‎2007 May 22 12:37 PM
Hi,
In the global defenition you shoud define the table it_tab2 as
IT_TAB2 TYPE TABLE OF Tablename or
Define a table type ZTY_XXXXX in se11 corresponding to the database table and define as
IT_TAB2 TYPE ZTY_XXXX
‎2009 Nov 16 4:45 AM