cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
Read only

Making selective fields editable in adobe form [using web dynpro]

Former Member
0 Likes
1,593

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.

View Entire Topic
OttoGold
Active Contributor
0 Likes

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

Former Member
0 Likes

No the input is required on the pdf form itself for some fields, so this wont solve my problem.

I have seen some forms which have 1-2 fields editable & rest are display fields & their interface type is "ABAP dictionary based". Havent been able to figure out how its been done though.

Former Member
0 Likes

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