cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe froms interaction problem

sreenivas_pachva
Participant
0 Kudos

Hi everyone,

I am new to adobeforms designing through SFP tcode, my problem was unable interact with the form when exceute form( pdf preview). but  i was able to interact with Preview PDF level of within the form . can you let me know what was that problem? Is there any problem regarding configuration of ADS.

and also i have checked ADS in server machine through Tcode: SM59

i have taken three numeric fields form the library and also taken one button . For button i have written java script code:

 

NumericField3 = NumericField1 + NumericField2

Thanks&Regards

-------------------------

Sreenivas Pachva

Accepted Solutions (0)

Answers (2)

Answers (2)

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

Check this link. Here I am explaining step-by-step procedure for the same. Make sure that you checked Enabled checkbox for the interactive form in WebDynpro.

http://scn.sap.com/docs/DOC-25066

Former Member
0 Kudos

Hi Sreenivas,

I also faced same issue few weeks back...... I solved with   2  ways....

way 1:-

http://sapignite.com/tutorial-for-interactive-forms-by-adobe-using-webdynpro-for-abap/

see above link and do what is their in link eactly.... U will get output as interactive form.

way 2:-

-> Create interactive element in webdynpro...

->Create attribute pdf_source type xstring.  and bind it with pdfsource property of element..

->And dont bind any thing to interactive ui element except pdfsource..

->Create one method  in that method write the code like below..

   CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
  EXPORTING
    i_name     = 'ZFRM_TRP'                        "Here mention interface name
  IMPORTING
    e_funcname = lv_fm_name.
* Set output parameters and open spool job
*lv_fp_outputparams-device   = 'PDF1'.
lv_fp_outputparams-nodialog   = abap_true.
lv_fp_outputparams-getpdf     = abap_true.
lv_fp_outputparams-connection = 'ADS'.

CALL FUNCTION 'FP_JOB_OPEN'
  CHANGING
    ie_outputparams = lv_fp_outputparams
  EXCEPTIONS
    cancel          = 1
    usage_error     = 2
    system_error    = 3
    internal_error  = 4
    OTHERS          = 5.
IF sy-subrc <> 0.                                           "#EC NEEDED
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

* Set form language and country (->form locale)
lv_fp_docparams-FILLABLE = 'X'.                            " You can make form is interactive.....
lv_fp_docparams-dynamic  = abap_true.
lv_fp_docparams-langu    = sy-langu.



CALL FUNCTION lv_fm_name
    EXPORTING
      /1bcdwb/docparams    = lv_fp_docparams
      emp_graph            = lv_graph
      it_header_details    = ls_header_details
      IMPORTING
      /1bcdwb/formoutput   = lv_gst_pdfop
    EXCEPTIONS
      usage_error          = 1
      system_error         = 2
      internal_error       = 3
      OTHERS               = 4.

* Close spool job
CALL FUNCTION 'FP_JOB_CLOSE'
  EXCEPTIONS
    usage_error    = 1
    system_error   = 2
    internal_error = 3
    OTHERS         = 4.
IF sy-subrc <> 0.
  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
if lv_gst_pdfop-pdf is initial.
* wd_this->show_messages(
*        im_message = 'Data Not Found ' ).
* return.
endif.

  DATA lo_el_context TYPE REF TO if_wd_context_element.
  DATA ls_context TYPE wd_this->element_context.
  DATA lv_pdf_source TYPE wd_this->element_context-pdf_source.

* get element via lead selection
  lo_el_context = wd_context->get_element( ).


* set single attribute
  lo_el_context->set_attribute(
    name `PDF_SOURCE`
    value = lv_gst_pdfop-pdf ).

...... Finaly  u will get form output in pdf_source and just bind it.....

It will work....

If u have any doubts post here.....

Regards,

Venkat.