Application Development 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: 

COMMIT_IN_POSTING runtime error when repeat output is used and saved in VL02N

Former Member
0 Kudos

Hello guys,

Need help your help in solving the below issue.

I have used fm 'SO_NEW_DOCUMENT_ATT_SEND_API1' in my custom program to print the Delivery.

I am getting the short dump "COMMIT_IN_POSTING when the I try to do the repeat output IN VL02N and save it.

It says Commit work cannot be used in Update FM. Due to this bussiness the facing problem and requested us to fix it ASAP.

I have searched for the threads, but could not get the exact solution. I have seen the 1867409 note, but dont know whether it will fix the issue.

Meanwhile I will also continue to search for the solution.

Could you please help me out in fixing this ?

Thanks in Advance..!!!

Best regards,

Karthik Ganti.

3 REPLIES 3

former_member200338
Active Contributor
0 Kudos

Set COMMIT_WORK = space while calling FM SO_NEW_DOCUMENT_ATT_SEND_API1.

krishna_k19
Contributor
0 Kudos

Hi Karthik ,

    Please check the values what you are passing to mailing functionality and please post the error screen shot.

Regards,

Krishna

0 Kudos

Hi,

Thanks for your quick response and Sorry could not reply you all as I was busy with some other work.

I have solved it on my own.

Solution : I have created a Z function module with DESTINATION 'NONE'. In this function module I have handled the logic to send email. It worked perfectly.

This could help anyone who faces the same issue going forward.

Best regards,

Karthik Ganti.