Application Development 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: 

LIST_FROM_MEMORY

Former Member
0 Kudos
167

is there any size limit the the length of the out for using

SUBMIT <Program_name> using screen 1000 with <variant> exporting list to memory.

After that i use function module LIST_FROM_MEMORY and LIST_TO_ASCI,

THE PROBLEM IS THE LENGTH OF MY OUTPUT. ONLY LIMITED PART OF MY OUTPUT IS COMING, REST IS GETTING OMITED.

HOW CAN I SOLVE THIS???

2 REPLIES 2

former_member209703
Active Contributor
0 Kudos
71

What's your output length? What's the length of the listasci table parameter of the LIST_TO_ASCI you have used?

former_member628395
Active Participant
0 Kudos
71

Hi,

In the FM LIST_TO_ASCI , make sure the table defined for parameter LISTASCI is large enough(size of the attributes in the structure) to for the output displayed in the called report.

Please check the code snippet below.



DATA : BEGIN OF VLIST OCCURS 0,
        FILLER1 TYPE C,
        FILLER2(04) TYPE C,
        FILLER3 TYPE C,
        FILLER4(18) TYPE C,
        FILLER5 TYPE C,
        FILLER6(23) TYPE C,
        FILLER7 TYPE C,
        FILLER8(23) TYPE C,
        FILLER9 TYPE C,
        FILLER10(3) TYPE C,
        FILLER11 TYPE C,
        FILLER12(23) TYPE C,
        FILLER13 TYPE C,
        FILLER14(23) TYPE C,
        FILLER15 TYPE C,
        FILLER16(3) TYPE C,
        END OF VLIST.

CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        LISTOBJECT = LT_OPENING_CLOSING_STOCK
      EXCEPTIONS
        NOT_FOUND  = 1
        OTHERS     = 2.
    IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.



    CALL FUNCTION 'LIST_TO_ASCI'
      EXPORTING
        LIST_INDEX = -1
      TABLES
        LISTASCI   = VLIST
        LISTOBJECT = LT_OPENING_CLOSING_STOCK.
    IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

Hope this helps.

Regards,

Sagar