on 11-30-2007 10:07 AM
Hi,
I would like to know how to send SMS through WD ABAP.
Regards,
Ahmed
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 ...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
note that Web Dynpro ABAP does not support mobile devices.
Regards, Heidi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.