cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to extract data from PDF

Former Member
0 Kudos

Hi All,

I developed WDA application to upload the interactive form (data filled in offline).

I am able to see the user entered data in the PDF after uploaded it in WDA application.

When I try to extract data, I'm not getting any data from the context nodes which is bound to the Datasource property of the Interactive Form UI element.

Thanks

Thruna Shanmuga

Accepted Solutions (1)

Accepted Solutions (1)

OttoGold
Active Contributor
0 Kudos

Can you place some useful breakpoint and copy the code which causes the error?

Former Member
0 Kudos

Otto,

I removed the dropdown field from Interactive Forms Table for testing.

Now the table has inputfields only.

This time I'm facing a different issue.

I have 4 records in the table.

I uploaded the PDF file in WDA application.

Now I am able to read the header fields data without any issues.

But the table context node is empty now.

I unable to read the table row records.

Thanks

Sundar

Former Member
0 Kudos

It is resolved.

It is a datatype mismatch error.

Thanks for all your help.

Thanks

Sundar

Answers (4)

Answers (4)

OttoGold
Active Contributor
0 Kudos

What values do you have in your dropdown? Maybe it really is too long:)) Do you use codes for items? Whole strings? Describe the source of your DD, the values/ strings/ codes and the way you extract the data in greater detail. Otto

Former Member
0 Kudos

Otto,

Initially I had 40 char long text in the dropdown box.

Then I changed it like below.

I have the following values/text in the dropdown box in the form.

A 1

B 2

C 3

D 4

E 5

The way I'm extracting the data using the WD Context after uploaded the form in the WDA application.

Thanks

Sundar

OttoGold
Active Contributor
0 Kudos

Aaaaah, pardon me:)) Then you need this one: /people/shruti.rathour/blog/2008/02/07/uploading-sap-interactive-form-on-the-abap-webdynpro-view

Otto

Former Member
0 Kudos

Otto,

Thanks for the link.

I already review that blog, she explained how to manually extract the data from the uploaded form.

It did not explain the automatic form context binding to Web Dynpro Context as per SAP Note.

In my form I have n number of records and how do I get values from each row using Find_Form_Name().

Thanks

Sundar

RalfRuth
Employee
Employee
0 Kudos

Hello Sundar,

As far as I've understood, you dynamically create table rows (via instanceManager/addInstance?) in your (offline) form.

If YES: That's not supported for SAP NetWeaver700 / EhP1 (see SAP note 1098009: "Web Dynpro ABAP does NOT support dynamic tables in forms." => You have to extract the data from the form manually (see blog above) and you have to create/fill the necessary Context-Elements manually.

Ralf

Former Member
0 Kudos

Ralf,

Thanks for your reply.

I'm not creating the table dynamically using instanceManager.addInstance().

I have only one row with dropdownbox with 5 items in it.

When I extract the data, now I can read data from the other fields in the row except the dropdown field.

If I don't select anything in the dropdown then I can read data from the other fields.

If I select any value in the dropdown then I get Enry is too long error. (This error is generated by the WD framework).

Thanks

Sundar

OttoGold
Active Contributor
0 Kudos

Hello,

let me rephrase, if I understand your problem:

- you have a WD app which you use for a file upload, where the file is a PDF offline form

- you have a offline form which you need to extract the data from

- where do you see your data? In offfline form - ok, somewhere else? "I am able to see the user entered data in the PDF after uploaded it in WDA application." ==> what does that mean? How can you see the data after you only uploaded a form?

- "When I try to extract data, I'm not getting any data from the context nodes which is bound to the Datasource property of the Interactive Form UI element." ==> what does this mean? Where do you expect the data? And why?

Looks like don´t know you have to manually extract the data from the offline form.

Check this: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c2567f2b-0b01-0010-b7b5-977cbf806...

Otto

Former Member
0 Kudos

Otto,

As of NetWeaver 7.0 SPS10-SPS12 (with OSS note 1055738) or SPS13+, functionality was provided to automatically map the context of an offline interactive form uploaded via the FileUpload UI element to the Web Dynpro Context.

After I uploaded the filled offline form in the WDA application using FileUpload UI Element, I can see the data in the Interactive Form UI element.

Now the context of my offline form should be available in the Web Dynpro context.

Is this correct?

If yes, Web Dynpro context doesn't have any data and I am unable to read it.

Do I need to manually extract data from the form context?

Thanks

Sundar

former_member182468
Contributor
0 Kudos

Hi ,

You can take help from

[Sample Code for processing Inbound Mail with Adobe Interactive Forms|http://wiki.sdn.sap.com/wiki/display/Snippets/Sample%20Code%20for%20processing%20Inbound%20Mail%20with%20Adobe%20Interactive%20Forms]

[Receiving E-Mail and processing it with ABAP|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/795] [original link is broken] [original link is broken] [original link is broken];

[send , receive , process Interactive forms via email in AS ABAP|https://www.sdn.sap.com/irj/scn/elearn?rid=/library/uuid/5087262b-59ef-2910-abb1-957000b7c3d4&overridelayout=true]

hope this helps.

thanks,

sahiba