Application Development 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: 

syntax error :"STATEMENT NOT ACCESSIBLE " with field symbols

Former Member
0 Kudos

Hi all

im getting the syntax error "statement not accessble" in the following piece of code inside customer exit .

i have declard the field symbol <fs_copa> as type any also . even then im getting the error .

DATA:l_string TYPE string VALUE '(SAPLKEAB)<GS_CE_ITEM>'.

FIELD-SYMBOLS: <fs_copa> TYPE CE1AERO.

UNASSIGN <fs_copa>.

ASSIGN (l_string) TO <fs_copa>.

plz tell me how to fix this ..

3 REPLIES 3

former_member1245113
Active Contributor
0 Kudos

Hi Pavan,

Statement Not Accessible means the code you incorporated is in Open place.

That means not within modules, not within form endform statements neither belongs to an Event, nor between Function Endfunction statement etc

So Check the concluding statement before this code like Endform, endfunction endclass, endmodule etc

Cheerz

Ram

former_member195402
Active Contributor
0 Kudos

Hi,

I checked your code replacing CE1AERO by another db table and it was okay.

The error must be outside this part of code, I think the lines before!

Regards,

Klaus

0 Kudos

hii all

i activated the code ididnt get any error . my problem is solved

thanks