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

abap memory not working in interface

ronaldo_aparecido
Contributor
0 Likes
677

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

3 REPLIES 3
Read only

Former Member
0 Likes
618

Hi

What does "interface standard process" mean?

Max

Read only

I833978
Employee
Employee
0 Likes
618

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

Read only

Former Member
0 Likes
618

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