<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: HTML file in app server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/html-file-in-app-server/m-p/1657838#M291890</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;i used FM 'WWW_LIST_TO_HTML'.&lt;/P&gt;&lt;P&gt;i got accurate output.&lt;/P&gt;&lt;P&gt;thanks for all.&lt;/P&gt;&lt;P&gt;thanks Mrutyunjaya Tripathy .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Oct 2006 09:41:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-27T09:41:34Z</dc:date>
    <item>
      <title>HTML file in app server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/html-file-in-app-server/m-p/1657833#M291885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;I have a scenario in which the output displayed using report is to be store in app server as HTML file.&lt;/P&gt;&lt;P&gt;how can i do that?&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2006 07:51:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/html-file-in-app-server/m-p/1657833#M291885</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-26T07:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: HTML file in app server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/html-file-in-app-server/m-p/1657834#M291886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use fm LIST_DOWNLOAD_HTML&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2006 07:59:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/html-file-in-app-server/m-p/1657834#M291886</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2006-10-26T07:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: HTML file in app server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/html-file-in-app-server/m-p/1657835#M291887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this can give you some idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: PRIPAR TYPE PRI_PARAMS,
      ARCPAR TYPE ARC_PARAMS,
      LAY    TYPE PRI_PARAMS-PAART,
      LINES  TYPE PRI_PARAMS-LINCT,
      ROWS   TYPE PRI_PARAMS-LINSZ.
DATA: val(1).

CALL FUNCTION 'GET_PRINT_PARAMETERS'
  EXPORTING
    destination            = 'LOCL'
    no_dialog              = 'X'
    immediately            = ' '
  IMPORTING
    out_archive_parameters = arcpar
    out_parameters         = pripar
    valid                  = val
  EXCEPTIONS
    archive_info_not_found = 1
    invalid_print_params   = 2
    invalid_archive_params = 3
    OTHERS                 = 4.
IF sy-subrc &amp;lt;&amp;gt; 0.
*     MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

pripar-prdsn = 'OSI'.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
  EXPORTING
    in_archive_parameters  = arcpar
    in_parameters          = pripar
    no_dialog              = 'X'
*      list_name              = 'Testing Purpose Only' "l_list
  IMPORTING
    out_archive_parameters = arcpar
    out_parameters         = pripar
    valid                  = val
  EXCEPTIONS
    archive_info_not_found = 1
    invalid_print_params   = 2
    invalid_archive_params = 3
    OTHERS                 = 4.

IF sy-subrc EQ 0.
  NEW-PAGE PRINT ON
  NEW-SECTION
  PARAMETERS pripar
  ARCHIVE PARAMETERS arcpar
  NO DIALOG.
ELSE.
  write:/ 'Unable to create spool'.
ENDIF.



write:/ 'First Line'.
write:/ 'Second Line'.

NEW-PAGE PRINT OFF.

data: l_spool like TSP01-RQIDENT.
DATA: BEGIN OF BUFFER OCCURS 10000,
        TEXT(255) TYPE C,
      END OF BUFFER.
DATA: STARTLINE TYPE I, ENDLINE TYPE I, fnstr type string.

STARTLINE = 1. l_spool = sy-spono.

REFRESH BUFFER.
ENDLINE = STARTLINE + 9999.
CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
   EXPORTING
        RQIDENT              = l_spool
        FIRST_LINE           = STARTLINE
        LAST_LINE            = ENDLINE
        DESIRED_TYPE         = 'RAW'
*       IMPORTING
*            real_type            =
   TABLES
        BUFFER               = BUFFER
   EXCEPTIONS
        NO_SUCH_JOB          = 1
        JOB_CONTAINS_NO_DATA = 2
        SELECTION_EMPTY      = 3
        NO_PERMISSION        = 4
        CAN_NOT_ACCESS       = 5
        READ_ERROR           = 6
        TYPE_NO_MATCH        = 7
        OTHERS               = 8.
IF SY-SUBRC &amp;lt;&amp;gt; 0.
  EXIT.
ENDIF.

data: l_file like rlgrap-filename.

move '/home/xapplusr/down.html' to l_file.
open dataset l_file for output in text mode encoding default.
if sy-subrc ne 0.
  write:/ 'Unable to download to application server'.
else.
  loop at buffer.
    transfer buffer to l_file.
  endloop.
  close dataset l_file.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am trying to create the output as spool, read the output and download as HTML file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2006 08:07:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/html-file-in-app-server/m-p/1657835#M291887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-26T08:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: HTML file in app server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/html-file-in-app-server/m-p/1657836#M291888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this function module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WWW_LIST_TO_HTML After running a report, call this function to convert the list output to HTML. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2006 08:09:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/html-file-in-app-server/m-p/1657836#M291888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-26T08:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: HTML file in app server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/html-file-in-app-server/m-p/1657837#M291889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;i'm using rao's code. spool was Successfully created.using BUFFER internal table i can't get the HTML file in app.server.i'm using binary mode to open the file.what should be the document type to get BUFFER table CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'&lt;/P&gt;&lt;P&gt;            EXPORTING&lt;/P&gt;&lt;P&gt;                DESIRED_TYPE         = ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2006 04:30:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/html-file-in-app-server/m-p/1657837#M291889</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-27T04:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: HTML file in app server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/html-file-in-app-server/m-p/1657838#M291890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;i used FM 'WWW_LIST_TO_HTML'.&lt;/P&gt;&lt;P&gt;i got accurate output.&lt;/P&gt;&lt;P&gt;thanks for all.&lt;/P&gt;&lt;P&gt;thanks Mrutyunjaya Tripathy .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2006 09:41:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/html-file-in-app-server/m-p/1657838#M291890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-27T09:41:34Z</dc:date>
    </item>
  </channel>
</rss>

