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

Not able to open PDF attachment in SOST.

Former Member
0 Kudos
2,724

Hi All,

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

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. <removed by moderator>

Thank you!

Message was edited by: Thomas Zloch

5 REPLIES 5
Read only

Former Member
0 Kudos
1,372

Hi Srinivas

Are you using the FM CONVERT_OTF_2_PDF?

Regards

Vic

Read only

0 Kudos
1,372

Hi Vic,

We are using FM CONVERT_OTF.

With Regards,

Srini.

Read only

RaymondGiuseppi
Active Contributor
0 Kudos
1,372

Did you perform a research for notes on OSS on those FM for your system level ?

Regards,

Raymond

Read only

0 Kudos
1,372

Hi Raymond,

Yes we did the research on the FM's which we have used.

With Regards,

Srini

Read only

viquar_iqbal
Active Contributor
0 Kudos
1,372

Please try below code before call adobe form code . The problem i had was mail was triggering fine with email body however when opening the PDF it gave the same error .

IF nast-anzal = 0 AND nast-nacha = '5'.

nast-anzal = 1.
ENDIF.