Download PDF to file on 4.6D

Hello!
I have a program which converts spool outputs to PDFs (CONVERT_ABAPSPOOLJOB_2_PDF and CONVERT_OTFSPOOLJOB_2_PDF) and downloads them to files by using GUI_DOWNLOAD. It works fine on 4.7, but on 4.6D I get incorrect (unreadable) PDF files. The programs are exactly the same on both systems, which are also both non-unicode. My guess is that the critical points are CONVERT* functions, but don't know what to do about it.
Please give me some suggestions.
Thanks!
Kind regards,
Igor Barbaric

Hi Igor,
Please refer OSS Note 383718.
Also have a look at standard program RSTXPDFT5.Hope this gives some input.
Thanks
Lakshman

Similar Messages

  • Safari 5.1 using QT to download pdf document files

    I selected a link in my imac mail that took me to the internet site to view a PDF , but safari 5.1 is using QT to download pdf document files. I can't adjust the size or see pass page one. I don't know what happen to the reader. Can anyone help?

    I just figure out I'm in the wrong forum. Will post to safari forum.

  • I can't view orf download pdf (adobe) files

    I cannot view or download pdf (adobe) files

    TO MARK,
    To tell you the truth, until you asked the question, I never heard of Preview.  In trying to open the AP, I saw that it had never been opened and I couldn't open it when I tried today.  Can you shed any light on this?

  • Help with downloading pdf/text files itunes

    Hi,
    I am trying to download and view the text/pdf files from this link: https://itunes.apple.com/us/course/statistics-110-probability/id502492375 (files 1, 4, 11 and so on.. )
    However, I am not able to open the text/pdf file from the downloads window on itunes. I use itunes on mac.
    I would appreciate your help.
    Thanks
    Parang

    parangsaraf wrote:
    Hi,
    I am trying to download and view the text/pdf files from this link: https://itunes.apple.com/us/course/statistics-110-probability/id502492375 (files 1, 4, 11 and so on.. )
    However, I am not able to open the text/pdf file from the downloads window on itunes. I use itunes on mac.
    You don't open it in the download window.
    Select iTunes U in the left sidebar.
    If you don't see the left sidebar, iTunes menu View > View sidebar.

  • Downloading PDF DOC file in ADF

    Hi All,
    I am using Jdev 11.1.1.2.0
    My requirment is to Displaying the BLOB file like DOC and PDF in ADF UI. User can able to download it. I know there is already few post like this. I have gone through But is there any better way to display way to displaying on The UI.
    Please suggest

    Hi ,
    Sorry for lack of information
    I have gone through the blog
    http://tompeez.wordpress.com/2011/12/16/jdev11-1-2-1-0-handling-imagesfiles-in-adf-part-3/
    http://www.baigzeeshan.com/2010/08/uplaoding-and-downloading-images-in.html
    Problem I have is. How can i show the PDF or Doc file on the UI. ? In the above articles they mentioned about images and displayed They used af:image tag for embed the image.
    I am looking for some good ways of displaying the PDF or doc file on the UI which is stored in Database.

  • Downloading pdf.acsm files

    I installed Adobe Digital Editions & bought an e-book from Google.  When I try to download it the Adobe reader has an error message, "pdf.acsm not a supported type file."  Any ideas?

    Moving this discussion to the Adobe Digital Editions forum.
    ThomasReid7 I would recommend beginning by installing Adobe Digital Editions from http://www.adobe.com/products/digital-editions.html.

  • If I click on a .pdf link on a site or mail, infinite blank windows open, all the while downloading pdf.part files. How do I stop this action?

    It does not matter what or where the .pdf is, so it is not a result of a particular website, rather it is a fault in Firefox. It just started in the last week.

    Could you check your PDF handling setting in the Preferences dialog.
    Firefox menu > Preferences > Applications
    Allow several seconds for Firefox to load the list, then type pdf in the search box above the list to quickly filter it. What do you have here? If you modify it to use a different viewer (such as Preview), does that help?

  • How do I add downloadable PDF files to my web site?

    Help!
    I'm creating a web site, and I need to add two buttons that, when clicked, will download two different PDF files. I have absolutely NO IDEA how to do this!!! Not a clue!
    I'm using actionscript 3 and Flash CS4.
    Any help would be greatly appreciated!!!! Thank you!
    Kelly

    Thank you everyone for your response!!!
    I found this code on a tutorial :
    var getFile:URLRequest=new URLRequest("http://www.my_website_name.com/my_pdf_file_name.pdf");
    pdf_btn.addEventListener(MouseEvent.CLICK, getMyFile);
    function getMyFile(event:MouseEvent):void {
    navigateToURL(getFile,"_blank");
    This code downloads a zipped file perfectly! However, it won't download or even bring up the pdf file. (I thought something might be wrong with the pdf file. I renamed it, used a completely different pdf file; nothing! I still get a blank page.)
    Tiago, I tried implementing your code too... I know this should work!
    I really appreciate all of your help!!! Thank you! Thank you!

  • How to edit a downloaded .pdf file?

    Hi! Have a downloaded .pdf file, (application for employment form) My options are to print out/fill out. I want to know if there is a way that I can edit the application so that I can fill it out on line (Neater) then print. Between a 2004 version of Word, plus Keynote, Pages and Adobe 8, I can't edit the application. I called Apple and they said there is no way that I edit a pdf file so that I can complete the application on line. There must be a way to do this, right? Thanks, Bill

    Bostonfan49 wrote:
    Hi! Have a downloaded .pdf file, (application for employment form) My options are to print out/fill out. I want to know if there is a way that I can edit the application so that I can fill it out on line (Neater) then print. Between a 2004 version of Word, plus Keynote, Pages and Adobe 8, I can't edit the application. I called Apple and they said there is no way that I edit a pdf file so that I can complete the application on line. There must be a way to do this, right? Thanks, Bill
    Yes, there is a way. First, if check the security on the pdf. Adobe has many levels of security, so that files can be printed but not edited and not made into smaller files, etc.
    Usually you would need the real Adobe app, not the reader. But then, even though Adobe can edit pdf files, it will not do so if the file is protected. You normally would be asked for a password when you attempt to modify a PW-protected pdf document.
    That all being said, if the document is protected I can only refer you to ghostscript, ghostview and GSView.

  • Mavericks 10.9.1. Freezes or trackpad becomes slow and unresponsive when viewing downloaded PDF files in Preview.Help!

    The earlier post was my first attempt at posting and had some typos. Repeated with typos corrected.
    I have a Macbook Pro Retina 13" Late 2013 with preinstalled Mavericks.I now have the 10.9.1 update. Almost from the time of purchase in Nov '13, I have been experiencing freezes and slow & unresponsive trackpad. I have more or less narrowed this symptom as happening when viewing downloaded PDF files. The only option is to force eject, if available or shut down. I spoke to Support as I thought it was a RAM issue and they told me that in Mavericks RAM showing almost full was normal as it uses RAM differently. They took me through some resets and cleaning up which has helped a little but freezing stll happens. This never happened with my Macbook AIr running Lion. Any suggestions?
    Shankar9
    Macbook Pro Retina 13" Late '13-Mavericks 10.9.1
    Macbook Air 13" Mid '11-Lion
    Macbook Aluminium 13" Late '08-Snow Leopard

    So a PDF file that you can view in Preview on your MBA causes your new MBP to lock up and/or slow down. Is this right? Also you say more or less narrowed down to PDFs with Preview but does the computer exhibit this behavior with other programs and if so under what conditions? And how much free hard drive space do you have?
    Viewing memory use in Mavericks is different than with previous versions of the OS. Today it looks like we need to pay attention to what Apple calls Memory Pressure which is gauged by the bar graph in Activity Monitor and to the Virtual Memory being used. When the memory pressure graph bar gets too high it turns red and that's bad news. Looking at how much memory is being used doesn't help - I have a 16GB computer and with almost nothing running it still shows something like 15.79GB used but the memory pressure graph is just a think green line. So unless you see the memory pressure bar turning red lets not worry about memory usage at the moment.
    If among the things AppleCare had you do was reinstall Mavericks then I recommend a trip to the Apple store - and take a problem PDF file with you to demonstrate.

  • Adobe Reader 9.0 has delay when downloading PDF file through proxy server

    There is an issue with the Adobe Reader (and Acrobat) 9.0 PDF Link Helper ActiveX control for Internet Explorer (6 or 7) on Windows computers with respect to proxy servers. Due to this issue, there is a 2 minute delay for any Internet Explorer web browser on the Deere network before any PDF file will open from the Internet within the IE web browser if In-Place activation (Display PDF in Browser) is enabled in Adobe Reader 9. This problem does not affect Adobe Reader 8.
    What we are seeing is that when someone on the Deere network clicks on a links to a PDF file in the Internet, the PDF file downloads immediately. But then, after the PDF file is downloaded, the Adobe Reader 9 PDF Link Helper ActiveX control tries to talk directly to the Internet web site. The Adobe Reader 9 PDF Link Helper ActiveX control does not know how to negotiate our proxy server. So after a minute or two, the Adobe Reader 9 PDF Link Helper ActiveX control times out (gives up) and allows the IE browser to display the downloaded PDF file in the IE browser.
    We work around this issue by disabling In Place Activation for PDF files in IE (uncheck Display PDF in Browser). But we would like a fix for the PDF Link Helper ActiveX control.
    [HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\9.0\Originals]
    "bBrowserIntegration"=dword:00000000
    [HKEY_CURRENT_USER\Software\Adobe\Adobe Acrobat\9.0\Originals]
    "bBrowserIntegration"=dword:00000000
    Here's what our proxy people see when they do a trace of a PDF file download through their proxy server with IE 7 and Adobe Reader 9 with Display PDF in Browser checked.
    The browser tells the proxy to download the pdf, it does and sends it to the browser. Before the browser opens it something in Acrobat ( or I.E. ? ) tries to make a connection back to the content server that hosted the pdf. Unfortunately this agent does not ask the proxy to make the request for it, but rather asks local DNS to resolve the Internet server name. This request dies because our internal private network does not know anything about the Internet. Only the DNS used by the proxy can resolve Interent names. After two unsuccessful DNS queries into the private network, the agent tries to resolve the same Internet name with NBNS ( netbios name service) queries again into the private network, with the same results. These requests persists for more than two minutes ( over 200 unresolved queries ). Then for whatever reason the agent gives up and the already downloaded pdf file loads into the browser.
    I have a TCP capture file if you want it.

    Hi,
    I have the same problem with some specific PDF files. For more than 90% it hangs when opening the file, but sometimes it works (with the same file).
    The workflows where it sometimes worked:
    a) Loading the PDF, the reader is started the first time and displays license dialog.
    b) The reader was already runing and file is loaded with Drag&Drop or File/Open in the Reader
    But most times it does not load.
    I could not find out which file is missing or trying to be opened. So I tried with the CP949.TXT.
    I found no CP949.TXT in Reader 8 installation, so I took it from the link, pasted into notepad and stored in the respective directory
    C:\Program Files (x86)\Adobe\Reader 9.0\Resource\TypeSupport\Unicode\Mappings\win\
    Now it seems to work fine, opening PDFs with double click from exporer.
    But why did Adobe Reader 8 not have the TypeSupport directory at all?
    Even when having found a fix (hack?), I think I did not understand the cause of this problem.
    Regards,
    TheLastReader

  • When I try to open a downloaded PDF file it opens for about 6 seconds and then closes - how can I fix that?

    I am using a Dell XPS8500 desktop with 64 bit Windows 7.
    No problem downloading PDF files but when I open them they disappear before I can print.

    Hello,
    Which application are you trying to open the PDF files in? Firefox or Adobe Reader? Or another?
    If adobe reader then please make sure that your copy is up to date. You can get the latest version here - http://get.adobe.com/uk/reader/
    Also I notice that you are using Firefox 19. Unless you have a particular reason to run an old version of Firefox is it much better to keep updated. The latest version is v22. New security fixes are applied in every new version of Firefox. Without them your PC is vulnerable. Please see this article: [[Update Firefox to the latest version]]

  • Unable to download pdf file in windows 8.1

    After upgrading to windows 8.1, i have been unable to download pdf files sent via yahoo email, IE11 and Adobe Reader 11.  Did not have this problem before with windows 8.  I click on the pdf attachment, NOrton says that the file is safe but nothing happens.  Am unable to save the file to my computer either.  Have already reloaded Adobe Reader repeatedly, drivers for window 8.1 associated with the hardware on my system, newest version of internet explorer,, upgraded drivers for my Canon printer and still no downloads!!!
    Can anybody help?  Microsoft community unable to give anymore suggestions.

    Wrong forum (this is Digital Editions), but ...
    I find .pdf files often won't launch properly on my Win8.1.  It starts the process but it doesn't do the right thing.
    Try making sure you don't have any copies of Reader working (AcroRd32.exe on my 32 bit Win 8.1).
    Start a copy from the start screen (or start menu if you've set one up) BEFORE you try to access the file.
    Now try to do the download or open it from the downloads directory.
    I find that way the file will open properly.

  • How do I get commands to display on a "full screen" display of a downloaded PDF file?

    In recent months, more and more downloaded PDF files are displayed on my Mac Pro without the command line at the top of the page.  This makes using & managing the documents difficult, and sometimes impossible.  I can gain access to a limited number of commands by clicking on the doc, but noto nearly the range of commands available when the command line is visible.  I still have many older PDF files that display in the usual manner.  Is this a change associated with Lion or the latest Adobe update?  Or, si there a command I do not know about that will restore the command line?

    Adobe Reader for iOS doesn't have command lines.

  • Download PDF file from Application Server in BSP

    Hello,
    We have a requirement on which we want to download a PDF file stored in Application server using BSP application. I have used function module  ARCHIVFILE_SERVER_TO_CLIENT but this FM will help only if i want to download file from GUI it won't work in BSP application.
    Further i have used class CL_BSP_UTILITY and download method to download file from application server but it is not working in desired manner.
    I am attaching my code for your reference:
    DATA: BUTTON_EVENT TYPE REF TO CL_HTMLB_EVENT_BUTTON ,
               EVENT TYPE REF TO IF_HTMLB_DATA.
    DATA: LS_HOURS LIKE LINE OF GT_HOURS.
    DATA STR TYPE STRING.
    DATA: OUTPUT TYPE STRING ,
              L_XSTRING TYPE XSTRING ,
               APP_TYPE TYPE STRING. 
    EVENT = CL_HTMLB_MANAGER=>GET_EVENT( REQUEST ).
    DATA PHY_NAME_OUT     TYPE SAPB-SAPPFAD.
    IF EVENT IS NOT INITIAL AND EVENT->EVENT_NAME = HTMLB_EVENTS=>BUTTON .
      BUTTON_EVENT ?= EVENT .
      CASE EVENT->EVENT_SERVER_NAME.
        WHEN 'test' .
          IF GT_HOURS IS NOT INITIAL.
            PHY_NAME_OUT = '/usr/sap/put/form16//01000200_2007.PDF'.
          OPEN DATASET PHY_NAME_OUT FOR INPUT IN TEXT MODE ENCODING DEFAULT.
            IF SY-SUBRC IS INITIAL.
              DO.
                READ DATASET PHY_NAME_OUT INTO STR.
                IF SY-SUBRC IS INITIAL.
                CONCATENATE
                    OUTPUT
                    str
                    cl_abap_char_utilities=>cr_lf
    INTO output SEPARATED BY space. "cl_abap_char_utilities=>horizontal_tab
                ELSE.
                  EXIT.
                ENDIF.
              ENDDO.
            ENDIF.
    *LOOP AT gt_hours INTO ls_hours.
    *CONCATENATE
    *OUTPUT
    *ls_hours-hour
    *cl_abap_char_utilities=>cr_lf
    *INTO output SEPARATED BY space. "cl_abap_char_utilities=>horizontal_tab
    *ENDLOOP.
            APP_TYPE = 'APPLICATION/PDF;charset=utf-16le'.
            CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
              EXPORTING
                TEXT     = OUTPUT
                MIMETYPE = 'APPLICATION/PDF;charset=utf-16le'
              IMPORTING
                BUFFER   = L_XSTRING.
            CONCATENATE CL_ABAP_CHAR_UTILITIES=>BYTE_ORDER_MARK_LITTLE
            L_XSTRING
            INTO L_XSTRING IN BYTE MODE.
            CALL METHOD CL_BSP_UTILITY=>DOWNLOAD
            EXPORTING
            OBJECT_S = L_XSTRING
            CONTENT_TYPE = APP_TYPE
            CONTENT_DISPOSITION = 'attachment;filename=webforms.pdf'
            RESPONSE = _M_RESPONSE
            NAVIGATION = NAVIGATION.
          ENDIF.
      ENDCASE.
    ENDIF.
    From this code i am able to download PDF file but it is not opening in local machine.
    If any other way to download file then please suggest.
    waiting for ur reply.
    Regards,
    Gagan

    Hi,
    you do the file reading wrong:
    have a look at:
    Local declarations.
      data:
        components          type stringtab,
        component           type string,
        path                type text255,
        file                type text255,
        line_length         type i,
       filecontent_binary type sdokcntbin,
        rows                type sytabix,
        content             type sdokcntbin,
        exception           type ref to cx_sy_file_access_error,
        exception_tmf       type ref to cx_sy_too_many_files ,
        block_size          type i value 1022,
        length              type i.
      field-symbols:
        <hex_container>     type x.
      constants:
        c_dms_blk_size      type i value 2550.
      clear file_size.
      try.
          open dataset file_name  for input in binary mode message message.
        catch cx_sy_file_open  into exception.
          case exception->textid.
            when '4182174D03030063000000000A1551B1'. raise access_error.
            when '41825AD355C3005E000000000A1551B1'. raise open_error.
            when '47E8B03AECE5BA07E10000000A114829'. raise already_open.
            when others.
          endcase.
        catch cx_sy_file_authority into exception.
          case exception->textid.
            when '4182174D03030063000000000A1551B1'. raise access_error.
            when 'A70BB8396F051547E10000000A11447B'. raise authority_error.
            when others.
          endcase.
        catch cx_sy_too_many_files into exception_tmf.
          case exception_tmf->textid.
            when '8708B73915F6B645E10000000A11447B'. raise too_many_files.
            when others.
          endcase.
      endtry.
      do.
        try.
            read dataset file_name into filecontent_binary-line.
            if sy-subrc <> 0.
              add  line_length to file_size.
              append filecontent_binary to file_content_binary.
              exit.
            else.
              add  line_length to file_size.
              append filecontent_binary to file_content_binary.
            endif.
          catch cx_sy_file_open_mode into exception.
            case exception->textid.
              when '9207B73915F6B645E10000000A11447B'. raise cx_sy_file_open_mode.
              when '9807B73915F6B645E10000000A11447B'. raise read_only.
              when '9E07B73915F6B645E10000000A11447B'. raise not_open.
              when '409D273A2D824360E10000000A11447B'. raise incompatible_mode.
              when others.
            endcase.
        endtry.
      enddo.
      try.
          close dataset file_name.
        catch cx_sy_file_close into exception.
          case exception->textid.
            when '4182174D03030063000000000A1551B1'. raise access_error.
            when 'C10BB8396F051547E10000000A11447B'. raise close_error.
            when others.
          endcase.
        catch cx_sy_file_access_error into exception.
          case exception->textid.
            when '4182174D03030063000000000A1551B1'. raise access_error.
            when others.
          endcase.
      endtry.
    Get file size.
      split file_name at '/' into table components.
      describe table components lines sy-tfill.
      read table components into component index sy-tfill.
      path = file_name.
      replace component in path with ''.
      file = component.
      call function '/EUH/MMS_GET_FILE_SIZE'
        exporting
          dir_name  = path
          file_name = file
        importing
          file_size = file_size.
    and function /euh/mms_get_file_size.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(DIR_NAME) TYPE  TEXT255
    *"     VALUE(FILE_NAME) TYPE  TEXT255
    *"  EXPORTING
    *"     VALUE(FILE_SIZE) TYPE  SDOK_FSIZE
    *"  EXCEPTIONS
    *"      NO_AUTHORITY
    *"      ACTIVITY_UNKNOWN
    *"      NOT_A_DIRECTORY
    *"      NO_MEDIA_IN_DRIVE
    *"      TOO_MANY_ERRORS
    *"      TOO_MANY_FILES
    *"      BRACKET_ERROR_IN_FILENAME
    *"      NO_SUCH_PARAMETER
      types: begin of files,
               line like ocs_file,
             end of files.
      data: file type files,
         f_subrc like sy-subrc value 0,
         errno(3)    type c,
         errmsg(40)  type c,
         pos                        type i,
         len                        type i,
         parameter(120)             type c,
         help1(120)                 type c,
         help2(120)                 type c,
         error_counter              type i.
      data:
        dir_list  like  ocs_file occurs 0 with header line.
    CASE sy-subrc.
       WHEN 1. f_subrc = 64.
       WHEN 2. f_subrc = 65.
       WHEN 0.
      search dir_name for 'SY-HOST'.    "Is SY-HOST used in directory name?
      if sy-subrc = 0.
        pos = sy-fdpos + 7.
        move dir_name(sy-fdpos) to help1.
        move dir_name+pos to help2.
        concatenate help1 sy-host help2 into dir_name.
      endif.
      do 12 times.                                 " To avoid endless loop
        if dir_name cs '$('.           " Replace parameter by their value
          pos = sy-fdpos + 2.
          if dir_name cs ')'.
            len = sy-fdpos - pos.
            if len le 0.
              f_subrc = 4. exit.
            else.
              parameter = dir_name+pos(len).
              call 'C_SAPGPARAM' id 'NAME'  field parameter
                               id 'VALUE' field parameter.
              if sy-subrc = 0.
                len = pos + len + 1.
                pos = pos - 2.
                if pos > 0.
                  move dir_name(pos) to help1.
                else.
                  help1 = ''.
                endif.
                pos = strlen( dir_name ).
                if pos > len.
                  move dir_name+len to help2.
                else.
                  help2 = ''.
                endif.
                concatenate help1 parameter help2 into dir_name.
              else.
                f_subrc = 8. exit.
              endif.
            endif.
          else.
            exit.
          endif.
        else.
          exit.
        endif.
      enddo.
      shift dir_name right deleting trailing '/\ '.
      shift dir_name left deleting leading space.
      call 'C_DIR_READ_FINISH'                      " this is from RSWATCH0
            id 'ERRNO'  field errno
            id 'ERRMSG' field errmsg.
      call 'C_DIR_READ_START'
            id 'DIR'    field dir_name
            id 'FILE'   field file_name
            id 'ERRNO'  field errno
            id 'ERRMSG' field errmsg.
      case sy-subrc.
        when 1.
          case errno.
            when 2 or 20.  f_subrc = f_subrc + 66.
            when ' '. f_subrc = f_subrc + 67.
          endcase.
        when 0.
          clear error_counter.
          do.
            clear file.
            clear dir_list.
            call 'C_DIR_READ_NEXT'
                id 'TYPE'   field file-line-type
                id 'NAME'   field file-line-name
                id 'LEN'    field file-line-len
                id 'OWNER'  field file-line-owner
                id 'MTIME'  field file-line-mtime
                id 'MODE'   field file-line-acc_mode
                id 'ERRNO'  field errno
                id 'ERRMSG' field errmsg.   "sy-subrc = 3 is e.g. if return
            if sy-subrc = 0 or sy-subrc = 3."data do not fit into variables
              perform p6_to_date_time_tz(rstr0400) using
                    file-line-mtime
                    file-line-mod_time
                    file-line-mod_date.
              file_size = file-line-len.
              dir_list = file-line.
              append dir_list.
            elseif sy-subrc = 1.                 " nothing (more) found
              exit.
            else.
              if error_counter > 50.
                call 'C_DIR_READ_FINISH'
                    id 'ERRNO'  field errno
                    id 'ERRMSG' field errmsg.
                pos =  f_subrc mod 2.
                if pos = 0. f_subrc = f_subrc + 1. endif.
                exit.
              endif.
              add 1 to error_counter.
            endif.
            if sy-index > 1000.
              pos =  f_subrc mod 4.
              if pos = 0. f_subrc = f_subrc + 2. endif.
              exit.
            endif.
          enddo.
          call 'C_DIR_READ_FINISH'
               id 'ERRNO'  field errno
               id 'ERRMSG' field errmsg.
          if sy-opsys(3) = 'Win' and not ( file_name cs '*' ).
            describe table dir_list lines len.
            if len = 0.
              help1 = file_name.
              translate help1 to upper case.
              translate help1 using
                   'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.
              call 'C_DIR_READ_START'
                    id 'DIR'    field dir_name
                    id 'FILE'   field help1.
              if sy-subrc = 0.
                clear error_counter.
                do.
                  clear file.
                  clear dir_list.
                  call 'C_DIR_READ_NEXT'
                      id 'TYPE'   field file-line-type
                      id 'NAME'   field file-line-name
                      id 'LEN'    field file-line-len
                      id 'OWNER'  field file-line-owner
                      id 'MTIME'  field file-line-mtime
                      id 'MODE'   field file-line-acc_mode
                      id 'ERRNO'  field errno
                      id 'ERRMSG' field errmsg.
                  if sy-subrc = 0 or sy-subrc = 3.
                    help2 = file_name.
                    translate help2 to upper case.
                    help1 = file-line-name.
                    translate help1 to upper case.
                    if help1 = help2.
                      perform p6_to_date_time_tz(rstr0400) using
                         file-line-mtime
                         file-line-mod_time
                         file-line-mod_date.
                      dir_list = file-line.
                      append dir_list.
                    endif.
                  elseif sy-subrc = 1.
                    exit.
                  else.
                    if error_counter > 50.
                      call 'C_DIR_READ_FINISH'
                          id 'ERRNO'  field errno
                          id 'ERRMSG' field errmsg.
                      pos =  f_subrc mod 2.
                      if pos = 0. f_subrc = f_subrc + 1. endif.
                      exit.
                    endif.
                    add 1 to error_counter.
                  endif.
                  if sy-index > 1000.
                    pos =  f_subrc mod 4.
                    if pos = 0. f_subrc = f_subrc + 2. endif.
                    exit.
                  endif.
                enddo.
                call 'C_DIR_READ_FINISH'
                     id 'ERRNO'  field errno
                     id 'ERRMSG' field errmsg.
              endif.
            endif.
          endif.
      endcase.
    ENDCASE.
    CASE f_subrc.
       WHEN 1 OR 3.             RAISE too_many_errors.
       WHEN 2.                  RAISE too_many_files.
       WHEN 4 OR 5 OR 6 OR 7 OR 70 OR 71.
         RAISE bracket_error_in_filename.
       WHEN 8 OR 9 OR 10 OR 11 OR 74 OR 75.
         RAISE no_such_parameter.
       WHEN 64.                 RAISE no_authority.
       WHEN 65.                 RAISE activity_unknown.
       WHEN 66.                 RAISE not_a_directory.
       WHEN 67.                 RAISE no_media_in_drive.
    ENDCASE.
    endfunction.
    Now you will be able to get the filesize and the file in SDOK format sdokbin.
    Okay.
    You have to build an request and push the content to the user like:
      call method server->response->set_header_field( name = 'Content-Type' value = value ).
      describe field file_content_binary-line length line_length in byte mode.
      bytes_rest = file-size.
      loop at file_content_binaries assigning <file_content_binary>.
        move <file_content_binary>-line to data.
        if bytes_rest <= 0. "mismatch between line values and size
          exit.
        endif.
        if bytes_rest >= line_length.
          call method server->response->append_data( data = data
            length = line_length ).
        else.
          call method server->response->append_data( data = data
            length = bytes_rest ).
        endif.
        bytes_rest = bytes_rest - line_length.
      endloop.
    This will work.
    You can set the header fields like you want. Have also a look at sicf node contentserver
    and its handler: CL_HTTP_EXT_CSIF

Maybe you are looking for