RFC to SMS using XI
Hello Experts,
I need to implement the scenario RFC ->XI->SMS.
I have already implemented the RFC to Email using XI, and all the mails that are sent are forwared to my telephone number by the Telephone Service.
All the mails that i recieve are in html format, thus the whole thing gets transferred along with the html code and since in SMS only 160 char are allowed, the actual message body is only recieved halfways. In the email i can see the body of the message correctly without the html code.
I have used the localejbs/AF_Modules/MessageTransformBean module with the module key as text/plain;charset="ISO-8859-1" or text/html;charset=utf-8 , but of no use.
Is there any other way by which i can transfer my email content in plain text format so that i get only the message content in my SMS and no HTML.
Any pointers on this will be appreciated.
Thanks
Meghana
Try this how to:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5474f19e-0701-0010-4eaa-97c4f78dbf9b
Section 2 onwards:
HTML To Web Service Scenario:
This scenario involves calling a web service from HTML client using SAP XI as middleware.
Here we will call a SMS web service which will send SMS to the concerned people depending on some business logic.
Similar Messages
-
How can i send the chinese sms using java J2EE(web application)
hi,
i have the difficulty on sending chinese sms using J2EE application.i try to input the chinese word to jsp and send the plain text sms. i received the sms with plenty of question mark "?????". i think it is regarding to the conversion of String to some kind of format that supported by mobile phone. below are some code the send the sms to recipient. i need someone help in order to have the solution.
thanks a lot
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ page import="se.sapio.rta.service.MPMService"%>
<%@ page import="java.util.Locale"%>
<%
Locale.setDefault(Locale.UK);
Context ctx;
MPMService mpmservice;
ctx = new InitialContext();
mpmservice = (MPMService) ctx.lookup("BC/Service/RTAMPM");
LSUser user = null;
boolean ok = true;
try {
if (ok) {
String sender = request.getParameter("sender");
String phonenr = request.getParameter("phonenr");
String sendmsg = request.getParameter("sendmsg");
if(bError) {
byte[] bytes = message.getBytes("UTF-8");
message = mobileclientservice.ByteEncode(bytes);
response.sendRedirect("send_sms.jsp?s="+request.getParameter("s")+"&msg="+message+"&phonenr="+request.getParameter("phonenr").replaceAll("\\+","%2B")+"&sender="+request.getParameter("sender")+"&sendmsg="+request.getParameter("sendmsg").replaceAll("\\+","%2B"));
String resp = "";
if(mpmservice.sendPlainTextSMS(sender, phonenr, sendmsg)) {
resp=mpmservice.getLang(user.getLang(), "sms_sent");
} else {
resp=mpmservice.getLang(user.getLang(), "sms_not_sent");
} %>
<jsp:include page="/top.jsp" />
<p class="headline"><%=mpmservice.getLang(user.getLang(), "send_sms_title")%></p>
<form name="operatordetails" id="operatordetails" method="post" action="send_sms.jsp">
<INPUT TYPE=hidden NAME=s VALUE="<%=request.getParameter("s")%>">
<INPUT TYPE=hidden NAME=phonenr VALUE="<%=request.getParameter("phonenr")%>">
<table class="infotable" id="report">
<tr>
<td class="left" colspan="2"><%=resp%></td>
<td class="right"></td>
</tr>
<tr>
<td class="left" colspan="2">
<input class="halfmiddle" name="Back" type="submit" id="Back" value="<%=mpmservice.getLang(user.getLang(), "back")%>" />
</td>
<td class="right"> </td>
</tr>
</table>
</form>
<jsp:include page="/bottom.jsp" />
<% } %>
public boolean sendPlainTextSMS(String sender, String recipient, String sendmsg){
if(recipient.charAt(0) == '+')
recipient = recipient.substring(1);
String senderIdType = "Alpha";
if( (sender.charAt(0) >= '0' && sender.charAt(0) <= '9') || sender.charAt(0) == '+')
senderIdType = "Numeric";
if(sender.charAt(0) == '+')
sender = sender.substring(1);
for(int i=0; i < sender.length(); i++)
if(!(sender.charAt(i) >= '0' && sender.charAt(i) <= '9'))
senderIdType = "Alpha";
log.warn("sending sms to: "+recipient + " sendtype: " + senderIdType + " msg: "+ sendmsg);
log.warn("Encoded sms:"+Encode(sendmsg));
try{
String postData = "XMLDATA=" + URLEncoder.encode("<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>\r\n" +
"<NotificationRequest Version=\"3.4\">\r\n" +
" <NotificationHeader>\r\n" +
" <PartnerName>" + SMS_PARTNER_NAME + "</PartnerName>\r\n" +
" <PartnerPassword>" + SMS_PARTNER_PASSWORD + "</PartnerPassword>\r\n" +
" <SubscriptionName>XML</SubscriptionName>\r\n" +
" </NotificationHeader>\r\n" +
" <NotificationList BatchID=\"1\">\r\n" +
" <Notification SequenceNumber=\"0\" MessageType=\"SMS\">\r\n" +
" <Message>" + Encode(sendmsg) + "</Message>\r\n" +
" <Profile>" + SMS_PARTNER_PROFILE + "</Profile>\r\n" +
" <SenderID Type=\"" + senderIdType + "\">" + sender + "</SenderID>\r\n" +
" <Subscriber>\r\n" +
" <SubscriberNumber>" + recipient + "</SubscriberNumber>\r\n" +
" </Subscriber>\r\n" +
" </Notification>\r\n" +
" </NotificationList>\r\n" +
"</NotificationRequest>","ISO-8859-1");
appreciate for anyone provide the solution.
thanks a lotHi,
I want to send sms from web application to mobile phones at the time of registration. Its verymuch greatful to me, if you let me know, how to send from jsp to mobile. because from your post, i got, you already know about sending sms from jsp to mobile.
please let me know, how to send sms
[email protected]
Thanks in advance for your kind help -
In RFC can we use SUBMIT satement?
Dear all,
Thank u vvery much for ur response,
In RFC can we use SUBMIT statement?
I had a doubt Please clarify me.
Thanks and Regards,Hi Lakshman,
I am facing similar situation like Ravi.
I am using Submit program inside RFC function module in BW.
And one point here, I am using EXPORT and IMPORT memory IDs in the same RFC to retrive data in BW.
I am calling this from R3.
In BW it is working fine, where as in R3 nothing is coming.
Please help me.
Thanks,
Veerendra. -
Problem while sending message (sms) using nokia ov...
recently my nokia ovi suite is updated to version 3.1.1.85, Now when every i am typing to send message from nokia ovi suite's messaging section and if notification for new message is on,
while typing if new message comes, it refreshes the screen (inbox) section and the alreday typed message disappears.
I didnt have this problem in previous version of nokia ovi suite. and i can send / receive message at a same time.hi all,
i want to send SMS using j2me. im using netbeens IDE.
if i put my sendSMS() method under startapp() it will work. but i want to send SMS using command button. ( when i press SEND command button i want to send my SMS)
if u know how to do this please email me - [email protected]
my method is given below. it's work............
public void sendMessage(){
String address = "sms://+5550001:1234";
MessageConnection smsconn = null;
try{
smsconn = (MessageConnection)Connector.open(address);
TextMessage txtMessage = (TextMessage)smsconn.newMessage(MessageConnection.TEXT_MESSAGE);
txtMessage.setPayloadText("rosa");
smsconn.send(txtMessage);
smsconn.close();
} catch (Exception e){
e.printStackTrace();
i want to send this message using command button , like this ..............
public void commandAction(Command command,Displayable displayable)
if (command == send)
sendMessage();
if i put like this it will give error
(Running in the identified_third_party security domain
Warning: To avoid potential deadlock, operations that may block, such as
networking, should be performed in a different thread than the
commandAction() handler.)
but it's work under startapp(). any one know the answer please help me..............................
[email protected] -
Configuring receiver RFC adapter to use RFC destination
Hello,
I have been doing some digging, but I can't find a solid answer on how to configuring a receiver RFC adapter to use an existing RFC destination to call a 4/6C R/3 backend system... Our scenario is to WS --> SOAP --> RFC which is up and running in production just fine on NW 7.0, SP12.
I ask this question because we, as a company, do not like to maintain passwords in multiple systems. That is necessary when we use the receiver RFC adapter now since SNC is a distant pipe dream for us and we would like to use an existing RFC destination that is set up to call the backend system using a logon ticket.
I checked the relevant links I could find below, but I can not resolve the answer from them. Has anyone set this up successfully? This link (RFC Destination type RFC Receiver Adapter?) mentions it briefly, but it does not go into any length on how to set it up.
Thanks!
John
http://help.sap.com/saphelp_srm40/helpdata/fr/33/c6e63b60c25767e10000000a11402f/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/33/c6e63b60c25767e10000000a11402f/content.htm
Re: Asynchronous RFC callHi John !!
I suggest you to create a new user, without dialog access in your ECC system to be used exclusively by the XI system to access ECC. And then, always use this user in all RFC receiver adapter communication channels.
Regards,
Matias. -
Decreasing amount of RFC-Destinations when using UD-Connect?
Hello,
I created an RFC-Destination in sm59 as well as JCO RFC Provider and used the SAP manual for UD-Connect/JDBC to a "foreign" Sybase-DB. The Connection is working properly and all DB-data is accessible, but our cutomer claims that there are more than 25 parallel rfc-connections from our Web AS to his Sybase-DB. My question is: How can I decrease the amount of parallel connections, because I don't think 25 connections to Sybase-DB are necessary. I know there is the maxConnection-Property in JCO RFC Provider but this parameter is globally affecting all RFC-connections and not only those that are associated with the Sybase-DB.
Is there actually a way to customize the amount of parallel connection via JDBC?
Best regards
DannyHi,
use transaction "smqs", select destination and click on registration change max number of connections.
Try to define rfc server group to control connections ...
Regards
Ben -
Listening for incoming call or sms using midlet...
how to listen to an incoming call or sms using midlet/midp??
so, when there's an incoming call, that listener will invoke a midlet that will run as the display screen for the incoming call (like a wallpaper)...and after the call is finished/rejected, the midlet will be destroyed...
reply soon...i need this for my task...Hi,
You can invoke the application through SMS and that also when the SMS are sent to the port the application has registered. As far as invloking the application on incoming call is concerned, I dont think j2me supports it. Try using push registry for autostarting the application through SMS.
Sunil -
Seding & receiving sms using modem (com1 port) using servlets & beans
hi ,
can any one send me code 4 sms (using web application plzzzzzzzzzzzzzzz)
this is my mail id [email protected][Ozeki SMS Sending and SMS receiving Gateway|http://www.ozekisms.com/index.php?oldal=95] Ozeki SMS gateway software can be integrated into your own application. On their webpage you can fid info of how to do it. Br.
-
I am developing a stand alone application in java that contains sending sms to certain numbers.
I want to send sms using java and my phone connected to my pc by usb cable(Not through Bluetooth).
I am using Linux operating system (Arch linux).
I tried a few libraries that uses the the online sms portals,but for some reasons i dont want to pay those sites.(just want it to be done using my simcard cause its economical).
Help appreciated880667 wrote:
I am developing a stand alone application in java that contains sending sms to certain numbers.
I want to send sms using java and my phone connected to my pc by usb cable(Not through Bluetooth).
I am using Linux operating system (Arch linux).
I tried a few libraries that uses the the online sms portals,but for some reasons i dont want to pay those sites.(just want it to be done using my simcard cause its economical).
Help appreciatede First thing you need to check: are you able to access other services my connecting you mobile by USB to machine (Line GPRS, calling). Because it requires the calling or SMS port access. And you said it is economical by sending SMS using mobile it depends. But most of the times, it is better to use the SMS service provider getway. They provide the details either http or FTP, we just need to put or message in the accepitng form, rest of the things are done by the service provide. -
Receive SMS using jsmsengine api
Hi Experts
I am using jsmsengine to send/receive sms using my gsm modem connected to pc thro usb port. Sending sms is no issues but Receiving SMS is bit confusing for me.
I would request steps & source code for receiving the sms
Thanks and Regards
geeths
Edited by: geeths on Dec 2, 2008 7:21 AM[Ozeki SMS Sending and SMS receiving Gateway|http://www.ozekisms.com/index.php?oldal=95] Ozeki SMS gateway software can be integrated into your own application. On their webpage you can fid info of how to do it. Br.
-
Sender RFC - Can it use a Type 3 connection
Hi all,
I have a synchronous scenario which has a RFC sender. In one of the blog by Michal_Krawczyk , I saw that a type t T (TCP/IP) RFC destination was used.
But both ECC and XI are abap system so why not use a Type 3 - R/3 connection.
regards,
Arvind RArvind
But RFC Adapter is on Java Stack of XI, so you have to use TCP/IP type RFC destination.
Thanks,
Sunil Singh -
hello friends..
i want to send sms using pl/sql.. so i tried send_email procedure..
but how to find Mobile Address:- to send email(sms) ?
[email protected] - how to find domain name
can any one help me..
Thanks
PROCEDURE SEND_EMAIL(pFmUser IN VARCHAR2,
pToUser IN VARCHAR2,
pSubject IN VARCHAR2 DEFAULT NULL,
pBody IN VARCHAR2 DEFAULT NULL) IS
SenderName VARCHAR2(50);
SenderAddress Varchar2(200); -- := '<[email protected]>';
vToReceivers varchar2(200);
EmailServer varchar2(200); --:= 'smtp_server';
ServerPort NUMBER:=25;
UserName VARCHAR2(200);
UserPass VARCHAR2(200);
conn UTL_SMTP.CONNECTION;
crlf VARCHAR2( 2 ):= CHR( 13 ) || CHR( 10 );
mesg VARCHAR2( 4000 );
mesg_body varchar2(4000);
vCount NUMBER:=0;
vNextPos NUMBER:=0;
vStr NUMBER:=0;
vPos NUMBER;
vChk NUMBER;
pToList VARCHAR2(4000);
BEGIN
conn:= utl_smtp.open_connection( EmailServer, ServerPort);
utl_smtp.ehlo(conn,EmailServer);
--utl_smtp.helo( conn, EmailServer );
utl_smtp.command( conn, 'AUTH LOGIN');
utl_smtp.command( conn, utl_raw.cast_to_varchar2( utl_encode.base64_encode( utl_raw.cast_to_raw( UserName ))) );
utl_smtp.command( conn, utl_raw.cast_to_varchar2( utl_encode.base64_encode( utl_raw.cast_to_raw( UserPass ))) );
utl_smtp.mail( conn, SenderAddress);
utl_smtp.rcpt( conn, pToList);
mesg:=
'Date: '||TO_CHAR( SYSDATE, 'dd Mon yy hh24:mi:ss' )|| crlf ||
'From: "'||SenderName||'" '||SenderAddress|| crlf ||
'Subject: '||pSubject|| crlf ||
'To: '||pToList|| crlf||
pBody||crlf||crlf;
utl_smtp.data( conn, mesg );
utl_smtp.quit( conn );
EXCEPTION
WHEN OTHERS THEN RAISE_APPLICATION_ERROR(-20001,SQLERRM);
END;user10502250 wrote:
i want to send sms using pl/sql.. so i tried send_email procedure..
but how to find Mobile Address:- to send email(sms) ?
[email protected] - how to find domain name
Exactly. You cannot simply send a SMS as an e-mail. The mail (SMTP) server needs to have a plug-in of sorts that enables it to forward a specially formatted e-mail it receives as an SMS.
More then a decade ago, some cellular providers provided such mail servers - allowing you to specify the cellular number as either the recipient address or as the e-mail subject, with the body containing the actual SMS message.
Due to this feature being abused and the cost of SMS transport being unrecoverable, this (as a public feature) has long since been discontinued by most, if not all, cellular network providers.
So no, there is no magic domain(s) you can use to (spam) mobile numbers with SMS.
If you want a SMS solution, you need to talk to a cellular provider about the products they have for 3rd party SMS integration.
Alternatively, you need to use a dedicated cellphone, hooked up via USB/Bluetooth to a server, and use that as your SMS transport mechanism. -
Send SMS using CL_BCS fail
Hi
I have created a HTTP node in SCOT called SMS for sending SMS's to customers. In my program I use class CL_BCS to send the message. But the message is never sent. In SOST I see the error: Cannot process message, no route from <user> to <phone number>. I think the reason is that in SCOT (System Status) the messages are under PAG but not in my node 'SMS' as I expected but in W/o nodes. Any ideas why the message is not correct node?
CODE:
CALL METHOD CL_BCS=>CREATE_PERSISTENT
RECEIVING
RESULT = lr_sms.
CALL METHOD CL_DOCUMENT_BCS=>CREATE_DOCUMENT
EXPORTING
I_TYPE = 'RAW'
I_SUBJECT = 'TEST'
I_TEXT = lt_text
RECEIVING
RESULT = lr_document.
l_sms_num = i_mobile.
CALL METHOD CL_CAM_ADDRESS_BCS=>CREATE_SMS_ADDRESS
EXPORTING
I_SERVICE = 'SMS'
I_NUMBER = l_sms_num
RECEIVING
RESULT = lr_rec
CALL METHOD lr_sms->ADD_RECIPIENT
EXPORTING
I_RECIPIENT = lr_rec
I_EXPRESS = 'X'.
CALL METHOD lr_sms->SET_DOCUMENT
EXPORTING
I_DOCUMENT = lr_document.
CALL METHOD lr_SMS->SEND
RECEIVING
RESULT = l_bool.
I've made sure that settings in SA14 are maintained: Pager Service = SMS, USE = SMS Servicethank you for looking into this thread,
i have configured the in scot.
currently sending all RAW type as TXT. this has resolved my issues. -
I cannot send sms using TC65 modem
I wrote test program to send sms. When program tryig to open conection(MessageConnection), he catches ConnectionNotFoundException (null):
String url = "sms://+37256844491";
MessageConnection mc = (MessageConnection)Connector.open(url);
Does anybody can help me?I need to make communication via sms between phone and modem. It is not good if these sms messages will be stored in memory of a mobile phone or modem. For this i need to recieve and transmit these messages using current sms port, then i'll be able to intercept them and they will not be stored in memory of a mobile phone or modem.
If modem supports this kind of sms sending - via GPRS connection. Why i cannot use wma classes, which give me the opportunity to send sms using their methods? It is something unreal.
Maybe problem in configuration of GPRS connection. I know that this configuration is made by "AT^SJNET" command. Example: AT^SJNET="gprs","*99***1#","internet","","",30. These settings are used by "(MessageConnection)connector"
I configured many others settings at the modem using AT commands, which are need to connect to the Internet via GPRS.
Maybe i don't know some nuances.
I tried to connect to the Internet via GPRS connection from my PC and i got this connection. I tried to connect using AT commands and i did not get it.
If i told something wrong, please correct me.
Edited by: _denisjuk on Nov 17, 2007 4:18 AM -
Code to send sms using j2ee application
Hi all,
this is shashi kant,
plz send me the code to sent a sms using j2ee applications.
or tell me the api these are used to develop this kind of application.
thanks
my email id is---- [email protected]I'm working on a project to send SMS from a MIDlet
to a servlet and back to the MIDlet through a
SMSC.can anybody send a sample code for me to get
help ?you should have a sms server .
your MIDlet send the parameters to the servlet (mobile phone, message, ..) and, after, the servlet send a request to the sms center and he send to the mobile number the message !
good luck
Maybe you are looking for
-
How to Extract the data from Microsoft BI to SAP BI 7
Dear All, We have a requirement to Extract the data from Microsoft BI to Sap BI 7. How can we achieve this?? Shall we use the DB connection for this?? If anyone knows about this please give me some suggestion. Thanks in advance Sathiya
-
When I transferred my iPhoto from macbook to iMac it created double events for each, how do I correct this?
-
Presets folder gone in the develop module
I seems to have lost my Preset area in the Develop module. I have tried to make a new preset, still cant see them, and all I had are not showing. Anyone know why this would be? Thanks Sandy
-
Expression Language support in Weblogic portal workshop8.1 sp5
while i was developing the jsp pages in Weblogic portal workshop8.1 sp5, though i included jstl.jar and standard.jar in WEB-INF\lib , my jsps are not recognising expression language statements like ${initParam.name}? what might be the reason for this
-
All seemed to go well during the installation. When I first opened it from the CC tool I got the start up screen momentarily, then it closed on its own. Further attempts to open Adobe Lightroom resulted in the icon briefly appearing in the dock, then