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

Is It Possible to use Call Function in update task in perform on commit

Former Member
0 Likes
503

Hi Friends,

I have to send an email once the commit work is done. so i am writing code like this,

Perform send_email on commit.

form send_email.

call function 'SO_NEW_DOCUMENT_SEND_API1' in update task

...

....

endform.

endform.

.... ( Some other code)

commit work.

But, I am getting error saying Update task is not possible. Please suggest me how to solve this.

Thanks in Advance,

Phani.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
452

Hi Phani,

Check whether <b>COMMIT Work</b> has be performed. I think this might be the problem.

Regards,

Prashanth

3 REPLIES 3
Read only

Former Member
0 Likes
453

Hi Phani,

Check whether <b>COMMIT Work</b> has be performed. I think this might be the problem.

Regards,

Prashanth

Read only

Former Member
0 Likes
452

Hi Phani,

The FM SO_NEW_DOCUMENT_SEND_API1 is a Remote enabled Function module, your code only works on <b>Update function modules</b>, not on Remote enabled modules.

Regards:-

Santosh.D

Read only

sridharreddy_kondam
Active Contributor
0 Likes
452

Hi Phani,

Try by using call function 'SO_NEW_DOCUMENT_SEND_API1'

Regards,

Sridhar