‎2007 May 03 5:01 PM
I am encountering difficulty using the function module 'SO_DOCUMENT_SEND_API1' in a BADI; when the BADI executes the mail is partially created (new entries exits in table SOOD) it is however not sent nor is it viewable in BWP.
Executing the same code segment in a standard program outside of the BADI results in successful message creation and delivery.
I think it has something to do with how COMMIT WORK is handled in the BADI, but I'm not sure.
Is it possible to send external mail from a BADI? What am I missing?
TIA
‎2007 May 03 5:28 PM
Hi,
Try this..Call the FM in BACKGROUND TASK..
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
IN BACKGROUND TASK
.....
Thanks,
Naren
‎2007 May 03 5:05 PM
Hi ,
Go to SOST transaction and if you could see an entry there. Then run the program RSCONN01 . This program will send all the communication items which are in 'Waiting For' status.
Thanks,
B Raju
‎2007 May 03 5:10 PM
‎2007 May 03 5:06 PM
Hi,
Which BADI is that???
Is the BADI called in update task...
Thanks,
Naren
‎2007 May 03 5:11 PM
‎2007 May 03 5:28 PM
Hi,
Try this..Call the FM in BACKGROUND TASK..
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
IN BACKGROUND TASK
.....
Thanks,
Naren
‎2007 May 03 5:48 PM
‎2012 May 18 5:02 AM
Hi Narendran,
Thanks for your information.
It worked for me.
BR,
Chandra.