cancel
Showing results for 
Search instead for 
Did you mean: 

Sending Mail via BSP

former_member184067
Active Contributor
0 Kudos

hi all,

i have a problem in sending mail via bsp.

the case is i want to send reminder from e-portal. in order to do that i made a new bsp page and a new function modul.

the bsp page is used for user interface and the function modul is used for the process for sending mail.

in the function modul i send the mail via api.

the bsp page and function modul is already finish. but when i testing them, the mail is not sent into mail inbox.

if i checked in sap outbox, the mail sent via bsp is exists.

i try to debug it the code for bsp page and function modul is already ok, no error occured.

is there any clue why this happened ?

is there any thing else that need to be config or set ?

please help

regards

eddhie

Accepted Solutions (1)

Accepted Solutions (1)

athavanraja
Active Contributor
0 Kudos

check in transaction SCOT whether it is still waiting to be transmitted?

Regards

Raja

former_member184067
Active Contributor
0 Kudos

hi Raja,

thanks for the respond

i've check again in the outbox of sap, my document is not there.

is there any clue why this happen ?

beside that can we access the api for sending mail via function modul ?

please help

regards

eddhie

f_roels
Participant
0 Kudos

Hello Eddhie,

Are you sending mail to an external mail adres via transaction SCOT?

(If so: Is a mail adress set for the sending user? Is the defaultdomain set in SCOT, Is the adresarea set to * within the SMTP-settings?)

Greetings,

Frank

athavanraja
Active Contributor
0 Kudos

are you using a standard FM for email or custom one? which version of SAP you are using.

Regards

Raja

former_member184067
Active Contributor
0 Kudos

hi Raja,

for FM for sending mail i used the SAP standard, and the system i used now is SAP CRM 4. but in order to generate the proper words in the mail i build 1 custom fm. and the

SAP standard FM is called from the custom one.

i've check the transaction SCOT, there is no queue in transit waiting.

and if i check transaction SOST, the document that sent is not found there.

any clue ?

please help

regards

eddhie

athavanraja
Active Contributor
0 Kudos

check oss note no. 455140 to see whether all the configuration are done properly.

Regards

Raja

former_member184067
Active Contributor
0 Kudos

hi Raja,

thanks for the reply,

but the case that mail not sent is just sending from the function modul that i made.

the other is work.

the question that i realy want to ask is : can mail be sent via function modul ?

the sap original function modul that used for sending mail is 'SO_DOCUMENT_SEND_API1'.

please help

regards

eddhie

athavanraja
Active Contributor
0 Kudos

can mail be sent via function modul ?

YES

check this weblog by Thomas on how to use this FM to send mail.

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

Regards

Raja

former_member184067
Active Contributor
0 Kudos

hi Raja,

i have solved the problem sending mail via bsp.

many thanks for your help, i rewards point for your answer.

about the sap notes that you told me before, is it the way for setting how to send mail / messages via web application server right ?

could please you give little explaination for the notes, because i think 80% of the notes is for basis configuration and i don't have authorization.

beside that, what i have to do if in transaction SCOT there is a lot document still waiting for transmitted ?

please help

regards

eddhie

athavanraja
Active Contributor
0 Kudos

<i>is it the way for setting how to send mail / messages via web application server right ?</i>

YES

<i>

could please you give little explaination for the notes</i>

most of the points are discussed in the following weblog of Thomas.

/people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface

<i>SCOT there is a lot document still waiting for transmitted</i>

you can star the send process by clicking Ctrl+F7 (the last execute button in the application toolbar)

Regards

Raja

former_member184067
Active Contributor
0 Kudos

hi Raja,

many thanks for your help and explanation

regards

eddhie

Answers (0)