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

Sy-subrc error in the Mailing Function Module SO_NEW_DOCUMENT_SEND_API1

Former Member
0 Likes
404

Hi,

When i'm executing FM : SO_NEW_DOCUMENT_SEND_API1, i'm getting sy-subrc = 2. The error i get is

'Message Type " " is unknown'.

i'm passing the mail header and mail content through internal table by concatenating into a string type which is a part of the internal table i'm passing to the FM.

Kindly suggest what could be the problem here.

Thanks in advance.

Regds,

David

2 REPLIES 2
Read only

Former Member
0 Likes
333

Hi,

Are you getting a run time erorr ?

I think after the call function the SY-MSGTY is blank so pass E to that

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

or you manualy show message.

Regards,

Madhukar Shetty

Read only

vijy_mukunthan
Active Contributor
0 Likes
333

Hi David

Use the parameter SOMLRECI1-REC_TYPE = 'U' for external mail id. Are you passing this?. I could think Message Type only this. Check this.

Regards

Vijay