<?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: Upload a file into the application layer without using presentation layer! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-a-file-into-the-application-layer-without-using-presentation-layer/m-p/6333696#M1396423</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please search.&lt;/P&gt;&lt;P&gt;there is no need of going for GUI_DOWNLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SEARCH tags like OPEN DATASET, or UPLOAD TO APPLICATION SERVER . you will get your answer..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Nov 2009 16:45:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-04T16:45:06Z</dc:date>
    <item>
      <title>Upload a file into the application layer without using presentation layer!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-a-file-into-the-application-layer-without-using-presentation-layer/m-p/6333694#M1396421</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;&lt;/P&gt;&lt;P&gt;I'm trying to create a pdf from a classical report (which is done successfully). Now i need to upload the pdf into the application layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i've done in the below program is... generate a simple classical report and using the spool id, i've generated a pdf and downloaded it into the presentation layer using GUI_DOWNLOAD. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Objective : I want this output PDF file in my application layer (without making any copy in the presentation layer for some security reasons) ..... Plz help me out with this.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:g_val     TYPE c. 
DATA:w_pripar  TYPE pri_params. 
DATA:w_arcpar  TYPE arc_params. 
DATA:spool_no  LIKE tsp01-rqident. 
DATA:it_pdf    TYPE TABLE OF tline WITH HEADER LINE. 
DATA:wa_pdf    LIKE LINE OF it_pdf. 
 
START-OF-SELECTION. 
 
CALL FUNCTION 'GET_PRINT_PARAMETERS' 
EXPORTING 
  in_archive_parameters  = w_arcpar 
  in_parameters          = w_pripar 
  layout                 = 'X_65_132' 
  line_count             = 65 
  line_size              = 132 
  no_dialog              = 'X' 
IMPORTING 
  out_archive_parameters = w_arcpar 
  out_parameters         = w_pripar 
  valid                  = g_val. 
IF g_val  NE space AND sy-subrc = 0. 
w_pripar-prrel = space. 
w_pripar-primm = space. 
NEW-PAGE PRINT ON NEW-SECTION PARAMETERS w_pripar ARCHIVE PARAMETERS w_arcpar NO DIALOG. 
"Output which is gone to spool 
WRITE:/ 'Output in spool to create zip file 1'. 
WRITE:/ 'Output in spool to create zip file 2'. 
WRITE:/ 'Output in spool to create zip file 3'. 
WRITE:/ 'Output in spool to create zip file 4'. 
NEW-PAGE PRINT OFF. 
CALL FUNCTION 'ABAP4_COMMIT_WORK'. 
ENDIF. 
IF NOT sy-spono IS INITIAL. 
"Declarations 
spool_no = sy-spono. 
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF' 
  EXPORTING 
    src_spoolid   = spool_no 
    no_dialog     = space 
  TABLES 
    pdf           = it_pdf. 
"Save the file 
CALL FUNCTION 'GUI_DOWNLOAD' 
  EXPORTING 
    filename     = 'C:\rep_output_pdf.pdf' 
    filetype     = 'BIN' 
  TABLES 
    data_tab     = it_pdf. 
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 15:24:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-a-file-into-the-application-layer-without-using-presentation-layer/m-p/6333694#M1396421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-04T15:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Upload a file into the application layer without using presentation layer!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-a-file-into-the-application-layer-without-using-presentation-layer/m-p/6333695#M1396422</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;You can download the data onto the application server using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. OPEN DATASET &amp;lt;FILE NAME&amp;gt; FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. LOOP AT IT_PDF INTO WA_PDF.&lt;/P&gt;&lt;P&gt;        TRANSFER WA_PDF TO &amp;lt;FILE NAME&amp;gt;.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. CLOSE DATASET &amp;lt;FILE NAME&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 15:30:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-a-file-into-the-application-layer-without-using-presentation-layer/m-p/6333695#M1396422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-04T15:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Upload a file into the application layer without using presentation layer!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-a-file-into-the-application-layer-without-using-presentation-layer/m-p/6333696#M1396423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please search.&lt;/P&gt;&lt;P&gt;there is no need of going for GUI_DOWNLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SEARCH tags like OPEN DATASET, or UPLOAD TO APPLICATION SERVER . you will get your answer..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 16:45:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-a-file-into-the-application-layer-without-using-presentation-layer/m-p/6333696#M1396423</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-04T16:45:06Z</dc:date>
    </item>
  </channel>
</rss>

