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

Facing Strange problem using CL_BCS for mail attachments

Former Member
0 Likes
1,822

Hi,

I am using the class CL_BCS for sending mail with attachments.

my report will schdule for every 15mins and check the output type status for delivery is yellow then the job will call the custom program and inside the custom program the logic will create mail attachment and send mail to the group and the output status turn to green .

It is working fine,however we are facing the problem that missing the attachments in monthly once or bi-monthly.when we re-trigger the delivery which has not given attachment that delivery will send the attachment in next time.

For tracking the issue i have written the logic at the creation of attachment and i find the error was happening at the mail attachment.Here is the error mesage from log

."Short Text
Exception CX_DOCUMENT_BCS occurred (program: CL_DOCUMENT_BCS===============CP, i"

SY-MSGID :  SOTR_MESS

SY-MSGNO :  032(No concatenated concept exists) 

How to overcome the issue as this error is coming from standerd class.

Thanks

Kiran

1 ACCEPTED SOLUTION
Read only

brad_bohn
Active Contributor
0 Likes
1,206

Did you search for the message in OSS? There's new note that comes up as a hit for the message for OTR cleanup. If it doesn't solve the issue, then raise a message via OSS. Also, you can easily do a where-used for that message and analyze the conditions that trigger it, though it may not help in your case if you can't duplicate the issue with regularity.

4 REPLIES 4
Read only

Former Member
0 Likes
1,206

Hi,

I am not sure on which method within Class CL_BCS is causing this issue. If i were you, i would have caught the exception in a TRY-ENDTRY. If the exception has occurred, i would try and re-create the attachement by calling the same method again.

I would maintain a variable in TVARV table to control the number of times the attachment will be attempted to be recreated. If the attchment is still not created at end of all attempts,increase the number of retries to see if it helps or may be i would throw an error..

hope this helps. If not, please specify the method which you are using to create attachments.

rgds,

Raghav.

Read only

brad_bohn
Active Contributor
0 Likes
1,207

Did you search for the message in OSS? There's new note that comes up as a hit for the message for OTR cleanup. If it doesn't solve the issue, then raise a message via OSS. Also, you can easily do a where-used for that message and analyze the conditions that trigger it, though it may not help in your case if you can't duplicate the issue with regularity.

Read only

Former Member
0 Likes
1,206

Hi Brad Bohn ,

Thanks for your helpful answer.

I have searched in OSS for message OTR cleanup,but i didn't get any.i have used where-used list for the mesage number and i find that call function SOTR_LINK_GET_LINK the message 032 is assigning..

Incase do you have that OSS number can you please share?

Thanks

Kiran

Read only

brad_bohn
Active Contributor
0 Likes
1,206

1316104. Also check 818954.