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

SMART FORM

Former Member
0 Likes
902

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
Read only

Former Member
0 Likes
866

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
Read only

alex_m
Active Contributor
0 Likes
866

Correct this. DATA TAB IT_TAB2 INTO WIT_TAB

Read only

former_member673464
Active Contributor
0 Likes
866

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

Read only

sharadendu_agrawal
Active Participant
0 Likes
866

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

Read only

0 Likes
866

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

Read only

Former Member
0 Likes
867

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

Read only

Former Member
0 Likes
866

thanks