cancel
Showing results for 
Search instead for 
Did you mean: 

Error sending mail with Smartforms

Former Member
0 Kudos

Hi all,

I have a requirement which requires me to send an email with a smartform as attachment . But I am always getting an error .

The error is

X_ERROR.

I am using the Function Module SO_NEW_DOCUMENT_ATT_SEND_API1.

Kindly clarify to me as to why this error occurs.

Kindly reply immediately as this is bit urgent

Regards,

Vijay

Edited by: Alvaro Tejada Galindo on Feb 18, 2008 2:31 PM

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member1063151
Active Participant
0 Kudos

Hi Vijay,

I am having the same error when using the FM. Could you provide me the solution?

Cheers,

Cady

Former Member
0 Kudos

Hi Cady,

I guess you should check the contents of the data you are passing to the Tables Parameter PACKING_LIST.

Check whether you are passing Doc_type as 'SCR'.

I guess that this should make it work.

Please Reward points .

Regards,

Vijay

former_member1063151
Active Participant
0 Kudos

Hi Vijay,

I am passing doc_type PDF to the packing list. In fact, it was copied from existing working solution for the same scenario. Could it be the PDF that I wanted to attached? It has graphics and its 2 pages.

Cheers,

Cady

Former Member
0 Kudos

Hi Cady,

Try to pass the Doc_Type as 'SCR'.

Please Reward points .

Regards,

Vijay

former_member1063151
Active Participant
0 Kudos

Hi Vijay,

I am attaching a PDF, hence i can't put the doc type you suggested. Anyway, I think the problem has nothing to do with the attachment. As the PDF I am attaching contains graphic, it was sent as a html mail by connecting to the content server. However the URL of the content server is not valid, hence connection error. It's pretty the same as how microsoft outlook works, where if you choose your mail as text, its pure text. That's the deduction I have at this point.

Thanks for you help.

Cheers,

Cady

former_member502730
Participant
0 Kudos

Hi Vijay,

My data is not comming proper.

its coming as junk character .

Former Member
0 Kudos

hi Vijay,

this error occurs when there is an empty attachment.

Perform a initial check before the fm is called.

Regards,

Naresh

Former Member
0 Kudos

Hi Naresh,

Thanks for your reply.

Regards,

Vijay