Application Development 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: 

SMART FORM

Former Member
0 Kudos
86

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos
50

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

6 REPLIES 6

alex_m
Active Contributor
0 Kudos
50

Correct this. DATA TAB IT_TAB2 INTO WIT_TAB

former_member673464
Active Contributor
0 Kudos
50

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

sharadendu_agrawal
Active Participant
0 Kudos
50

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

0 Kudos
50

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

Former Member
0 Kudos
51

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

Former Member
0 Kudos
50

thanks