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

itab not defined

Former Member
0 Likes
897

friends,

i have created a table control using wizard...i have defined two pbo modules, one in which am setting the pf-status and in another, module display, i have fetched all the date into the itab...by default, wizard generates two pbo modules..when i check the program, it says itab is not defined...this is the order of my flow logic.. where am i wrong? thanks all

PBO:

MODULE STATUS_0123.

MODULE DISPLAY. ---> (my itab is filled here)

*&spwizard: pbo flow logic for tablecontrol 'TBLCONTROL'

module TBLCONTROL_change_tc_attr. --> (itab not defined is coming here)

*&spwizard: module TBLCONTROL_change_col_attr.

loop at ITAB

with control TBLCONTROL

cursor TBLCONTROL-current_line.

module TBLCONTROL_get_lines.

*&spwizard: module TBLCONTROL_change_field_attr

endloop.

*

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
853

before that u have to declare the internal table ITAB in the main program

7 REPLIES 7
Read only

Former Member
0 Likes
853

Hi,

Declare your itab in main program.. may be scope of itab is not in TBLCONTROL_change_tc_attr.

regards,

srini

Read only

Former Member
0 Likes
853

May be your top include is not yet activated. Activate top include and then check your pgm.

Read only

Former Member
0 Likes
853

<b>use the following code in pbo..</b>

Loop at itab using tabcontrol..

module <module_name>

endloop.

<b>use the following code in pai..</b>

Loop at itab.

module <module_name>.

endloop.

Read only

Former Member
0 Likes
853

Hi Satish,

You have not declared your internal table globaly.Declared it in Main program

Read only

Former Member
0 Likes
854

before that u have to declare the internal table ITAB in the main program

Read only

Former Member
0 Likes
853

Hi Satish,

Have u define table control in ur main program??

CONTROLS <table control name> TypE TABLE VIEW using screen <scr no>

Read only

Former Member
0 Likes
853

thanks for all your answers