Student transcript from portal as a downloadable pdf format

Hi SAP gurus,
we have made a student correspondence for single student trancript using pdf based forms. it works fine in R3 - we create and print correspondence from student file and get it from spool as a downloadable pdf file.
Now, In our scenario we want student to get his/her transcript from portal screens as downloadable pdf format with a single click of "get transcript as a pdf file".
Up to now, we copied a correspondence function and made it RFC. this RFC function works fine with a single parameter (student number). however the form is send to spool (SP02) when the function is executed and we have found no way to get this pdf file from spool to present it in portal.
Any suggestions about this subject? helpful answers will be appreciated.

Hi SAP gurus,
we have made a student correspondence for single student trancript using pdf based forms. it works fine in R3 - we create and print correspondence from student file and get it from spool as a downloadable pdf file.
Now, In our scenario we want student to get his/her transcript from portal screens as downloadable pdf format with a single click of "get transcript as a pdf file".
Up to now, we copied a correspondence function and made it RFC. this RFC function works fine with a single parameter (student number). however the form is send to spool (SP02) when the function is executed and we have found no way to get this pdf file from spool to present it in portal.
Any suggestions about this subject? helpful answers will be appreciated.

Similar Messages

  • Calling a report from a web form & specifying PDF format

    Has anyone been able to call a report from Oracle Forms (6i or 9i) in a web browser (i.e. by pressing a button or any other link)? We are having problems generating the report in PDF format when we web deployed our forms. In client server mode it works fine with the report deferring to PDF. But in the web browser it reverts to a messy HTML format with the columns being distorted. Running a standalone report from the web is no problem but when it is linked with a form it goes back to HTML. In the old forms (5.0) we used a function like run_product but I am not sure what the problem is in the new environment.
    T.J.

    Hello,
    According to the way the reports is launched, the format of the reports output depends on the
    variables : FORMS60_REPFORMAT (for Forms 6.0 and 6i)
    Two others variables are used : FORMS60_OUTPUT and FORMS60_MAPPING.
    Can you check the variable FORMS60_REPFORMAT ?
    regards Dennis:
    Thanks for the info. Your suggestion of changing the windows registry setting FORMS60_REPFORMAT to 'PDF' worked! I did not have to make any other changes to the form. I left the run_product format as is in the form and it worked like a charm. When we eventually migrate to Oracle Reports/Forms 9i we will look into using run_report_object. But for now we will stick with Oracle Forms6i. There was no need to alter the other registry settings FORMS60_MAPPING and FORMS60_OUTPUT since I followed the instructions of setting the virtual directories (symbolic links) when I installed the forms and reports services.
    Thanks again for your help!
    T.J.

  • Unable to Download PDF format

    Each time I try to download something in PDF format, my PC tries to open it in MS word and asks which encoding I want to use to make it readable.  Any option opens a document that looks encrypted.  I have downloaded Adobe Reader several times.

    Reader has nothing to do with it.
    It's a bad file association in Windows.
    Right click ANY PDF you've downloaded and click "Proiperties"
    Under the General tab, where it says "Opens with"... to the right it probably says WinWord. Click the "Change" button.
    If Reader ISN'T in the list of recommended programs, click Browse and navigate to C/Program Files/Adobe/Reader 11.0/Reader
    Choose AcroRd32.exe as the program to use, click Open, click Apply, and click OK.
    PDFs will now open in reader instead of Word.

  • Error in exporting from Interactive Report to PDF format

    Hello,
    i am using APEX and from an Interactive Report i am trying to export using Download | PDF format. The table and corresponding report has only text fields. Database character set is UTF-8. Up to now i haven't been able to get a PDF file that can be open from Adobe Acrobat Reader. Every file fails opening with message like "Adobe Reader could not open filename.pdf, because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded). This happens for every report i have tried up to now. If i export report in CSV format all are ok.
    Is there a known bug with PDF download of APEX?
    TIA

    See this link: http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html
    FOP & Cocoon are free (just need to install the software and configure) Bi Publisher I believe works only for Standard Reports and no Interactive reports at this time.. If you have the $$ BI Publisher is worth the investment!!
    Also, it is rumored that APEX 4.0 will have the PDF generation built in as apposed to the current model where you need to bolt something on..
    Thank you,
    Tony Miller
    Webster, TX

  • Cannot download .pdf files and word docs from KM using Web Dynpro

    Dear Portal Gurus,
    Using KM API, I am trying to download, documents from KM in my Web Dynpro Application. But .pdf files and word docs with screenshots are not getting retrieved from KM. Word docs opens with no content and Adobe opens with an error saying "Either it is a damaged file or It is not a supported file".
    I am using the following KM service to download the content.
    public byte[] retrieveResourceInBytes(String strRid){                    
    /////  after a few lines  ////
         if (this.loggedOnUser.isAuthenticated()) {
    // create a resource context with the authenticated user
         rContext = new ResourceContext(this.loggedOnUser);
    // create a RID to handle a resource
          aRid = RID.getRID(strRid);
              try {
              // get an instance of a resource factory
                     final IResourceFactory aResourceFactory = ResourceFactory.getInstance();
    // retrieve a folder/file  with context
                                                 aResource =  aResourceFactory.getResource(aRid, rContext);
         if(aResource.isCollection()) {
                                                                      aResource = (ICollection) aResource;
                                                      IPropertyMap objIPropertyMap = aResource.getProperties();               
                                                 IMutablePropertyMap objIMutablePropertyMap =objIPropertyMap.getMutable();
                                                 objHashMap = new HashMap();
         if (aResource != null) {
                                                                         IContent oldContent = aResource.getContent();
                            InputStream objInputStream=oldContent.getInputStream();
                 byte[] theBytes = new byte[objInputStream.available()];
                 objInputStream.read(theBytes);
                        return theBytes;
         } //  catches all the exceptions here///
    Could you please advise if I am doing something wrong else could you please advise me for any corrections which would help?
    Thanks a lot in advance,
    Zeena
    Edited by: Zeena Ali on Mar 25, 2009 8:13 AM

    On Apr 10, 2013, at 4:10 PM, AdityaKalania wrote: Replies in RED below:
    Re: Cannot download pdf files from web sites
    created by AdityaKalania in Adobe Reader - View the full discussion
    Hi,
    Which web browser are you using to view the PDF? Safari 5.1.8
    When you open the PDF in Adobe Reader add-in you will either see a floating toolbar
    http://forums.adobe.com/servlet/JiveServlet/downloadImage/2-5224223-317859/430-90/floating +toolbar.JPG
    or a normal toolbar
    http://forums.adobe.com/servlet/JiveServlet/downloadImage/2-5224223-317860/450-11/normalto olbar.JPG
    both the toolbars have save button, use the button to save the file locally. I do not see these toolbars. I do, however see this
    and it works! Thanks
    Hope this will help you.
    Thanks
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5224223#5224223
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5224223#5224223
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5224223#5224223. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Adobe Reader by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How to download pdf from application server

    hi all,
    anybody has code to download pdf from application server to presentation server.
    right now i get the pdf file on to the desktop but i get error on opening.
    gui_download gives error if i use xstring.
    pl advice.
    thanks.
    sap fan.

    Hi,
    use the below code to download file from app server to presentation server
    PARAMETERS: S_file TYPE SAPB-SAPPFAD
    default '\folder1\abc,pdf'.
    PARAMETERS: t_lfile TYPE SAPB-SAPPFAD
    default 'c:\temp\xyx.pdf'.
    START-OF-SELECTION.
      CALL FUNCTION 'ARCHIVFILE_SERVER_TO_CLIENT'
        EXPORTING
          path             = source_file
         TARGETPATH        = target_lfile
    EXCEPTIONS
       ERROR_FILE       = 1
       OTHERS           = 2
      IF sy-subrc eq  0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.

  • Download from ALV grid to PDF format

    hai Friends!
       plz tell me how can i download from ALV grid to PDF format..
    send me some sample codes

    check this thread
    ALV Grid to PDF
    and do use the search functionality from next time and post the question only wheb u dont find the answer
    кu03B1ятu03B9к

  • Downloading BW report from Portal into Excel

    Hi All,
    When a user is trying to download a BW report from Portal into Excel, it is prompting for User id and password of backend.
    But since portal has SSO this should not happen??
    Once the Uid and Pwd has been entered the report works fine.
    Why is this happening ??
    Need Urgent Help regarding this issue...
    Thanks in Advance.
    Regards,
    Shailesh Nagar

    are you connect the portal with proxy?

  • Safari Will Not Download pdfs: On One Site and from One Computer Only

    On only one computer, at only one web site (my own creation), I suddenly cannot get pdfs to open in Safari 4.0. What might be happening?
    1. I have created 5 web sites for my business. I use RapidWeaver from RealMacSoftware.
    2. Each of the 5 sites I’ve created has downloadable pdfs.
    3. Two of the sites are password protected, but this does not appear to be the source of the problem.
    4. One of these two protected sites (Site A) will not open any pdfs on the site in a Safari browser window on my Intel iMac running 10.5.7. When I click on a pdf link in Safari, I get the gray spinning wheel on a white page (which does not stop after 10+ minutes). If I try to reload the page, a white page results. Trying any other pdf link on this site produces nothing but a white page.
    5. If I option-click on the link, the pdf downloads fine, but I then have to open it. It does not open in Safari, but rather Reader.
    6. This behavior does not occur on two other Macs in my office. One, a MacBook Pro running 10.5.7 and Safari 4.0, opens the pdfs in Safari just fine. Another, a G5 running Tiger with Safari 4.0, also works fine. (FWIW: No problems on Dell running XP Home, via either Explorer or Firefox.)
    7. The behavior also does not occur on the other protected site I have created (Site B) or on any of the other unprotected sites. All computers, all browsers—no problems.
    8. I have the latest Adobe Reader version (9.1.2).
    9. I have repaired permissions and restarted—no luck.
    10. I have republished Site A through RapidWeaver, but there is no change. My web host had a power failure a day or two ago, but all sites were up and running yesterday.
    Any clues about what’s going on? I have intentionally not downloaded the apparently available Safari version 4.0.1 because of the several problems reported on the boards.
    Message was edited by: Richard Setterberg

    I tried logging in to the guest account and got a slightly different result: Two of the five websites I've created with RapidWeaver now do not display pdfs using the Adobe Reader plugin.
    The common thread now is that the two that don't work are the password protected sites. When I boot back into my main account, the original problem returns: Only one site doesn't work; the other one does.
    Still only on one computer.

  • How do I download pdfs from link without opening first in Safari?

    I am running OS 10.7.2 and browse with Safari 5.1.2.  I download PDF files routinely for my work.  In previous versions of Safari (with OS 10.5.x), clicking a link to download a PDF led to the PDF immediately downloading and then opening in Adobe Acrobat Pro.  Since upgrading to current system and Safari, I can no longer do that.  Clicking on PDF links opens in Safari, and then I have to find and click Safari's download button, and then I have to go to the downloads folder and click to open the document.  Does anyone know how to bypass this opening feature and get Safari to just download and then get the pdf to instantly open like it used to?  I am finding myself moving to Firefox, which I don't like as well and don't know as well, because it doesn't interfere with PDF docs. 
    Any solutions out there?

    Thanks for the suggestion, but those are the settings I'm already using.  Unfortunately, the various websites I visit don't respond uniformly to control-click, and choosing to download a file from that menu often just downloads an HTML of the page rather than the pdf doc itself.  I find shift-option-click works more often than other key combos, but I still have to then go to the downloads folder and manually open the file. 
    You may be right about Firefox being my only option.  Thanks for the suggestions.

  • 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

  • No longer able to download pdf files from websites.

    I am running Firefox 11.0 & Aurora on a Mac with OS X 10.6.8.
    I used to be able to download pdf files, such as my bank staements, direct from websites with no problem on either browser.
    Recently, when clicking on the link, the dialog box asking whether I want to save it or open it no longer appears and nothing else happens. Can't download. My wife has the same problem with a new Mac with OS x 10.7 Lion.
    I am also running an older version of Firefox 3.6.28 on a Mac with PPC processor & OS X 10.5.8. With this I have no problems downloading the pdf files I want.
    I have compared the Firefox preferences between the two machines and made them the same. Also found the ''Unable to download or save files'' link on Firefox Help and I have Reset the browser.download configs as it suggested. And nothing has changed.
    What to do? Anybody out there can help me? Thanks in advance.

    Okay, I think I fixed it by going to Add-ons Manager and disabling Adobe Acrobat NPAPI plug-in, version 10.1.3. Now I'm back to downloading PDFs, then opening or saving.

  • How do I download PDF files from Safari 5.0.5?

    I am unable to open PDF files. All I get is a blank black screen. I now download PDFs into my computer from the internet (with mixed success), which is several steps more than has ever taken me in the past.
    Since finding this problem I have updated the Adobe Reader and run system updates today, to no avail.
    Adobe reports that there is a compatibility issue between Safari 5.1 and Adobe Reader. They offer several solutions none of which has worked for me.
    (http://helpx.adobe.com/x-productkb/multi/safari-5-1-incompatible-reader.html). Is updating Safari going to help me, or are there other solutions?

    Hi..
    Go to    HD/Library/Internet Plug-Ins
    Move the Adobe PDF browser plugin from the Internet Plug-Ins folder to the Trash..
    Quit and relaunch Safari to test.
    If you have trouble finding that file..
    Open the Finder. From the Finder menu bar click Go > Go to Folder
    Type this exactly as you see it here:
    /Library/Internet Plug-Ins
    Click Go
    edited by:  cs

  • How to download PDF attachment from gmail on iphone 5S

    Hi,
    How to download PDF attachment from gmail on iphone 5S
    Regards
    Ram

    Hello Ram2910
    You should be able to view them natively within iOS. If you can view them in safari and want to save them, then download iBooks or search for other apps that can view and save them.
    iBooks
    https://itunes.apple.com/us/app/ibooks/id364709193?mt=8
    iBooks: Viewing, syncing, saving, and printing PDFs on iPhone, iPad, and iPod touch
    http://support.apple.com/kb/ht4227
    Regards,
    -Norm G.

  • Why can't I download Microsoft Office Home and Student 2007 from my disk?

    I have recently purchased my new Imac and find that I can't download Microsoft Office Home and Student 2007 from my disk?  Why isn't this supported?

    Because it is a Windows version of MS Office. You will need a Mac version, such as listed below.
    http://www.microsoft.com/mac
    Stedman

Maybe you are looking for

  • Comparing Progress analysis data saved in past periods

    Hi forum team, We are using PS in SAP R3 ECC 6.0 system With the intention to reviwe at later stage, we had saved 'Progress Analysis' report data (CNSE5)in 'Other selected version' in past periods i.e.in July, August etc.When we open these reports in

  • Apply preferences for lightroom from time machine backup

    I have a new 27inch iMac. The previous (most recent) TM backup from my previous computer might have had some corrupt files (not related to adobe software). Apple instructed me to only migrate my applications (which I've done) and to then manually dra

  • Stiftfunktion bei Photoshop CC 2014

    Hallo zusammen, ich habe die neue Version von Photoshop CC (2014) installiert. In dieser Version funktioniert mein Stift (Wacom Bamboo) bei allen Funktionen, die einen Schieberegler oder eine Schiebeeinstellfunktion (auf Name klicken und nach rechts

  • BDCPV table in MII

    How MII is accessing BDCPV table and how can we reduce the performance impact on that table Thanks in advance

  • Keyboard keys not working on pavilion

    Hi, my qwerty and uiop keys repeated dont work sometimes and I have to use the online keyboard a lot.  Right now though they are working.  I have tried updating the bios, fn scroll lock, reinstalling the keyboard drivers, a hard reset by taking out t