‎2007 Sep 05 3:31 PM
Hi gurus,
I have written the following code for one of my scenario, but its giving me an error 'statement is not accessible' at the statement where I have started my loop at it_tab02.
DATA: it_tab01 like zbs_fix_allocate occurs 0 with header line.
data: it_tab02 like it_tab01 occurs 0 with header line.
select * into table it_tab01
from z_test
where ccode = 'ABC'.
it_tab02[] = it_tab01[].
sort it_tab02 by progid.
delete adjacent duplicates from it_tab02 comparing progid.
loop at it_tab02. -
> HERE I AM GETTING THE ERROR
loop at it_tab01 where progid = it_tab02-progid.
if syst-tabix eq 1.
v_progid = it_tab01-progid.
perform bdc_tab.
else.
if v_progid = it_tab01-progid.
perform bdc_line.
endif.
v-progid = it-tab01-progid.
endif.
endloop.
endloop.
can you please help me get this thing resolved.
Thanks
Rajeev Gupta
‎2007 Sep 05 3:42 PM
‎2007 Sep 05 3:42 PM
‎2007 Sep 05 3:45 PM
hi Rajeev,
did you declare v_progid?
and once you typed (4th line from back):
it<b>-</b>itab
insetad of
it<b>_</b>itab
ec