Call standard adobe form from a WD application

Hi All,
I have a requirement of displaying a standard adobe form from a click of a button in a WDA portal,
I am an ECC developer and have no idea of WD. I created a function module which uses submit statement to invoke the driver program and displays the PDF output, but when this function module is invoked from the portal on the click of button it gives and error FP job open error.
I understand that displaying PDF wont work in this way on portal, so can anyone please guide me the correct procedure on how  to achieve this.
I came across this thread
[Regarding adobe form using Webdynpro ABAP|Regarding adobe form using Webdynpro ABAP]
which mentions of feeding the complete PDF document to the UI element as an XSTRING context node bound to the pdfSource property, but the help link provided in the thread is not opening.
Thanks in advance.
Regards,
Kartik

Hi karthick , creat a button in the view and assign a action to it .
inside that action eventhandeler method  call the method for prepare_adobe _form for dislay PDF  .
method ONACTIONSHOW_ADOBE_FORM .
data : l_pdfstring type xstring.
" Select for print
wd_this->prepare_adobe_forms( importing p_pdf = l_pdfstring ). " coding is given below
" Call print
cl_wd_runtime_services=>attach_file_to_response(
i_filename = 'adobe_form.pdf'
i_content = l_pdfstring
i_mime_type = 'application/pdf'
i_in_new_window = abap_false
i_inplace = abap_false ).
endmethod.
prepare PDF
method prepare_adobe_forms.
data: lv_funcname type funcname.
data: ls_outputparams type sfpoutputparams.
data: ls_formoutput type fpformoutput.
call function 'FP_FUNCTION_MODULE_NAME'
exporting
i_name = 'FP_TEST_DATE'
importing
e_funcname = lv_funcname.
ls_outputparamsu2010nodialog = 'X'. " suppress printer dialog popup
ls_outputparamsu2010getpdf = 'X'. " launch print preview
call function 'FP_JOB_OPEN'
changing
ie_outputparams = ls_outputparams
exceptions
cancel = 1
usage_error = 2
system_error = 3
internal_error = 4
others = 5.
call function lv_funcname
* exporting
* /1bcdwb/docparams = fp_docparams
importing
/1bcdwb/formoutput = ls_formoutput
exceptions
usage_error = 1
system_error = 2
internal_error = 3
others = 4.
call function 'FP_JOB_CLOSE'
exceptions
usage_error = 1
system_error = 2
internal_error = 3
others = 4.
p_pdf = ls_formoutputu2010pdf.
endmethod .
Regards
Chinnaiya P

Similar Messages

  • Call a Adobe form from button

    Hi,
    In an Adobe form have a Submit button, after I click on this submit button should call another Adobe form.
    How we can do?
    Thanks and Regards,
    Prabhakar Dharmala

    Hi
    To call an Adobe form u can use the folowing class CL_SSF_XSF_UTILITIES and method GET_BDS_GRAPHIC_AS_BMP as shown below.
      CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
        EXPORTING
          p_object       = c_graphics
          p_name         = lv_pernr1
          p_id           = c_bmap
          p_btype        = c_bcol
        RECEIVING
          p_bmp          = ls_z_if_test_cv-im_photo
        EXCEPTIONS
          not_found      = 1
          internal_error = 2
          OTHERS         = 3.
    So that the new PDF form will get opened with details. try it.
    provide REWARD points...:-)

  • Calling Interactive Adobe Form from workflow work-item

    Hi Experts,
    Here is the requirement.
    WE have Interactive Adobe Form developed and now the requirement is to call this form in our workflow as work-item.
    When the work-item agent double-click on the work-item he must call the adboe form.
    Please provide your inputs/suggestions/Solution/Tips.
    Regards
    Krishna

    Hi Gurprit,
    Thanks for answering my question , appreciated.
    When I am in transaction SWFVISU in the drop-down for the Visualization type I dont see "Adobe Form" .  Whether we need to create an ABAP Webdynpro to call Adobe form.
    Please explain.
    Regards
    Krishna

  • Calling adobe form from Web Dynpro ABAP

    Hi Friends,
                        This is the following error, which i got when i tested my application. Calling adobe form from Web Dynpro ABAP.
      WebDynpro Exception: ADS: Request start time: Tue Nov 16 14:00:22 YEKT
      2010(200,101).
                        Can some one tell me how to solve this....
    Regards
    Sankar

    Hi,
    Please refer to this same link in forum
    WebDynpro Exception: ADS: Request start time, start Interactive Form
    WebDynpro Exception: ADS: Request start time
    Thanks
    Pradeep

  • Calling Oracle Ebusiness Forms from a Webcenter Portal application

    Hello All,
    Would there be any known/standard procedure of calling Oracle EBusiness Forms from a Custom WebCenter Portal Application. The issue we are facing currently is that we are successfully able to call an Oracle EBS Forms as a GO Link from the application. The problem is when there are multiple links to open different EBS Forms. Multiple instances of the Forms sessions are created. We would like to have only one. We are trying to mimic the Oracle EBusiness Home Page / Landing Page.
    Any pointers are much appreciated.
    Thanks,
    Nachi

    Hi.
    Are you using Portal or Framework Portal?.
    In case of <noscript> is generated by JAVA internal classes and the unique way to change the message is with a Non supported workaround overriding a CoreBundle class.
    About the af:skipLinkTarget usually is in the Page Template. The default templates has it in next snippet:
    <f:facet name="center">
        <af:skipLinkTarget>
        <af:facetref facetname="content">
        </af:facetref>
      </af:skipLinkTarget>
    </f:facet>
    If you're using default Templates then copy them and remove the af:skipLinkTarget tag from the copied one and assign it to the Portal.
    I hope it helps.
    Regards.

  • Adobe forms from scratch - Standard programs?

    Hi,
    I have just begun trying to implement Adobe forms from scratch at my company. Previosly we have used an external printing solution so I can't convert anything. My plan is to create a new output medium and let the users select the new type by themself. But I have a couple of questions:
    1. How do I create a new medium (Examples: Print output/Fax/Telex, as found in t-code NACT - Processing routines)
    2. I guess there are SAP standard printing programs, interfaces and forms, but I can't find them. I need to be able to print all the usual docs from orders, deliveries and invoices. All I have in NACT are old home-made (Z*) programs so if you know what SAP think we should use now, please let me know!
    We have ERP6 ehp4 on netweaver 7 ehp1 and I have created one "Adobe form" myself so I can confirm that it works. but I don't want to invent the wheel twice...
    Thanx in advance!
    Br Linus Hellsing

    Hi Linus,
    I was wondering if you had a moment to comment on an opportunity that I am having regarding Adobe forms development efforts?
    If so, please read on:
    Our offshore team has worked on a development effort to replace Smart Forms PO's and Contracts with Adobe forms. They created new output types for these Adobe forms. In testing I noticed that the only way I can get them to print - is if I go into Print Preview and print -or- use SP01 and click on the .pdf icon and print. In both cases it uses Adobe Acrobat to perform the actually printing.
    We cannot seem to get them to print using the normal SAP message utility. Our users would expect to continue to:
    1. Use the Messages button while in the PO document - and select the new output type along with Meduim= Printed Output...
    2. Then they select Further data button - to specify Send Immediately.
    3. Then they use the Communication Method tab and specify the Logical Destination (as LOCL) and click on the Check box for Print immediately.
    They get what appears to be an rambling of Adobe error lines followed by many blank pages....
    At this point I am not sure if the print program is working correctly - or if the problem is with Adobe Document Services?
    Have you ever encountered a situation like this during your Adobe development efforts?
    Any suggestions would be appreciated.
    Regards,
    Steve

  • Error while calling standard OAF page from custom Oracle Form

    Hi,
    I am calling standard OAF page from custom oracle form using the following code.
    FND_FUNCTION.EXECUTE(FUNCTION_NAME=>'FUN_TRX_ENTRY_OUT_VIEW_BATCH',
    OPEN_FLAG =>'Y',
    SESSION_FLAG =>'N' ,
    OTHER_PARAMS =>'&ViewBatchID = "' || NAME_IN('FUN_AGIS_LINE_D.BATCH_ID') ||
                        '&CallingFunction = "' || 'MANEXPINQ' ||'"');
    But I am getting this error.
    oracle.apps.fnd.framework.OAException: This request was not processed as the request URL %2FOA_HTML%2FOA.jsp%3Fpage%3D%2Foracle%2Fapps%2Ffun%2Ftransaction%2Fentry%2Fwebui%2FViewOutBatchPG%26OAPB%3DFUN_PRODUCT_BRAND%26OAHP%3DFUN_SSWA_MENU%26OASF%3DFUN_TRX_ENTRY_OUT_SEARCH%26_ti%3D1217029204%26language_code%3DUS%26%26ViewBatchID%20%3D%20%22203148%26CallingFunction%20%3D%20%22MANEXPINQ%22%26CallFromForm%3D%27Y%27%26oas%3DqZqg3tmdEdUNyw_HtskVow.. contained potentially illegal or un-encoded characters. Please try again by submitting a valid URL or contact your systems administrator for assistance.
    Please let me know any thing I missed out here.
    Any suggestion will highly appreciated.
    Thanks & Regards,
    Sunita

    I am using FND_FUNCTION.EXECUTE to call a OAF page from PLSQL in R12. I am getting following error"Error(9,23): PLS-00302: component 'EXECUTE' must be declared"

  • Picking of Adobe forms from application server

    Hi Gurus
    We have SAP ECC 6.0. So far in our system we have text files and CSV excel files which comes from external system and lies in application sever and these are being picked up automatically by system and gets processed in SAP.
    1)The requirement is to "pick the adobe forms from application server and read some fields in the form and update the fields (required) in customer master data in SAP". How can we achieve this?
    Any kind of help is appreciated.
    Thanks
    Aleem

    Hi Aleem,
    I tried to work on a similar scenario couple of months back. But it was not successful. Will you please let me know if you get any solution???
    Thanks in advance
    Poornima

  • Call XML Schema based Adobe form from ABAP Program

    Hi,
      I have a scenario where an online Interactive form is designed and its working fine. Now i have a requirement to call the same Adobe form from a report for viewing purpose. Since it is XML Schema based Interface, is it possible to call the same form instead of creating a new one with the same template? Because i tried to call the same Adobe form by passing the values and converting those to XML(By Creating Transformation). Then i converted the XML to XSTRING and passed to the Generated Function Module for Input paramter "/1bcdwb/docxml". This resulted in an error "com.adobe.ProcessingException: com.adobe.Processin".
    Please help me out in solving this and check the attachment for code.
    Thanks,
    Raj

    Hi,
    outputparams-NODIALOG   = 'X'.
    outputparams-PREVIEW     = 'X'.
    outputparams-dest = 'LP01'.  "give ur printer name.
    CALL FUNCTION 'FP_JOB_OPEN'
      CHANGING
        ie_outputparams = outputparams
      EXCEPTIONS
        cancel          = 1
        usage_error     = 2
        system_error    = 3
        internal_error  = 4
        OTHERS          = 5.
    and Now call the generated function module
    pass the following in docparams
    docparams-langu = 'E'.
    docparams-country = 'US'.
    and finally close the job.
    It should work.
    Please let me know if u need further details.
    Regards,
    sasi

  • Calling and manipulating data on an Interactive Adobe form from ABAP report

    Dear All,
    Can you please tell me how to call an interactive adobe from from a custom adobe form?
    If so how can we pass and receive data between the interactive adobe form and the abap report program?
    Thank you.
    Regards,
    Prosenjit.

    Hi,
    It is possible to call an Interactive Adobe form from ABAP report and pass data into the form. If you search the forum, you will get many threads explaining the process. Let me know if you have any specific questions on this.
    Regards,
    Sanoosh

  • Copy adobe form from standard

    hi everybody
    Ive copied the standard adobe form ML_SERVICE_ENTRY TO ZML_SERVICE_ENTRY
    now when i go to tcode SFP and try to modify the form ZML_SERVICE_ENTRY, theres a section of that form which I cant modify at all and I cant even see the properties of the fields
    Can anybody help me?

    Thanks
    Actually, at the very top, theres a section 'Entry Sheet for services performed' - It contains Purchase Order, date, person responsible etc
    Actually, when Im clicking on that section, The Master page object property is appearing but the different fields inside that section cant even be clicked upon - I cant see the properties table for that
    I have to remove one field from that section and I have to add another section on its left, but when im doing a drag and drop of a text field, its not coming on that area
    I hope you can actually see what I mean
    Thanks for your help

  • Is it possible to call a 9i Forms from a 6i Forms ?

    Hello,
    I have a customer using CRM 11.5.10.2 ( Database 9.2.0.6 / 6i Forms) and will be created a functionality in the CRM screen, where end user will call (via button) a custom application running on 9i Forms.
    Customer believes that there is a technical limitation to achieve that. That is, call a 9i Forms from a 6i Forms.
    Is it possible to call a 9i Forms from a 6i Forms ?
    Thank you in advanced for help,
    Marcos Souza.

    I should have thought so, as Forms 9i is exclusively web-driven, so how you launch the URL is immaterial as long as you use a supported browser. As your Forms 9i apps will invariably be on a remote web server, you'll not encounter compatibility issues either. And Forms 6 and 9 development is possible on the same PC using multiple Oracle Homes. Ask Oracle beforehand if you are still not convinced.

  • Error "Job already started" when calling a adobe form in Z function module

    Hi All,
    I have a error when calling a adobe form in a custom function module.
    I am using FP_FUNCTION_MODULE_NAME to get the adobe form function module and then i am using FP_JOB_OPEN function module to control the printing parameters such as no print preview or no dialog ..etc.. I dont have any exceptions during the call of FP_JOB_OPEN function module ..
    Later I am calling my function module which was generated for the adobe form and i am getting the error called " JOB ALREADY STARTED".
    I tried executing the same function module in se37 and the PDF form output was generated, and also by commenting FP_JOB_OPEN function module the PDF form output was generated.
    But i need the FP_JOB_OPEN function module to control the output based on the output type which triggers the form output such as the medium from nast record which says print or email or fax.. etc
    Please let me know how to handling this error.

    Just as a followup note. If you are testing a function module from SE37 and the test button you will get a value in SY-CPROG. You must override this value for everything to work.
    If you override the value of SY-CPROG with the main program that will be calling the function module you have no problem.
    John W.

  • Error occured while showing adobe form in abap webdynpro application

    Dear SAP-Masters ,
    This is the mail regarding the error occured while showing adobe form in abap webdynpro application .
    When i run the adobe form seperately it works fine but with abap web dynpro , i'll get following error .
    Pls tell me how to resolve this problem .
    The following error text was processed in the system D35 : WebDynpro Exception:
    The error occurred on the application server DV35_D35_00 and in the work process 2 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: UPDATE_PDF of program CL_WD_ADOBE_SERVICES==========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: CONV_VIEW_INTO_VE_ADAPTER_TREE of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP
    Method: SET_CONTENT_BY_WINDOW of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP
    Method: RENDER_WINDOWS of program CL_WDR_CLIENT_SSR=============CP

    Hi Arjun ,
                Thanx for ur reply ,
                i got following results in ST22 dump analysis :
    '  An exception occurred that was not caught ' .
            and
    Source Code Extract
    Line
    SourceCde
    79
    x_xml = get_wd_context_as_xml( data_source = data_source ).
    80
    m_pdf_object->set_data( formdata = x_xml ).
    81
    catch cx_fp_exception into lr_fpexc.
    82
    raise exception type cx_wd_general
    83
    exporting
    84
    previous = lr_fpexc.
    85
    endtry.
    86
    if fillable = abap_true.
    87
           if m_version is initial.
    88
             m_version = m_pdf_object->get_version_info( ).
    89
           endif.
    90
           if version < ''.
    91
             set_usage_rights( m_pdf_object ).
    92
           endif.
    93
    endif.
    94
    endif.
    95
    endif.
    96
    97
    only call the ads if requested
    98
    if execute_ads_call = abap_true.
    99
    try.
    100
          set document
    101
    m_pdf_object->set_document( pdfdata = pdf ).
    102
    103
          execute, call ADS
    104
    m_pdf_object->execute( ).
    105
    106
          get result
    107
    m_pdf_object->get_document( importing pdfdata = pdf ).
    108
    catch cx_fp_exception into lr_fpexc.
    >>>>>
    raise exception type cx_wd_general
    110
    exporting
    111
    previous = lr_fpexc.
    112
    endtry.
    113
    endif.
    114
    115
    endmethod. 
    and
    Error analysis
    An exception occurred which is explained in detail below.
    The exception, which is assigned to class 'CX_WD_GENERAL', was not caught and
    therefore caused a runtime error.
    The reason for the exception is:
    WebDynpro Exception:
    The occurrence of the exception is closely related to the occurrence of
    a previous exception "CX_FP_RUNTIME_SYSTEM", which was raised in the program
    "CL_FP_PDF_OBJECT==============CP",
    specifically in line 255 of the (include) program
    "CL_FP_PDF_OBJECT==============CM02Y".
    The cause of the exception was:
    ADS: com.adobe.ProcessingException: PDF is not interactive.  Data can only be
    |    imported into interactive forms.(201501).

  • Problem using RFC to call an adobe form to create pdf file........

    Hi,
       I have an RFC that calls an adobe form to display the pdf output back in a bsp page...the RFC fails at the call to the adobe form (next call after after getting the form name) ...while debugging it looks like within this call it is trying to call fpcomp_job_open and failing on the call check_job_open ...
    The code in my RFC looks like this....
    DATA:
        gs_outputparams  TYPE sfpoutputparams,
        fn_name           TYPE rs38l_fnam,
        fp_docparams      TYPE sfpdocparams,
        fp_formoutput     TYPE fpformoutput,
        frm_result        TYPE sfpjoboutput,
        lv_form           TYPE fpname.
    DATA: l_pdf_xstring  TYPE xstring,
           l_pdf_len      TYPE i.
    lv_form = 'ZHR_ASSESSMENT_FORM'.
    Start formrocessing - OPEN spool job to send to printer
      gs_outputparams-getpdf = 'X'.
      call function 'FP_JOB_OPEN'
        changing
          ie_outputparams = gs_outputparams
        exceptions
          others          = 1.
      IF sy-subrc <> 0.
    *//    RAISE FP Open Error.
          exit.
      ENDIF.
    Get name of the generated function module for the form
      CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
        EXPORTING
          i_name     = lv_form
        IMPORTING
          e_funcname = fn_name.
      IF sy-subrc <> 0.
    *//    RAISE FP Get Form Module Name Error.
            exit.
      ENDIF.
    Call the Adobe Form
      CALL FUNCTION fn_name
      EXPORTING
          /1bcdwb/docparams  = fp_docparams
          gv_appraisal_id = gv_appraisal_id
      IMPORTING
         /1bcdwb/formoutput = fp_formoutput
        EXCEPTIONS
          usage_error        = 1
          system_error       = 2
          internal_error     = 3
          others             = 4.
      IF sy-subrc <> 0.
    *//    RAISE Call Form Module Error.
            perform f_build_message using 'E'
                                      'ZEXT'
                                      012
                                changing return.
           exit.
      ENDIF.
    End from processing - Close spool job
      CALL FUNCTION 'FP_JOB_CLOSE'
        IMPORTING
          e_result       = frm_result
        EXCEPTIONS
          usage_error    = 1
          system_error   = 2
          internal_error = 3
          OTHERS         = 4.
      IF sy-subrc <> 0.
    *//    RAISE FP Close Error.
           exit.
      ENDIF.
      form = fp_formoutput-pdf.
    Thanks,
    Venkatesh

    what is the solution for this problem? I have the same problem. I get sy-subrc = 1 after CALL FUNCTION 'FPCOMP_JOB_OPEN'.
    If I look more in detail I see that "Perform check_job_open" is creating the problem:
    FORM check_job_open.
      IF fpstat-is_opened = c_true.  (--> exactly here is the problem. This condition is true so the program is terminated.)
        PERFORM reset_status.
        MESSAGE ID 'FPRUNX' TYPE 'E' NUMBER '101' RAISING usage_error.
      ENDIF.
      fpstat-is_opened  = c_true.
      fpstat-is_started = c_false.
    ENDFORM.       
    Does somebody know why my job is open and what is the solution to have the job closed at the beginning of my processing?
    Thanks in advance.

Maybe you are looking for

  • Macbook Air and iBahn problem -- can't get to the log-in page

    This is a new Air (2012) running Mountain Lion 10.8.2.  The location is a Sheraton hotel that uses iBahn for Internet service. I can connect to the wifi network "iBahn," and the Network preference panel shows that my Mac has been successfully assigne

  • Business Objects / BODS Upgrade

    Hi Guys. We have an end to end Business Objects solution implemented in our environment consisting of BODS (XIR3), Business Objects (XIR3) and Crystal Reports (2008). We are planning to upgrade the BODS and Business Objects environments to the latest

  • Easy Transfer problems

    new Computer                       C:drive with win 7 is 40gb,  E:drive is 1tb old computer                         C:drive with win 7 is 500gb, D:drive is 80gb I want to transfer the contents of my old computer (400gb) to the E:drive on the new comp

  • Dummy Product & Dummy Logical component???

    Hello SolMan Gurus, Can anybody throw some light on how to create Dummy Product & Dummy Logical component? Your replies will be greately appreciated. best regds, Alagammai.

  • How to count more than once for different message

    I have multiple messages into one column and I need to separate them and count them under each message. The error message start after colon (:) ID ERROR MESSAGE 123456 Field on does not match: Note Amount, ID=584000.00, IP=579900.00: Note Date, ID=20