cancel
Showing results for 
Search instead for 
Did you mean: 

adobe interactive form not in editable mode in webdynpro

former_member190689
Contributor
0 Kudos

Hello Gurus,

     I have created a interactive form using SFP transaction. Now I am trying to call it through webdynpro as an offline/Online registration form.Now when I am trying to execute the form its not allowing to edit or fill the form.I have maintained all the settings and also maintained a code as below

data lo_el_context type ref to if_wd_context_element.

   data ls_context type wd_this->element_context.

   data lv_pdfsoruce type wd_this->element_context-pdfsoruce.

*   get element via lead selection

   lo_el_context = wd_context->get_element( ).

*   @TODO handle not set lead selection

   if lo_el_context is initial.

   endif.

*   get single attribute

   lo_el_context->get_attribute(

   exporting

     name `PDFSOURCE`

   importing

     value = lv_pdfsource ).

   data: connections       type ty_connections,

         fm_name           type rs38l_fnam,

         fp_docparams      type sfpdocparams,

         fp_outputparams   type sfpoutputparams.

   call function 'FP_JOB_OPEN'

   changing

     ie_outputparams       = fp_outputparams

   exceptions

     cancel                = 1

     usage_error           = 2

     system_error          = 3

     internal_error        = 4

     others                = 5

     .

   if sy-subrc <> 0.

* Implement suitable error handling here

   endif.

*  * Set output parameters and open spool job

*lv_fp_outputparams-device   = 'PDF1'.

   fp_outputparams-nodialog   = abap_true.

   fp_outputparams-getpdf     = abap_true.

   fp_outputparams-connection = 'ADS'.

   call function 'FP_FUNCTION_MODULE_NAME'

   exporting

     i_name                     = 'ZVENDOR_REGISTER'

   importing

     e_funcname                 fm_name

*   E_INTERFACE_TYPE           =

*   EV_FUNCNAME_INBOUND        =

     .

   fp_docparams-langu   = 'E'.

   fp_docparams-country = 'US'.

   fp_docparams-fillable = 'X'.                            " You can make form is interactive.....

   fp_docparams-dynamic  = abap_true.

   fp_docparams-langu    = sy-langu.

   call function fm_name

   exporting

     /1bcdwb/docparams    = 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.

  Now in properties tab I have checked the enabled button but still its not allowing me to edit.I searched on sdn but no one has written any code.As what I know that for enabling the form in editable mode we have to pass the fillable property as X.But every one has done just importing the pdf file and there pdf is running fine where I went wrong now.

Thanks

Gaurav Gautam

Accepted Solutions (1)

Accepted Solutions (1)

former_member215344
Contributor
0 Kudos

Hi Gaurav,

In your source code you haven't mentioned SET_ATTRIBUTE method, only GET_ATTRIBUTE is called before getting the pdf output.

After getting the pdf output you have to set the node which you have given in the binding.

Thanks,

Ajay Bose

former_member190689
Contributor
0 Kudos

Hi Ajay,

      I have imported the PDF into WDA.And the context data is being seen when I click in context of the form which is binded to the fields which are used in my pdf.And in view context I have only used pdfsource.As I saw a video in sdn with same process I did it again but still I am not able to edit my form.

Thanks

Gaurav Gautam

former_member215344
Contributor
0 Kudos

Hi Gaurav,

Hope all the prerequisites are met:

http://help.sap.com/saphelp_nw70/helpdata/en/45/2fbd67361003c3e10000000a1553f6/content.htm

Thanks,

Ajay Bose

former_member190689
Contributor
0 Kudos

Hello Ajay,

   Sorry for the delay,

    solved.Just uncomment the importing parameter.

call function fm_name

   exporting

     /1bcdwb/docparams    = 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.


Thanks all for your response.

Thanks

Gaurav

Answers (2)

Answers (2)

former_member184578
Active Contributor
0 Kudos

Hi,

Have you selected 'enabled' property of your interactive form UI in WDA ?

Regards,

Kiran

former_member190689
Contributor
0 Kudos

Hi Kiran ,

  Yes I have checked the enabled property for interactive form.

I already created a form and then while provide the template name I used my existing form name due to which all the data used in my form was populated into my context area. I just saved it and then tried too execute the WDA by providing the above code.

Thanks

Gaurav Gautam

former_member184578
Active Contributor
0 Kudos

Hi,

When using existing template, you may have to update the template. Change your layout of form to ZCI layout. Also follow the steps in SAP Note 956074.

Hope this helps u.,

Regards,

Kiran

former_member190689
Contributor
0 Kudos

Hello Kiran ,

 

   I already used to layout as ZCI layout also inserted the web script but  still it is not working.

Thanks

Gaurav

former_member184578
Active Contributor
0 Kudos

Hi,

Looks like this is a standard issue. I suggest you to raise an OSS message to SAP, after cross checking the process described to use the existing Form in WDA in the SAP help here

Regards,

Kiran

former_member190689
Contributor
0 Kudos

Hello Kiran,

   Thanks for your response. I am still trying to resolve it as I think nothing is impossible in SAP. Also checked the document.Thanks for this It would really help me.

Thanks

Gaurav Gautam

0 Kudos

Hi,

Can you see editable PDF result with test report FP_TEST_IA_01?

If not, it seems you have no credential file for interactive form. If it is this case, you will have to create a OSS message according to note 736902 to request a credential file.

Regards,

Shawn

former_member190689
Contributor
0 Kudos

Hi Shawn Zeng,

    Yes I am able to see my editable adobe form through that report.But not through when I am executing my WDA.Now where am I wrong.

Thanks

Gaurav Gautam

0 Kudos

Hi,

So you have already requested the credential file and as per note 736902, right?

In this case, you will have to consider to update the ZCI as per note 1077953.

Regards,

Shawn