Application Development and Automation 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: 
Read only

SMS Sending Problem

Former Member
0 Likes
2,229

Dear Experts,

I am trying to send an SMS from SAP.

I have done all the configuration settings as specified in threads related to SMS in SDN.

When i am sending a new message from SO01 tcode, by giving the mobile number and selecting "K- Pager Number" as the Recip type, its giving me an error as below.

-


No delivery to SMS:919029144984 because pager/SMS service returned an error

Message no. XS840

Diagnosis

The message could not be delivered to recipient SMS:91XXXXXXXXXX. The pager/SMS service used returns an error as its response.

System Response

Processing was completed as normal.

The reason for the error may included in the pager/SMS service response (first 150 characters):

HTTP Response Status Code:404

Not found

Procedure

Check the parameters listed for the service. Check the configuration data for the node. The error may be temporary. If a SAPconnect retry has been defined for this node, the error could be removed automatically.

Procedure for System Administration

-


Can you please help me to solve this?

Thanks,

Praveen

6 REPLIES 6
Read only

Former Member
0 Likes
1,342

Hi,

Please check the details of services.

SMICM Transaction

Active Services

No. Log Service Name/Port Host Name Keep Alive Proc.Timeo Actv External Bind

1 HTTP 1080 pagets 30 90 Active

2 HTTPS 1443 pagets 30 90 Not Active

3 SMTP 25000 pagets 30 90 Active

4 SMTP 25001 pagets 30 90 Active

SCOT transaction

1 FAX Telefax

2 INT

-> SMTP

3 X40 X.400

4 RML Remote Ma

5 PAG

-> HTTP

6 PRT

Try with the below code ..

It works..


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 . 

Hope it helps.

Thanks

Arbind

Read only

0 Likes
1,342

Hi Arbind,

Thanks for the reply.

I did try your program but was not successfull.

I am getting the below error in tocde - SMICM - ICM Monitor.

***************************************************************************************************************************************************

[Thr 6] *** ERROR => NiPConnect: SiConnect failed for hdl 31 / sock 45

(SI_ECONN_REFUSE/239; I4; ST; 192.168.2.241:80) [nixxi.cpp 2512]

[Thr 6] *** WARNING => Connection request from (18/19/0) to host: 192.168.2.241, service: 80 failed (NIECONN_REFUSED)

[icxxconn_mt.c 2321]

***************************************************************************************************************************************************

In the program that your gave, i am getting the below error.

***************************************************************************************************************************************************

Service cannot be reached

What has happe ned?

URL http://sms.bsmart.in:8080/smart/SmartSendSMS.jsp call was terminated because the corresponding service is not available.

Note

The terminationoccurred in system AED with error code 404 and for the reason Not found.

The selected virtual host was 0 .

What can I do?

Please select a valid URL.

If you do not yet have a user ID, contact your system administrator.

ErrorCode:ICF-NF-http-c:000-u:SAPSYS-l:E-i:SAPDEV_AED_00-v:0-s:404-r:Notfound

HTTP 404 - Not found

Your SAP Internet C ommunication Framework Team

***************************************************************************************************************************************************

Can you please help me out with this?

Thanks,

Praveen

Read only

0 Likes
1,342

Hi Praveen,

Are you using any third Party tool for messaging ?

Check the SICF configuration as well SM59 settings.

I think there is problem with RFC Connection.

Please check it out once.

Thanks

Arbind

Read only

0 Likes
1,342

Hi Arbind,

Thanks for the reply.

I am not using any third party tool for messaging.

Can you please let us know the SICF configurations as well SM59 settings, so that i can cross check the same with my settings?

Thanks,

Praveen

Read only

0 Likes
1,342

Dear Experts,

Do we need to have proper WSDL settings for sending SMS from SAP?

If yes, can you please refer us the links for those setting?

Thanks,

Praveen

Read only

0 Likes
1,342

Hey Praveen,

Could you please care to share the soiution, am struck with the same issue, Thanks a ton.