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: 

Small Problem with Enhancement Implementation

Former Member
0 Kudos

Dear Experts,

I have created an Enhancement Implementation in include LMEREPI02, inside it i have declared an internal table and fetched values to it.

the same internal table is accessed after the implementation is closed.

Though the Enh. Implementation is activated, I cannot activate the include as i get error msg saying my internal table not declared.

Would appreciate your thoughts on this problem.

Thanks

1 ACCEPTED SOLUTION

kiran_k8
Active Contributor
0 Kudos

Anushka,

May be you have to do the declarations part in TOP INCLUDE where are all the other declarations related to this program are declared.ie keep the internal table declarations global.If required you can create one more enhancement in the INCLUDE meant for global declarations.

K.Kiran.

11 REPLIES 11

kiran_k8
Active Contributor
0 Kudos

Anushka,

May be you have to do the declarations part in TOP INCLUDE where are all the other declarations related to this program are declared.ie keep the internal table declarations global.If required you can create one more enhancement in the INCLUDE meant for global declarations.

K.Kiran.

Former Member
0 Kudos

Hello,

I've had a similar issue where one enhancement in an include declares data and another enhancement uses the data.

I found that activating the program that uses the include activated everything required.

Maybe you can try that?

Good luck!

Stuart.

Former Member
0 Kudos

I tried but nothing worked yet. I am still confused

0 Kudos

Hi Anushka,

if possible please provide your code snippet, you have used, then we can solve it better.

0 Kudos

so many lines of code.. I am wondering how to share the code

0 Kudos

Hi Anushka,

check the references of your enhancement / Include.

I think you created your enhancement in the local class of that include, so that means, that your itab isn't visible, because it is part of the functiongroup MEREP.

In case of that, you will not be able to activate it.

You have to decide, if you modify the class to make your itab visible or you have to search for another solution.

In case of you didn't explain your problem that specific I can't help you any further.

Regards

Florian

0 Kudos

Hi Anushka,

always declare your data as global, because if you will declare any data as local,

then it may not be accesable through, so it is always advisable to declare it on the top of include.

So that it could be accesable to each point.

Former Member
0 Kudos

Hi Anushka,

Do as suggested by Kiran, that's the best practice which we follow.

Eg: While modifying the SAPMV45A generally we create a Z include for all the global data to be used in any enhancements in this program in the top include MV45ATOP.

See below screen shots to make it clear to you for my example -

Please ask if issue persists.

BR.

former_member424229
Participant
0 Kudos

Hi,

   Your internal table declaration put in a 'include'. Then where you want implement your code their use the include.

Former Member
0 Kudos

Thank you so much for all the ideas they helped me so much.

I just did the declaration at the start of the method in which all these codes were and it worked.

0 Kudos

Please mark the question as solved, so everybody knows, that here is nothing to do right now.

Regards

Florian