Thursday, December 20, 2007

Is there a way capture report output into one internal table?

Use SUBMIT ... EXPORTING LIST TO MEMORY. It saves the output of a report into memory. Use the function modules LIST_FROM_MEMORY, WRITE_LIST and DISPLAY_LIST.

Does not display the output list of the called report, but saves it in ABAP memory and leaves the called report immediately. Since the calling program can read the list from memory and process it further, you need to use the addition ... AND RETURN . Also, since the called report cannot be requested for printing, the addition ... TO SAP-SPOOL is not allowed here. You can read the saved list from SAP memory with the function module 'LIST_FROM_MEMORY' and then (for example) store it in the database with EXPORT. You can process this list further with the function modules 'WRITE_LIST', 'DISPLAY_LIST' ... of the function group "SLST".

No comments:

Blog Archive