hi
I upgrade Z programs of the SAP 4.6c and 6.0
I have a function with to send mail, I used a standar function SO_NEW_DOCUMENT_ATT_SEND_API1, in 4.6c, this function does not have the "commit_work" parameter
1. I have Z function (zhr_enviar_correo), the function execute in badi of the infotype 2001.([infotype view|http://img849.imageshack.us/img849/4189/infotype.jpg]) / ([Badi debugging wiew|http://img32.imageshack.us/img32/1740/badiinfo.jpg])
2. the zhr_enviar_correo called the standar function SO_NEW_DOCUMENT_ATT_SEND_API1 ([Breakpoint in zhr_enviar_correo|http://img151.imageshack.us/img151/1629/sendapi1.jpg]) with commit_work = 'X'
3. the following breakpoint is in call standar function SO_DOCUMENT_SEND_API1 ([breakpoint in SO_NEW_DOCUMENT_ATT_SEND_API1|http://img850.imageshack.us/img850/2695/api1s.jpg])
4. I have a breakpoint in the commit work (http://img98.imageshack.us/img98/6333/commitw.jpg>breakpoint SO_DOCUMENT_SEND_API1)
5. The debugging (F5) in "commit work"(previous step) continued(or returned) in Modul Pool (PAI) (http://img815.imageshack.us/img815/4562/commitwinf.jpg>breakpoint in MP20000)
6. I press F8 (finish the execute), after, I review the SCOT tcode(SMTP) without "wait mail" (http://img857.imageshack.us/img857/9089/scotinf.jpg>SCOT tcode view)
7. But, I execute with SE37 tcode, I put the mandatory parameter in my function zhr_envio_correo (http://img191.imageshack.us/img191/591/se37.jpg>SE37 view)
8. I follow the previous steps 2,3,4 until breakpoint commint work in SO_DOCUMENT_SEND_API (step 4), but I press F5 and commit work continued in different program, It continue in class CL_SEND_REQUEST_BCS in method ON_SAVE_REQUEST. (http://img215.imageshack.us/img215/6035/commitse37.jpg>Breakpoint in CL_SEND_REQUEST_BCS)
9. I review the SCOT tcode and I view the "wait mail" (http://img839.imageshack.us/img839/5748/scotse37.jpg>SCOT view (after SE37 run))
10. I try too with sending mail use CL_SEND_REQUEST class(other zprogram), but the result is the same, the commit work continue different depends the another program(in my case modul pool) or SE37 tcode.
I hope the post and answers,
Ivan