‎2010 Aug 13 9:42 PM
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!
‎2010 Aug 13 9:54 PM
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.
‎2010 Aug 13 9:54 PM
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.
‎2010 Aug 13 10:26 PM
During your recording you can check the checkbox "Continue after commit" which is similar to CTU_PARAMS-RACOMMIT = 'X'.
‎2010 Aug 17 7:01 PM