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

FM SO_NEW_DOCUMENT_SEND_API1 Giving dump

Former Member
0 Likes
1,011

Hello,

I used FM SO_NEW_DOCUMENT_SEND_API1 in a badi to send mails while creating PR in CJ20N.

but getting a message of SAP inbox as" Update terminated" and tcode is then going to dump

Please let me know How to resolve this?

Sri

Hello,

I used FM SO_NEW_DOCUMENT_SEND_API1 in a badi to send mails while creating PR in CJ20N.

but getting a message of SAP inbox as" Update terminated" and tcode is then going to dump

Please let me know How to resolve this?

Sri

6 REPLIES 6
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
955

its because of improper badi/method choosed with commit_work = X used with the function inside the badi.

Read only

madhu_vadlamani
Active Contributor
0 Likes
955

Hi,

This update termination message at comes in different stages.If there is nat issue with number range,print out etx.You just debug the badi and paste in which step you are getting.

Regards,

Madhu.

Read only

Former Member
0 Likes
955

Hi Srinag,

Its beacuse of a COMMIT used ini mport parameter of the FM , just comment that , u wont get any DUMP.

Hope thats prove useful to you !

Regards,

Prashanti

Read only

0 Likes
955

Dear Prashanti,

If I comment COMMIT, dump has vanished but mails are not getting triggered. Please advise.

Sri

Read only

0 Likes
955

You have to code this in a manner where everything happens synchronously in the same LUW. You task should be executed in the end ( after the sap transactional flow has been completed ).Have a look at call function in background task as seperate unit.

Read only

0 Likes
955

Hi,

Check in sost if the settings were done in scot.

Regards,

Madhu.