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: 

Function CONVERT_OTF, error in PDF.

Former Member
0 Kudos

Hi,

We have this program used to work but recently we have upgraded the patch level, now working on SAP BASIS release 701 package SAPKB70106.

We are trying to convert OTF to PDF using function CONVERT_OTF. After this we send an e-mail with PDF attachment using function SO_NEW_DOCUMENT_ATT_SEND_API1.

When we try to open the attachment in transaction SOST, we encounter this message

"There was an error opening this document. The file is damaged and could not be repaired".

Anyone please help me on this.

Thank you!

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

I was also facing same problem ,, The solution is SAP note 1430123 ..

So just implement 1430123 note..

Summary

Symptom

The module SO_DOCUMENT_SEND_API1 is used to send messages 
with binary contents (for example, PDF documents as e-mails). 
The messages cannot be read by the recipient or using transaction SOST 
because the content is empty or is truncated.

Other terms

API1, SOLI_TAB, CONTENTS_BIN, document size, SO_NEW_DOCUMENT_ATT_SEND_API1

Solution

Implement the corrections using the Note Assistant, or import the relevant Support Package.
After you do this, the document size is calculated correctly.

My problem has been resolved..

Edited by: Lokesh Tarey on Jul 28, 2010 6:22 AM

3 REPLIES 3

Former Member
0 Kudos

Hi,

I was also facing same problem ,, The solution is SAP note 1430123 ..

So just implement 1430123 note..

Summary

Symptom

The module SO_DOCUMENT_SEND_API1 is used to send messages 
with binary contents (for example, PDF documents as e-mails). 
The messages cannot be read by the recipient or using transaction SOST 
because the content is empty or is truncated.

Other terms

API1, SOLI_TAB, CONTENTS_BIN, document size, SO_NEW_DOCUMENT_ATT_SEND_API1

Solution

Implement the corrections using the Note Assistant, or import the relevant Support Package.
After you do this, the document size is calculated correctly.

My problem has been resolved..

Edited by: Lokesh Tarey on Jul 28, 2010 6:22 AM

0 Kudos

Hi Lokesh,

It works.

Thank you!

0 Kudos

Hi Lokesh,

can you please tell me why this error comes

and would be thankful if you can let me know the contents of this note.

Regards

Manu