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

issue with SO_ATTACHMENT_INSERT_API1

Former Member
0 Likes
554

Hello experts,

Here I am tryin to convert smart form to pdf and attach to email.

some how I manage to get through the method

CALL METHOD document->add_attachment

EXPORTING

i_attachment_type = 'PDF'

i_attachment_subject = 'SAP'

i_att_content_hex = conhex.

program goes into it and its dumping at SO_ATTACHMENT_INSERT_API1.Am I missing something here...Plz advise

btw the exception is DOCUMENT NOT EXIST!!

Thanks

Edited by: BrightSide on Jan 8, 2010 9:38 AM

Edited by: BrightSide on Jan 8, 2010 9:39 AM

2 REPLIES 2
Read only

Former Member
0 Likes
405

Hi

can u try with this Function module

any one of these.

SO_DOCUMENT_SEND_API1

SO_NEW_DOCUMENT_SEND_API1

'CONVERT_OTFSPOOLJOB_2_PDF'

Thanks & ragrads,

santhosh

Read only

Former Member
0 Likes
405

Done it myself.