Application Development 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: 

Where are memory Keys Defined?

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello,

You can define it in the data element (tab Futher Characteristics Parameter ID) or in the screen (screen painter -> layout Param ID or selection screen PARAMETERS... MEMORY ID).

Regards,

2 REPLIES 2

Former Member
0 Kudos

Hello,

You can define it in the data element (tab Futher Characteristics Parameter ID) or in the screen (screen painter -> layout Param ID or selection screen PARAMETERS... MEMORY ID).

Regards,

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Tom, this memory ids are not real objects in the system, but simply pointers, so the object 'DEF_OTF_MEMORY_KEY' does not actual exist, therefore there is nothing to change. You can not change the allocation of memory to specifc ids, rather the memory area as a whole, and I believe this is a profile parameter which is set by your basis people.

Regards,

Rich Heilman