01-06-2014 10:27 AM
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
01-06-2014 10:31 AM
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.
01-06-2014 10:31 AM
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.
01-06-2014 10:32 AM
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.
01-06-2014 10:48 AM
01-06-2014 10:52 AM
Hi Anushka,
if possible please provide your code snippet, you have used, then we can solve it better.
01-06-2014 11:11 AM
01-06-2014 11:20 AM
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
01-06-2014 11:29 AM
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.
01-06-2014 10:54 AM
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.
01-06-2014 11:19 AM
Hi,
Your internal table declaration put in a 'include'. Then where you want implement your code their use the include.
01-06-2014 11:20 AM
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.
01-06-2014 11:41 AM