Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How could i convert a PDF file data after uploading it into report in readable form without using ADS ?

0 Kudos
494

Hi.

I'm not able to get the data of uploaded pdf file in readable form using OPEN DATASET Statement.

Is there any other solution ?

1 ACCEPTED SOLUTION

former_member211078
Participant
0 Kudos
302

we had a similar requirement in our organisation a while back. we searched extensively on the internet,

used GUI_UPLOAD & SCMS_BINARY_TO_XSTRING... but no use.. I also tried executing the standard report FP_PDF_TEST_03 on an ADS server. to our disappointment.. nothing came out from it.

I suggest u to convert the pdf into excel from the third party software and then read the data from excel file.

7 REPLIES 7

FredericGirod
Active Contributor
0 Kudos
302

Hi,

did you mean you would like to read the content of a PDF ?  transform a PDF into a flat text file ?

regards

Fred    

0 Kudos
302

Yes it's exactly u said

0 Kudos
302

You will need an external program for this: if your pdf doesn't contain pictures.

If your PDF contains a picture (if it was a scanned document) you will need a software to analyse the picture and find the letters ... 

in Unix/Linux system you have a lot of soft like : PDF2DOC  PDF2TXT  ...

you have also GhostScript software that could convert PDF into several formats.

and in the worst case, you will need a software making OCR

regards

Fred

0 Kudos
302

My exact requirement is to extract the data from PDF file into internal table in readable format without using any third party software or ADS.

0 Kudos
302

Only methods I found in Abap are part of ADS's API (e.g. some CL_FP_PDF_OBJECT->IF_FP_PDF_OBJECT~GET_DATA...) and usually return XML not Abap internal table

Else perform some google on pdf extract xml free.

Regards,
Raymond

0 Kudos
302

Hi,

I'm satisfied with Mr. Safaya what he replied but still i would like to know if anyone has answer about it.

When we can convert SAP made smartform into PDF so it must be possible to convert pdf into any other format after uploading it into SAP.

Thanx.

former_member211078
Participant
0 Kudos
303

we had a similar requirement in our organisation a while back. we searched extensively on the internet,

used GUI_UPLOAD & SCMS_BINARY_TO_XSTRING... but no use.. I also tried executing the standard report FP_PDF_TEST_03 on an ADS server. to our disappointment.. nothing came out from it.

I suggest u to convert the pdf into excel from the third party software and then read the data from excel file.