cancel
Showing results for 
Search instead for 
Did you mean: 

roblem in a F.M for sending data to SAP INBOX & EMAIL ID's of SAP Users

Former Member
0 Kudos

Hi all,

I am using one Function module in my program 'SO_NEW_DOCUMENT_SEND_API1' --> The purpose is to send some data (or) messages to SAP INBOX & EMAIL-ID's of respective SAP USER ID's. These USER ID's will come from a file in application server. From there we will pick up User id's & other fields. Then we will use the Function module 'SO_NEW_DOCUMENT_SEND_API1' to send messages to SAP Inbox & Email id's.

But for me it is not working when i am giving some Email Id's & executing it is not sending any data to personnal Email id's.

From SE37 also i had tried but it not sending any data to any of Email id's. but it is sending messages to SAP INBOX taking diffrent User id's.

Can any one solve my issue as i require it urgently.

Thanks in advance.

Thanks & Regards,

Rayeezuddin

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Rayeezuddin,

Could you please copy the part of the coding where you fill the "receivers" table of the FM.

Regards,

John.

Former Member
0 Kudos

Hi John Heutmekers/All,

I am able to send data to diffrent EMAIL-ID's using the RSCONN01 program in back ground (or) Using SCOT

[SAP CONNECT].

But i want to send this data with user specific, If i run the [RSCONN01] all the data to all Email-id's will be sent.

But i want to send the data to some specific users.

Can i achieve this by any program or Transaction.

Can any one provide solution.

Thanks & Regards,

Rayeezuddin.

Former Member
0 Kudos

Rayeezuddin,

Why would you put messages to be sent in the SAP connect queue and then send only some messages?? If you are not planning to send the messages to email-id just don't use these users when calling the FM.

Regards,

John.

Former Member
0 Kudos

Hi Shaik,

I agree with John that you should first check the reason for sending only to selected users.

However, if you truly need to start the send process only for some users, I'd take a look at fm SX_PERFORM_RFCSEND. You can see its use e.g. in fm SX_OBJECTS_SEND, which is called by RSCONN01.

Just pointing you in the right direction,

-Mikko

Former Member
0 Kudos

Hi,

I want to process data to specific users at later stage because : If i am having any other messages[100's of messages already in that Queue i don't want to send all those messages to all those users that is why i want restrict at later stage.

So please give me a solution where by i can restrict users at later stage.

Once again thanks for all your efforts.

Thanks & regards,

Rayeezuddin.

Former Member
0 Kudos

Hi Rayeezuddin,

with the SX_PERFORM_RFCSEND which executes the send processes in the queue, I think you can limit the users whose processes are to be launched. There's a RECIPIENT_ADDRS table which you can fill into the fm for defining the users included.

But as I said, I haven't tried this myself so don't put this into production without testing it first

-Mikko

Former Member
0 Kudos

Hi,

To restrict it to certain users (I assume this is only for testing purpose), edit the node definition in SCOT. Double-click the node, select address-area, and instead of having a '*', specify the mail-ids you want the mails to go to.

When you execute send in SCOT, other addresses shall fail (which is not elegant, but will save you some angry calls from the unitended recipients who may otherwise receive messages).

As to why it is not going nowhere, you can check only when you have executed 'send' in SCOT, and verified that it indeed is not going. The errors in SOST or SOSB then should point to the problem.

cheers,

ramki_maley
Active Contributor
0 Kudos

Hello Shaik,

If you are on SAP Version 6.10 or higher, you can send internet/external email without running RSCONN01 or SCOT. Follow the link below for Thomas Jung's excellent blog "Sending E-Mail from ABAP - Version 610 and Higher - BCS Interface". When you use the BCS interface, mail is instantly sent out.

/people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface

As Ajay pointed out below, let me rephrase my last statement. By using the BCS interface with Send_Immediately option, email can be sent out immediately.

Cheers,

Ramki Maley.

Message was edited by: Ramki Maley

Former Member
0 Kudos

Hi Ramki,

A small correction - Whether you use the new SMTP plug-in, or older RFC based sendmail, you need to either schedule the send-job in SCOT, or, execute it manually there(if for adhoc testing ).

Added : What I mention above can be bypassed, by using send_immediate option, you are right on that.

cheers,

Message was edited by: Ajay Das

Former Member
0 Kudos

Hi Mikko Mäki-Rahkola/All,

When i am executing Function Module 'SX_PERFORM_RFCSEND' by passing single user RECIPIENT_ADDRS table it is executing all the Email Id's which i have not mentioned in RECIPIENT_ADDRS also.

Can any body give me the solution where by i can execute only some specific User.

Thanks for the effort you are putting.

Thanks,

Rayeez.

Former Member
0 Kudos

Hi All,

I am able process the messages to Email Id's by following way.

First i am running my program in which the function module which we are using 'SO_NEW_DOCUMENT_SEND_API1' will be executed . Then the messages with respective Users (or) Email-ID's will go & stay in SAP CONNECT ADMINISTRATION TOOL [TCode-SCOT].

so from there i need to process [Execute] again to send emails with messages to specific EMail ID's.

Can any body tell me without processing the data in [SCOT] can we send data to External Mail ID's.

Note: Without using any Scheduled Job in SCOT & without calling [SCOT] Transaction & Executing [SCOT] in main main program .

Leaving above constraints is it possible to process data which comes in to SCOT with any customizing in SCOT where by no data will be in [Waiting status] in SCOT.

If any body knows the procedure for it, can you provide steps to do it.

Somebody mentioned something like [MAPI] by which we will not allow any data to be remained in [Waiting status] in SCOT. But i am not able to find it.

If any body knows the solution for it please try to help me.

Thanks in advance.

Thanks & Regards,

Rayeezuddin.

ramki_maley
Active Contributor
0 Kudos

Rayeez,

If you are on SAP 6.10 or above, please follow the link in my previous reply. It does exactly what you need.

Cheers,

Ramki Maley.

Former Member
0 Kudos

Hi Rayeezuddin ,

What configuration you have done to recieve emails in SCOT(SAPConnect). I want my email messages generated from my workflow to appear in SCOT..Can you please give the necessary configuration needed to achieve this ?

Srinivas

Former Member
0 Kudos

Hi Ramki Maley ,

Can you please tell me what configuration is needed in SCOT(SAPConnect) to recieve my email messages generated from my workflow.

Can you please provide me the steps required to acieve this ?

Srinivas