on 12-16-2011 11:55 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.