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

SO_OBJECT_SEND??

Former Member
0 Likes
1,768

HI

I want to know that what exactly is the purpose of the function module --> SO_OBJECT_SEND.

And how can I test this FM in my server?

Also where to check the e-mails of a person in SAP?

Thanks

7 REPLIES 7
Read only

Former Member
0 Likes
1,323

use SAP Office Inbox where u can send test mail.

Tcode <b>SBWP</b>

to more abt that FM check the Documentation .

if u are maintaining Emails in the User mater so u can get that from table like USR*

Regards

Prabhu

Read only

sridharreddy_kondam
Active Contributor
0 Likes
1,323

Hi Subhash,

U can test the SO_OBJECT_SEND in Tcode SE37 and u can check SAP mails in Tcode SBWP...

and U can get the documentation form initial screen of se37 provided by SAP...

Regards,

sridhar

Read only

0 Likes
1,323

Thanks Sridhar.

Can you please tell me what are the necessary fields that one must pass in this FM while coding so that the message goes to the receipient.

Thanks

Read only

0 Likes
1,323

Hi Subhash,

Just check this include <b>LSOI1U17</b> in se38 and u can see what fields r to be passed for SO_OBJECT_SEND...

Regards,

Sridhar

Read only

Former Member
0 Likes
1,323

Hi,

SO_OBJECT_SEND is used to send the messages / mails to SAP users as well as the external mail ids.

Please go thru the article / example below

SAP supplies a function module 'SO_OBJECT_SEND' to allow you send SAPOffice mails from within your ABAP programs. However, using that function module is complex and takes a lot of time to understand the usage of it.

The following function module is just a wrap around for SO_OBJECT_SEND and takes away much of the complexity out of the process. This function module not only sends a SAPOffice mail but also points to the current spool list. As you can see, many of the parameters have their defaults.

Parameter Descriptions

Either RECEPIENT or DLI must be specified. If the mail should be sent to several people, create a distribution list and supply its name for DLI.

Internal table TEXT should contain the body of the mail message.

While this function module can be used as it is, it is just an example. SO_OBJECT_SEND is very comprehensive and many of the features are omitted from this example. You are encouraged to examine SO_OBJECT_SEND, see all the available features, and change this function module to suit your requirements.

FUNCTION Z_SEND_MAIL_FOR_SPOOLLIST.

*"----


""Local interface:

*" IMPORTING

*" VALUE(SPOOLNUMBER) LIKE SY-SPONO DEFAULT SY-SPONO

*" VALUE(MAILNAME) LIKE SOOD1-OBJNAM DEFAULT 'NOTE'

*" VALUE(SUBJECT) LIKE SOOD1-OBJDES

*" VALUE(RECEPIENT) LIKE SY-UNAME OPTIONAL

*" VALUE(DLI) LIKE SOOS1-DLINAM OPTIONAL

*" TABLES

*" TEXT STRUCTURE SOLI OPTIONAL

*" EXCEPTIONS

*" ERROR

*"----


DATA: OBJECT_HD_CHANGE LIKE SOOD1 OCCURS 0 WITH HEADER LINE,

OBJPARA LIKE SELC OCCURS 0 WITH HEADER LINE,

RECEIVERS LIKE SOOS1 OCCURS 0 WITH HEADER LINE.

OBJECT_HD_CHANGE-OBJLA = SY-LANGU.

OBJECT_HD_CHANGE-OBJNAM = MAILNAME.

OBJECT_HD_CHANGE-OBJDES = SUBJECT.

OBJECT_HD_CHANGE-OBJSNS = 'F'.

OBJECT_HD_CHANGE-VMTYP = 'T'.

OBJECT_HD_CHANGE-SKIPS = 'X'.

OBJECT_HD_CHANGE-ACNAM = 'SP01'.

OBJECT_HD_CHANGE-OBJCP = 'X'.

RECEIVERS-RCDAT = SY-DATUM.

RECEIVERS-RCTIM = SY-UZEIT.

IF DLI IS INITIAL.

RECEIVERS-RECNAM = RECEPIENT.

RECEIVERS-RTUNAM = RECEPIENT.

ELSE.

RECEIVERS-RECNAM = DLI.

RECEIVERS-ADR_NAME = DLI.

RECEIVERS-RECESC = 'C'.

ENDIF.

RECEIVERS-SNDEX = 'X'. " Express-Mail

APPEND RECEIVERS.

OBJPARA-NAME = 'SPI'.

OBJPARA-LOW = SPOOLNUMBER.

APPEND OBJPARA.

CALL FUNCTION 'SO_OBJECT_SEND'

EXPORTING

OBJECT_HD_CHANGE = OBJECT_HD_CHANGE

OBJECT_TYPE = 'RAW'

OWNER = SY-UNAME

TABLES

OBJCONT = TEXT

OBJPARA = OBJPARA

RECEIVERS = RECEIVERS

EXCEPTIONS

OTHERS = 01.

IF SY-SUBRC NE 0.

RAISE ERROR.

ENDIF.

ENDFUNCTION.

You can check the messages sent from SAP in trx SCOT / SOST.

Hope it helps.

Regards,

Shashank

Read only

0 Likes
1,323
Read only

Former Member
0 Likes
1,323

Hi Subhash,

SO_OBJECT_SEND is used for Sending mails. For this SAPConnect needs to be configured.

You check the e-mails in transaction 'sbwp'.

Also check the following links-

http://www.sapgenie.com/interfaces/sapconnect.htm

http://www.sap-img.com/fu016.htm

Mark useful answers.

Regards,

Tanuja.