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

Problem with the function module SO_DOCUMENT_SEND_API1

Former Member
0 Likes
864

Hi Friends,

I am facing the problem wiht the function module SO_DOCUMENT_SEND_API1,

My actull requirement is : - i need to send the sap data to my externa mail id (Like as XYZ@) with out the any attachment , So i have implemented the code with the function module SO_DOCUMENT_SEND_API1.

The mail has successfully sent the sap inbox (SOST) but the mail are not reached to the external mail ID'S( XYZ@GMAIL)

i Have maintained my code lines same as below.

CALL FUNCTION 'SO_DOCUMENT_SEND_API1'

EXPORTING

document_data = wa_doc_data

put_in_outbox = ca_x

commit_work = ca_x

TABLES

packing_list = tb_packing_list

contents_txt = tb_mailbody

receivers = tb_receiver.

Can you please tell me soultion ,

Thanks

charan.

6 REPLIES 6
Read only

former_member225631
Active Contributor
0 Likes
729

Please try put_in_outbox = ' '.

Read only

Former Member
0 Likes
729

Hi Charan,

Pass the Importing parameter "SENDER_ADDRESS_TYPE" value as "SMTP" and also try to handle the Exception parameters of the Function Module and see what is the SY-SUBRC value once Function Module is executed.

I think this should resolve the issue.

Regards,

SRinivas

Read only

Former Member
0 Likes
729

Hi Charan,

You need to configure SAPConnect in t-code SCOT. There correct SMTP provider address and port number to be maintained.

Thanks,

Jissa

Read only

Former Member
0 Likes
729

if u r able to see the email in SOST.And in SOST if u execute that line and the email comes to your mail id.then write the below code

After the FM CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'.

-


SUBMIT rsconn01 WITH mode EQ 'INT' AND RETURN.

-


This will solve your issue.<removed by moderator>

Edited by: Thomas Zloch on Nov 23, 2010 1:00 PM - please do not ask for ...

Read only

0 Likes
729

SUBMIT rsconn01 WITH mode EQ 'INT' AND RETURN.

Bad suggestion...you should never assume control of a program like that which does not allow filtering/restrictions within a single program and override any system-wide controls...

Read only

former_member538160
Participant
0 Likes
729

Hi charan,

If u r able to see the mail in sost, then i think ur code has worked fine. if the mail is not going to outside domains from sost u need to do some configurations for that, u can find lots of configuration docs regarding mail setup in sap.

once try to pass below parameter also.

t_receivers1-rec_type = 'U'.

For configuring mail setup u need to sit with ur basis guy.

Moderator message: please do not use SMS speak.

Edited by: Thomas Zloch on Nov 23, 2010 5:51 PM