‎2011 Aug 03 5:49 PM
Hi Experts,
I am using the FM 'READ_OTF_FROM_MEMORY' in order to get my OTF data. I am passing the MEMORY_KEY parameter but I am not getting any data in my OTF table. I do not know what wrong I am doing.
DATA: OTF LIKE ITCOO OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'READ_OTF_FROM_MEMORY'
EXPORTING
MEMORY_KEY = NAST-OBJKY "This has the value in debugging
TABLES
OTF = OTF "This is empty in my debugging.
EXCEPTIONS
MEMORY_EMPTY = 1
OTHERS = 2.
I would appreciate if someone could guide me on this.
Thanks.
‎2011 Aug 03 8:37 PM
Hi nani,
READ_OTF_FROM_MEMORY can work only if it has been exported using 'SAVE_OTF_TO_MEMORY' using the same ID. Did you set a breakpoint for SAVE_OTF_TO_MEMORY to make sure the export is done?
Can you explain what you need READ_OTF_FROM_MEMORY? There could be a better way.
Regards,
Clemens