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

Commit work terminates call transaction

Former Member
0 Likes
871

Hi to all.

I have the following problem in my program.

In the code of my program I do a call transaction.

This transaction have a loop and this loop send emails (htm) to many employees.

For send this mails i using the code for :

FORM send_email_in_html_format.

http://monoceros85.blogspot.com/

The problem is that the first commit work terminates the call transaction and only 1 email is sent.

I need send all the mails. Can anybody helps me?

Thanks a lot!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
796

You need to set the RACOMMIT field of CTU_PARAMS structure with 'X'.

Try it:

DATA: params TYPE STANDARD TABLE OF ctu_params WITH HEADER LINE.

* PROCESSING MODE:
* A = Display all screens
* E = Display errors
* N = Background processing
* P = Background processing; debugging possible
PARAMS-DISMODE =  'N'.

* PROCESS COMPLETE WHITHOUT COMMIT
PARAMS-RACOMMIT = 'X '.

CALL TRANSACTION 'XXXXX' USING YOUR_BDC OPTIONS FROM PARAMS.

3 REPLIES 3
Read only

Former Member
0 Likes
797

You need to set the RACOMMIT field of CTU_PARAMS structure with 'X'.

Try it:

DATA: params TYPE STANDARD TABLE OF ctu_params WITH HEADER LINE.

* PROCESSING MODE:
* A = Display all screens
* E = Display errors
* N = Background processing
* P = Background processing; debugging possible
PARAMS-DISMODE =  'N'.

* PROCESS COMPLETE WHITHOUT COMMIT
PARAMS-RACOMMIT = 'X '.

CALL TRANSACTION 'XXXXX' USING YOUR_BDC OPTIONS FROM PARAMS.

Read only

Former Member
0 Likes
796

During your recording you can check the checkbox "Continue after commit" which is similar to CTU_PARAMS-RACOMMIT = 'X'.

Read only

Former Member
0 Likes
796

Thansk a lot for you help !!!!