2013 Feb 22 5:33 AM
Hi Experts,
I am trying to Execute SO_OBJECT_SEND, It is not working properly. As per my business requirement i have to give Sender detail in the Email. So share your ideas or provide the sample code on it. Thanks in Advance.
2013 Feb 22 7:10 AM
Hi Experts,
I am trying to Execute SO_OBJECT_SEND, It is not working properly. As per my business requirement i have to give Sender detail in the Email. So share your ideas or provide the sample code on it. Thanks in Advance.
2013 Feb 22 5:49 AM
Hi Pasumpon,
You can use this FM SO_NEW_DOCUMENT_ATT_SEND_API1. If its ok with the business you can send Sender data in the attachment. This FM allows you to send an attachment to multiple receivers.
Hope this helps!
2013 Feb 22 6:01 AM
Hi A N,
What the thing happen is, In workflow we're done through this as a background mode, It take sy-uname automatically as ''WF-BATCH' but not taking sender's detail. I want sender name in the Mail. I already try lot with FM SO_NEW_DOCUMENT_ATT_SEND_API1. But it is not work out. How to achieve this? Help me out.
2013 Feb 22 6:04 AM
Hi Pasumpon ,
Please go through this link here already sample code is given .
http://wiki.sdn.sap.com/wiki/display/Snippets/Sending+mail+with+attachment
hope it will be helpful for you.
Regards,
Ruhul
2013 Feb 22 6:40 AM
Hi Pasumpon,
In that case you will have to use an FM to get the User's Name (USR01-BNAME) from the User ID (SY-UNAME) and then pass this in the attachment. There are some FMs which may be helpful but most of them are not released.
Just as try you can check out :
SUSR_USER_ADDRESS_READ
SUSR_SHOW_USER_DETAILS
But its better to use a released one so maybe you can look out how to get a relation between User's Name and SY-UNAME.
Will let you know if I get hold of any.
2013 Feb 22 7:10 AM
2013 Feb 22 7:13 AM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |