cancel
Showing results for 
Search instead for 
Did you mean: 

Reading data from pdfsource of adobe form

Former Member
0 Kudos

Friends,

This error pertains to the retrieving data when executing the WDA application.

System details: NetWeaver 2004s. ADS support pack 16.

The Adobe Livecycle Designer version: 7.1.3129.1.296948

The Adobe Reader version: 8.1

The SAP GUI version: 710.

The Web Dynpro component is active.

The Custom Adobe Form is active and is of ZCI layout type. I also inserted the Web Dynpro Script in the layout of the form.

The Custom Form Interface is active and is of XML Schema-Based Interface type. The XML schema source is generated.

The Adobe form has been included as an InteractiveForm UI element in the MAIN view of the WD Component. The displayType property of the InteractiveForm UI Element has been set to "native" and enabled property of the form is checked.

I have included an attribute of type XSTRING called 'USERDATA' under the root context node and set it as pdfsource for the adobe form UI element.

I have included the "Submit" button from web dynpro native library in the form.

I have created a event handler method for the "onSubmit" event of the Adobe form UI element. I have created a reference to the context node 'ZECR' that is the datasource for the adobe form, through the following lines:

data: noderef type ref to if_wd_context_node,

eleref type ref to if_wd_context_element.

noderef = wd_context->get_child_node( name = 'ZECR' ).

when i run the WDA application, i am getting the error:

Subnode MAIN.USERDATA does not exist

Please let me know to rectify this error.

I am not sure how to proceed further ie how to retrieve the data from the XSTRING attribute. I need to populate the data from the attribute to a customized table.

Any hints or help would be greatly appreciated.

Thanks and Regards.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Solved

Former Member
0 Kudos

Hi,

I am facing the same problem reading XML data in string. Can you please share how did you solve this?

Regards,

Rakesh

Former Member
0 Kudos

Hi

Have a look at the following blog [https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/9121] [original link is broken] [original link is broken] [original link is broken];

Hope it helps!

Regards

Thashin

Former Member
0 Kudos

Friends,

I got the code from wizard using Read Context and selected the node.

The error is removed.

Here is the code in the onSubmit event handler method:

-


DATA lo_el_context TYPE REF TO if_wd_context_element.

DATA ls_context TYPE wd_this->element_context.

DATA lv_userdata LIKE ls_context-userdata.

  • get element via lead selection

lo_el_context = wd_context->get_element( ).

  • get single attribute

lo_el_context->get_attribute(

EXPORTING

name = `USERDATA`

IMPORTING

value = lv_userdata ).

-


I understand data has to be read from lv_userdata parameter using a function module. Is there any standard function module for the same and what are the steps for the process.

Any hints or help would be greatly appreciated.

Thanks and Regards.