Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to execute SO_OBJECT_SEND FM?

pasumpon_karuppaiah
Participant
0 Likes
957

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
886

Hi Mr.Pasumpon

Please look at this

http://scn.sap.com/message/9870593

Reward if it is helpful..

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.

6 REPLIES 6
Read only

Former Member
0 Likes
886

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!

Read only

0 Likes
886

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.

Read only

mdruhul_amin
Explorer
0 Likes
886

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

Read only

Former Member
0 Likes
886

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.

Read only

Former Member
0 Likes
887

Hi Mr.Pasumpon

Please look at this

http://scn.sap.com/message/9870593

Reward if it is helpful..

Read only

0 Likes
886

Thanks Raja its working fine