2008 Jul 28 7:53 PM
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
2008 Jul 28 7:57 PM
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,
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
2008 Jul 28 7:57 PM
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,
2008 Jul 29 2:42 PM
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
2008 Jul 28 8:07 PM
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.
2008 Jul 29 2:46 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |