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: 

Problem with PDF Attachment

Former Member
0 Kudos

Hi,

I am sending payslip of employees through PDF attachements. It was working fine till last month. This month we have upgraded EHP4 on ECC6 after that the payslip attachement which is sent to the mail ids is not opening. When trying to open the document it is displaying error as " There was an error opening this document. The file is damaged and couldnot be repaired".

I am using Funtion modules: CONVERT_OTFSPOOLJOB_2_PDF next QCE1_CONVERT next for mail sending SO_DOCUMENT_SEND_API1.

Can some one tell me what could be the problem ? It is an priority issue and i am working on the same.

Thanks & Regards,

Srinath

1 ACCEPTED SOLUTION

Former Member
0 Kudos

OSS note 1430123 seems to have resolved per

7 REPLIES 7

pramodu
Active Participant
0 Kudos

Hi,

Please existing thread for simliar kind of problem

Cheers,

Pramod

Former Member
0 Kudos

Hey in your SCOTT setting , see is the output format maintained is PDF.

Regards,

Uma Dave

Former Member
0 Kudos

OSS note 1430123 seems to have resolved per

Former Member
0 Kudos

HI srinath,

We have faced the same problem after a patch has been added, we tried all possible ways but there

is no use the document did not open.

PLEASE CONSULT BASIS PEOPLE, THEY CAN FIX THE PROBLEM.

we have sent mail to SAP regarding this problem, they have sent measures to be taken by BASIS people.

Regards and Best wishes.

Former Member
0 Kudos

Thanks all !!

manubhutani
Active Contributor
0 Kudos

Hi Srinath

I am facing the same issue,

Would be thankful if you can help me resolve this.

By the way, Happy Holi.

Regards,

Manu

0 Kudos

Hi manu,

before send mail u use following FM


 CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
      EXPORTING
        buffer        = filex
      IMPORTING
        output_length = file_length
      TABLES
        binary_tab    = gt_objbin.