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

sending mail problem

Former Member
0 Likes
814

Hi ,

I am using FM SO_DOCUMENT_SEND_API1 to send a mail with notification details at save using T-code IW21 (EXIT_SAPMIWO0_020) . The mail and required details are successfully getting sent but the problem i am facing is

each time I sent a mail the previous mail is getting sent e.g. when notification no 101 is saved the mail would not get fired but when notification no 102 is saved mail for 101 is getting triggered.

Please help.

Thanks ,

Tanisha

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
777

Hi,

After Call Function,

IF sy-subrc EQ 0.

COMMIT WORK AND WAIT.

ENDIF.

I am sure it will work.

-Thanks & Regards

Saurabh Goel

6 REPLIES 6
Read only

Former Member
0 Likes
778

Hi,

After Call Function,

IF sy-subrc EQ 0.

COMMIT WORK AND WAIT.

ENDIF.

I am sure it will work.

-Thanks & Regards

Saurabh Goel

Read only

0 Likes
777

HI Saurabh,

Thanks for the reply.But If I use commit work if gives me an error stating "Object does not exist (status management)"

so I am not able to use it.

Is there anything else i can do.

Thanks n Regards,

Tanisha

Read only

Former Member
0 Likes
777

This message was moderated.

Read only

0 Likes
777

Tanisha,

I may not understand your issue clearly, but is your previous email data being cleared from

the various input fields prior to populating your current email data. If the data for both emails

exist, the FM will process both.

Regards

mpersson

Read only

0 Likes
777

Thanks to All.

My problem got resolved with SCOT setting.

Thanks,

Tanisha

Read only

Former Member
0 Likes
777

To resolve the problem we have done setting in scot so that it explicitly sends mails for every 2 minintes.

Thanks for all help provided