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

Error in attached pdf document

swatantra_vijay3
Participant
0 Likes
496

Hi Gurus

I'm sending mail with PDF attachment using FM SO_NEW_DOCUMENT_ATT_SEND_API1. My problem is sometimes it works but othertimes the attachment does not open and message comes "There was an error opening this document.The file is damaged and could not be repaired "

I have tried all the options but still the problem is coming ................

Any idea?????????

Regards

Swatantra

Swatantra

3 REPLIES 3
Read only

Former Member
0 Likes
468

Hi swatnatra,

1. In the FM,

we give ATT_TYPE (attachment type)

2. give it as 'PDF'

objpack-doc_type = 'PDF'

regards,

amit m.

Message was edited by: Amit Mittal

Read only

swatantra_vijay3
Participant
0 Likes
468

Hi Amit

I have aleady taken objpack-doc_type = 'PDF', but where to assign att_type?????????

Thanks in advance

Read only

Former Member
0 Likes
468

Hi again,

1.Well as u said , u have already done that. 'PDF'.

( i was talking about that only )

2. What kind of data

list/sapscript otf etc

are u converting in to pdf ?

(SCOT settings are ok?)

regards,

amit m.