cancel
Showing results for 
Search instead for 
Did you mean: 

SAP standard reports and ABAP proxies

Former Member
0 Kudos

Hi,

the question is about the doing to send the output of a report (i also could be a SAP standard report) via proxy to a pi system.

Our solution fpr this would be to copy the hole report and implement the changes for the proxy communication.

Is there any official SAP statement that say: "When you would do this you can only do this steps (copy report, implement changes...)"

The problem i see is that every change on the standard report has to be reviewed an implemented in the copied report.

Could anyone give me some hints, advices or best practices for this?

many thanks

Michael Eckstein

Accepted Solutions (0)

Answers (1)

Answers (1)

Ryan-Crosby
Active Contributor
0 Kudos

Hi Michael,

There's a much simpler way to get the results of a report without having to copy the entire program. Something like this would suffice:


      SUBMIT (program) WITH SELECTION-TABLE rspar EXPORTING LIST TO MEMORY AND RETURN.
      CLEAR: lt_listobject.
      REFRESH : lt_listobject.

      CALL FUNCTION 'LIST_FROM_MEMORY'
        TABLES
          listobject = lt_listobject
        EXCEPTIONS
          not_found  = 1.
      CHECK sy-subrc = 0.

      CALL FUNCTION 'LIST_FREE_MEMORY'
        TABLES
          listobject = lt_listobject.

      CALL FUNCTION 'LIST_TO_ASCI'
        EXPORTING
          WITH_LINE_BREAK   = 'X'
        IMPORTING
          LIST_STRING_ASCII = lt_ascii
        TABLES
          LISTOBJECT        = lt_listobject.

Now you have the contents in a table and you can export them back via proxy. There are options for getting the content as HTML as well which we have used as well.

Regards,

Ryan Crosby