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

SO_NEW_DOCUMENT_ATT_SEND_API1

Former Member
0 Likes
588

Hi!

Please let me know what could be the reason for the Function Module SO_NEW_DOCUMENT_ATT_SEND_API1 to raise an exception called

x_error = 6 (Internal error or database inconsistency) when an empty attachment is sent? Thanks in advance.

Thanks & Regards,

akanksha.

Hi!

Please let me know what could be the reason for the Function Module SO_NEW_DOCUMENT_ATT_SEND_API1 to raise an exception called

x_error = 6 (Internal error or database inconsistency) when an empty attachment is sent? Thanks in advance.

Thanks & Regards,

akanksha.

2 REPLIES 2
Read only

Peter_Inotai
Active Contributor
0 Likes
470

Hi,

It's difficult to say anything based on the info you provided. The best to debug and put a break-point at RAISE or MESSAGE statement.

I'd also suggest to double check your parameters based on this weblog:

/people/thomas.jung3/blog/2004/09/07/sending-e-mail-from-abap--version-46d-and-lower--api-interface

Best regards,

Peter

Read only

Former Member
0 Likes
470

hi ,

this FM SO_NEW_DOCUMENT_ATT_SEND_API1 uses internally 'SO_OBJECT_SEND' and if in this if exception raises OTHERS = 1000.

and which inturn raises x_error = 6.

so try to check the FM 'SO_OBJECT_SEND' setting a break point , and obviously if there is no object is send , the excetiopn OTHERS will be raised and hence x_error .

reward with points , if helpful.

Revert back if any issues.

Regards,

Naveen.