cancel
Showing results for 
Search instead for 
Did you mean: 

Uncaught Exception occured while sending mail through abap code.

Former Member
0 Kudos

Hi,

Uncaught Exception occured while sending mail through abap code.Run time Errors "UNCAUGHT_EXCEPTION" occured after excuting the call method CALL METHOD SEND_REQUEST->SEND( ).kindly help in resolving the issue.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Runtime exception occurred in standard sap class method CREATE_INTERNET_ADDRESS() of class CL_CAM_ADDRESS_BCS ,while sending mails.

Please hlep how to resolve this issue.

Former Member
0 Kudos

it's better to get the abaper help to debug the issue.

regards,

saperrors.com

Former Member
0 Kudos

HI,

Runtime Error: UNCAUGHT_EXCEPTION details.

Runtime Errors UNCAUGHT_EXCEPTION

Exception CX_ADDRESS_BCS

Short text

An exception occurred that was not caught.

What happened?

The exception 'CX_ADDRESS_BCS' was raised, but it was not caught anywhere along

the call hierarchy.

Since exceptions represent error situations and this error was not

adequately responded to, the running ABAP program 'SAPLZSEND_MAIL' has to be

terminated.

Error analysis

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_ADDRESS_BCS', was not caught in

procedure "SEND_MAIL" "(FORM)", nor was it propagated by a RAISING clause.

Since the caller of the procedure could not have anticipated that the

exception would occur, the current program is terminated.

The reason for the exception is:

An exception occurred

How to correct the error

If the error occures in a non-modified SAP program, you may be able to

find an interim solution in an SAP Note.

If you have access to SAP Notes, carry out a search with the following

keywords:

"UNCAUGHT_EXCEPTION" "CX_ADDRESS_BCS"

"SAPLZSEND_MAIL" or "LZSEND_MAILU01"

"ZSEND_EMAIL"

If you cannot solve the problem yourself and want to send an error

notification to SAP, include the following information:

1. The description of the current problem (short dump)

To save the description, choose "System->List->Save->Local File

(Unconverted)".

2. Corresponding system log

Display the system log by calling transaction SM21.

Restrict the time interval to 10 minutes before and five minutes

after the short dump. Then choose "System->List->Save->Local File

(Unconverted)".

3. If the problem occurs in a problem of your own or a modified SAP

program: The source code of the program

In the editor, choose "Utilities->More

Utilities->Upload/Download->Download".

4. Details about the conditions under which the error occurred or which

actions and input led to the error.

The exception must either be prevented, caught within proedure

"SEND_MAIL" "(FORM)", or its possible occurrence must be declared in the

RAISING clause of the procedure.

Please help me to resolve this issue.

vincentlim826
Employee
Employee
0 Kudos

I see, this is your customized coding ? have you check on the validation of email format ? you might to try to locate errors within your Function Module..

I came across this report RSSODIAD to be run in transaction SE38 to check for inconsistency, but not sure if helps.

Also, recheck the settings in transaction SCOT.

Former Member
0 Kudos

This error may come up when some config. is missing. Make sure you have maintained the default domain in SCOT.

SCOT -> Settings -> Default Domain and specify your domain name e.g.: xyz.com

I had got exactly the same error and this resolved it.

Regards,

Sai R.

vincentlim826
Employee
Employee
0 Kudos

I think you need to provide more details of the exception dump in ST22.

Regards,

Vincent