Skip to Content
0
Former Member
May 15, 2008 at 11:11 AM

Free Memory in User Exit

245 Views

Hi,

We are having an issue that while doing invoicing using TCode MIRO, the invoice number gets generated and can be seen in Purchase Order History but the invoice document is not found in the system.

According to SAP Note 743744, this could be because of the command Free Memory used in SD user exits (user exits called in program SAPMV45A, can be seen using TCode SE80). In our case we have used the free memory command in a customised function module called in USEREXIT_DELETE_DOCUMENT (Include MV45AFZZ).

1) Is it neccesary to use free memory to clear the ABAP memory. Can we use some other command like CLEAR instead of free memory?

2) Suppose if we do not use FREE MEMORY, and then assign some value to the memory (it already had some value originally), what will happen?

Any other suggestions would also be welcome.

Thanks in advance.

Mick