cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP WebDynpro - ArchiveLink - PDF Error: "File does not start with..."

Former Member
0 Kudos

Hey community,

I have a WebDynpro application in which I want to show a Archive document.

I'm using FM 'ARCHIV_GET_TABLE' and then FM 'SCMS_BINARY_TO_XSTRING'.

But I only get the error message: (see also attached)

File does not open with "%PDF-".

Local\EWH...

Attachment two shows, how the data is stored in TOA03.

Document type is FAX .

I tried several FM and nothing worked.

Does anyone have an idea?

Thank you very much in advance.

Florian

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi florian,

Code looks fine.

Seems like there is some issue in the display part.

Can you please tell how you are displaying the document in webdynpro?

Former Member
0 Kudos

Hi Florian,

I don't think you need to use FM SCMS_BINARY_TO_XSTRING.

Just try to make of your binary output table from ARCHIV_GET_TABLE an xstring by concatenating all lines into one xstring.

Regards,



Julien

Former Member
0 Kudos

Hi Julien,

thank you for your fast reply.

Unfortunately it does not work.  Without the MF SCMS_BINARY_TO_XSTRING same result.

Any other idea?

Florian