Generate PDF in WebDynpro 4 ABAP

Hi,
I have the problem, that I would generate a PDF from WebDynpro 4 ABAP and show it in the WebDynpro application.
I found the possibility to solve it with the interactive Forms but therefore Adobe Document Service must be installed and the Usage Type BI Java as to be installed on a Web Application Server Java.
My question is:
Is there any  possibility to realize this with Smartforms and integrate it in Webdynpro?
Or is there any other possibility?
Interactive Forms is more than I need. I only want to create and show the document as PDF.
Greetings
Marcus

You can then store the PDF output using the function module GUI_DOWNLOAD, for example, as a local file on your PC.

Similar Messages

  • Uploading PDF into webdynpro for ABAP

    Hello,
    I have a small Webdynpro for ABAP with an Interactive Form. I can fill my fields in this form. Now I downloaded the PDF to my local drive, changed the fields and tried to upload it again. Thats where my problem is:
    I cant upload my changes. I used a File_upload UI Element which is binded to a attribute FORM.FILE type xstring. This attribut I binded to the Interactive_Form element field pdfsources. I implemented a button with an action for my server roundtrip.
    I thought thats it but unfortunetly not. Can anybody tell me what I am missing.
    Thanks in advance.
    regards
    stefan

    Hi Stefan
    Web Dynpro ABAP development recommends that you create a <a href="http://service.sap.com/message">customer message</a> on component BC-WD-ABA.
    Best regards,
    Markus Meisl

  • How to display employee photo in pdf through WebDynpro OR ABAP print Progr?

    hi,
    I have uploaded employee photos using TCODE OAOH. Now all the employee photos are stored in Archive link.
    Now my requirement is i have get the employee photo and display it in PDF using PDF forms and  webdynpro OR using ABAP print program.
    I am able to get the employee photo from SAP archive link using ABAP code. After this i have to upload this to MIME reository. From MIME repository i have to display it in PDF forms from WEbDynpro.
    I tried with ABAP print program, directly calling the PDF form in program and display the employee data with Employee Photo. With my program i am able to see only employee data. But it's not displaying employee Photo.
    Plz any helps to display employee photo in PDF forms using either webdynpro OR ABAP printprogram.
    If ur reply is related to WebDynpro, pla tel me how to upload photo to MIME repository From Archive Link.
    Since all the employee photos are uploaded into Archive link using Tcode OAOH. From this i have to get the employee photo and upload it to MIME repository and i have to display it in PDF forms.
    Any help are appreciated.......
    Regards,
    Shankar.

    Hi Sankar,
    1)You can use the program BSP_UPDATE_MIMEREPOS to upload the photos in the mime repository.
    2)Use the following code to get the content from your mime and set the content to your interactive UI element as Xstring format.
        data:
        mime_repository type ref to if_mr_api,
        content type xstring,
        url type string value '/SAP/BC/BSP/SAP/myBSPapplication/rajkumar.jpg'  .
      mime_repository = cl_mime_repository_api=>get_api( ).
      call method mime_repository->get
        exporting
          i_url     = url
        importing
          e_content = content.
      wd_context->set_attribute( name = 'DATAS' value = content ).
    Thanks,
    Rajkumar.S

  • Exception generating PDF from WebDynpro JAVA !

    Hello All,
    Here is the exception i get when I run the web dynpro java application containing a Interactive Form UI Element,
    Root Cause
    The initial exception that caused the request to fail, was:
    com.sap.tc.webdynpro.services.exceptions.PDFDocumentCreationException: ../../local/UserSecurityReport/SecurityReportApp/
    ~wd_key263_1253038329968/Error+PDF.pdf?sap-wd-download=1&sap-wd-dl_behaviour=1&sap-wd-
    cltwndid=47e8d590a22311decf4700144f9a7086&sap-wd-appwndid=47e8d591a22311decc9900144f9a7086&sap-wd-norefresh=X
        at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:406)
        at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.afterApplicationModification(ClientApplication.java:1132)
        at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.afterApplicationModification(ClientComponent.java:895)
    Detailed Error
    com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: Failed to  GENERATEPDF
         at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:419)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.afterApplicationModification(ClientApplication.java:1132)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.afterApplicationModification(ClientComponent.java:895)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doRespond(WindowPhaseModel.java:573)
    Appreciate any help.
    Thanks
    Sandip Agarwalla

    Change the mode to updateDatainPdf and verify. Also check with BASIS folks if they have installed Reader Rights credential for using Interactive forms.
    Chintan

  • Reg displaying Invoice as PDF on Webdynpro for ABAP

    Hi All,
            I have to display Invoice as PDF. I'm trying to see the output of the smart-form being used through Transaction VF03 and then using that through Transaction zfacinv checked the output. But, my problem is that I'm unable to check which Smartform is being used therein.
            Please guide me to find the name of the Smartform being used.
    Thanks!
    Kumar Sauarv.

    Check the following link:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0de1eb8-0b98-2910-7996-8a3c2fcf6785?quicklink=index&overridelayout=true

  • Offline Interactive PDF Forms Using EMail with WebDynpro for ABAP

    These is a tutorial on implementing Offline Interactive PDF Forms using Email to both send out and receive the form back using WebDynpro for Java.
    Is it possible to implement the same using WebDynpro for ABAP, specifically receiving the forms via email server.
    Regards,
    Mark

    Hi Mark,
    Check this out :
    https://www.sdn.sap.com/irj/sdn/interactiveforms-elearning
    Go to section :
    Send, Receive, and Process Interactive Forms via Email in SAP NetWeaver Application Server ABAP (RIG session 4A)
    and for the ABAP WebDynpro :
    SAP Interactive Forms by Adobe in Web Dynpro for ABAP (Session 3A) .
    I managed to make it work in my internal sytem.
    Goodluck.
    Cheers,
    Danny

  • Generate PDF format from ABAP List using 'RSPO_SR_OPEN'

    Hi All,
    I need some help on the following code. I have 2 cases.
    First case:
    I am using the function Module 'RSPO_SR_OPEN' to create spool from the List Output.
    Once I get the Spool number from Above function Module I will submit it through report RSTXPDF5 to get spool request for PDF data created.
    I will use this spool number in the report RSTXPDFT5 to download it to Local system in PDF format.
    PDF will be generated but I am unable to open the PDF, some conversion error.
    Second Case:
    Instead of using function Module 'RSPO_SR_OPEN' , I will use standard Print button on the application toll bar to generate the spool number and then remaining step follows.
    In this case PDF file is generating as per the requirement.
    Now my question is why system does not work properly when I am using function module 'RSPO_SR_OPEN' .
    I have attached the code for your reference:
    AT USER-COMMAND.
    CASE SY-UCOMM.
    WHEN 'EMAIL'.
    IF SY-LSIND EQ 1.
    Send mail to User ID
    PERFORM SEND_MAIL.
    LEAVE TO LIST-PROCESSING.
    ENDIF.
    WHEN 'MM03'.
    SET PARAMETER ID 'MAT' FIELD I_MARA-MATNR.
    CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
    WHEN 'LIST'.
    data: pdf_spoolid like tsp01-rqident.
    data: gd_spool_nr1(11) type c,
          gd_spool_nr2(10) type c.
    RANGES : R_SPOOL FOR TSP01-RQTITLE.
    Function Module to Create Spool Number
      call function 'RSPO_SR_OPEN'
           exporting
                dest             =  c_device
                LAYOUT           = 'X_65_200'
                copies           = '1'
                doctype          = 'LIST'
           importing
                spoolid          = gd_spool_nr
           exceptions
                operation_failed = 1
                others           = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Report to Generate spool number for PDF convert
    submit RSTXPDF5 with spoolno  = gd_spool_nr
                    with dstdevic = 'LOCL' and return .
    if sy-subrc eq 0.
    gd_spool_nr2 = gd_spool_nr.
    condense gd_spool_nr2 no-gaps.
    concatenate '00000' gd_spool_nr2 '*' into gd_spool_nr1.
    R_SPOOL-LOW     = gd_spool_nr1.
    R_SPOOL-OPTION  = 'CP'.
    R_SPOOL-SIGN     = 'I' .
    APPEND R_SPOOL.
    To select PDF Spool Number from TSP01 based on Title
    select single * from tsp01 where rqtitle IN R_SPOOL.
    if sy-subrc eq 0.
    Report to Download PDF spool to GUI
      submit RSTXPDFT5 with spoolid = tsp01-rqident and return.
    endif.
    endif.
    ENDCASE.
    Thanks & Regards,
    Nagaraj

    Hi,
    Check this code,
    REPORT  Z_CREATE_PDF_ABAPLIST NO STANDARD PAGE HEADING.
    PF-status containing a PDF button in the report Output to generate
    PDF form
    SET PF-STATUS 'Z_PDF'.
    *Table Declarations
    TABLES: MARA, MARC, MAKT.
    Internal Table Declarations
    DATA: BEGIN OF TS_MARA OCCURS 0,
             MATNR LIKE MARA-MATNR,
             MTART LIKE MARA-MTART,
             MATKL LIKE MARA-MATKL,
             LVORM LIKE MARA-LVORM,
             WERKS LIKE MARC-WERKS,
             MAKTX LIKE MAKT-MAKTX,
           END   OF TS_MARA.
    Selection Screen Parameters
    SELECTION-SCREEN BEGIN OF BLOCK B1.
      SELECT-OPTIONS: S_MATNR FOR MARA-MATNR OBLIGATORY,
                      S_WERKS FOR MARC-WERKS OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK B1.
    TOP-OF-PAGE.
    write: 40 'Generating PDF from List Output' color 1 intensified on.
      skip 1.
      write: /1 'Date        :',  SY-DATUM,
             /1 'User ID     :',  SY-UNAME,
             /1(112) SY-ULINE.
    START-OF-SELECTION.
    Perform for Basic Selection
    PERFORM GET_MARA.
    Perform to Display Data
    PERFORM DISPLAY_MARA.
    AT USER-COMMAND.
    User Command to generate PDF Form
      AT USER-COMMAND.
      CASE SY-UCOMM.
        WHEN 'PDF'.
        DATA: L_PARAMS TYPE PRI_PARAMS,
                L_VALID TYPE STRING,
                W_SPOOL_NR LIKE TSP01-RQIDENT.
    TO GET PRINT PARAMETERS
          CALL FUNCTION 'GET_PRINT_PARAMETERS'
            IMPORTING
              OUT_PARAMETERS = L_PARAMS
              VALID          = L_VALID.
          IF SY-SUBRC <> 0.
          ENDIF.
    Internal table for Selection Screen
    DATA: BEGIN OF I_RSPARAMS OCCURS 0.
           INCLUDE STRUCTURE RSPARAMS.
    DATA: END OF I_RSPARAMS.
    Store the current selection screen details
    CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
      EXPORTING
        CURR_REPORT           = SY-REPID
    IMPORTING
      SP                    =
      TABLES
        SELECTION_TABLE       = I_RSPARAMS
    EXCEPTIONS
      NOT_FOUND             = 1
      NO_REPORT             = 2
      OTHERS                = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    SUBMIT TO GET THE SPOOL NUMBER
    SUBMIT Z_CREATE_PDF_ABAPLIST WITH SELECTION-TABLE I_RSPARAMS
                                 TO SAP-SPOOL
                                 SPOOL PARAMETERS L_PARAMS
                                 WITHOUT SPOOL DYNPRO
                                 AND RETURN.
    SELECT THE RECENTLY CREATED SPOOL
          SELECT MAX( RQIDENT ) INTO W_SPOOL_NR FROM TSP01
                                     WHERE RQCLIENT = SY-MANDT
                                     AND   RQOWNER  = SY-UNAME.
    *REPORT TO GENERATE SPOOL NUMBER FOR PDF CONVERT
          SUBMIT RSTXPDF5 WITH SPOOLNO  = W_SPOOL_NR
                          WITH DSTDEVIC = 'LOCL' AND RETURN .
          IF SY-SUBRC EQ 0.
            CLEAR W_SPOOL_NR.
    SELECT THE RECENTLY CREATED SPOOL FOR PDF
            SELECT MAX( RQIDENT ) INTO W_SPOOL_NR FROM TSP01
                                       WHERE RQCLIENT = SY-MANDT
                                       AND   RQOWNER  = SY-UNAME.
    *REPORT TO DOWNLOAD PDF SPOOL TO GUI
            SUBMIT RSTXPDFT5 WITH SPOOLID = W_SPOOL_NR
                             AND RETURN.
          ENDIF.
      ENDCASE.
    *&      Form  GET_MARA
          text
    -->  p1        text
    <--  p2        text
    FORM GET_MARA .
    CLEAR  : TS_MARA.
    REFRESH: TS_MARA.
    To select Materials based on Selection Criteria
    SELECT A~MATNR A~MTART A~MATKL A~LVORM B~WERKS INTO CORRESPONDING
                               FIELDS OF TABLE TS_MARA FROM MARA AS A
                               INNER JOIN MARC AS B ON A~MATNR EQ B~MATNR
                               WHERE A~MATNR IN S_MATNR
                               AND   B~WERKS IN S_WERKS.
    LOOP AT TS_MARA.
       SELECT SINGLE * FROM MAKT WHERE MATNR EQ TS_MARA-MATNR
                                 AND   SPRAS EQ SY-LANGU.
       MOVE MAKT-MAKTX TO TS_MARA-MAKTX.
       MODIFY TS_MARA INDEX SY-TABIX.
    ENDLOOP.
    ENDFORM.                    " GET_MARA
    *&      Form  DISPLAY_MARA
          text
    -->  p1        text
    <--  p2        text
    FORM DISPLAY_MARA .
    CLEAR  : TS_MARA.
    WRITE: /1   '|', 2(18)  'Material Number' COLOR 7,
             21  '|', 22(5)  'Plant          ' COLOR 7,
             28  '|', 29(13) 'Material Type  ' COLOR 7,
             42  '|', 43(14) 'Material Group ' COLOR 7,
             57  '|', 58(13) 'Deletion Flag  ' COLOR 7,
             71  '|', 72(40) 'Description    ' COLOR 7,
             112 '|'.
    WRITE: /1(112) SY-ULINE.
    LOOP AT TS_MARA.
      WRITE: /1   '|', 2(18)   TS_MARA-MATNR,
              21  '|', 22(5)   TS_MARA-WERKS,
              28  '|', 29(13)  TS_MARA-MTART,
              42  '|', 43(14)  TS_MARA-MATKL,
              57  '|', 58(13)  TS_MARA-LVORM,
              71  '|', 72(40)  TS_MARA-MAKTX,
              112 '|'.
    WRITE: /1(112) SY-ULINE.
    ENDLOOP.
    ENDFORM.                    " DISPLAY_MARA
    Thanks & Regards,
    Nagaraj Kalbavi

  • Space and URL in table while generating PDF

    Hi Gurus,
    I am generating a PDF document via WebDyenpro ABAP (SE80), I am facing a following problem's
    1. While populating data in a particular record there comes a extra space [or i dont know what] which occupies full page below it causing disturbance in formatting of full PDF.
    AND.....
    2. From the set of records there are some URL's and Text's values of same which needs to be converted to hyperlink.
    Request you all to show some light on same....   
    Regards,
    Ankeet Pujara

    Hi,
    Seems like problem is related to Adobe forms rather than webdynpro, please post the question in appropriate forum
    [SAP Interactive forms by ADOBE|SAP Interactive Forms by Adobe; for a faster response.
    regards
    Manas Dua

  • Mass upload & Download of PDFs in Web Dynpro ABAP

    Hi All,
    Is it possible to download multiple PDF's at one go ? for example if you have a Table UI control where each row has one clickable link that generates a PDF using WebDynpro ABAP Application, we want to enable multiselect property of Table UI and provide Mass Download Button control on click of which all selected rows should generate PDF and then get dowloaded to a specific location on machine (c:/). or if there is any other alternative possible ?similarly for Mass Upload we wish to multi select PDFs and upload them to R/3 at one go ?
    please let me know if such thing is possible ? if yes is it a good option to have ? as we have users who have to upload these PDF one by one and they wish if they could simply select all PDFs at one go and click Mass upload..Note that there are some validation that we perform once we upload PDF before posting PDF data to backend.
    your help & comments would be Highly Appreciated !!
    Thanks
    Asif

    >
    Maged Ishak wrote:
    > Hi Thomas,
    >
    > could you give me an example how can i download multiple objects without multiple prompts with the class CL_ABAP_ZIP. I use a Web Dynpro for ABAP and I have for Example many word file and i want to download all file in one ZIP-File.
    > thanks in advance
    > mishak
    You simply use the CL_ABAP_ZIP class to combine the multiple binary strings of the word files together.
      data izip type ref to cl_abap_zip.
      data zip_xstring type xstring.
      create object izip.
      loop at ifiles assigning <Wa_file>.
      izip->add( name = <wa_file>-filename
                  content = <wa_file>-filecontent ).
      endloop.
      zip_xstring = izip->save( ).

  • What is used for WebDynpro for ABAP?

    hi all friends,,
    what is used for WebDynpro for ABAP?
    Thanks,
    S.Suresh.
    Title was edited by:
            Alvaro Tejada Galindo

    Hi
    Web Dynpro for ABAP - Getting Started
    Web Dynpro for ABAP is SAP’s new standard UI technology for developing user interfaces in the ABAP environment. In the long term Web Dynpro for ABAP will be the successor of the traditional screen (“Dynpro”) based user interface technology which is based on the SAP GUI. Available with NetWeaver 7.0 (2004s) Web Dynpro for ABAP provides the same declarative UI development paradigm as Web Dynpro for Java directly out of the NetWeaver ABAP Application Server. Web Dynpro for ABAP allows the development of user interfaces directly within the ABAP Workbench (SE80) and the Web Dynpro runtime environment is a central part of the ABAP server and can be used in any SAP solution based on NetWeaver 7.0 (2004s) without the need of an additional server installation.
    Web Dynpro for ABAP allows the development of user interfaces in a declarative way by providing a mighty framework which abstracts the rendering technology from the core UI definition tasks. The Web Dynpro developer declares the layout and behavior of the UI without caring about HTML, JavaScript, browser specifics or the HTTP protocol. Instead the focus lies on designing graphically Web Dynpro components based on the Model View Controller model, which enforces a clear separation between the UI layer and the underlying business logic.
    This declarative Web Dynpro programming model enforces the developer to focus on the tasks of
    Designing the layout of the visible views (where should the table be placed, do I need tabs, how should the button look?)
    Declaring the flow and behavior of the application (flow between views, which event is triggered by which button click, etc)
    Defining the data binding (which internal table is displayed in a specific table, etc)
    Implementing the event handlers and controller methods.
    Without making any assumption about the used rendering technology, like which browser should be supported or if the Web Dynpro application will be later displayed in a web browser via HTML at all or in another kind of client with completely different rendering capabilities.
    The Web Dynpro Frameworks provides all important UI features directly out of the box:
    All elements (tables, buttons, trees, dropdown list boxes, etc) necessary for state of the art user interfaces are provided by the Web Dynpro Framework in the form of predefined UI element libraries.
    Complex features and behavior of UI elements.
    Internationalization of the UI. All visible strings in a Web Dynpro ABAP UI are handled by the translation system and are translated in the same translation environment like other ABAP language dependent resources. All texts are displayed automatically at runtime, dependent of the user’s credentials.
    Accessibility features are directly built into the framework and UI elements.
    A unified rendering engine generates at runtime the data which is sent to the specific client application, which is not limited to browsers but includes the NetWeaver Business Client.
    All this is available in the established environment of the ABAP application server and well known capabilities like the transportation and change management system, security environment, test and performance analysis tools or remote debugging can be used like in common ABAP development.
    Learn about the Web Dynpro for ABAP technology with the resources below, and post your related questions and answers to the Web Dynpro forum.
    Web Dynpro for ABAP: Sneak Preview  
    Download, License Key Documentation, and Installation Guide available here.
    Web Dynpro for ABAP: Tutorials for Beginners  
    SAP NetWeaver Product Management provides this set of tutorials for getting started with Web Dynpro for ABAP technology.
    SAP Help Portal: Web Dynpro for ABAP  
    This online SAP documentation goes into detail about Web Dynpro architecture and programming, Web Dynpro for ABAP administration and security, and more.
    Web Dynpro - Not Just for Java Developers Anymore   (PDF 3.8 MB)
    In this SAP Insider article, SAP Product Manager Karl Kessler describes the tools of Web Dynpro for ABAP and uses a simple flight report example to highlight new and updated tools in the familiar ABAP environment.
    Community Contribution: WDA Tutorial I - Getting Started with Web Dynpro for ABAP   (PDF 2.5 MB)
    Software Engineer Rich Heilman provides this step-by-step guide for developing a Web Dynpro for ABAP application.
    Going into Details
    Basic Concepts - Selection vs. LeadSelection  
    In this blog, Thomas Szuecs of the Web Dynpro for ABAP development team shows how selection and LeadSelection works in Web Dynpro for ABAP.
    Web Dynpro for ABAP: Recreate the SE16 Data Browser   (PDF 386 KB)
    In this tutorial, Thomas Jung of SAP NetWeaver Product Management shows how to create a data browser simulator using Web Dynpro for ABAP.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/80aef577-543f-2a10-d19c-d83a565efe37 [original link is broken]
    <b><REMOVED BY MODERATOR></b>
    Message was edited by:
            Alvaro Tejada Galindo

  • Error while generating PDF

    Hello Guru's,
    I have done the ADS configuration setup and checked all configuration settings.It seems everything is working fine but when i select the option  "Print Verison" ( I have executed a query using the query  designer) i am getting above error.
    FYI: Its a BI 700 system and we are at Suport pack10 level (both ABAP+Java). By the way i should let you know that it is a copy of Production.
    Here is the log:
    Error while generating PDF
    com.sap.ip.bi.webapplications.pageexport.PageExportRenderingRootNode PageExport1
    Error while generating PDF
    com.sap.ip.bi.webapplications.pageexport.PageExportRenderingRootNode PageExport#
    Any thoughts as to what the messages above might be pointing me to?I should appreciate your help.
    Thanks,
    Ravi.

    Hello Dezso,
    I have executed the test report FP_TEST_00 and i got a form containing several lines on two pages.I have checked all the configuration checks and got the correct results as mentioned in the ADS document. But when i try to print a query using the query analyzer,i am getting that PDF error. I have no issues with my other BI 700 system.
    Ravi.

  • Error while generating PDF - in Bex Web

    Hi Experts,
    I am currently having the issue that I receive the error "Error while generating PDF" when using the "Print Version" functionality. This problem only occurrs for the Bex Web Query. I know that the ADS service is configured correctly- The webservice test is successful and other applications (Guided Procedures, MSS) also use it successfully.
    Please see below the excerpt from the default trace:
    A message was generated:
    ERROR
    Error while generating PDF
    com.sap.ip.bi.webapplications.pageexport.PageExportRenderingRootNode PageExportRenderingRootNode_0001
    Message: 28
    Stack trace: java.lang.ArrayIndexOutOfBoundsException: 28
    at com.sap.ip.bi.export.xfa.impl.SizeCalculator.getColumnSizes(SizeCalculator.java:178)
    at com.sap.ip.bi.export.impl.ExportController.setSizes(ExportController.java:220)
    at com.sap.ip.bi.export.impl.ExportController.calculateAndSetSizes(ExportController.java:611)
    at com.sap.ip.bi.export.impl.ExportController.doExportPrep(ExportController.java:408)
    at com.sap.ip.bi.export.impl.ExportController.convert(ExportController.java:336)
    at com.sap.ip.bi.export.controller.ExportResult.createExport(ExportResult.java:58)
    at com.sap.ip.bi.webapplications.pageexport.PageExportRenderingRootNode.createPDF(PageExportRenderingRootNode.java:453)
    at com.sap.ip.bi.webapplications.pageexport.PageExportRenderingRootNode.doExport(PageExportRenderingRootNode.java:105)
    at com.sap.ip.bi.webapplications.pageexport.PageExportRenderingRootNode.processRendering(PageExportRenderingRootNode.java:252)
    at com.sap.ip.bi.webapplications.runtime.impl.Page.buildRenderingTree(Page.java:3809)
    at com.sap.ip.bi.webapplications.runtime.impl.Page.processRenderingRootNode(Page.java:3867)
    at com.sap.ip.bi.webapplications.runtime.impl.Page.processRendering(Page.java:3510)
    at com.sap.ip.bi.webapplications.runtime.impl.Page.doProcessRequest(Page.java:3470)
    at com.sap.ip.bi.webapplications.runtime.impl.Page.processRequest(Page.java:2489)
    at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller.doProcessRequest(Controller.java:892)
    at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller.processRequest(Controller.java:813)
    at com.sap.ip.bi.webapplications.runtime.jsp.portal.services.BIRuntimeService.handleRequest(BIRuntimeService.java:456)
    at com.sap.ip.bi.webapplications.runtime.jsp.portal.components.LauncherComponent.doContent(LauncherComponent.java:21)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
    at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
    at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
    at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    If you have any idea or clue it would be greatly appreciated.
    Thanks in advance for every support,
    Jan

    Hi Jan,
    Most possible causes for encountering this issue are:
    Possible cause:
    - The ADS is installed on a plattform, that is currently not supported by SAP for ADS. Please check the avaliablity at: Product Availability Matrix
    - Mixing of different Netweaver releases (NW04 and NW04s) -> This is unfortunatelly not possibble the J2EE engine release has to match with the ABAP stack release in order connect them properly.
    - The ADS SP level does not match the J2EE engine SP level. -> Please update the software components to have the same support package level.
    Hope this helps!!
    Regards,
    Arafat

  • How to print PDF file content from ABAP in background?

    Hi,
    Is it possible to print PDF file content from ABAP in background?
    I have some PDF content which I need to print it, these PDF files are generated outside the SAP.
    Please have you any suggestions?
    Thank you
    Tomas

    <b><u>Solution:</u></b><br>
    <br>
    The target output device must support PDF print, this is only one limitation.<br>
    <br>
    REPORT  z_print_pdf.
    TYPE-POOLS: abap, srmgs.
    PARAMETERS: p_prnds LIKE tsp01-rqdest OBLIGATORY DEFAULT 'LOCL',
                p_fname TYPE file_table-filename OBLIGATORY LOWER CASE,
                p_ncopi TYPE rspocopies OBLIGATORY DEFAULT '1',
                p_immed AS CHECKBOX.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_fname.
      DATA: lv_rc     TYPE i,
            lv_filter TYPE string.
      DATA: lt_files TYPE filetable.
      FIELD-SYMBOLS: <fs_file> LIKE LINE OF lt_files.
      CONCATENATE 'PDF (*.pdf)|*.pdf|' cl_gui_frontend_services=>filetype_all INTO lv_filter.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          file_filter             = lv_filter
        CHANGING
          file_table              = lt_files
          rc                      = lv_rc
        EXCEPTIONS
          OTHERS                  = 1.
      IF sy-subrc NE 0 AND lv_rc EQ 0.
        MESSAGE 'Error' TYPE 'E' DISPLAY LIKE 'S'.
      ENDIF.
      READ TABLE lt_files ASSIGNING <fs_file> INDEX 1.
      IF sy-subrc EQ 0.
        p_fname = <fs_file>-filename.
      ENDIF.
    AT SELECTION-SCREEN.
      DATA: lv_name   TYPE string,
            lv_result TYPE boolean.
      lv_name = p_fname.
      CALL METHOD cl_gui_frontend_services=>file_exist
        EXPORTING
          file                 = lv_name
        RECEIVING
          result               = lv_result
        EXCEPTIONS
          OTHERS               = 1.
      IF sy-subrc NE 0.
        MESSAGE 'Bad file!' TYPE 'E' DISPLAY LIKE 'S'.
      ENDIF.
      IF lv_result NE abap_true.
        MESSAGE 'Bad file!' TYPE 'E' DISPLAY LIKE 'S'.
      ENDIF.
    START-OF-SELECTION.
    END-OF-SELECTION.
      PERFORM process.
    FORM process.
      DATA: lv_name     TYPE string,
            lv_size     TYPE i,
            lv_data     TYPE xstring,
            lv_retcode  TYPE i.
      DATA: lt_file TYPE srmgs_bin_content.
      lv_name = p_fname.
      CALL METHOD cl_gui_frontend_services=>gui_upload
        EXPORTING
          filename                = lv_name
          filetype                = 'BIN'
        IMPORTING
          filelength              = lv_size
        CHANGING
          data_tab                = lt_file
        EXCEPTIONS
          OTHERS                  = 1.
      IF sy-subrc NE 0.
        MESSAGE 'Read file error!' TYPE 'E' DISPLAY LIKE 'S'.
      ENDIF.
      CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
        EXPORTING
          input_length = lv_size
        IMPORTING
          buffer       = lv_data
        TABLES
          binary_tab   = lt_file
        EXCEPTIONS
          failed       = 1
          OTHERS       = 2.
      IF sy-subrc NE 0.
        MESSAGE 'Binary conversion error!' TYPE 'E' DISPLAY LIKE 'S'.
      ENDIF.
      PERFORM print USING p_prnds lv_data CHANGING lv_retcode.
      IF lv_retcode EQ 0.
        WRITE: / 'Print OK' COLOR COL_POSITIVE.
      ELSE.
        WRITE: / 'Print ERROR' COLOR COL_NEGATIVE.
      ENDIF.
    ENDFORM.                    " PROCESS
    FORM print USING    iv_prndst  TYPE rspopname
                        iv_content TYPE xstring
               CHANGING ev_retcode TYPE i.
      DATA: lv_handle    TYPE sy-tabix,
            lv_spoolid   TYPE rspoid,
            lv_partname  TYPE adspart,
            lv_globaldir TYPE text1024,
            lv_dstfile   TYPE text1024,
            lv_filesize  TYPE i,
            lv_pages     TYPE i.
      CLEAR: ev_retcode.
      CALL FUNCTION 'ADS_SR_OPEN'
        EXPORTING
          dest            = iv_prndst
          doctype         = 'ADSP'
          copies          = p_ncopi
          immediate_print = p_immed
          auto_delete     = 'X'
        IMPORTING
          handle          = lv_handle
          spoolid         = lv_spoolid
          partname        = lv_partname
        EXCEPTIONS
          OTHERS          = 1.
      IF sy-subrc NE 0.
        ev_retcode = 4.
        RETURN.
      ENDIF.
      CALL FUNCTION 'ADS_GET_PATH'
        IMPORTING
          ads_path = lv_globaldir.
      CONCATENATE lv_globaldir '/' lv_partname '.pdf' INTO lv_dstfile.
      OPEN DATASET lv_dstfile FOR OUTPUT IN BINARY MODE.
      IF sy-subrc NE 0.
        ev_retcode = 4.
        RETURN.
      ENDIF.
      TRANSFER iv_content TO lv_dstfile.
      IF sy-subrc NE 0.
        ev_retcode = 4.
        RETURN.
      ENDIF.
      CLOSE DATASET lv_dstfile.
      IF sy-subrc NE 0.
        ev_retcode = 4.
        RETURN.
      ENDIF.
      CALL FUNCTION 'ZBAP_RM_PDF_GET_PAGES'
        EXPORTING
          iv_content = iv_content
        IMPORTING
          ev_pages   = lv_pages.
      lv_filesize = XSTRLEN( iv_content ).
      CALL FUNCTION 'ADS_SR_CONFIRM'
        EXPORTING
          handle   = lv_handle
          partname = lv_partname
          size     = lv_filesize
          pages    = lv_pages
          no_pdf   = ' '
        EXCEPTIONS
          OTHERS   = 1.
      IF sy-subrc NE 0.
        ev_retcode = 4.
        RETURN.
      ENDIF.
      CALL FUNCTION 'ADS_SR_CLOSE'
        EXPORTING
          handle = lv_handle
        EXCEPTIONS
          OTHERS = 1.
      IF sy-subrc NE 0.
        ev_retcode = 4.
        RETURN.
      ENDIF.
    ENDFORM.                    " PRINT

  • Error while generating PDF in BI Portal

    <body lang=EN-GB style='tab-interval:36.0pt'>
    <p class=MsoNormal>Since 2 days ago we have on our productive BI Portal an
    error and we <span class=SpellE>can`t</span> find a solution to it. When we try
    to preview any report we get the <span class=SpellE>folowing</span> error: <span
    class=GramE>&quot; Error</span> while generating PDF&quot;. On development <span
    class=GramE>an</span> test is working perfectly but on productive it gets that
    error. We <span class=SpellE>don`t</span> know what happened so please help
    us.&gt;<o:p></o:p></p>
    <p class=MsoNormal><o:p> </o:p></p>
    <p class=MsoNormal>In the log file we receive this message: A message was generated:<o:p></o:p></p>
    <p class=MsoNormal>{<span class=GramE>code</span>} <o:p></o:p></p>
    <p class=MsoNormal>ERROR<o:p></o:p></p>
    <p class=MsoNormal>Error while generating PDF<o:p></o:p></p>
    <p class=MsoNormal>com.sap.ip.bi.webapplications.pageexport.PageExportRenderingRootNode
    PageExportRenderingRootNode_0001<o:p></o:p></p>
    <p class=MsoNormal>Log ID: 001A64E8E1620067000000A8001E50BA00048279748984FA<o:p></o:p></p>
    <p class=MsoNormal>Initial cause<o:p></o:p></p>
    <p class=MsoNormal>Message: Service call exception; nested exception is: <o:p></o:p></p>
    <p class=MsoNormal>com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException:
    Invalid Response Code: (401) Unauthorized. The requested URL
    was:&quot;http://xxx:50000/AdobeDocumentServices/Config?style=document"<o:p></o:p></p>
    <p class=MsoNormal>Stack trace: <span class=SpellE>java.rmi.RemoteException</span>:
    Service call exception; nested exception is: <o:p></o:p></p>
    <p class=MsoNormal>com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException:
    Invalid Response Code: (401) Unauthorized. The requested URL
    was:&quot;http://xxx:50000/AdobeDocumentServices/Config?style=document"<o:p></o:p></p>
    <p class=MsoNormal><span class=GramE>at</span> <span class=SpellE>com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData</span>(ConfigBindingStub.java:84)<o:p></o:p></p>
    <p class=MsoNormal><span class=GramE>at</span> com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)<o:p></o:p></p>
    <p class=MsoNormal>Caused by:
    com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException:
    Invalid Response Code: (401) Unauthorized. The requested URL
    was:&quot;http://xxx:50000/AdobeDocumentServices/Config?style=document"<o:p></o:p></p>
    <p class=MsoNormal><span class=GramE>at</span>
    com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.handleResponseMessage(MimeHttpBinding.java:986)<o:p></o:p></p>
    <p class=MsoNormal><span class=GramE>at</span>
    com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1438)<o:p></o:p></p>
    <p class=MsoNormal><span class=GramE>at</span> <span class=SpellE>com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData</span>(ConfigBindingStub.java:77)<o:p></o:p></p>
    <p class=MsoNormal>... 57 more<o:p></o:p></p>
    <p class=MsoNormal>{<span class=GramE>code</span>} <o:p></o:p></p>
    <p class=MsoNormal>----
    <o:p></o:p></p>
    <p class=MsoNormal>Message: Unknown Error<o:p></o:p></p>
    <p class=MsoNormal>Stack trace: <span class=SpellE>com.sap.ip.bi.base.exception.BIBaseRuntimeException</span>:
    Unknown Error<o:p></o:p></p>
    <p class=MsoNormal><span class=GramE>at</span> <span class=SpellE>com.sap.ip.bi.export.xfa.impl.Document.writeWidthsAsXmlToStream</span>(Document.java:339<o:p></o:p></p>
    <p class=MsoNormal>----
    <o:p></o:p></p>
    <p class=MsoNormal><span class=GramE>at</span> <span class=SpellE>com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData</span>(ConfigBindingStub.java:77)<o:p></o:p></p>
    <p class=MsoNormal>... 57 more<o:p></o:p></p>
    <p class=MsoNormal><o:p> </o:p></p>
    <p class=MsoNormal><span class=SpellE>com.sap.ip.bi.base.exception.BIBaseRuntimeException</span>
    UNKNOWN_ERROR<o:p></o:p></p>
    I only cutted the right messages Does anybody have some idea? Where i am unathorized? What shell i do?
    Thanks in advance
    Patrick
    </div>
    </body>

    check if you have adobe document services installed properly. ASk your portal admin team to check these messages,

  • How to generate PDF copy of invoice list

    Hi All,
    I need a favor from you in helping to generate a PDF copy to invoice list .
    I observed that  spool is not generated for this print output of invoice list but output successfully triggered.
    we have z report (zretrieval ) to generated the PDF  but it's not allowed to generate PDF.
    I tried alternative method by saving the print preview but I can able to save only that particular page.
    our business looking for all invoice list pages in single pdf  so please guide me to proceed further.
    Regards
    Srinivasa Reddy

    I presume your issue is output triggered but PDF file is not generating if the invoice list goes for multiple pages.  If this is correct, then you need to talk to your ABAPer as they only, have to check the  smartform being used for invoice list.
    G. Lakshmipathi

Maybe you are looking for

  • Having trouble with DV NTSC export file for Pro Tools.

    Pro Tools only takes NTSC format video. For some reason every single DV NTSC file that has been exported freezes in a certain spot and in other portions tends to flicker. I'm not so sure as to why that is. I tried exporting it through the QuickTime M

  • Problem upload too large file in a Content Area ORA-1401

    Hi All I have a customer who is trying to upload a file with a too large name in a content area. If the filename is 80 characters, it works fine. But if the filename is upper or 80 characters the following error ocurred: ORA-01401: inserted value too

  • Batch File Problem????????????

    Dear All, I have created a batch file which will Export the Logical Oracle dump everyday of the week in their respective days folder eg. SUN, MON, TUE etc..... are the folders Now i am planning to put something like after taking Wednesdays backup the

  • How to Photoshop Elements 5 catalog transfer to Bridge

    I recently switched from a pc to a mac. I have an extensive PSE catalog. How do I transfer the tag information into bridge, which is included in PSE 6 for the mac? Carol

  • How to fill tables of VFBS transaction code?

    Hi all, we have modified standard status U of program SAPMV45B in order to have a new button to show an ALV. But when we press 'back' button of the ALV it doesn't work properly and it doesn't return to the corresponding transaction where we were (VA0