cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Web Dynpro ABAP Adobe form Access via 'NULL' object reference

Former Member
0 Kudos

Hi All!

I'm a beginner of Adobe form.

problem 1:

I tried to display data in Adobe interactive form according to the tutorial :https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/7783. [original link is broken] [original link is broken] [original link is broken]

I checked every step, but unfortunately it reported an error: Access via 'NULL' object reference not possible. I found that the error happens when trying to get element of the context node.

I also have such problem when I was studying the tutorial https://wiki.sdn.sap.com/wiki/display/WDABAP/CallAdobeFormthroughABAPWebDynpro.

problem 2:

I can't input any data in input box or click any button even if I selected the property 'enabled' of the interactive form while my colleague can do it on his computer. Does it means that there are some thing wrong with my adobe reader?

Hope anyone could save me,

Thanks & Regards,

Murloc

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

For problem 1:

Try changing the cardinality of the node.

For problem 2:

Try this peice of code in WDDOMODIFY method of your view.



method WDDOMODIFYVIEW.
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(u2018INTERACTIVE_FORM_1u2019).
LR_METHOD_HANDLER ?= LR_INTERACTIVE_FORM->_METHOD_HANDLER.
LR_METHOD_HANDLER->SET_LEGACY_EDITING_ENABLED( abap_true ).
endmethod.

Regards,

Runal

Answers (3)

Answers (3)

Former Member
0 Kudos

Tons of thanks for your help.

Problem 2 is solved by changging the type of the interface to 'XML scheme based'..

I tried to change the candinality of the context node in problem 1. But it reported "Lower-Level Node with Name ADOBE.1.ZADOBE_FORM.ENTITLE Does Not Exist" in the second tutorial. However it works in the first one.

Former Member
0 Kudos

Hi,

If you follow the steps as in Blog then the form will be present as ReadOnly even if you check the "enabled" option. To get work with this follow these links:

http://help.sap.com/saphelp_nw2004s/helpdata/en/42/c247dc6227311ce10000000a1553f7/content.htm

http://help.sap.com/saphelp_nw2004s/helpdata/en/2c/241a427ff6db2ce10000000a1550b0/frameset.htm

To get an Interactive Form you need to create the form from WebDynpro itself i.e. first create all the WebDynpro coding and in the view for Interactive Form properties specify the new name for Template Source then if you press enter then it will prompt for Interface there specify the new interface name and in that popup you will find the context, when you press that button then it will ask to select a context node, select the appropriate context node then it will automatically take you to SFP transaction which is opened in WebDynpro itself. And make sure Layout Type is ZCI Layout and also goto utilities and select "Insert WebDynpro Script" when you are in SFP Transaction.

And about other problem "Access via 'NULL' object reference", some value is missing or context is not mapped properly. Try creating applications using these resources also

https://www.sdn.sap.com/irj/scn/interactiveforms-elearning

Regards

Pradeep Goli

former_member184619
Active Contributor
0 Kudos

>

> Hi All!

> I'm a beginner of Adobe form.

> problem 1:

> I tried to display data in Adobe interactive form according to the tutorial :https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/7783. [original link is broken] [original link is broken] [original link is broken]

> I checked every step, but unfortunately it reported an error: Access via 'NULL' object reference not possible. I found that the error happens when trying to get element of the context node.

> I also have such problem when I was studying the tutorial https://wiki.sdn.sap.com/wiki/display/WDABAP/CallAdobeFormthroughABAPWebDynpro.

Check that you have entries in the Table MARI. else you will get this message.

> problem 2:

> I can't input any data in input box or click any button even if I selected the property 'enabled' of the interactive form while my colleague can do it on his computer. Does it means that there are some thing wrong with my adobe reader?

>

Compare the adobe live cycle version. it will work fine with 7.0/7.1

> Hope anyone could save me,

> Thanks & Regards,

> Murloc