on 10-04-2013 6:06 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Hi Gaurav,
Hope all the prerequisites are met:
http://help.sap.com/saphelp_nw70/helpdata/en/45/2fbd67361003c3e10000000a1553f6/content.htm
Thanks,
Ajay Bose
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
Hi,
Have you selected 'enabled' property of your interactive form UI in WDA ?
Regards,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.