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

Get OTF data from memory

Former Member
0 Likes
1,505

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.

1 REPLY 1
Read only

Clemenss
Active Contributor
0 Likes
832

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