Skip to Content
0
Former Member
May 09, 2008 at 05:40 PM

Where are memory Keys Defined?

154 Views

I have one in an SAP Function Module whose storage space needs to be increased.

It imports the parameter 'memory_key' . Its value is

'DEF_OTF_MEMORY_KEY'.

FUNCTION READ_OTF_FROM_MEMORY.

*"----


""Lokale Schnittstelle:

*" IMPORTING

*" MEMORY_KEY DEFAULT 'DEF_OTF_MEMORY_KEY'

*" TABLES

*" OTF STRUCTURE ITCOO

*" EXCEPTIONS

*" MEMORY_EMPTY

*"----


DATA: MEMKEY(32). "max len of memory id is 32

MEMKEY = MEMORY_KEY.

IMPORT OTF FROM MEMORY ID MEMKEY.

IF SY-SUBRC <> 0.

RAISE MEMORY_EMPTY.

ENDIF.

ENDFUNCTION.