Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Send SMS to mobile through ABAP code

Former Member
0 Kudos

Hi all genious,

i want to send SMS to mobile, from R/3 system.

please give me solution for this. give me any link in SDN.SAP for this

Thanks

6 REPLIES 6

Former Member
0 Kudos

Dear JIGNESHSAVALIYA

Please see the below links,

Hope that above links are usefull.

Thanks and regards,

Krish...

RoySayak
Active Participant
0 Kudos

Hi JIGNESHSAVALIYA,

Here is optimize solution from my side .. nJoy it..

REPORT y_send_sms.
DATA: http_client TYPE REF TO if_http_client .
DATA: wf_string TYPE string , 
result TYPE string ,
r_str TYPE string .
DATA: result_tab TYPE TABLE OF string. 

SELECTION-SCREEN: BEGIN OF BLOCK a WITH FRAME .
PARAMETERS: mail(100) LOWER CASE,
 m_no(20) LOWER CASE , 
m_mss(120) LOWER CASE.
SELECTION-SCREEN: END OF BLOCK a . 

START-OF-SELECTION .
 CLEAR wf_string .
 CONCATENATE
 'http://www.webservicex.net/SendSMS.asmx/SendSMSToIndia?MobileNumber='
 m_no
 '&FromEmailAddress='
 mail 
'&Message='
 m_mss 
INTO
 wf_string . 

 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.
 CLEAR result .
 result = http_client->response->get_cdata( ). 

 REFRESH result_tab .
 SPLIT result AT cl_abap_char_utilities=>cr_lf INTO TABLE result_tab . 
LOOP AT result_tab INTO r_str.
 WRITE:/ r_str .
 ENDLOOP .

Best Regards,

Sayak

Former Member
0 Kudos

thanks shayak roy,

but i want it through R/3 not using any website...

Former Member
0 Kudos

Hi jignesh,

check this out...

http://www.mysaphelp.com/book/index.php?/Special-Developments/Send-SMS-from-SAP-to-multiple-Recipien...

its not free..my company also bought it...see if it is of any help to u...

Former Member
0 Kudos

Hi,

Check this link :

/people/durairaj.athavanraja/blog/2005/07/12/send-sms-to-india-from-abap

0 Kudos

Hi,

You can try the simple one here :

http://www.sdn.sap.com/irj/scn/weblogs?blog=/cs/junior/view/wlg/25583

Regards,

Anurag.