<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Send SMS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-sms/m-p/4471788#M1059182</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, you can use FM 'SO_NEW_DOCUMENT_SEND_API1' or better SO_NEW_DOCUMENT_ATT_SEND_API1.&lt;/P&gt;&lt;P&gt;It is easy to use. Look to documentation of that FMs. Here is sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report  yca_sms_send.&lt;/P&gt;&lt;P&gt;parameters: sms_num type text20 obligatory.&lt;/P&gt;&lt;P&gt;parameters: subject type SO_OBJ_DES default sy-sysid.&lt;/P&gt;&lt;P&gt;parameters: sms_txt type text50 obligatory.&lt;/P&gt;&lt;P&gt;data: receivers like somlreci1 occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      objhead like solisti1 occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      objtxt like solisti1 occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      p_rec like receivers-receiver,&lt;/P&gt;&lt;P&gt;      p_type like receivers-rec_type,&lt;/P&gt;&lt;P&gt;      users like ywf_ea_user_task occurs 0 with header line.&lt;/P&gt;&lt;P&gt;data: count type i,&lt;/P&gt;&lt;P&gt;      p_email(50),&lt;/P&gt;&lt;P&gt;      doc_chng like sodocchgi1,&lt;/P&gt;&lt;P&gt;      objcont like solisti1 occurs 5 with header line,&lt;/P&gt;&lt;P&gt;      p_count(5).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection .&lt;/P&gt;&lt;P&gt;  clear receivers.&lt;/P&gt;&lt;P&gt;  refresh receivers.&lt;/P&gt;&lt;P&gt;  receivers-receiver+9 = 'SMS'.&lt;/P&gt;&lt;P&gt;  receivers-receiver+13 = sms_num.&lt;/P&gt;&lt;P&gt;  move 'K' to receivers-rec_type.&lt;/P&gt;&lt;P&gt;  append receivers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  clear doc_chng.&lt;/P&gt;&lt;P&gt;  doc_chng-obj_descr = subject. "Subject zpravy&lt;/P&gt;&lt;P&gt;  doc_chng-obj_name = 'SMS'.&lt;/P&gt;&lt;P&gt;  doc_chng-doc_size = strlen( doc_chng-obj_descr ).&lt;/P&gt;&lt;P&gt;  refresh objtxt.&lt;/P&gt;&lt;P&gt;  objtxt = 'SMS message'. "message&lt;/P&gt;&lt;P&gt;  append objtxt.&lt;/P&gt;&lt;P&gt;  call function 'SO_NEW_DOCUMENT_SEND_API1'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            document_type              = 'RAW'&lt;/P&gt;&lt;P&gt;            document_data              = doc_chng&lt;/P&gt;&lt;P&gt;            commit_work                = 'X'&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            object_header              = objhead&lt;/P&gt;&lt;P&gt;            object_content             = objtxt&lt;/P&gt;&lt;P&gt;            receivers                  = receivers&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            too_many_receivers         = 1&lt;/P&gt;&lt;P&gt;            document_not_sent          = 2&lt;/P&gt;&lt;P&gt;            operation_no_authorization = 4&lt;/P&gt;&lt;P&gt;            others                     = 99.&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;    message e208(00) with 'Error'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Sep 2008 09:10:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-12T09:10:50Z</dc:date>
    <item>
      <title>Send SMS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-sms/m-p/4471786#M1059180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;How to send a text message to mobile through abap code &lt;/P&gt;&lt;P&gt;is there any sample program is there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Surendra Polamreddy on Sep 12, 2008 2:26 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 08:56:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-sms/m-p/4471786#M1059180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-12T08:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Send SMS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-sms/m-p/4471787#M1059181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this blog&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_blogpost" href="https://community.sap.com/" __jive_macro_name="blogpost" modifiedtitle="true" __default_attr="40534"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 09:04:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-sms/m-p/4471787#M1059181</guid>
      <dc:creator>bpawanchand</dc:creator>
      <dc:date>2008-09-12T09:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Send SMS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-sms/m-p/4471788#M1059182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, you can use FM 'SO_NEW_DOCUMENT_SEND_API1' or better SO_NEW_DOCUMENT_ATT_SEND_API1.&lt;/P&gt;&lt;P&gt;It is easy to use. Look to documentation of that FMs. Here is sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report  yca_sms_send.&lt;/P&gt;&lt;P&gt;parameters: sms_num type text20 obligatory.&lt;/P&gt;&lt;P&gt;parameters: subject type SO_OBJ_DES default sy-sysid.&lt;/P&gt;&lt;P&gt;parameters: sms_txt type text50 obligatory.&lt;/P&gt;&lt;P&gt;data: receivers like somlreci1 occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      objhead like solisti1 occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      objtxt like solisti1 occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      p_rec like receivers-receiver,&lt;/P&gt;&lt;P&gt;      p_type like receivers-rec_type,&lt;/P&gt;&lt;P&gt;      users like ywf_ea_user_task occurs 0 with header line.&lt;/P&gt;&lt;P&gt;data: count type i,&lt;/P&gt;&lt;P&gt;      p_email(50),&lt;/P&gt;&lt;P&gt;      doc_chng like sodocchgi1,&lt;/P&gt;&lt;P&gt;      objcont like solisti1 occurs 5 with header line,&lt;/P&gt;&lt;P&gt;      p_count(5).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection .&lt;/P&gt;&lt;P&gt;  clear receivers.&lt;/P&gt;&lt;P&gt;  refresh receivers.&lt;/P&gt;&lt;P&gt;  receivers-receiver+9 = 'SMS'.&lt;/P&gt;&lt;P&gt;  receivers-receiver+13 = sms_num.&lt;/P&gt;&lt;P&gt;  move 'K' to receivers-rec_type.&lt;/P&gt;&lt;P&gt;  append receivers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  clear doc_chng.&lt;/P&gt;&lt;P&gt;  doc_chng-obj_descr = subject. "Subject zpravy&lt;/P&gt;&lt;P&gt;  doc_chng-obj_name = 'SMS'.&lt;/P&gt;&lt;P&gt;  doc_chng-doc_size = strlen( doc_chng-obj_descr ).&lt;/P&gt;&lt;P&gt;  refresh objtxt.&lt;/P&gt;&lt;P&gt;  objtxt = 'SMS message'. "message&lt;/P&gt;&lt;P&gt;  append objtxt.&lt;/P&gt;&lt;P&gt;  call function 'SO_NEW_DOCUMENT_SEND_API1'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            document_type              = 'RAW'&lt;/P&gt;&lt;P&gt;            document_data              = doc_chng&lt;/P&gt;&lt;P&gt;            commit_work                = 'X'&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            object_header              = objhead&lt;/P&gt;&lt;P&gt;            object_content             = objtxt&lt;/P&gt;&lt;P&gt;            receivers                  = receivers&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            too_many_receivers         = 1&lt;/P&gt;&lt;P&gt;            document_not_sent          = 2&lt;/P&gt;&lt;P&gt;            operation_no_authorization = 4&lt;/P&gt;&lt;P&gt;            others                     = 99.&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;    message e208(00) with 'Error'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 09:10:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-sms/m-p/4471788#M1059182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-12T09:10:50Z</dc:date>
    </item>
  </channel>
</rss>

