Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9656

Re: free memory id 'SAPLSTXD'

$
0
0

Hi Raymond,

 

I have implemented the logic as you have suggested but having some issue in export back to memeory id. Could you please correct the code;

 

Below is my code;

 


IMPORT catalog = lt_catalog from memory id 'SAPLSTXD'.



READ TABLE lt_catalog INTO ls_catalog with key

  TDOBJECT = 'CRM_ORDERH'  TDID = iv_type.



IF sy-subrc = 0.



CONCATENATE 'SAPLSTXD' ls_catalog-id into lv_memory_id.



*free MEMORY id lv_memory_id.

*DELETE Lt_catalog WHERE

*  TDOBJECT = 'CRM_ORDERH' AND

*  TDID = iv_type.

DELETE FROM MEMORY ID lv_memory_id.



ENDIF.





CALL FUNCTION 'READ_TEXT'

  EXPORTING    ID                            = iv_type    LANGUAGE                      = 'E'    NAME                          = LV_NAME    OBJECT                        = 'CRM_ORDERH'  TABLES    LINES                         = lt_lines_tt_d

 EXCEPTIONS

   ID                            = 1   LANGUAGE                      = 2   NAME                          = 3   NOT_FOUND                     = 4   OBJECT                        = 5   REFERENCE_CHECK               = 6   WRONG_ACCESS_TO_ARCHIVE       = 7   OTHERS                        = 8          .

IF SY-SUBRC <> 0.

ENDIF.



EXPORT catalog = lt_catalog to memory id 'SAPLSTXD'.

*EXPORT catalog = lt_catalog to memory id lv_memory_id.

Viewing all articles
Browse latest Browse all 9656

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>