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

Implicit Enhancement 'Statement not accessible'

maksingh8
Explorer
0 Likes
5,776

Hi,

The problem is I have created an implicit enhancement implementation for VA01 transaction, in include: MV45AFZZ, in form: USEREXIT_PRICING_PREPARE_TKOMP.

I got the implicit point inside the mentioned FORM.

In my implementation I have created an include where I am writing my enhancement code, but the complier is not able to reach there and throwing error: 'Statement is not accessible'. Any idea how can I solve this problem.

Any help is much appreciated.

Regards,

Mayank

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
4,155

Mayank,

Have you tried activating your code? Does it still throw the same error?

I have noticed that at times when I do a syntax check on implicit enhancements I get the the same error. But the enhancement gets activated and works.

Try doing a Check --> Main program.

Thanks,

Sowbhagya

Hi,

The problem is I have created an implicit enhancement implementation for VA01 transaction, in include: MV45AFZZ, in form: USEREXIT_PRICING_PREPARE_TKOMP.

I got the implicit point inside the mentioned FORM.

In my implementation I have created an include where I am writing my enhancement code, but the complier is not able to reach there and throwing error: 'Statement is not accessible'. Any idea how can I solve this problem.

Any help is much appreciated.

Regards,

Mayank

14 REPLIES 14
Read only

Former Member
0 Likes
4,155

Hi Mayank,

Instead of writing your code inside Include did you try writing the code inside the implicit enhancement implementation itself.

Thanks and Regards,

Vinay Mutt

Read only

0 Likes
4,155

Hi Vinay,

I tried writing a dummy If condition which seems to be working in implementation.

The same if condition is throwing error in include.

As per our enhancement framework I have to write the code in include only.

Regards,
Mayank

Read only

0 Likes
4,155

Hi Mayank,

If you have defined the Subroutines inside your INCLUDE try calling the subroutines in the Implicit Enhancement (Outside Include) by using PERFORM.

Thanks and Regards,

Vinay Mutt

Read only

0 Likes
4,155

Hi Vinay,

   There are no subroutines defined there. Only three other include. And I am not been able to write any accessible code, e.g. IF condition or global function call,  over there only can write declaration code, e.g. DATA statement.

Regards,
Mayank

Read only

Former Member
0 Likes
4,155

Hi Mayank,

The User exit is not suitable for your enhancement. Kindly debug where the control flows.

Regards,

Srinath

Read only

0 Likes
4,155

Hi Srinath,

     Thanks for your reply, I tried debugging it. I get the control flow one statement before and one statement after the include. Which means the control should inside include as well, I guess.

Regards,
Mayank

Read only

0 Likes
4,155

Hi Mayank,

The enhancement which you have done is in active version? Statement accessible occurs due to inactive enhancements.Check this.

Regards,

Srinath

Read only

0 Likes
4,155

Hi Srinath,

Yes, the enhancement is in active version.

Regards,
Mayank

Read only

RaymondGiuseppi
Active Contributor
0 Likes
4,155

Did you define your include as a type 'I' include, the enhancement as a 'code' enhancement?

Else could post the code in the MV45AFZZ include wrapping your include statement.


form userexit_pricing_prepare_tkomp.

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(1)*$*$-Start: 1)-------------------------------------------------------------------------------$*$*

enhancement 1  ztest.    "active version

include ztest.

endenhancement.

Regards,

Raymond

Read only

0 Likes
4,155

Hi I created the include by double clicking on it after giving the name in the code, I am not sure of the type.

The enhancement is a 'code' enchancement.


Raymond Giuseppi wrote:

Did you define your include as a type 'I' include, the enhancement as a 'code' enhancement?

Else could post the code in the MV45AFZZ include wrapping your include statement.

form userexit_pricing_prepare_tkomp.

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(1)*$*$-Start: 1)-------------------------------------------------------------------------------$*$*

enhancement 1  ztest.    "active version

include ztest.

endenhancement.

Regards,

Raymond

Read only

Former Member
0 Likes
4,156

Mayank,

Have you tried activating your code? Does it still throw the same error?

I have noticed that at times when I do a syntax check on implicit enhancements I get the the same error. But the enhancement gets activated and works.

Try doing a Check --> Main program.

Thanks,

Sowbhagya

Read only

0 Likes
4,155

Hi Sowbhagya,

I am getting the same error while activating the include.

Regards,
Mayank

Read only

0 Likes
4,155

Mayank,

Did you try Check  --> Main program in the include?

Try activating all enhancements in MV45AFZZ.

Thanks,

Sowbhagya

Read only

Former Member
0 Likes
4,155

Hi Mayank,

Please try to insert Start-of-selection. Try this.

Regards,

Srinath