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 Dump (SendEmail)

Former Member
0 Kudos

hi Experts

I need send Adobe Form as attachment

                                          • this is part of my prog. ******************

TRY.

lr_send_request->send(

EXPORTING

i_with_error_screen = 'X'

RECEIVING

result = lv_sent_to_all ).

CATCH cx_send_req_bcs INTO lr_send_req_bcs.

ENDTRY.

COMMIT WORK.

***************************************************************

but after execute I get Error(Dump):

*Calling a COMMIT WORK in an update process is not allowed*

*because the function modules triggered in a Logical Unit*

*of Work cannot then be processed correctly.*

I tried to use UpdateFunction(call function in update task), but in this case I get Empty PDF File .

How can I solve this problem?

Thanks,

Larissa

1 REPLY 1

former_member194669
Active Contributor
0 Kudos

I think you are calling class cl_bcs inside function module, try with remove the commit work and call bapi_transaction_commit after your function module call