‎2010 Nov 23 7:40 AM
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.
‎2010 Nov 23 8:27 AM
‎2010 Nov 23 10:07 AM
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
‎2010 Nov 23 10:41 AM
Hi Charan,
You need to configure SAPConnect in t-code SCOT. There correct SMTP provider address and port number to be maintained.
Thanks,
Jissa
‎2010 Nov 23 11:57 AM
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 ...
‎2010 Nov 23 2:52 PM
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...
‎2010 Nov 23 3:11 PM
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