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

Regarding memoy ID

Former Member
0 Likes
883

Hi ,

In the function module 'READ_OTF_FROM_MEMORY' we are passing memory ID value. For example below FM I passed hard coded value. Wheather it stored any database table or ?. Where do we can check the Import and Export memory value.

CALL FUNCTION 'READ_OTF_FROM_MEMORY'

EXPORTING

MEMORY_KEY = 'ZOTCIR2002_OTF'

TABLES

OTF = T_OTF

EXCEPTIONS

MEMORY_EMPTY = 1

OTHERS = 2.

Thanks

Ram

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
819

See only when you export to that particular memory id, then only it will be Read. Otherwise not.

And also This function should be called in an environment where are the calls will happen in one session.

But why you need this Function, what is exactly you are looking for,

See only when you export to that particular memory id, then only it will be Read. Otherwise not.

And also This function should be called in an environment where are the calls will happen in one session.

But why you need this Function, what is exactly you are looking for,

4 REPLIES 4
Read only

Former Member
0 Likes
820

See only when you export to that particular memory id, then only it will be Read. Otherwise not.

And also This function should be called in an environment where are the calls will happen in one session.

But why you need this Function, what is exactly you are looking for,

Read only

0 Likes
819

Hi Vijay,

I have few question

regarding this FM

CALL FUNCTION 'READ_OTF_FROM_MEMORY'

EXPORTING

MEMORY_KEY = 'ZOTCIR2002_OTF'

TABLES

OTF = T_OTF

EXCEPTIONS

MEMORY_EMPTY = 1

OTHERS = 2.

1. What is memory Key?

2.What for we used?

3.We used hard coded value.Where do i can check this memory key values?

Thanks

Rame

Read only

Former Member
0 Likes
819

Within Fm u can find the code given below :

memkey = memory_key.

import otf from memory id memkey.

if sy-subrc <> 0.

raise memory_empty.

endif.

It means it is reading the memory id passed to the Fm during the Fm call. And from some here using the same memory id data is exported to the memory. U can check the available memory ids when u r in debug mode. From old debugger follow the menu path Goto-System Areas->ABAP memory ....u can find the list of active memory ids and their values if any.

Regards,

Joy.

Read only

Former Member
0 Likes
819

hi check the table TPARA