cancel
Showing results for 
Search instead for 
Did you mean: 

Send SMS through WD ABAP

Former Member
0 Kudos

Hi,

I would like to know how to send SMS through WD ABAP.

Regards,

Ahmed

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

Both triggering mail and Sending SMS is possible.

1. To trigger SMS, need to get tie up with some Service provide like (Vodaphone, RPG). they will give you some URL. We can add the message in URL and execute that URL through HTTP service.

I tried this in my project and succeeded.

Once you have the URL use the following cade in fountion module/Method and call this in your Web dynpro application. In URL itself you will have the option for entering recevier mobile number, sender detail. Manipulate the URL and then call the method.

DATA wf_string TYPE string.

data wf_type type string.

DATA provider_url TYPE string.

DATA query(1) VALUE'?'.

DATA http_client TYPE REF TO if_http_client.

  • DATA result TYPE string.

  • DATA result_tab TYPE TABLE OF string.

  • DATA lin TYPE i.

CALL METHOD cl_http_client=>create_by_url

EXPORTING

url = wf_string

IMPORTING

client = http_client

EXCEPTIONS

argument_not_found = 1

plugin_not_active = 2

internal_error = 3

OTHERS = 4.

CALL METHOD http_client->send

EXCEPTIONS

http_communication_failure = 1

http_invalid_state = 2.

CALL METHOD http_client->receive

EXCEPTIONS

http_communication_failure = 1

http_invalid_state = 2

http_processing_failed = 3.

2. To send mail, call FM 'SSF_FUNCTION_MODULE_NAME' in your WD4A. Populate the necessary parameter. I had tried this option in BSP programming and it had send mail. Definetly it will work in WD4A.

Reward point if useful.

Regards,

Karthick S

Former Member
0 Kudos

hi ,

I have tried send mail in HTML and normal format from WD ABAP ..

I have code for that ...one thing if something is possible in core ABAP then only it wil be possible in Web Dynpro ABAP so if one can send SMS or mail in ABAP , it possible in Web Dynpro ABAP as well .

Former Member
0 Kudos

HI Parag,

Can your program be able to send mail to mail ids like yahoo, msn. I think for tht to do you need to configure your mailing server in ur SAP. I want to knwo how can we configure that.

Regards,

Ahmed

Former Member
0 Kudos

Hi Recently , I came across blog which is for Send SMS in India by ABAP code ...

<a href="/people/durairaj.athavanraja/blog/2005/07/12/send-sms-to-india-from-abap SMS in ABAP</a>

Now hope this will help you .

Former Member
0 Kudos

Hi,

I have seen tht blog but tht blog is not so helpfull. I think there might be some prob in tht web service or i need to have some more configuration on my side to run that. I am not sure abt it. Have you tried tht program ?

Regards,

Ahmed

Former Member
0 Kudos

hi ,

As of now WD ABAP does not provide mobile support but there are alternative for such requirement .

As someone said in Web Dynpro Java or plane Java develope webservice that will take text to send as SMS and then call that Web Service from web Dynpro and pass it tht text ...but with ABAP send SMS not really having idea ...

Former Member
0 Kudos

Hi,

note that Web Dynpro ABAP does not support mobile devices.

Regards, Heidi

Former Member
0 Kudos

Hi Heidi,

What about sending e-mail in WD ABAP.

Regards,

Maqsood

Former Member
0 Kudos

Hi,

I haven't worked with Webdynpro ABAP but I can suggest something. If Webservices are supported, it is possible to do it. There is a webservice which can send sms. Check this blog.

/people/abesh.bhattacharjee/blog/2007/03/12/send-sms-to-india-from-xmii-115

Regards,

Harini S

Former Member
0 Kudos

Hi,

In my company I can send sms through my outlook. Will then feature be helpfull in sending sms throught WD ABAP.

Regards,

Ahmed