‎2007 Jun 01 2:38 PM
Hello Friends,
When in my ABAP source code some given condition occurs , then it should
send some message from code to my cell phone.
Can it's possible?
if you have an answear of my question plz give reply ASAP.
Right answear will be rewarded with maximum points.
Thanks & Regards,
Gaurav Tyagi.
‎2007 Jun 01 2:57 PM
Sure this is possible, its just like sending an email. The texting in cell phones is nothing more than an email address, usually the cell phone number followed by the @ and the domain name. So you must find out want the @ part is for your service. Your provider should know this, give them a call or check there website. For example, mine is @vtext.com for verison. Then use this program to send a message to it.
report zrich_0003 .
data: maildata type sodocchgi1.
data: mailtxt type table of solisti1 with header line.
data: mailrec type table of somlrec90 with header line.
start-of-selection.
clear: maildata, mailtxt, mailrec.
refresh: mailtxt, mailrec.
maildata-obj_name = 'TEST'.
maildata-obj_descr = 'Test'.
maildata-obj_langu = sy-langu.
mailtxt-line = 'This is a test'.
append mailtxt.
* My number
mailrec-receiver = '7175555555@vtext.com'.
mailrec-rec_type = 'U'.
append mailrec.
call function 'SO_NEW_DOCUMENT_SEND_API1'
exporting
document_data = maildata
document_type = 'RAW'
put_in_outbox = 'X'
tables
object_header = mailtxt
object_content = mailtxt
receivers = mailrec
exceptions
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
others = 8.
Regards,
RIch Heilman