Usage error while generating spool for adobe forms

I need to create a function module which would be called from a BRF. The function module must generate an adobe form and sent to the spool.
I get usage error at the call form function module level. could someone suggest if anything is missing in the below code.
""Local Interface:
*" IMPORTING
*" REFERENCE(I_FORM_NAME) TYPE FPNAME
*" REFERENCE(I_BP_DETAILS) TYPE ZRP_STRU_RTRN_BP_DETAILS
*" REFERENCE(I_AMT_DETAILS) TYPE ZRP_STRU_RTRN_AMT_DETAILS
*" EXPORTING
*" REFERENCE(E_RETURN) TYPE BAPIRET2_T
DATA : gv_fm_name TYPE rs38l_fnam,
ga_outputparams TYPE sfpoutputparams,
gs_docparams TYPE sfpdocparams,
le_result TYPE sfpjoboutput,
gs_output TYPE fpformoutput,
l_return TYPE bapiret2..
Get the Form function module name
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = i_form_name
IMPORTING
e_funcname = gv_fm_name
E_INTERFACE_TYPE =
Open Print Job
ga_outputparams-device = 'PRINTER'.
ga_outputparams-nodialog = 'X'.
ga_outputparams-preview = space.
ga_outputparams-dest = 'LP01'.
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = ga_outputparams
EXCEPTIONS
cancel = 1
usage_error = 2
system_error = 3
internal_error = 4
OTHERS = 5.
call the generated Function Module
gs_docparams-langu = 'E'.
gs_docparams-country = 'US'.
CALL FUNCTION gv_fm_name "'/1BCDWB/SM00000014'
EXPORTING
/1bcdwb/docparams = gs_docparams
is_bp_details = i_bp_details
is_return_details = i_amt_details
IMPORTING
/1bcdwb/formoutput = gs_output
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
IF sy-subrc EQ 0.
Close spool job
CALL FUNCTION 'FP_JOB_CLOSE'
IMPORTING
e_result = le_result
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
ELSE.
l_return-type = 'E'.
l_return-message = 'Print Error'.
APPEND l_return TO e_return.
ENDIF.

Suri , Have you solve this  please replly as i am facing such a problem

Similar Messages

  • Error while configuring credential for Adobe Forms

    Hi,
    While configuring Credential i am getting an error as popup. But when I click on OK, I am able to see the .pfx file in the top.
    <b>Error Details:</b>
    An error occurred while updating the credential expiry for alias 'ReaderRights':
    com.adobe.service.sap.configuration.ConfigurationException:Unable to load keystore from credential. Please ensure the password is correct.
    We have not received any password from SAP, only there was one password to download the file.
    After all I am trying print forms, not an interactive form. But when I deploy and run it shows error.
    <b>Error Details:</b>
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Error during call to AdobeDocumentServer: Processing exception during a "UsageRights" operation.
    Request start time: Sat Nov 26 11:54:53 GMT+05:30 2005
    com.adobe.ProcessingError: Credential login error while applying usage rights to PDF: C:\WINNT\Temp\adobewa_J2E_00_1015779131\DM8997397967410486296.dir\DM-8285166541278556430.tmp
    Specific error information:
    $$$/PDF/PDFCredentialLoginFailure2=error while logging into credential ^0
    GeneralError: Operation failed.
    SecurityHandler.login:-1:
    Could not open Digital ID file with the password provided. Please try again.
    Please suggest the solution.
    Thanks,
    SA.

    Hi,
    Still I have not got any solution for this. But my bigest problem right now is, I am using print form and there is no interactive feature. There is lot of forum posts where it is specified that, credentials is not required for print forms..... But when I try to deploy the Adobe application I get below error....
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Error during call to AdobeDocumentServer: Processing exception during a "UsageRights" operation.
    Request start time: Thu Nov 24 20:00:50 GMT+05:30 2005
    com.adobe.ProcessingError: Credential login error while applying usage rights to PDF: C:\WINNT\Temp\adobewa_J2E_00_1015779131\DM400443135109740914.dir\DM-4094495003961307306.tmp
    Specific error information:
    $$$/PDF/PDFCredentialLoginFailure2=error while logging into credential ^0
    GeneralError: Operation failed.
    SecurityHandler.login:-1:
    Could not open Digital ID file with the password provided. Please try again.
    General error information:
    IDL:com/adobe/document/pdf/CredentialLoginFailure:1.0
    Please suggest....
    Thanks.
    SA

  • Usage Error while generating spool

    I need to create a function module which would be called from a BRF. The function module must generate an adobe form and sent to the spool.
    I get usage error at the call form function module level. could someone suggest if anything is missing in the below code.
    ""Local Interface:
    *" IMPORTING
    *" REFERENCE(I_FORM_NAME) TYPE FPNAME
    *" REFERENCE(I_BP_DETAILS) TYPE ZRP_STRU_RTRN_BP_DETAILS
    *" REFERENCE(I_AMT_DETAILS) TYPE ZRP_STRU_RTRN_AMT_DETAILS
    *" EXPORTING
    *" REFERENCE(E_RETURN) TYPE BAPIRET2_T
    DATA : gv_fm_name TYPE rs38l_fnam,
    ga_outputparams TYPE sfpoutputparams,
    gs_docparams TYPE sfpdocparams,
    le_result TYPE sfpjoboutput,
    gs_output TYPE fpformoutput,
    l_return TYPE bapiret2..
    Get the Form function module name
    CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
    EXPORTING
    i_name = i_form_name
    IMPORTING
    e_funcname = gv_fm_name
    E_INTERFACE_TYPE =
    Open Print Job
    ga_outputparams-device = 'PRINTER'.
    ga_outputparams-nodialog = 'X'.
    ga_outputparams-preview = space.
    ga_outputparams-dest = 'LP01'.
    CALL FUNCTION 'FP_JOB_OPEN'
    CHANGING
    ie_outputparams = ga_outputparams
    EXCEPTIONS
    cancel = 1
    usage_error = 2
    system_error = 3
    internal_error = 4
    OTHERS = 5.
    call the generated Function Module
    gs_docparams-langu = 'E'.
    gs_docparams-country = 'US'.
    CALL FUNCTION gv_fm_name "'/1BCDWB/SM00000014'
    EXPORTING
    /1bcdwb/docparams = gs_docparams
    is_bp_details = i_bp_details
    is_return_details = i_amt_details
    IMPORTING
    /1bcdwb/formoutput = gs_output
    EXCEPTIONS
    usage_error = 1
    system_error = 2
    internal_error = 3
    OTHERS = 4.
    IF sy-subrc EQ 0.
    Close spool job
    CALL FUNCTION 'FP_JOB_CLOSE'
    IMPORTING
    e_result = le_result
    EXCEPTIONS
    usage_error = 1
    system_error = 2
    internal_error = 3
    OTHERS = 4.
    ELSE.
    l_return-type = 'E'.
    l_return-message = 'Print Error'.
    APPEND l_return TO e_return.
    ENDIF.

    Suri , Have you solve this  please replly as i am facing such a problem

  • Error  While Genrating Document  in ADOB Form

    Hello Everybody ,
    When  I used  SFP  tcode  for  Design  ADOB  Form  Layout   I am getting  Error   "   Error While Generating Document  "  .
    Plz Sugget me  how to resolved it   ...
    Regards,
    Sandeep Jadhav

    Hi,
    You need additional License to create SAP Interactive Forms by Adobe
    Check the SAP Note No.  750784
    If you already have got the License then please check the below link and see if it helps you.
    http://help.sap.com/saphelp_nw70/helpdata/en/37/504b8cbc2848a494facfdc09a359b1/frameset.htm
    Let us know if this information is useful to you.
    with regards,
    Parin Hariyani

  • Usage Error while generating the spool request

    I need to create a function module which would be called from a BRF. The function module must generate an adobe form and sent to the spool. 
    I get usage error at the call form function module level. could someone suggest if anything is missing in the below code.
    ""Local Interface:
    *"  IMPORTING
    *"     REFERENCE(I_FORM_NAME) TYPE  FPNAME
    *"     REFERENCE(I_BP_DETAILS) TYPE  ZRP_STRU_RTRN_BP_DETAILS
    *"     REFERENCE(I_AMT_DETAILS) TYPE  ZRP_STRU_RTRN_AMT_DETAILS
    *"  EXPORTING
    *"     REFERENCE(E_RETURN) TYPE  BAPIRET2_T
      DATA : gv_fm_name TYPE rs38l_fnam,
             ga_outputparams TYPE sfpoutputparams,
             gs_docparams TYPE sfpdocparams,
             le_result TYPE sfpjoboutput,
             gs_output TYPE fpformoutput,
             l_return TYPE bapiret2..
    Get the Form function module name
      CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
        EXPORTING
          i_name                    = i_form_name
       IMPORTING
         e_funcname                 = gv_fm_name
      E_INTERFACE_TYPE           =
    Open Print Job
      ga_outputparams-device = 'PRINTER'.
      ga_outputparams-nodialog = 'X'.
      ga_outputparams-preview = space.
      ga_outputparams-dest = 'LP01'.
      CALL FUNCTION 'FP_JOB_OPEN'
        CHANGING
          ie_outputparams = ga_outputparams
        EXCEPTIONS
          cancel          = 1
          usage_error     = 2
          system_error    = 3
          internal_error  = 4
          OTHERS          = 5.
    call the generated Function Module
      gs_docparams-langu = 'E'.
      gs_docparams-country = 'US'.
      CALL FUNCTION gv_fm_name  "'/1BCDWB/SM00000014'
        EXPORTING
         /1bcdwb/docparams        = gs_docparams
          is_bp_details            = i_bp_details
          is_return_details        = i_amt_details
    IMPORTING
       /1bcdwb/formoutput       =  gs_output
    EXCEPTIONS
       usage_error              = 1
       system_error             = 2
       internal_error           = 3
       OTHERS                   = 4.
      IF sy-subrc EQ 0.
    Close spool job
        CALL FUNCTION 'FP_JOB_CLOSE'
          IMPORTING
            e_result       = le_result
          EXCEPTIONS
            usage_error    = 1
            system_error   = 2
            internal_error = 3
            OTHERS         = 4.
      ELSE.
        l_return-type = 'E'.
        l_return-message = 'Print Error'.
        APPEND l_return TO e_return.
      ENDIF.

    Suri , Have you solve this  please replly as i am facing such a problem

  • Error while configuring credential for Adobe service

    Hi,
    While configuring Credential i am getting an error as popup. But when I click on OK, I am able to see the .pfx file in the top.
    <b>Error Details:</b>
    An error occurred while updating the credential expiry for alias 'ReaderRights':
    com.adobe.service.sap.configuration.ConfigurationException:Unable to load keystore from credential. Please ensure the password is correct.
    We have not received any password from SAP, only there was one password to download the file.
    After all I am trying print forms, not an interactive form. But when I deploy and run it shows error.
    <b>Error Details:</b>
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Error during call to AdobeDocumentServer: Processing exception during a "UsageRights" operation.
    Request start time: Sat Nov 26 11:54:53 GMT+05:30 2005
    com.adobe.ProcessingError: Credential login error while applying usage rights to PDF: C:\WINNT\Temp\adobewa_J2E_00_1015779131\DM8997397967410486296.dir\DM-8285166541278556430.tmp
    Specific error information:
    $$$/PDF/PDFCredentialLoginFailure2=error while logging into credential ^0
    GeneralError: Operation failed.
    SecurityHandler.login:-1:
    Could not open Digital ID file with the password provided. Please try again.
    Please suggest the solution.
    Thanks,
    SA.

    Hi,
    Still I have not got any solution for this. But my bigest problem right now is, I am using print form and there is no interactive feature. There is lot of forum posts where it is specified that, credentials is not required for print forms..... But when I try to deploy the Adobe application I get below error....
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Error during call to AdobeDocumentServer: Processing exception during a "UsageRights" operation.
    Request start time: Thu Nov 24 20:00:50 GMT+05:30 2005
    com.adobe.ProcessingError: Credential login error while applying usage rights to PDF: C:\WINNT\Temp\adobewa_J2E_00_1015779131\DM400443135109740914.dir\DM-4094495003961307306.tmp
    Specific error information:
    $$$/PDF/PDFCredentialLoginFailure2=error while logging into credential ^0
    GeneralError: Operation failed.
    SecurityHandler.login:-1:
    Could not open Digital ID file with the password provided. Please try again.
    General error information:
    IDL:com/adobe/document/pdf/CredentialLoginFailure:1.0
    Please suggest....
    Thanks.
    SA

  • Problem while generating copies in Adobe Forms

    Hi Experts,
          I'm trying to print two copies of my adobe form, I have changed the copies values from Output Options Pop up and printed the form. But i didn't get two copies of it instead I got only one copy. And I have checked SPAD configuration also, the document gets printed according to copy counter specified from the form but in case of adobe it is not. We tried with smartforms, it is working fine. Please see the following screenshots.
    1. Entered the number of copies as 2.
    2. After clicking on print button, I got the following ouput.
    SPAD Configuration:
    Please provide your valuable inputs.

       Copies are not supported in adobe form. There are certain things which are different between the forms. SAP note 1009567 explains it clearly.  Alternative solution to get multiple copies has been explained in the thread  Multiple copies in Adobe form with different header text.
    So,i'm closing this thread.

  • MSS error while trying to access Adobe forms

    Hi all
    We are using EP 7 sp14. Delpoyed ESS/MSS BP SP 14. while trying to access certain functionalities in MSS which make use if standerd Adobe interactive forme through portal its coming up with the following error.
    com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized.
    I had done few settings in Visual Admin in
    1. server >services>web services security>web services clients>sap.com>tcwdpdfobject>com.sap.tc.webdynpro.adsproxy.Adsproxy*configPort_Document.
    2. In default URL gave : http://portalserver:port/AdobeDocumentServices/Config
    3. Authentication:Basic Authentication : gave username:ADSUSERpwd which is set in the backend.
    4. In Deploy stopped and started the application.
    Also in Destinations -> Created a new HTTP and set the URL pointing to the backend.
    Is there any additional configuration to be set on the Portal side.
    Regards,
    Sasha.

    Got corrected with changing data-type for a property in the definition file.

  • OWB Error while generating Code for a mapping

    I have a simple mapping loading from a source to a flat file. When I try to generate code it gives me the following Error
    VLD-2357: Target Data File name not specified for file <target Flat file name>.
    I am new to OWB so any help on the same will be greatly appreciated. How can I specify target Data File name in the mapping configuration under Flat file operators
    Thanks
    Anish

    If you configure the mapping in the UI from the main design tree and select the name of your file operator under the tree node 'Flat File Operators' on the right hand side panel the properties should be displayed - one of these properties is 'Target Data File Name', enter the name of your target data file name.
    Cheers
    David

  • Error while checking configuration for adobe

    Hi,
    when iam checking this
    with below steps
    1. Log on to your SAP Net Weaver AS ABAP.
    2. Call transaction SA38 and enter the name FP_TEST_00.
    3. Choose Execute (F8). A dialog box is displayed.
    4. Enter FP_TEST_00 in the field Form.
    This is displayed as the default form name.
    5. Enter the name of the connection to the ADS. Enter the default name ADS, or, if you have specified another name, the one you are using in your system.
    6. In the dialog box, choose Output in Print Preview.
    7. Enter an appropriate device type in the field Output Device.
    8. Choose Print Preview.
    Iam getting an error stating CALL CONTAINED ERRORS ADS(2)
    please suggest a solution

    Hi Venkat,
    Maybe this [thread|Request for External staff: Qualification Profile; will be helpful for you.
    Regards,
    Arafat

  • Error while generating code for deployment

    I am getting the following error:
    Error generating findTest1ByMarks(java.lang.Integer) query for Bean Test1(Abstract scheme name=Test1) Error=query cannot be pushed down
    Query="select ..."
    Could someone help me?
    I am trying to generate code of Container Managed Entity Bean in WSAD 5.0.
    Thanks

    If you configure the mapping in the UI from the main design tree and select the name of your file operator under the tree node 'Flat File Operators' on the right hand side panel the properties should be displayed - one of these properties is 'Target Data File Name', enter the name of your target data file name.
    Cheers
    David

  • How to create a spool job for adobe form without dialog

    Hi All,
    I have a requirement like below.
    I need to generate a spool for Adobe form output and that sholud be without print parameters dialog popup.
    What are the parameters i need to pass to the FP_JOB_OPEN function module.
    Solutions will be appriciated.
    Thanks in advance

    hi,
    I think the following document will help you....
    http://help.sap.com/saphelp_nw04s/helpdata/en/48/8144ad5999426facb9b77bf0c1e868/frameset.htm
    Thanks and Regards
    shanto alooor

  • Getting Error while generate Adobe form

    Hi,
    I  am new to adobe smartforms, i am getting one error while activate smartform. we need to set anything in SICF setting for Adobe smartform??. i am get error like "this forms refers to external file which is not found in compters.please create connection to folder so thatt these should be found.

    Hi
    Are you talking about adobe forms or smartforms. These are 2 different types of forms. For Adobe forms you need an ADS which sits on the java stack and needs to be configured properly. Some services need to be activated in SICF for the configuration as well. A conplete guide on how to configure the ADS is found on the following link
    [https://www.sdn.sap.com/irj/sdn/adobe?rid=/webcontent/uuid/90355269-4d89-2a10-0bb9-f388704f1dcd]
    Regards
    Thashin

  • Error while generating form 16 in portal - Screen output without connection

    Dear Gurus,
    We are facing error while generating form 16 through portal and getting the below error in portal.
    Screen output without connection to user.    error key: RFC_ERROR_SYSTEM_FAILURE
    When we checked for dumps in R/3 the following dump is coming:
    DYNPRO_SEND_IN_BACKGROUND with error message :
    Message class : FPRUNX
    Message number: 102: No job started.
    Then we tried to execute the form 16 through R/3 itself using tcode PC00_M40_F16 after putting in the relevant values in the selection screen and then press on PRINT FORM button, but surprisingly the system logs out without giving any error or dump.
    We tried doing it repeatedly and once in these attempts we got an error saying Initialization of font server module failed.
    We are not getting clue as to why this is happening. <<Text removed>>
    Regards
    Edited by: Matt on Jul 27, 2011 9:50 AM

    Dear,
    This might be the problem of Adobe Acrobat Reader. what is the version of Adobe you are using ?? If it 9.0, then uninstall it and reinstall 8.0 and then check .
    Could you please check your installed SAPGUI component? If component 'Engineering Client Viewer' is installed, please uninstall
    it. And try to call same transaction again.
    BR, Deepak

  • Webutil error while generate excel form

    Hi
    In my forms appl. I use webutil in order to generate excel reports
    I have to midtier instances both running on a separate host.
    End users connect through a WLB frontend.
    At one of the midtiers, when generating a excel report using webutil "error while running kit"
    No errors appear in any log on the midtier. On a log table in the database ORA-12703 appears but I'm not sure if thats related.
    On the other midtier, with the same compiled forms using the same database it works fine.
    Does anyone have a clue?
    reg.
    Michel

    Hi
    Are you talking about adobe forms or smartforms. These are 2 different types of forms. For Adobe forms you need an ADS which sits on the java stack and needs to be configured properly. Some services need to be activated in SICF for the configuration as well. A conplete guide on how to configure the ADS is found on the following link
    [https://www.sdn.sap.com/irj/sdn/adobe?rid=/webcontent/uuid/90355269-4d89-2a10-0bb9-f388704f1dcd]
    Regards
    Thashin

Maybe you are looking for

  • When I try to open Firefox I get a message: "Update could not be installed. Make sure there is not another instance of Firefox. Restart and try again."

    Started w/FF 29 something.on Win XP (Home) SP3 Verified w/Task manager and PS that there is no other instance of FF. Occurs only in my profile, administrator and other users do not get this message. First Resetting, did not work. Safe mode also did n

  • Lookup failed: javax.jnlp.UnavailableServiceException: uninitialized

    When U deployed *.war file to App Server and I call JNLP to launch program and display its on Java Web Start. But If i call as below      System.out.println("Before Step1");      System.out.println(ServiceManager.getServiceNames());      basicService

  • The vibration on my i-pod

    is it normal to feel some shake/vibration on my i-pod as i play songs or videos? my conclusion: the metal disk or the hardisk rather inside my i-pod is the one who's making the shake as it shifts from one file to another... am i right? is this good o

  • HUD problems

    I imported a file .ai but i have a problems with command HUD: i can covert artwork to component > button but I do not have the ability to change the action because the button "add action" doesn't work. So i don't know if my version is doesn't work or

  • No Previews (thumbnails) in Konqueror

    Just recently moved /home/username to my new thinkpad t61p.  Now I don't have file previews in konqueror and konqueror only (I have previews in d3lphin and on the desktop).  I have tried resetting the preview options in konqueror and in kcontrol, sti