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

Triggering mail via T-code CJ20N

Former Member
0 Likes
548

Hi ,

Our requirement is to send a mail to the client when the user changes Reservation Relevance/Generation of Purchase Requisition status to u201CImmediatelyu201D.

We have coded our logic in BADI ME_REQ_POSTED (method = IF_EX_ME_REQ_POSTED~POSTED ) used the standard FM u201CSO_NEW_DOCUMENT_SEND_API1u201D.

But the problem is whenever the user saves the changes in CJ20N the FM SO_NEW_DOCUMENT_SEND_API1 internally calls commit transaction & we get the dump u201CSAPSQL_ARRAY_INSERT_DUPRECu201D. We have tried sending mails via OOPS method as well but it still gives the same dump.

Can anybody suggest any other EXIT / BADI name where we can write the code for sending the email without causing dump or any other way to handle the current issue ?

1 REPLY 1
Read only

Former Member
0 Likes
439

Hi balraj

I Provide you some SAP note number Please implement it .

0001158109

0001544367

0001553851

949194

851850

852935

960273

This Will help you to remove runtime Error problem .

Regards

Ajit