04-03-2006 6:14 PM
Hello everybody,
I try to send documents in FM ZXPADU02 following bcs_example, but the commit work has no effect. I set it like this
CALL METHOD send_request->send(
EXPORTING
i_with_error_screen = 'X'
RECEIVING
result = sent_to_all ).
commit work.
This sentence was working till 4.6c, but since we migrate to 5.0, the commit work is no more working. Sending documents via smartforms (in the same user exit) works because instead of using commit work, we set bcs_commit = 'X' in output-options.
We have no problem with commit work in normal reports, but I think that used in a user exit, the behavior has been changed since we are on ERP2004.
Any idea ?
Jean-Paul
04-04-2006 7:00 PM
04-04-2006 10:42 PM
Is your code getting executed? Did you check in debugging if you can go to this piece of code? If not, may be during the upgrade, the user exit was deactivated and did not get activated again.
04-04-2006 10:44 PM
Is your code getting executed? Did you check in debugging if you can go to this piece of code? If not, may be during the upgrade, the user exit was deactivated and did not get activated again.
04-04-2006 10:45 PM
Is your code getting executed? Did you check in debugging if you can go to this piece of code? If not, may be during the upgrade, the user exit was deactivated and did not get activated again.
04-05-2006 9:01 AM
Hello,
Of course, the code is activ, the sendmail is a very small part of it. I try to put many things with commit work (also commit work and wait). I set it almost ... everywhere include in the standard program SAPFP50M just after the CALL CUSTOMER-FUNCTION '002', no result. Nothing is done and when debugging sy-subrc is always at 0 after the commit.
Regards.
jp
08-02-2006 2:18 PM
I found the solution by creating a rfc function and I launched it with
call function "zzbc_send"
IN BACKGROUND TASK
DESTINATION 'NONE'
.....
jp
12-10-2012 3:38 PM
Hello,
even this is a realy old thread, I just had the same probleme and this solved it.
Thx!