cancel
Showing results for 
Search instead for 
Did you mean: 

FILE DOES NOT BEGIN WITH '%PDF-'.

Former Member
0 Kudos

We are using standard QC42 Transaction.

This is calling program SAPMQCWA, which in turn calls program MQCWAF01. here download into PDF will happen.

There is a function module in this program QC07_BATCH_CERT_DISPLAY_PDF which converts the data into PDF.

Trace I can see it is converting data into MIME.

 The problem may be at converting this MIME .

 While downloading into browser it is not able to convert into the format which browser wants.

While down loading it is calling this statement.

MIME-TRANSPORT

L_MIMEBIN_TAB L_CONTENT_LENGTH LC_APPLICATION.

This is calling function module

CALL FUNCTION 'ALEWEB_DOWNLOAD'

EXPORTING

DATA_LEN = &2

MIME_TYPE = &3

TABLES

DATA_TAB = &1

EXCEPTIONS

ITS_NOT_AVAILABLE = 1

OTHERS = 2.

are there any correction needs to apply if it is Unicode system?

I found a note similar to this problem but that is related CRM note number is :828461

Please advice us how to correct this error.

Thanks in advance!!!

Keith Nelson

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member228142
Active Contributor
0 Kudos

Hi,

you can specify the data type as RAW or CHAR. I assume the PDF should not be converted by the RFC therefore I suggest RAW as data type.

Best regards,

Klaus

Former Member
0 Kudos

Hi ,

I am not converting this into any data type, SAP standard functionmodule is converting PDF.

could you please tell me where i need to change if i need to change.

Thanks

Keith.

Former Member
0 Kudos

Jepp, that's true. But character based data will be converted during the RFC transport

and raw data will not.

So try to pass the raw parameter to the function module 'ALEWEB_DOWNLOAD'.

regards

Tobias

Former Member
0 Kudos

Hi,

I tried 'RAW' datat type also still it is giving same error.

Please suggest me how to solve this issue?

Thanks

Keith.

Former Member
0 Kudos

Hi Keith,

I suggest to create a OSS ticket for this issue. This might be an error within

the application and not related to the ITS. Does the application provide a way

to download the PDF document using the SAPGui for Windows? And if so,

does it work?

regards Tobias

Former Member
0 Kudos

Hi Keith,

I am working in Upgrade ECC 5.0 to ECC 6.0(Unicode) .

In ECC 5.0 I am using MIME-DOWNLOAD PDF_CONTENT MIMELENGTH 'application/pdf' Macro for MIME-DOWNLOAD.

It is working fine I am getting PDF file in SAP GUI FOR HTML by ITS.

But In ECC 6.0 I am not getting . The same error what u got I am also getting the same.

Can you help me to suggest some tips to proceed further.

Thanks in advance.

Dav.

former_member228142
Active Contributor
0 Kudos

Please you a printer of type pdf1 instead of SAPWIN

Best regards,

Klaus

Former Member
0 Kudos

Hi Dav,

Did you able to get this fixed? We are also facing the similar kind of issue after Upgrade ECC 6.0 from ECC 5.0.

Let me know if you can able to fix this. If I get any solution, I will post the same.

Thanks,

Sivapratap