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

LIST_FROM_MEMORY in loop not getting new data

Former Member
0 Likes
541

Hi,

     I am using submit program for report CO28 (PPIOD000) with EXPORTING LIST TO MEMORY AND RETURN and getting the return of output by function module 'LIST_FROM_MEMORY'  when I run the same report in loop its it memory does not get refresh by function module 'LIST_FREE_MEMORY' I am getting the fix output by 'LIST_FROM_MEMORY'  we are in ECC 6 - EHP 6 the same technique I have user on ECC6 EHP4 and it was working fine there but for EHP6 its not working , I would like to know is there any Upgradation problem in EHP6 or there is error in my coding

followin is my code

LOOP AT IT_ARBPL.

     LOOP AT IT_SPTAG.

       REFRESH: IT_ITAB,IT_LIST.

       BREAK-POINT.

*-- run CO28 report in backgrounder to get the production order against work center and plant

       SUBMIT  PPIOD000

               WITH P_PROFID     INCL 'Z00001'

               WITH S_ARBPL-LOW  INCL  IT_ARBPL-ARBPL

               WITH S_OWERK-LOW  INCL  P_WERKS

               WITH S_ECKST      INCL  IT_SPTAG-SPTAG

               EXPORTING LIST TO MEMORY AND RETURN.

       CALL FUNCTION 'LIST_FROM_MEMORY'

         TABLES

           LISTOBJECT = IT_LIST

         EXCEPTIONS

           NOT_FOUND  = 1

           OTHERS     = 2.

       CALL FUNCTION 'LIST_FREE_MEMORY'.

       CALL FUNCTION 'LIST_TO_ASCI'

       TABLES

         LISTASCI           = IT_ITAB

         LISTOBJECT      = IT_LIST

       EXCEPTIONS

         EMPTY_LIST         = 1

         LIST_INDEX_INVALID = 2

         OTHERS             = 3.

ENDLOOP.

ENDLOOP.


1 REPLY 1
Read only

Former Member
0 Likes
385

Hi Aswin,

I am also facing the same issue. If you get any solution can you please update in the post?

Waiting for your reply.