cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to make field Interactive in Webdynpro Interactive Forms

mohit_bansal3
Active Participant
0 Kudos

Hi,

I am creating Webdynpro application based on the Interactive Form and unable to create Interactive Field.

When I select " Enabled" check Box then NO Out put  (PDF ) is shown and only gray screeen browser open.

when I Deselec " Enabled" check Box then PDF open but not editable ( NON Interactive Mode).

Please suggest the solution for the same.

Regards

Sacin

Accepted Solutions (1)

Accepted Solutions (1)

mohit_bansal3
Active Participant
0 Kudos

Hi All,

Issue is resolved by Installing "ACF" from service.sap.

Thanks a lot for your Propt Reply.

Answers (4)

Answers (4)

mohit_bansal3
Active Participant
0 Kudos

Hi ,

I already did the same thing, But not able to edit the field.

Please advice,

Rgds

Sachin

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

Did you specified the layout as ZCI_Layout and clicked Insert webdynpro script in SFP?

Former Member
0 Kudos

Hi Mohit,

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.

chengalarayulu
Active Contributor
0 Kudos

Mohit,

Create an context attribute with type of XSTRING and make binding with pdfSource of InteractiveForm.

and also Enabled should be enabled. Now you will be able to edit PDF.

mohit_bansal3
Active Participant
0 Kudos

Hi Experts,

Any suggestions for the same, I am stuck.

Rgds

Sachin

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

Please check this link. I am explaining here step-by-step proceedure for the same.

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

JanarthananE
Contributor
0 Kudos

Hi,

Refer the following document for interactive forms in WDA.

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

Hope its useful to u.

Regards

Jana

mohit_bansal3
Active Participant
0 Kudos

Hi Jana,

I have also done the same thing.

But I am unable to view the form if "Enable "check box is selected.

Not able to view or interactive PDF.

Regards

Sachin