2006 May 24 5:54 PM
Hi All,
I have a problem when i submit an ALV Report RPUFIXDS
and do exporting list to memory. I am using the function module LIST_FROM_MEMORY to get back the list output, I know for sure that it works for list output,i was not sure whether it works for alv report as I tried and its not working.
If any one has faced the same problem Plz help.
Regds,
Rajeev
2006 May 24 6:12 PM
2006 May 24 6:21 PM
2006 May 24 7:37 PM
Yes, that's correct. 'SAVE_LIST', 'LIST_FROM_MEMORY' etc work with only classical reports (with Write statements), not ALV.
2006 May 24 7:53 PM
Hi Rajjev,
U have to import and see this code.
See this once.
SUBMIT (P_PROG) USING SELECTION-SET P_VAR EXPORTING LIST
TO MEMORY AND
RETURN.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
LISTOBJECT = LISTOBJECT
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
WRITE 'Error in list_from_memory.'.
ENDIF.
CALL FUNCTION 'LIST_TO_ASCI'
TABLES
LISTASCI = ASCITAB
LISTOBJECT = LISTOBJECT.
2006 May 24 7:59 PM
Yes, Submit...exporting to memory and return works. That is the only option for ALV (to the best of my knowledge). What I meant is doing a 'SAVE_LIST' in the program and calling 'LIST_FROm_MEMORY' later does not work with ALV.
2006 May 24 8:34 PM
I tried all the ways that you guyz have suggested before making a post here but it didn't work. Any way i got my problem solved i created a tcode for the report and made a call transaction.
Thanks for all your help!.
Rajeev