‎2006 Dec 14 4:39 AM
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.
*
‎2006 Dec 14 5:02 AM
before that u have to declare the internal table ITAB in the main program
‎2006 Dec 14 4:44 AM
Hi,
Declare your itab in main program.. may be scope of itab is not in TBLCONTROL_change_tc_attr.
regards,
srini
‎2006 Dec 14 4:56 AM
May be your top include is not yet activated. Activate top include and then check your pgm.
‎2006 Dec 14 4:59 AM
<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.
‎2006 Dec 14 5:02 AM
Hi Satish,
You have not declared your internal table globaly.Declared it in Main program
‎2006 Dec 14 5:02 AM
before that u have to declare the internal table ITAB in the main program
‎2006 Dec 14 5:02 AM
Hi Satish,
Have u define table control in ur main program??
CONTROLS <table control name> TypE TABLE VIEW using screen <scr no>
‎2006 Dec 14 5:15 AM