Error while downloading the PDF file on presentation server

Hi all,
i have converted OTF file into PDF one and then downloading it to the presentation server . But it gives the error as follows
'Access to file denied'    . Can anyone tell me what may be the issue ? Below is my code
DATA: i_lines TYPE tline OCCURS 0 WITH HEADER LINE.
DATA: ws_bin_size TYPE i.
DATA: t_otf  TYPE TABLE OF itcoo,
            ws_filename TYPE string.
  t_otf[] = wa_job_info-otfdata[].
CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
      format        = 'PDF'
      max_linewidth = 132
    IMPORTING
      bin_filesize  = ws_bin_size
    TABLES
      otf           = t_otf
      lines         = i_lines.
  CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
      bin_filesize = ws_bin_size
      filename     = 'C:\ABC.PDF'
      filetype     = 'BIN'
    TABLES
      data_tab     = i_lines.

Hi Sayeed,
      You may not having the permissions to create files in 'C' folder. Change the path and try again.

Similar Messages

  • Error in Downloading the Text file on Application Server

    Hi All,
              I am working on ECC6.0. I have written a program in whcih I am downloading the text file on
              application server in UTF-8 format. However when I am opening this file in Excel I am getting
              garbage value for some characters(as Excel does not support UTF-8 format). So now I
              want to download the data on application server in text file in non unicode format(Like ANSI or
              other non unicode format) which is supported by excel. When I am writing the code as
              OPEN DATASET DN_FILE FOR OUTPUT IN LEGACY TEXT MODE it is giving me dump saying
              CHARACTER CONVERSION FROM CODE PAGE '4102' to CODEPAGE '1100' NOT POSSIBLE.
              Same in case if I add the code OPEN DATASET DN_FILE FOR OUTPUT IN LEGACY TEXT
              MODE CODE PAGE '8000' is also giving dump.
              So please let me know how can I download the file in non unicode format ?
              Any help would be greatly appricated.
    Thanks & Regards
    Jitendra Gujarathi.

    OPEN DATASET l_filename FOR INPUT IN TEXT MODE  ENCODING NON-UNICODE IGNORING CONVERSION ERRORS.
    CHECK sy-subrc EQ 0.
      DO.
        CLEAR wa_file_content.
        READ DATASET l_filename INTO wa_file_content.
        IF sy-subrc EQ 0.
          APPEND wa_file_content TO it_file_content.
        ELSE.
          EXIT.
        ENDIF.
      ENDDO.
      CLOSE  DATASET l_filename.
      t_filedata[] = it_file_content[].
    can you use like this.

  • WebInterface Server - Error while opening the PDF file

    Hello,
    We are using webinterface to display the MSDS genearated.
    Our customers use the link provided to them for displaying the msds.
    We imported a few MSDS ( CG36 ), which are in PDF format & displayed successfully on the webinterface server.
    However the newly generated MSDS ( Create Report ) from SAP EH&S system are not getting displayed on the webinterface server. We are getting following error message:
    Error reading resulitng document from filesystem. Class:
    COM.td.ehswww.results.EhsDocument.
    Method:getResolvedDocument().This error could have been caused by a misconfigured filter.ini.
    We checked and found that the filter.ini file is same on both quality & production system.
    We are able to generate & display the report successfully on quality webinterface server.
    Problem only appears on the production webinterface server.
    We also tried to search for the SAP notes on this issue.
    But we could not find out any relevant note for our issue.
    Any help in this regarding is highly appreciated.
    Thanks & Regards,
    Aarohi

    Hello Sebastian,
    Thank you very much for your help.
    We checked on both quality & production webinterface server.
    The Tomcat service is not executed with any specific user.
    The system is working fine on quality , we are getting errors only on the production.
    We also identified a strange behavior on the production web interface server.
    We are able to see files under following menu path:
    There are error files getting generated.
    I guess these error files are getting generated while converting the rtf file to pdf file.
    The resultant PDF file is not getting generated and hence system is giving the error on the webpage.
    Can you guide us as to why these error files are getting generated .? What can be the root cause of this issue.? and How to prevent this.?
    Again thanks a lot for your help.
    Best Regards,
    Aarohi

  • Unix script error while mail the pdf file.

    Hi all,
    I want to do a mail in pdf format via a unix script. for that i used the following query:
    # Verplichte variabelen
    inputname="dago130r.rdf"
    outputname="$DATOUT/dago130rDC.pdf"
    mailto="$MAIL_INKOOP_DC"
    subject="Opgeloste PV's per Category Manager"
    params="p_datum_1='08-08-2006' p_ind_dc_of_rz='D'"
    # Opgeloste PV's per Category Manager
    # Start script.
    # Vanaf hier hoeft in principe niets gewijzigd te worden.
    mymail () {
         local tmp=$DATTMP/$$.txt
         cat "$mailbody" > $tmp 2>/dev/null
         do_unix "uuencode $outputname $(basename $outputname) >> $tmp"
         check_success
         do_unix "mailx -s '$subject' -c '$mailcc' -r '$replyto' '$mailto' < $tmp"
         check_success
    header
    perform "$inputname R DESFORMAT=PDF DESTYPE=FILE DESNAME=$outputname $params"
    check_success exit
    mymail
    footer
    exit_check "$total_success"
    When i execute this query it will make the pdf file in the output folder as well as in the tmp folder as a text file. but after that it will give me error in the log file as follows.:
    09/08/06-11:13:19 [  25178] -- perform: Successful completion of dago130r.rdf R DESFORMAT=PDF DESTYPE=FILE DESNAME=/appl/tst/ah01/dago/dat/out/dago130rDC.pdf p_datum_1='08-08-2006' p_ind_dc_of_rz='D'
    09/08/06-11:13:19 [  25178] -- do_unix: Successful completion of uuencode /appl/tst/ah01/dago/dat/out/dago130rDC.pdf dago130rDC.pdf >> /appl/tst/ah01/dago/dat/tmp/25178.txt
    [  25178] ,/appl/tst/ah01/dago/dat/tmp/25178.txt,: No such file or directory
    [  25178] "/appl/tst/ah01/dago/home/dead.letter" 1/1
    [  25178]
    09/08/06-11:13:19 [  25178] -- ERROR do_unix: mailx -s 'Opgeloste PV's per Category Manager' -c '' -r '' '[email protected]' < /appl/tst/ah01/dago/dat/tmp/25178.txt returned 1
    09/08/06-11:13:19 [  25178] --
    I am not getting why this script not taking the file from the tmp folder and why this error comes??
    please help me to go out of this problem.

    Hi Bhavik,
    Please can you tell how you are executing this script. ?
    ./scritpname or sh scriptname
    Can you try the script removing local while declaring the tmp variable ?
    naghu

  • Error while downloading the xml file

    i am having a internal table which contains data in xml format but i am unable to download the data into local system by using 'GUI_DOWNLOAD' fn. module
    its error its showing is as :
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    A name contained an invalid character. Error processing resource 'file:///D:/XX.XML'. Line 4, Position 4
    MOD/><RPTSX/><MANDT/><SYPSY/><SYSID/><SAPRL/></T682><T682><KVEWE>A</KV...

    hello Durairaj,
    i am fwd the code go thru it and check why the xml file is not downloading,
    and after downloading the file i want that file to be in displayed in  .pdf.
    REPORT  ZCCSV_TO_XML.
    DATA : BEGIN OF TABLE OCCURS 0,
            TABNAME(15) TYPE C,
           END OF TABLE.
    DATA : BEGIN OF HEADER_NAMTAB OCCURS 0,
            NAMTAB TYPE STRING,
           END OF HEADER_NAMTAB.
    DATA : BEGIN OF CONVERT_ITAB_TO_XML OCCURS 0,
            FIELDNAME(255) TYPE C,
           END OF CONVERT_ITAB_TO_XML .
    DATA : BEGIN OF CONVERT_XML_TO_ITAB OCCURS 0,
            FIELDNAME(255) TYPE C,
           END OF CONVERT_XML_TO_ITAB.
    DATA DREF TYPE REF TO DATA.
    DATA TNAME LIKE DD02L-TABNAME.
    DATA BEGIN OF ZDFIES OCCURS 0.
            INCLUDE STRUCTURE DFIES.
    DATA END OF ZDFIES.
    DATA: xml_out TYPE string .
    DATA: xml_TO_ITAB TYPE string .
    data : wa_indx type indx.
    DATA : DETAIL(30).
    DATA : DATA1 TYPE STRING.
    DATA : COMMA . "VALUE ','.
    DATA : DBTAB1(15) TYPE C.
    FIELD-SYMBOLS: <ITAB> TYPE ANY TABLE,
                   <WA>    TYPE ANY,
                    <WA1> TYPE ANY .
    SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME,
                       SKIP 1.
    PARAMETERS : SPOOL    RADIOBUTTON GROUP rad1 DEFAULT 'X',
                 CSV      RADIOBUTTON GROUP rad1 ,
                 XMLTOPDF RADIOBUTTON GROUP rad1.
    SELECTION-SCREEN : SKIP 1,
                       END OF BLOCK b1.
        TABLE-TABNAME = 'T681'.
        APPEND TABLE.
        TABLE-TABNAME = 'T682'.
        APPEND TABLE.
      IF SPOOL = 'X'.
       PERFORM SPOOL.
      ELSEIF CSV = 'X'.
        PERFORM CSV.
      ELSEIF XMLTOPDF = 'X'.
        PERFORM XMLTOPDF.
      ENDIF.
    *&      Form  CSV
    form CSV .
    LOOP AT TABLE.
      dbtab1 = TABLE-TABNAME.
      TNAME = dbtab1.
      PERFORM GETFIELDS.
      LOOP AT HEADER_NAMTAB.
       WRITE: HEADER_NAMTAB-NAMTAB, COMMA.
      ENDLOOP.
      PERFORM GET_DETAIL_LIST.
    ENDLOOP.
    endform.                    " CSV
    form XMLTOPDF .
    LOOP AT TABLE.
      PERFORM GET_DETAIL_LIST.
    ENDLOOP.
    endform.                    " XMLTOPDF
    GETTING THE HEADER OF THE TABLE                                     *
    FORM GETFIELDS.
      REFRESH HEADER_NAMTAB.
      CALL FUNCTION 'GET_FIELDTAB'
       EXPORTING
           LANGU              = SY-LANGU
           ONLY               = SPACE
           TABNAME            = TNAME
           WITHTEXT           = 'X'
       TABLES
           FIELDTAB           = ZDFIES
       EXCEPTIONS
           INTERNAL_ERROR      = 01
           NO_TEXTS_FOUND      = 02
           TABLE_HAS_NO_FIELDS = 03
           TABLE_NOT_ACTIV     = 04.
      CASE SY-SUBRC.
        WHEN 0.
          LOOP AT ZDFIES.
            HEADER_NAMTAB-NAMTAB = ZDFIES-SCRTEXT_M.
            APPEND HEADER_NAMTAB.
          ENDLOOP.
        WHEN OTHERS.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
           WITH  SY-SUBRC.
      ENDCASE.
    ENDFORM.                  " GETFIELEDS
    *&      Form  GET_DETAIL_LIST
    form GET_DETAIL_LIST .
      CREATE DATA DREF TYPE STANDARD TABLE OF (TABLE)
                                WITH NON-UNIQUE DEFAULT KEY.
      ASSIGN DREF->* TO <ITAB> .
      SELECT * FROM (TABLE) INTO TABLE <ITAB>.
      CALL TRANSFORMATION ('ID')
      SOURCE tab = <ITAB>[]
      RESULT XML xml_out.
    Convert to TABLE
    CALL FUNCTION 'HR_EFI_CONVERT_STRING_TO_TABLE'
    EXPORTING
    i_string = xml_out
    i_tabline_length = 100
    TABLES
    et_table = CONVERT_ITAB_TO_XML.
    Download
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    filetype = 'ASC'
    filename = 'D:\XX.XML'
    TABLES
    data_tab = CONVERT_ITAB_TO_XML
    endform.

  • Error while downloading the stack file

    Hi,
    I'm in the process of upgrading my EhP4 system to EhP5.
    While trying to generate the file via MOPZ, I just can't seem to "Continue" with the Enhancement package installation option.
    The error's as follows:
    "Successor installed for SAP SNC 2007."--Check SMSY. (SMSY is perfectly reflecting whatever's installed on the ECC system.)
    I just can't figure out where SNC has cm in from.
    I do have the component ECC-SE on 604...does this have anything to do with it?
    Pls. help..
    Thank You,
    Saba.

    Hi Saba,
    I've had the same problem as you building the stack file for an EHP5 upgrade and have CPRXRPM version 400 installed. I used you idea of adding SAP SNC 7.0 as an installed product under the ERP system which enabled be to continue the mopz config and build a stack file.
    Now when attempting the upgrade I get :-
    "The Installation/Upgrade Package for Add-on SCMSNC rel. 700 is not available"
    This is not that surprising I guess as its not installed.
    Did you also come across this, if so were you able to bypass this?
    Thanks
    Warren

  • Error While downloading the file A server Error has occurred, please try again later Downloading Yahoo mail Application Attachments  Trying to download My Photos and movie 3 items so i can delete them all

    I have icloud and a new iPhone5 ! They work good , took pictures and a few short movies, plugged in my phone to my iMac transfered Items to iPhoto then inported items to iMovie. when getting to know what i was doing i decided to delete pictures and movies i no longer wanted. when i looked for a few missing items i opend Finder and there some where buyt i had already trashed them and deleted the doubles. Still could not find missing pictures and movies 3 items and today after calling yahoo about a different complant with sending feed back for Yahoo mail Applications login . i opened up Attachments Not the Large Attachments just Attachments and there were the 3 items i had been hunting for to Trash and delete. the mail Attachments file does not have the Option to delet Files and photos and movies. When i tried to Download the 3 items a window shows up that says Error While Downloading the Files, A Server Error has occured, please Try Again later. nothing works how do i remove the Trapped photo and movie Blank Files and trash them?  Onece they get into my downloads i can do something with them as i understand.    That part of it kind of keeps me in Question also because why should i have to down load my own files of Attachments / Pictures and movies if they are comming from my iMac?    How much better is iLife11 then iPhoto08 and iMovie08 .  Thanks Greg

    Hello,
    Thank you for your post.
    This is a quick note to let you know that we are performing research on this issue.
    If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Simon Wu
    TechNet Community Support

  • Urgent: Error while uploading into pdf file

    Hi ,
    I got a requirement that converting smartform into pdf file and sending into application server, And uploading the that pdf file into presentation server once a day am geting error when uploading into pdf format from application server .
    Error : There was an  error while tryinging to parse an image.
    Please help me out its urgent.
    Thanks in advance
    Regards
    krishna
    Edited by: krishna rao on Feb 13, 2008 12:05 PM

    U can use this code
    Reward if useful
    REPORT  ZMN_PDF_UPLOAD.
    data: begin of itab occurs 0,
    field(256),
    end of itab.
    data: dsn(100) value '\usr\sap\DEV\DVEBMGS00\work\testpdf',
    length like sy-tabix,
    lengthn like sy-tabix.
    call function 'GUI_UPLOAD'
    exporting
    filename = 'c:\temp\test.pdf'
    filetype = 'BIN'
    importing
    filelength = length
    tables
    data_tab = itab.
    open dataset dsn for output in binary mode.
    loop at itab.
    transfer itab-field to dsn.
    endloop.
    close dataset dsn.
    clear itab.
    refresh itab.
    *To crosscheck if it went well
    open dataset dsn for input in binary mode.
    do.
    read dataset dsn into itab-field.
    if sy-subrc = 0.
    append itab.
    else.
    exit.
    endif.
    enddo.
    call function 'GUI_DOWNLOAD'
    exporting
    filename = 'c:\temp\testn.pdf'
    filetype = 'BIN'
    bin_filesize = length
    importing
    filelength = lengthn
    tables
    data_tab = itab.
    *Or
    *Use the TCode
    *CG3Z or CG3Y
    *for downloading to Application Server.

  • ERROR WHILE GENERATING THE PDF

    HI gurus,
    We are trying to publish BI reports in the Portal server as Iviews.
    In the portal system, when I am clicking the PRINT VERSION button for the
    CO&#61664; cost center (area): Plan/actual: Quarterly iview, it’s giving the PDF file,
    that’s well and good.
    <b>But when if I am doing the same thing for other iviews, for example: say the  iview (CO&#61664;cost center range: Transaction Drill-down).
    I am getting the “ERROR WHILE GENERATING THE PDF”</b>
    The question is : <i>it’s working for some standard iviews and giving error message to other std. iviews.</i>
    Please suggest how to resolve this issue.
    Regards,
    Prasad

    Dear Prasad,
    Did you resolve your problem, I have the similar one:
    I need to print report made in BEx Report Designer and executed on Portal, but when I press Print Version button I am getting next message:
    Error while generating PDF
    Any information is much appreciated
    Thanks in advance and best regards
    Vladimir

  • Getting the NullPointerException,while merging the pdf files.

    I am getting the following exception, while merging the pdf files with PDFDocMerger class.
    [121807_113056749][][EXCEPTION] java.lang.NullPointerException
    at oracle.apps.xdo.template.pdf.PDFWriter.write(PDFWriter.java:62)
    at oracle.apps.xdo.template.pdf.PDFWriter.generate(PDFWriter.java:157)
    at oracle.apps.xdo.common.pdf.util.PDFDocMerger$PDFUtility.writeOutput(PDFDocMerger.java:2520)
    at oracle.apps.xdo.common.pdf.util.PDFDocMerger.mergeDocs(PDFDocMerger.java:537)
    at oracle.apps.xdo.common.pdf.util.PDFDocMerger.process(PDFDocMerger.java:378)
    This error is coming for few PDF files and those files i was able to open successfully in my machine.
    Could any one help me to resolve this issue?
    Thanks,
    Indira

    One of the merged PDF was edited by using the "Adobe Lifecycle Assembler" tool and i was able to open that file successfully in my machine.
    Is bi publisher API compatible with such files?
    It would be great, if any one can throw some light on this issue.
    Thanks,
    Indira

  • Error while loading the WSLD file

    Hi all
    I am trying to consume a Webservice. When i try to create the Model out of the WSDL file, it says "Error while loading the WSDL file".
    Its an XI webservice, so i cannot view it from Webservice navigator.
    How could i find out that, the problem is with the Webservice or i am missing any thing
    Kindly help
    regards
    Deepu

    Hi
    I checked the log and i am getting the following exceptions
    1.DynamicProxy.TempDir=C:\DOCUME1\DEEPUM1\LOCALS~1\Temp\, DynamicProxy.INetProxy.Host=}'
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateWsrService(WSModelInfo.java:413)
    Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.WebserviceClientException: GenericServiceFactory initialization problem. Could not load web service model.
    2. Caused by: com.sap.engine.lib.xml.util.NestedException: IO Exception occurred while parsing file:Invalid Response Code: (401) Unauthorized. The requested URL was:"http://Pinnacle:50000/XISOAPAdapter/MessageServlet?channel=:PowerEP_BusService:Out_SOAP_DocViewDownload" -> com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL
    3. java.lang.NullPointerException
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DOperationImpl.initParameters_DocumentStyle(DOperationImpl.java:59)
    Is this any authorization problem
    regards
    Deepu

  • Error while updating the configuration files (MOB20003)

    hi,
    After installing the BI 4.0 server, i am trying to configure mobile using mobile server configuration tool. When i enter all the information for non Blackberry option as i would like to access through ipad, its giving me the error message" Error while updating the configuration files (MOB20003)" Please advise.

    Hi Somesh,
    If i am not wrong, only a war file deployment is needed to make ipad work.
    This happens with URL hitting directly on the Server.
    If you want to configure VAS and VMS servers, let us know what configuration settings have been done.
    Regards,
    Atul

  • SWF error- while generating the flash files.

    Post Author: [email protected]
    CA Forum: Xcelsius and Live Office
    Hi, in the old forum I came across the folowing topic: SWF error- while generating the flash files.
    As I have the same problem, I would like to know the solution / answer / meaning please. What do I have to change in order to let in function properly again.
    Thanks anyone.
    Femke
    (The post is from 3/6/2007)
    The following error is generated upon generating the flash files Any insight???SWF error- while generating the flash files.--ErrorSWF Function Overflow. The generated SWF will not function correctly because data dependencies go beyond SWF limits.--
    OK -

    Post Author: Andres
    CA Forum: Xcelsius and Live Office
    Hello.
    I'm having the same problem. It appeared after I made use of many cells (a table of 10x200 cells) with formulas inside them.
    Before that, while I was making my tests and only used a few cells and the .XLF file was 4Mb, I had no problem. Now that the .XLF file is 8Mb I see this error appearing (in Spanish):
    "Error
    Desbordamiento de la función SWF. El archivo SWF generado no funcionará correctamente ya que las dependencias de datos superan los límites de SWF."
    Any idea of how this could be resolved (appart from using less data)?
    Thanks in advance.

  • Adobe X pro 10.0.0 stop responding while saving the pdf file as word

    Adobe X pro 10.0.0 stop responding while saving the pdf file as word, i chose file>save as>microsoft word>Word Document.
    I tried to install on the X pro on another machine and tried to convert also the same issue.
    Any help? please advice

    I suggest you bring Acrobat up to 10.1.2 by appltying the most recent maintenance.
    Ken Friedman

  • Error while downloading the DNL_CUST_PROD1

    Dear Experts
    I am establishing middleware connection between CRM 6.0 and ECC 6.0
    I am getting errors while downloading the DNL_CUST_PROD1.
    I am  getting   sysfail in crm inbound queue(smq2) with error saying
    "   Immport of material type into hierarchy YBPCRMPROD  not possible "
    Could you help me in resolving this error.
    Thanks & Regards
    V.Srinivas

    Hi Arup
    Initially CRM system is a standalone in that we configured the best practises to make it as a BUSINESS ALL IN ONE  while doing this we have defined  hierarchy YBPCRMPROD  in CRM and created products, now we are trying to establish the middleware connectivity between CRM and the ECC while doing this i am getting above error.
    When i check the Hierarchy in CRM with the tcode COMM_HIERARCHY  i am able to see the following
    1)R3MATCLASS        MATERIAL GROUP
    2)R3PRODHIER          PRODUCT HIERARCHY
    3)YBPCRMPROD        BEST PRACTISES PRODUCT HIERARCHY
    When i am trying to see assigned heirarchies to the apllication i am able to  see the following using the tcode COMM_PRAPPLCAT
    application                       HIERARCHY
    sales                               R3PRODHIER
    purchasing                     R3MATCLASS
    product                           YBPCRMPROD
    internet customer           YBPCRMPROD
    When i press f4 on the hierarchiesid i am able to see the following.
    1)R3MATCLASS        MATERIAL GROUP
    2)R3PRODHIER          PRODUCT HIERARCHY
    3)YBPCRMPROD       BEST PRACTISES PRODUCT HIERARCHY
    I  know that we can delete the  hierarchy in the CRM  by running  a program which deletes hierarchies in the crm ,  but  we canu2019t delete the hierarchy which is created in the CRM system without deleting the hierarchy how  can i resolve this issue.
    please help me in resolving this issue.
    Thanks & Regards
    V.Srinivas

Maybe you are looking for