‎2011 Aug 05 3:57 PM
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???
‎2011 Aug 05 4:26 PM
What's your output length? What's the length of the listasci table parameter of the LIST_TO_ASCI you have used?
‎2011 Aug 06 7:34 AM
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