Additional Blogs by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
abesh
Contributor
0 Kudos

This is a followup to

[Durairaj Athavan Raja | https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=2t...]

's blog on

[Send(ing) SMS to India from ABAP | Send SMS to India from ABAP]

. It'll show you how to acheive the same in xMII 11.5...

Step - 1 : Proxy Settings in xMII



If your company uses a

Proxy Server

to access the internet, configure xMII to use the same.
Go to

System Management -> System Administration

.

Set the value of

ProxyHost

,

ProxyPort

and any other Proxy parameter you need to set up. For e.g. if your proxy needs authentication, you would need to configure the

ProxyUserName

and the

ProxyUserPassword

fields as well.

After you are done with the configuration, go to the Services console, and restart the ServletExec- (default name is ServletExec-xMII) service.

Step - 2 : Creating a BLS Transaction



Open the BLS Editor by clicking on

"Business Logic Services -> Logic Editor"

. Create a new Transaction and add a

"Web Service"

action block to it.

Right click on the block and choose

Configure

. As mentioned in Send SMS to India from ABAP the WSDL for this webservice is available at

[http://www.webservicex.net/SendSMS.asmx?WSDL | http://www.webservicex.net/SendSMS.asmx?WSDL]

and we'll use it configure the

Web Service Action Block

.

The configuration options are shown in the screenshots below :

Click on

Finish

, right click on the Web service action block once again and choose

Links

.

Expand the nodes of the Web Service action block. It should look like this :

Map the following properties,

MobileNumber

,

FromEmailAddress

and

Message

to proper values.

MobileNumber

stands for the Cell Phone number you want to send the message to,

FromEmailAddress

should be an email address from where the message will appear to arrive and lastly

Message

is actually the message you want to send.

The links window should look like this now :

Now add a

Tracer

action block and in the link editor map the

Status

field of the

Web Service

response to the

Message Field

of the

Tracer

action block.

Step - 3 : Testing the Transaction



Hit

F6

or select

Transaction -> Execute Without Step Trace

to execute the Transaction. Check the output of the Tracer for the return message. If it looks like this then your SMS has been successfully delivered.

You can add input parameters to this Trasaction and pass the Mobile Number and Message at runtime using an iCommand to call a Xacute Query Wrapped around the transaction.

3 Comments