cancel
Showing results for 
Search instead for 
Did you mean: 

File does not begin with %PDF

Silvio_Galery
Explorer
0 Kudos

Hi,

I have implemented the SAP Portal with ESS package in our customer.

I developed a WDA to show the employee photo. I have used InteractiveForm to do this.

I got the photo from archivelink (BINARY) and convert it to XSTRING. See the source below:

call function 'SCMS_AO_TABLE_GET'

exporting

arc_id = archivelink-archiv_id

doc_id = archivelink-arc_doc_id

comp_id = 'data'

importing

length = lv_length

tables

data = lt_data

exceptions

error_http = 1

error_archiv = 2

error_kernel = 3

error_config = 4

others = 5.

if sy-subrc ne 0.

exit.

endif.

call function 'SCMS_BINARY_TO_XSTRING'

exporting

input_length = lv_length

importing

buffer = foto

tables

binary_tab = lt_data.

The problem is: Some machines are showing the adobe error "File does not begin with %PDF", therefore others have no problem.

What I can do to solve it ?

Thanks,

Silvio Galery

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Silvio.

I have exactly the same problem. Have you repaired this problem?

Can you help me?

Thanks a lot!.

Former Member
0 Kudos

Hi Silvio,

Did you already read note 1042424?

Kind regards,

Minda Bouland

Silvio_Galery
Explorer
0 Kudos

Hi Minda,

I did read this note.

I´m using InteractiveForm to show the employee photo.

First I take the photo in archivelink.

Next, I convert Binary to XSTRING

Then, I move XSTRING to pdfsource in InteractiveForm.

Regards,

Silvio Galery.