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

Small Problem with Enhancement Implementation

Former Member
0 Likes
2,521

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
Read only

kiran_k8
Active Contributor
0 Likes
2,417

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
Read only

kiran_k8
Active Contributor
0 Likes
2,418

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.

Read only

Former Member
0 Likes
2,417

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.

Read only

Former Member
0 Likes
2,417

I tried but nothing worked yet. I am still confused

Read only

0 Likes
2,417

Hi Anushka,

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

Read only

0 Likes
2,417

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

Read only

0 Likes
2,417

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

Read only

0 Likes
2,417

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.

Read only

Former Member
0 Likes
2,417

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.

Read only

Former Member
0 Likes
2,417

Hi,

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

Read only

Former Member
0 Likes
2,417

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.

Read only

0 Likes
2,417

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

Regards

Florian