Getting "SYSTEM ERROR" while generating a PDF in a Workflow method.

Dear All,
I'm getting a "SYSTEM ERROR" when I'm calling the below function module in a Workflow BO Method.
CALL FUNCTION wa_funcnm
   EXPORTING
     /1bcdwb/docparams  = fp_docparams
     invoice                     = invoice
   IMPORTING
     /1bcdwb/formoutput = fp_formoutput
   EXCEPTIONS
     usage_error        = 1
     system_error       = 2
     internal_error     = 3
     OTHERS             = 4.
The aim is to generate the PDF and store it in DMS. Please let me know, if I'm going wrong somewhere. Any kind of inputs would be sincerely appreciated.
Regards,
Tushar.

Hi Tushar
You need to the following parameters when calling FM. Background WF process cannot handle dailog.
fp_outputparams-nodialog = 'X'.
fp_outputparams-getpdf   = 'X'.
Refer to Thread below
Creating Attachments to Work Items or to User Decisions in Workflows
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
    EXPORTING
i_name     = l_formname
    IMPORTING
e_funcname = l_fm_name.
*   E_INTERFACE_TYPE           =
fp_outputparams-nodialog = 'X'.
fp_outputparams-getpdf   = 'X'.
  CALL FUNCTION 'FP_JOB_OPEN'
    CHANGING
ie_outputparams = fp_outputparams
EXCEPTIONS
cancel          = 1
usage_error     = 2
      system_error    = 3
internal_error  = 4
OTHERS          = 5.
  IF sy-subrc <> 0.
    CASE sy-subrc.
      WHEN OTHERS.
ENDCASE. " CASE sy-subrc
  ENDIF.
fp_docparams-langu = 'X'.
fp_docparams-country = 'US'.
  fp_docparams-fillable = 'X'.
  CALL FUNCTION l_fm_name
    EXPORTING
/1bcdwb/docparams  = fp_docparams
emp_info           = fs_per_info
    IMPORTING
/1BCDWB/FORMOUTPUT = FP_FORMOUTPUT
EXCEPTIONS
usage_error        = 1
      system_error       = 2
internal_error     = 3
OTHERS             = 4.
  IF sy-subrc <> 0.
    CASE sy-subrc.
      WHEN OTHERS.
ENDCASE. " CASE sy-subrc
  ENDIF.                               " IF sy-subrc <> 0
  CALL FUNCTION 'FP_JOB_CLOSE'
*   IMPORTING
* E_RESULT             = result
   EXCEPTIONS
usage_error          = 1
system_error         = 2
internal_error       = 3
OTHERS               = 4
  IF sy-subrc <> 0.
    CASE sy-subrc.
      WHEN OTHERS.
ENDCASE. " CASE sy-subrc
  ENDIF.                               " IF sy-subrc <> 0.
ENDFORM.                    " GET_FUNCTION_MODULE
*& Form  CONVERT_PDF_BINARY
FORM CONVERT_PDF_BINARY .
  CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
    EXPORTING
BUFFER                = FP_FORMOUTPUT-pdf
*   APPEND_TO_TABLE       = ' '
* IMPORTING
* OUTPUT_LENGTH         =
    TABLES
BINARY_TAB            = t_att_content_hex .
ENDFORM.                    " CONVERT_PDF_BINARY
Regards
Sandy

Similar Messages

  • 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 error in Portal "Error while generating the PDF" for BI Report

    Hi Experts,
    we are gettign the error while trying to generate the PDF file from the Reports.
    Earlier it was working fine Adobe Reader 8 , currently we have upgrated Adobe Reader 9 in our system.
    After this upggradation browser "*Failed to open PDF in Browser"*
    Could you please suggest me how to diagnostic the error. Do we need to configre something in the Portal or in the Backend BI system for this.
    Please suggest me the needful on this?
    thanks
    Narpal

    Hello,
    i am facing the same problem and found help by 925741:
    "Error while generating PDF"
    There is no more information available when clicking on the error.
    Used Software:
    Adobe 8
    SAP_ABA             700       0018      SAPKA70018     Cross-Application Component
    SAP_BASIS           700       0018      SAPKB70018     SAP Basis Component
    SAP_BW     700       0020     SAPKW70020     SAP NetWeaver BI 7.0
    PI_BASIS       2005_1_70 0018      SAPKIPYJ7I       PI_BASIS 2005_1_700   
    BI_CONT     703     0013     SAPKIBIIQ3     Business Intelligence Content
    Any other ideas?
    Thanks,
    Rainer
    Edited by: Rainer SIGG on Mar 9, 2009 4:41 PM
    Edited by: Rainer SIGG on Mar 9, 2009 5:27 PM
    Edited by: Rainer SIGG on Mar 9, 2009 5:42 PM

  • Middleware:-Getting an error while generating objects

    Hi experts,
        While generating objects as part of middleware generation in CRM 5.0 i am getting errors in transaction "GENSTATUS" because of which i am not able to perform my initial load and the error message is "TIME LIMIT EXCEEDED". Also i am getting a short dump for that.
        Is there anything new in CRM 5.0 which needs to be done that was not there in CRM 4.0.
         Can anyone help me on how shall i proceed. 
    Thanks,
    Rahul

    Hi Natarajan,
           The above mentioned note is for an upgrade and not for new installation and even after doing it my problem is not resolved.
           Does anyone know how to remove the error that i am getting in transaction "genstatus".
    Regards,
    Rahul

  • Mail for Exchange E61: getting "system error" whil...

    Hello everybody !
    our company is using MS Exchange 2007.If try try to sync the calender I am getting a "system error".
    Synchronizing the e-mail works fine.If I look in the admin log I see the following error.
    22/04/2007 01:15:49 start Calendar sync
    22/04/2007 01:15:51 client->server adds=0 changes=0 deletes=0 fails=0
    22/04/2007 01:15:51 server->client adds=0 changes=0 deletes=0 fails=0
    22/04/2007 01:15:57 sync died (3), collection=Calendar activity=encoding sync command
    sync died due error 3.Does someone know what err 3 means ? It would be very kind of you if someone interprets this log or is someone experiencing the same problem with MS Exchange 2007.
    I did not have this problem with MS Exchange 2003.
    All help would be greatly appreciated !
    Kind regards,
    Kuskaya

    Hi,
    updated the firmware.It works fine after firmware update.Exchange 2007 requeries the latest firmware.
    Regards,
    Cengiz Kuskaya

  • Error while generating interactive PDF

    Hi all,
    For the first application i am creating in web dynpro, i thought of creating a interactive form and calling it in web dynpro screen.
    But there's an error...!!
    I have created the adobe form in Adobe LIve Cycle Designer.
    I have placed the UI element InteractiveForms in the layout tab of the view. And in the Template source have given the name of the PDF file. Have also checked the Enabled check box in the properties.
    First when i executed the application it displayed the PDF, but none of the field's where editable or interactive.
    Then after searching some PDF got some code which i put in the WDDOMODIFYVIEW method of the view.
    Now it gives a Dump..!!!
    Kindly suggest if i have missed out on some settings or some more code needs to be written to make the form interactive.
    method WDDOMODIFYVIEW.
    data: LR_INTERACTIVE_FORM type ref to CL_WD_INTERACTIVE_FORM,
    LR_METHOD_HANDLER type ref to IF_WD_IACTIVE_FORM_METHOD_HNDL.
    check first_time = abap_true.
    LR_INTERACTIVE_FORM ?= VIEW->GET_ELEMENT(u2018INTERACTIVE_FORM_1u2019).
    LR_METHOD_HANDLER ?= LR_INTERACTIVE_FORM->_METHOD_HANDLER.
    LR_METHOD_HANDLER->SET_LEGACY_EDITING_ENABLED( abap_true ).
    . endmethod.
    Thanks in advance, all help will be apreciated.

    hi,
    this is the error i get.
    "Access via 'NULL' object reference not possible. "
    I have not entered anything in the PDFSource attibute in the properties.

  • Error while generating pdf     in BI

    Hi,
        When i'm printing a report through my Bex Analysis ,i come with an error saying that  error while generating the pdf    .plz help me
    java.lang.exception:incorect content type found "text/html"

    Try checking the config document <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/37/504b8cbc2848a494facfdc09a359b1/frameset.htm"> here</a> and see if that doesn't help you.
    Cheers,
    Andrew

  • Error while generating Invoice

    Hi All,
    We are getting an error while generating Invoice from VF03. The error is Form of address key is not defined
    What I had done is, I had assigned a new PRINT program in output type ZD00 by removing the old one & in quality we were getting the output but when it went to production, its giving the error "Form of address key is not defined.
    Please help as this help is coming in Production.
    Regards
    Abhii

    Hi,
    Check the address window in the form. Mostly the key combination used to fetch the address may not be  available in the production thats why it is rasie such error.
    Please close the thread,if solved
    Regards,
    Aditya

  • Error while generating the Infoset

    Dear SD Experts,
    I get the Error While Generating the Infoset.
    I am actually trying to write a Query.
    the tables i have inserted are VBAK, VBAP, VBEP, LIKP, LIPS
    below is the List.
    1)Differences in field TEXT_VBAP_CHARG
    2)Differences in field TEXT_VBEP_ETENR
    3)Differences in field TEXT_VBEP_ETENE
    4)Differences in field TEXT_VBEP_PLNUM
    5)Differences in field TEXT_LIPS_CHARG
    6)Differences in field TEXT_LIPS_LGPLA
    Thanks in Advance.
    Regards,
    Santa Khattri.

    Hi ,
    From what you are saying, i am guessing there could be difference in field types used and in dictionary.
    Try this.
    1.Go to SQ02
    2.Change query area (Standard / Global) in Environment --> Query areas depending on where your infoset is.
    3. Select your Infoset.
    4. Goto --> More functions --> Check and generate / consistency check --> Adjust.
    or Try this.
    1. Select your infoset.
    2. Change
    3. Goto --> Global properties --> see if "no automatic text recognition" is checked in options tab.
    If you still having problems, give me more detail on how have you joined tables, have you used any extra fields, or have you done any coding in Infoset, I may be able to help you.
    Thank you.
    Regards,
    Subin John.

  • Error while generating screens in BDT

    Hi All,
    I getting following error while generating screens using t-code BUSP for a CAA2 t-code
    "Client 040 appl.object REWB screen REWB10:Error during subscreen container gener
    Message no. R11520
    Diagnosis
    Errors have occurred during screen generation. The reasons for this could be:
    The maximum length of the screen was exceeded. There may be no more than 199 lines per subscreen container.
    The maximum number of lines for the header-data area was exceeded. There may be no more than 15 lines in the header-data section.
    Procedure
    Check both of these potential sources of errors in the relevant screen, and make the necessary changes.
    Could some body help me in this regards?
    with regards,
    Sumanth

    Hi,
    For a dynpro there are 199 Lines available for screen elements and on the average the restriction of 10 views per section and 10 sections per screen. Just check this.
    Thanks and warm regards,
    Smita.

  • Error In Generating the PDF Form

    Hi,
    When I'm trying to activate the PDF Form, I got a message asying Error while Generating the PDF Form.
    Can we debugg the Form, if yes, can body tell me how to with this process.
    Any pointers would be a great Help.
    ThankQ
    Rohini.

    Hi Om,
    I need to fix this issue and I had taken help from Rohini.
    I will try to explain the issue in detail.
    I am trying to execute Tax Reporter Transaction PU19. Iam executing Quarterly Form 941 for USA for a Tax Company and a Period. This report gives an output Log and the log had generated errors in the log section General errors and Warnings.
    The errors are :
    Errors in generating the PDF Form : HR_F_941 and
    Errors in generating the PDF Form : HR_F_941_SCHED_B
    As we are new to the PDF Forms we don't know why the report has generated and how to find out by debugging or any other way.
    So I need to find out how the above errors can be identified?
    Thanks and Regards,
    Madhan.

  • 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.

  • Application error while generating PDF form

    Hello there,
    I am getting the message "Application error while generating PDF form" and when you hover it has additional information Message Class HREIC_APPL - Message number 258.
    I get this upon doing the following steps:
    1. Enter SAP R3, enter HREIC on the transaction code input.
    2. Enter EIC, Activity Search. Searched for an Activity, selected it and click the "PRINT" button.
    3. After clicking the PRINT button, I get the error message "Application error while generating PDF form".
    Installed this on development box, did the same configuration in test system, but still I get this error. ADS Configuration is working fine and configured fine.
    Is there anything else that is needed to be checked? like Ports, Firewalls, etc?
    Thanks a lot.

    Be sure that the RFC name is "ADS" and not anything else.
    Thanks.

  • An error that "error while generating pdf".

    Hi gurus,
    when i am trying to generate a pdf from phap_admin (appraisal document ) i am getting an error that "error while generating pdf".
    the dump in st22 is
    ERROR ANALYSIS:
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_SY_SEND_DYNPRO_NO_RECEIVER', was
    not caught and
    therefore caused a runtime error.
    The reason for the exception is:
    During background processing, the system attempted to send a
    screen to a user.
    Current screen: " " " ".
    SOURCE CODE:
    screen to enter order-number ***************************************
        IF w_suppress_dialog EQ space.
    set popup to the foreground.
      CALL FUNCTION 'SAPGUI_SET_PROPERTY'
         DESTINATION 'SAPGUI'
        EXPORTING
         property = 'ACTIVATE'
         value    = 'X'
        EXCEPTIONS
         OTHERS   = 1.
          CALL SCREEN 300 STARTING AT  lv_start_column  lv_start_row.
    >>>>    ELSE.
        process the same forms which are processed on screen 0300.
        ATTENTION: Whenever functionality of screen 0300 is extended,
        make sure that necessary calls are also made here!
          PERFORM d0300_read_data.
          PERFORM d0300_comline.
        ENDIF.
        CASE  w_next_action.
          WHEN 'ATTR'.
            PERFORM show_object_attributes     USING wt_e071[].
    CAN ANY ONE HELP TO SOLVE THIS???

    Hi,
    the dump says:
    CALL SCREEN 300 STARTING AT lv_start_column lv_start_row.
    >>>> ELSE.
    This means, the raise of the exception comes from the command before ELSE and this is CALL SCREEN.
    CALL SCREEN is only reachable. if w_suppress_dialog is SPACE. It can't be 'X'.
    You have to find a way to set it to 'X'.
    Regards,
    Klaus

  • "Error while generating pdf" error come when clicking on "Print Version "

    Hello ,
    When we execute Query in the Portal there is a 'Print version' button.
    When you select it, it opens up print dialog and click OK
    It is supposed to send 'pdf' stream to  Web browser client on end user but it is not able to generate the pdf .
    getting ' Error while generating pdf '
    I am working on BI 7.0 .
    The same is running fine in the Q Environment .But in Production we are getting this error .
    Thanks ,
    Rahul

    Hi,
    I think this is an ADS error. This is a reason why pdf's are not working. We had the same issue.
    You can check your installation:
    Usage of SAP NetWeaver BI Diagnostics & Support Desk Tool
    SAP Note Number: [937697|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_bex/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d393337363937%7d]
    Exceptions: Prerequisites for messages in the area BI Java
    SAP Note Number: [1224043 |https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_bex/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d31323234303433%7d]
    Solution in our case was to update the SAPADS package to 7.00 17.1
    Regards
    Andreas

Maybe you are looking for

  • Error in Creating Webservice in JDeveloper 10.1.3 EA

    hi, I'm trying to implement a java webservice using JDev 10.1.3 EA. I just create one simple class with one method returning a string. here is the class code: public class ServiceTest { public ServiceTest() { public String getMessage() { return "hell

  • Copy+paste issues in Flash CC 2014

    Is anyone else having trouble copying and pasting code in Flash CC 2014? I typically work with smaller code blocks and then merge them into a master file, but that requires copy+paste. When I copy, it appears to copy (paste becomes highlighted) but I

  • Shutter count question

    Does anyone in the forum know how I can determine the shutter count I have logged on my T3i? The camera is still going strong without any problems at all (except for a few dead pixels that appear as tiny red spots in some images). I am mostly just cu

  • Exporting i movie

    Having problems with exporting i movie. I had no problems before. I wonder if Maverick which I downloaded recently has anything to do.

  • Convert Ruby HMAC SHA256 code to C# (Windows 8.1 Universal)

    I have the following Ruby code which I'm trying to port to a Windows universal app. Most examples I've found use System.Security.Cryptography which isn't available in the framework. method = "POST" uri = "http://api.somewhere.com/events" data = "my_d