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

Where are memory Keys Defined?

Former Member
0 Likes
789

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
Read only

Former Member
0 Likes
635

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,

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.

2 REPLIES 2
Read only

Former Member
0 Likes
636

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,

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
635

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