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

Validation

Former Member
0 Likes
404

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

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
384

Have zbs_fix_allocate and z_test the same structure, i copy your program using one of my zfile and one of its field and i get no error.

Replace zbs_fix_allocate with z_test in your program.

Regards

2 REPLIES 2
Read only

RaymondGiuseppi
Active Contributor
0 Likes
385

Have zbs_fix_allocate and z_test the same structure, i copy your program using one of my zfile and one of its field and i get no error.

Replace zbs_fix_allocate with z_test in your program.

Regards

Read only

JozsefSzikszai
Active Contributor
0 Likes
384

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