Skip to Content

This is a followup to

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

‘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

.

image

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.

image

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

image

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.

image

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 :

image

image

image

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 :

image

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.

image

The links window should look like this now :

image

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.

image

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.

image

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.

To report this post you need to login first.

3 Comments

You must be Logged on to comment or reply to a post.

  1. Former Member
    Hi abhesh,
    When i execute the web service action block transaction,i see a successful message returned but i do not get any SMS on my number.

    Regards,
    Satpreet Singh

    (0) 
  2. Former Member
    Hi Abesh,
    Is it possible to achieve the same in 12.0 or 12.1?? What are the changes??

    What about ProxyHost?you have provided 10.53.131.75.Is it fixed??

    Thanks & Regards
    Manisha

    (0) 

Leave a Reply