Error when print PDF-Based form by code

Hi all,
I run debug my following code and i got a error : "Job already started" in step 3.
Pls help to solve the problem, thanks alot
My code:
Step1:
  CALL FUNCTION 'FP_JOB_OPEN'
    CHANGING
      IE_OUTPUTPARAMS       = FP_OUTPUTPARAMS
    EXCEPTIONS
      CANCEL                = 1
      USAGE_ERROR           = 2
      SYSTEM_ERROR          = 3
      INTERNAL_ERROR        = 4
      OTHERS                = 5.
Step2:
Get the name of the generated function module
  CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
    EXPORTING
      I_NAME                     = u2018<form name>u2019
    IMPORTING
      E_FUNCNAME                 = FM_NAME.
Step3:
Language and country setting (here US as an example)
fp_docparams-langu   = 'E'.
fp_docparams-country = 'US'.
Call the generated function module
  CALL FUNCTION FM_NAME
    EXPORTING
      /1BCDWB/DOCPARAMS        = FP_DOCPARAMS
  IMPORTING
    /1BCDWB/FORMOUTPUT       =
    EXCEPTIONS
      USAGE_ERROR              = 1
      SYSTEM_ERROR             = 2
      INTERNAL_ERROR           = 3.
Step4:
Close the spool job
  CALL FUNCTION 'FP_JOB_CLOSE'
  IMPORTING
    E_RESULT             =
    EXCEPTIONS
      USAGE_ERROR          = 1
      SYSTEM_ERROR         = 2
      INTERNAL_ERROR       = 3
      OTHERS               = 4.
  IF SY-SUBRC <> 0.
            <error handling>
  ENDIF.

Problem is solved. Just change ProgramID in code.

Similar Messages

  • Error in printing pdf based forms

    Hi friends,
    Error in printing pdf based forms
    When we are trying to print pdf based forms.we get below error
    Cannot find PDL type for output device frontend printer
    Call contained error(s): ADS(2)
    Message No: FPRUNX003
    Thanks in advance.
    Please help

    Hi,
    launch following in INTERNET explorer.
    http://sapjavahost:50<instance_nr>0
    where sapjavahost = hostname of you SAP java stack host
             <instance_nr> = instance number of Java system
    this open sap j2ee engine start page.
    click on system information, login with administrator user and password
    under Software Components  you will find version and patch level.
    regards,
    kaushal

  • Error in generating PDF Based form - SUI Report

    Hi,
    We are running Quarterly reports for Unemployment reporting at USA using tax reporter.
    We are not able to see the complete spool output for the Wage Type Listings but only just 1 page. In the tax reporter log we get the error "Error in generating PDF Based form HR_F_WLIST_CA" for respective states.
    Any idea how to resolve this.
    We are on ERP 6.04.
    Thanks,

    Hi,
    I think its  Basis problem.Ask basis gyus to repair the connection and try again.
    Regards,
    Manoj.

  • Problem to print pdf-based forms using Epson printer

    Hello,
    I need print pdf-based forms using an EPSON FX 2190 printer.
    In The sap note 685571 I read that can print PDF-based forms on all printers installed in the SAP system as long as the relevant XDC file exists.
    I do not found XDC file to EPSON device type, a Epson fx 2190 do not support postscript.
    Can I use this printer to pdf-based forms?
    I need that spool request (pdf) have a output immediately on EPSON printer.
    thanks in advanced for your cooperation to solve it.
    Osmany

    I don't think Epson has developed an XDC for ESC/P language. That would be very difficult/long to develop an XDC from scratch. Best solution is to install a new printer. Otherwise you may either use a Printer Description Language converter (PS to ESC/P, or other ones), it probably exists, or call acrord32 in print mode on a Windows frontend or server.

  • Problem to print pdf-based forms using matricial Epson printer

    I need print pdf-based forms using an EPSON FX 2190 printer. 
    In The sap note 685571 I read that can print PDF-based forms on all printers installed in the SAP system as long as the relevant XDC file exists.
    I do not found XDC file to EPSON device type, a Epson fx 2190 do not support postscript.
    Can I use this printer to pdf-based forms?
    I need that spool request (pdf) have a output immediately on EPSON printer.
    thanks in advanced for your cooperation to solve it.
    Osmany

    I am afraid you cannot make your scenario work if there is no XDC provided. Maybe you can create one, but I don´t know how difficult that can be or how to do that. Maybe you can get more help under ABAP > Form printing where there are guys experienced with this printing details. Regards, Otto

  • Error when printing reports from forms in Linux

    Im having an error when printing a report from a form. The problem is, only with certain forms. when printing a report (to PDF) from other forms, it prints with no problems. The oracle is 10g AS and operating system is Redhat AS 3.
    The error, in the log from the reports server is:
    [2004/9/7 7:14:59:599] Exception 62204 (): Internal error writing the image BandCombine: a row of the matrix does not have the correct number o
    f entries, should be OpImage.getExpandedNumBands(source0.getSampleModel(), source0.getColorModel()) + 1..
    exception oracle.reports.RWException {
    oracle.reports.RWError[] errorChain={struct oracle.reports.RWError {
    int errorCode=62204,
    java.lang.String errorString="Internal error writing the image BandCombine: a row of the matrix does not have the correct number of entries, sh
    ould be OpImage.getExpandedNumBands(source0.getSampleModel(), source0.getColorModel()) + 1..",
    java.lang.String moduleName="REP"
    at oracle.reports.utility.Utility.newRWException(Utility.java:604)
    at oracle.reports.toolkit.image.writer.JPEGImageWriter.writeImage(JPEGImageWriter.java:130)
    at oracle.reports.toolkit.image.ImageManager.writeJPEGImage(ImageManager.java:524)
    at oracle.reports.engine.EngineImpl.CRunReport(Native Method)
    at oracle.reports.engine.EngineImpl.run(EngineImpl.java:353)
    at oracle.reports.engine.EngineClassPOATie.run(EngineClassPOATie.java:84)
    at oracle.reports.engine.EngineClassPOA._invoke(EngineClassPOA.java:117)
    at oracle.reports.engine.EngineClassPOA._invoke(EngineClassPOA.java:62)
    at com.inprise.vbroker.poa.POAImpl.invoke(POAImpl.java:2355)
    at com.inprise.vbroker.poa.ActivationRecord.invoke(ActivationRecord.java:104)
    at com.inprise.vbroker.GIOP.GiopProtocolAdapter.doRequest(GiopProtocolAdapter.java:492)
    at com.inprise.vbroker.IIOP.ServerProtocolAdapter.doRequest(ServerProtocolAdapter.java:64)
    at com.inprise.vbroker.GIOP.GiopProtocolAdapter.dispatchMessage(GiopProtocolAdapter.java:653)
    at com.inprise.vbroker.orb.TPDispatcherImpl$TPDispatcher.run(TPDispatcherImpl.java:99)
    at com.inprise.vbroker.orb.ThreadPool$PoolWorker.run(ThreadPool.java:76)
    [2004/9/7 7:14:59:599] Error 50103 (C Engine): 19:14:59 ERR REP-0069: Internal error
    REP-62204: Internal error writing the image BandCombine: a row of the matrix does not have the correct number of entries, should be OpImage.get
    ExpandedNumBands(source0.getSampleModel(), source0.getColorModel()) + 1..
    [2004/9/7 7:14:59:600] Error 50103 (C Engine): Error Writing Image, ID 2
    [2004/9/7 7:14:59:601] Error 50103 (rwtic:rwticga): Look up for image attributes for image 2
    [2004/9/7 7:14:59:602] Error 50103 (rwtic:rwticgi): Looking up for Image, ID 2 in the cache
    [2004/9/7 7:14:59:603] Error 50103 (rwtic:rwticgi): Loading the Image into the cache
    [2004/9/7 7:14:59:603] Debug 50103 (ImageManager:getImageSource): Retrieving the Image object for ID : 2
    [2004/9/7 7:14:59:603] Error 50103 (rwtic:rwticgi): Image successfully loaded into the cache
    [2004/9/7 7:14:59:604] Debug 50103 (ImageSource:getImageHeight ): Start Height : 155
    [2004/9/7 7:14:59:604] Debug 50103 (ImageSource:getImageWidth ): Start : width : 138
    [2004/9/7 7:14:59:604] Debug 50103 (ImageSource:getImageColorSpace ): Start
    [2004/9/7 7:14:59:608] Exception 50125 (): Caught exception: java.lang.NullPointerException
    exception oracle.reports.RWException {
    oracle.reports.RWError[] errorChain={struct oracle.reports.RWError {
    int errorCode=50125,
    If anyone could help me, is important !
    Thx in advance
    Bruno Santos                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Raise a TAR I reckon

  • PIXMA MG3220 Error when printing pdf

    I get a "Status" = "Error" when i try to print Adobe PDF files.  I get the error from either Adobe Reader or Safari (or any other App that lets me open a pdf).  I can print pdf files via "Preview" however.
    OSX 10.7.5
    Intel Core 2 Duo 2.4 GHz

    Hi taylorce,
    So we can better assist you, please reply with the following information:
    1.  Are the PDF files that you are unable to print all being printed from an online source directly, or are they also PDF files that are saved on your computer?  If from an online source, if you download the files and save them to your computer, are you able to print them successfully? 
    2.  Have you tried installing the latest version of Adobe Reader to see if this will resolve the issue?
    We look forward to hearing from you!
    If this is a time-sensitive matter, additional support options are available at Contact Us.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • Raise without Handler error when printing pdf files in Outlook

    At work sometimes I'm asked to print emails with tons of attachments, but when I attempt to print the email with the attachments through outlook, anytime there is a PDF attached, I get the "Raise without Handler!" error and also the following window:
    The only way I'm able to print the PDF file is by opening the file directly and then printing it from the actual Acrobat program. At work we use Acrobat 7.0 Professional.
    Any help would be greatly appreciated as it's pretty time consuming when I'm printing an email with 20+ PDF attachments.

    Hi Hisami,
    Hope you are well.
    Latest adobe & chrome versions. IE is an older version.
    OS Windows home premium 7
    Adobe Reader X1
    Does adobe have chat?
    Bit of background:
    I have a monthly subscribtion with adope create and everything was working fine. Then I downloaded a free trial of I think acrobat so I could edit pdf and around the time I got a redirect virus on google chrome. So I deleted all adobe and used Norton power cleaner.
    Then tried download (reinstall) adobe create. Now I can't open any of my many pdf files. Just get 'Raise without handler".
    Thanks for looking into this,
    Andrew

  • Error when importing pdf to Form Central

    I created an editable pdf form in Adobe Acrobat XI Pro, and would like to import it to Form Central. But when I select to import it, I keep getting an error that says, "There was an unexpected problem that prevented importing this document" and "svr.ConvertUnknownError."
    Any suggestions or ideas for what could be causing the error?
    Thanks!

    Wonderful, thank you!
    Megan Powers
    Program Administrator
    North State Building Industry Association/Foundation
    1536 Eureka Road
    Roseville, CA 95661
    Direct: (916) 751-2761
    Fax: (916) 677-5734
    http://biaworkforce.com
    Like us on Facebook!
    Follow us on Twitter!
    Connect with us on LinkedIn!

  • Imagedistiller error when printing pdf ie11

    When i print a pdf from IE11 notepad opens up and displays this error:
    %%[ productname: distiller ]%%
    %%[ error: ioerror; offendingcommand: imagedistiller ]%%
    stack:
    -dict-
    -mark
    -save
    mark
    save
    flushing: rest of job (to end of file) will be ignored
    warning: postscript error. no pdf file produced

    Sorry to ask again but this is really becoming a problem for us now.
    Has anyone got any ideas at all?
    Thanks

  • Creating layout in PDF Based Form to print table content.

    Hi ,
        I am facing problem in creating the layout of PDF Based Form . I do not need any interactive text but only active table in my context whose data i need to print . What i did was drag the table from data view into  the body page and activate . When i run it i only get a table structure but without any data .
    Can any one help me or give a pointer to any tutorial for this ?. I have checked in SAPnet for PDF Based Print Form but it somehow skips how to create layout.
    With regards,
    Saurabh Kumar Pandey

    Have a look at help.sap.com:
    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/b7/64348655fb46149098d95bdca103d0/content.htm">Interactive Forms based on Adobe Software</a>
    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/4c/9cc19e5c874091a99790e540b06f3a/content.htm">Inserting a Table or Loop</a>

  • Document Output - PDF-based forms - output log (error)

    Hello,
    Ever since activating the PDF-based form for BUS2201 the following error shows via viewing the 'output log':
    E     Business AddIn Was Not Called     http://srm7.atosorigin-ica.com:80/sap/ebp/docserver?msgdocuget&MsgId=SPPF_MEDIA&MsgNo=038&Langu=EN&sap-client=100
    E     Printing Error
    E     Action could not be succesfully executed
    Anybody else has experienced the error 'Business Addin Was Not Called' before? What does it mean? I know there is _SF badi active but it doesn't really contain anything apart from
    check = check
    statement
    Kind regards,
    Tim

    Hi,
    launch following in INTERNET explorer.
    http://sapjavahost:50<instance_nr>0
    where sapjavahost = hostname of you SAP java stack host
             <instance_nr> = instance number of Java system
    this open sap j2ee engine start page.
    click on system information, login with administrator user and password
    under Software Components  you will find version and patch level.
    regards,
    kaushal

  • When printing web based .pdf or regular .pdf I get message "This document failed to print"

    When printing web based .pdf or regular .pdf I get message "This document failed to print".  I've ran the HP Diagonistic tool and no errors are found.  I've gotten the same message on many different .pdf's so I don't believe it is a margin issue.

    Are the static IP addresses inside the DHCP range?  If so, move them to ones outside the range.
    Also, have you set the IP address in the printers' embedded web pages (via IP address in a browser) to match the ones set in the router? 
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • Compiling code throws undeclared errors when trying to view form in design mode.

    Let me start this off by admitting that I've committed sacrilege - I edited code inside of a windows forms InitializeComponent() function. I changed this (located in the beginning of the InitializeComponent() function where all UI elements are declared):
    this->image = gcnew OpenTK::GLControl();
    To this:
    OpenTK::Graphics::GraphicsMode^ temp = gcnew OpenTK::Graphics::GraphicsMode(ColorFormat(16, 16, 16, 16), 16, 0, 0, ColorFormat(16, 16, 16, 16), 3 , false);
    this->image = gcnew OpenTK::GLControl(temp)
    The result is that the code still compiles, but it gives the following errors when I try to view the code in design mode:
    The variable 'image' is either undeclared or was never assigned.
    "The variable 'temp' is either undeclared or was never assigned."
    The former can get eliminated by using two constructors, one with no parameters, followed by an immediate override of the image object with my actual constructor. But I can't seem to get rid of the second problem. Declaring the variable temp outside of the
    function didn't help, so I'm not sure if or how I can make this work. Any suggestions on how I can make the design mode parser accept my intrusions? I understand that I've done some evil things to make this happen, but I'd like to keep it more or less like
    this since the result is that I have a vsynced windows form.

    Hi MHoll4,
    It seems that it is not the correct forum for this issue.
    Since this issue is related to the WinForms app, I suggest you post this issue to the WinForm forums here:
    http://social.msdn.microsoft.com/Forums/windows/en-US/home?category=windowsforms
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Error while running PDF based views

    Hi,
      Few days back I was able to run my Interactive PDF based forms in my WDA applciations. There was a patch upgrade after which I am getting an error 'WebDynpro Exception: ADS: Request start time: Wed Mar 28 19:05:48 IST 2007(200,101). ' However I am able to run another application also created before applying the patches. So I am confused, as to why my applciation is failing.
    Regards
    Murali

    Here is the dump
    Error when processing your request
    What has happened?
    The URL http://rethr6.XXX.com:8001/sap/bc/webdynpro/sap/zpdf/ was not called due to an error.
    Note
    The following error text was processed in the system D35 : WebDynpro Exception: ADS: Request start time: Thu Mar 29 13:33:24 IST 2007(200,101). &#152;&#43970;
    The error occurred on the application server RET_XXX_01 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: RAISE of program CX_WD_GENERAL=================CP
    Method: CREATE_PDF of program CL_WD_ADOBE_SERVICES==========CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/LADOBE==================CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/LADOBE==================CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
    What can I do?
    If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system D35 in transaction ST22.
    If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server RETHR6_D35_01 in transaction SM21.
    If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 0 in transaction ST11 on the application server RET_XXX_01 . In some situations, you may also need to analyze the trace files of other work processes.
    If you do not yet have a user ID, contact your system administrator.
    Error code: ICF-IE-http -c: 236 -u: MURLI236 -l: E -s: D35 -i: RETHR6_D35_01 -w: 0 -d: 20070329 -t: 133325 -v: RABAX_STATE -e: UNCAUGHT_EXCEPTION

Maybe you are looking for