Application Development and Automation 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: 
Read only

Problem with PDF Attachment

Former Member
0 Likes
1,071

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
Read only

Former Member
0 Likes
1,018

OSS note 1430123 seems to have resolved per

7 REPLIES 7
Read only

pramodu
Active Participant
0 Likes
1,018

Hi,

Please existing thread for simliar kind of problem

Cheers,

Pramod

Read only

Former Member
0 Likes
1,018

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

Regards,

Uma Dave

Read only

Former Member
0 Likes
1,019

OSS note 1430123 seems to have resolved per

Read only

Former Member
0 Likes
1,018

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.

Read only

Former Member
0 Likes
1,018

Thanks all !!

Read only

manubhutani
Active Contributor
0 Likes
1,018

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

Read only

0 Likes
1,018

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.