Skip to Content
0
Former Member
Dec 21, 2007 at 05:25 PM

How to Get in runtime the output report text in program logic

37 Views

Hi...

I have custom progrom which submits the standard report. I have to make a logic based on the log of the standard program.

******************************************************

EXPORTING LIST TO MEMORY

AND RETURN.

  • "it did not display the spool...

  • THIS WAS THE ONLY way to display the spool

CALL FUNCTION 'LIST_FROM_MEMORY'

TABLES

listobject = llist

EXCEPTIONS

not_found = 1

OTHERS = 2.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

CALL FUNCTION 'DISPLAY_LIST'

EXPORTING

fullscreen = 'X'

TABLES

listobject = llist

EXCEPTIONS

OTHERS = 0.

*******************************************************

The function "display_list" displays the encripted log of the standard program o/p into text.

Now I want to read the text output and add some logic in my Z program.

Is there anyway I can read the o/p report.. and the process.

Saurabh