‎2015 Sep 16 1:59 PM
Hi guys.
I created a ehancement point and send data to memory and in other ehancement i get this data.
With manual execute it worked ok , but with interface standard process it didnt work .
i tried use areahandle too .
there are other ways or its possible correct it?
thanks
‎2015 Sep 16 2:10 PM
‎2015 Sep 16 2:17 PM
I believe that, when executing the interface, some of the enhancement points are not being triggered. I would suggest to put an infinite loop in both, and then capture the job just to check.
Suggested loop: (while debbuging it, just change v_end value to end the loop)
Do.
if v_end is not initial.
exit.
enddo.
If both enhancements are executed, I would suggest then to create an static class with only one attribute. In the enhancement that it is sending the data to memory, change the value of this class attribute. And in the second one, check it directly. I prefer this way instead than sending data to memory since such exports are hard to track. If you need to maintain something that some else did, understanding where the export or the import is taking place is quite difficult. By doing this I suggest you, at least you can keep track of where the attribute is being used.
Hope this helps.
Regards,
Martin
‎2015 Sep 16 3:48 PM
First of all you need to ensure that the process are reaching both enhancements, take the Martin suggestion to check that.
To share data in the same LUW you can use IMPORT/EXPORT, Singleton Pattern and Static class as mentioned by Martin, I would prefer a static class because it is simpler as you don't need to instantiate (though it's not a big deal).
If you want to share data between different process take a look at Shared objects:
Shared Objects - Implementation - ABAP - Shared Objects - SAP Library
Regards,
Felipe