on 11-18-2009 1:22 PM
Hi,
I have displayed an adobe form using web dynpro application. But I have to make certain fields (not all fields) on this adobe form editable. I dont want to make this adobe form interactive because I dont have to save any data in database. The data entered in the editable fields will be saved as a pdf.
What I did so far:
1) The fields which I want as editable, I have given there type as "User entered/ optional" & for rest of the fields I have given type as "Read only".
2) In web dynpro, I have enabled the adobe
3) This is not making the fields editable.
4) If I write the following code in my webdynpro method WDDOMODIFYVIEW, then my data coming from adobe is not getting displayed even though the fields get selectively editable.
*data: LR_INTERACTIVE_FORM type ref to CL_WD_INTERACTIVE_FORM,
*LR_METHOD_HANDLER type ref to IF_WD_IACTIVE_FORM_METHOD_HNDL.
*
*check first_time = abap_true.
*
*LR_INTERACTIVE_FORM ?= VIEW->GET_ELEMENT('adobe').
*LR_METHOD_HANDLER ?= LR_INTERACTIVE_FORM->_METHOD_HANDLER.
*LR_METHOD_HANDLER->SET_LEGACY_EDITING_ENABLED( abap_true ).
Any inputs regarding this??
Thanks & Regards.
Hi Sonali,
The form you are trying to develop is an interactive form. It does not mean that you have to save data to database.
Is your Form Interface XML based?
Go to the layout of the Form and from the menu option
Utilities ->insert the WebDynpro script
You can also create interactive form in abap workbench using SFP transaction with interface type as ABAP dictionary based.
There is one parameter called /1BCDWB/DOCPARAMS TYPE SFPDOCPARAMS. Set Fillable field of this parameter as 'X' in driver program that generate the PDF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Like I had mentioned using the following code in my webdynpro method WDDOMODIFYVIEW, my data coming from adobe form was not getting displayed even though the fields get selectively editable.
*data: LR_INTERACTIVE_FORM type ref to CL_WD_INTERACTIVE_FORM,
*LR_METHOD_HANDLER type ref to IF_WD_IACTIVE_FORM_METHOD_HNDL.
*
*check first_time = abap_true.
*
*LR_INTERACTIVE_FORM ?= VIEW->GET_ELEMENT('adobe').
*LR_METHOD_HANDLER ?= LR_INTERACTIVE_FORM->_METHOD_HANDLER.
*LR_METHOD_HANDLER->SET_LEGACY_EDITING_ENABLED( abap_true ).
So I kept this code & I also kept the Interface type "ABAP Dictionary based".
Additionally in Webdynpro, I used adobe form generated FM to get the adobe content & passed it to the "content" parameter of my adobe component in webdynpro.
Thanks & Regards.
Hi Sonali,
I dont think WebDynpro can control the behavior of Adobe forms, Try using the FormCalc for performing the action you want.
Regards,
Poojith MV
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sonali,
A print PDF (i.e. a non-interactive) sets all fields to read-only per definition. So there is no other way than using an interactive form.
Regards,
Juergen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I don´t think it is possible to let the user edit the form and have not set the form as interactive. I doubt this. If you need some input, create a view preceding the adobe form view in WD app to collect the data from the users.
Regards, Otto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sonali,
You cannot have an editable form with interface type as "ABAP dictionary based".
Now if you need the form to be editable for a couple fields as well then also you will have to create an Interactive form which will allow you to edit the required fields. All required "DISPLAY ONLY" fields can be set to read-only while you design the form. And for the other set of fields which are dynamic as per your description you can use the coding in Javascript or FormCalc (as per your convenience) to set their behavior.
For the interactive forms Interface type would be "XML Schema Based".
Let me know if you have any queries.
Cheers,
Kunjal
User | Count |
---|---|
95 | |
11 | |
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.