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

INCLUDE - Statement is not accessible. URGENT.

manoj_goyal2
Participant
0 Likes
7,334

II am making change to user exit in INCLUDE MV45AFZZ.

I just put an if condition in the INCLUDE ztest_so.

It is giving following ERROR (RED) when I check the syntax.

Include ZTEST_SO

Statement is not accessible.

-


FORM userexit_move_field_to_vbak.

Include ztest_so

Endform.

-


&----


*& Include ZTEST_SO

&----


if sy-uname eq 'TRAIN014'

endif.

Please help.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,319

Do you have the '.' after the include and after the IF?

Also did you create the include as an include or any other kind of program?

It looks ok just looking at this.

II am making change to user exit in INCLUDE MV45AFZZ.

I just put an if condition in the INCLUDE ztest_so.

It is giving following ERROR (RED) when I check the syntax.

Include ZTEST_SO

Statement is not accessible.

-


FORM userexit_move_field_to_vbak.

Include ztest_so

Endform.

-


&----


*& Include ZTEST_SO

&----


if sy-uname eq 'TRAIN014'

endif.

Please help.

4 REPLIES 4
Read only

Former Member
0 Likes
2,319

Hi,


if sy-uname eq 'TRAIN014'. "Full-stop missing


endif.

Regards

Aneesh.

Read only

Former Member
0 Likes
2,320

Do you have the '.' after the include and after the IF?

Also did you create the include as an include or any other kind of program?

It looks ok just looking at this.

Read only

Former Member
0 Likes
2,319

Is there any other statement in front of the INCLUDE statement?

Read only

Former Member
0 Likes
2,319

You created the include alright. But there is no call to the include (Perform statement) from any program, hence include cannot be accessed.

MV45AFZZ is standard SAP User Exit where all Forms are being called at specified points in standard SAP code.

Iam not sure/not tried but if you create your new Form you will have to modify SAP code to make a call to this FORM, which is not recommended.

The best solution is to use the available Forms and put your code in the one that is being called at the right place for you to be able to use it.