Need to send an SMS from SAP ( by writing a custom report ) System.

Hi All,
I am with a requirement like sending SMS after generating some random number .
Like I will collect the mobile number from HR mastr data and thereafter I need to send an SMS.
I am not aware of this SMS sending concepts.
For this I have to develop ABAP report.
Kindly help me out.
Best Regards,
Veerendra Nath

hi , you can Use Email to SMS , this Facility Should be Available with your Mobile Service Provider , here in Sri lanka its Possible , pls check the Code below
DATA : t_mailtext TYPE bcsy_text,
          t_lines LIKE tline OCCURS 0 WITH HEADER LINE.
DATA: objtxt LIKE solisti1 OCCURS 150 WITH HEADER LINE.
DATA : object_id LIKE sofolenti1-object_id.
DATA: usrid_long TYPE string.
DATA: reclist LIKE somlreci1 OCCURS 5 WITH HEADER LINE.
DATA: doc_chng LIKE sodocchgi1.
DATA: tab_lines LIKE sy-tabix.
REFRESH : t_mailtext.
APPEND t_lines.
CONCATENATE  'Errors in RCC' sy-datum sy-uzeit INTO objtxt SEPARATED BY space.
  APPEND objtxt.
Subject for the SMS Alert
  DATA : lw_message TYPE c LENGTH 50.
  lw_message = 'PO Log'.
  doc_chng-obj_descr = lw_message.
  DESCRIBE TABLE objtxt LINES tab_lines.
  READ TABLE objtxt INDEX tab_lines.
  doc_chng-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
Entering names in the distribution list
  usrid_long = '3667971"at sign"dialog.lk'.
  reclist-receiver = usrid_long.
  reclist-rec_type = 'U'.
  APPEND reclist.
*--Second Email Recepient
  usrid_long = '3667975"at sign"dialog.lk'.
  reclist-receiver = usrid_long.
  reclist-rec_type = 'U'.
  APPEND reclist.
  CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
    EXPORTING
      document_data                    = doc_chng
  DOCUMENT_TYPE                    = 'RAW'
     put_in_outbox                    = 'X'
     commit_work                      = 'X'
   IMPORTING
     new_object_id                    = object_id
    TABLES
     object_content                   = objtxt
      receivers                        = reclist
   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.
Thanks & Br
Dilum Alawatte

Similar Messages

  • How to send SMS from SAP 4.7

    Hi All,
    I am newbie here.
    We have a requirement to send a SMS from SAP to Mobile.
    How can i do this. Currently we are using SAP 4.7.
    Can i do from SAP 4.7 or i need a new upgard version of SAP (ECC).
    Please help me.

    Rajesh,
         Actually i do not have idea on this. But i got the below information from one of the web site related to SAP. It may helpful to you.
    You could create dataset in application server with
    certain format, ex. : Hp-id Message ( 9999-999999Hello ),
    then you could use external command via FM
    RSPX_COMMAND_EXECUTE to execute the external command.
    The external command we used was Unix external command.
    This external command will take the dataset data you
    created and send the SMS.
    Cooperate with your Basis expert.
    Cheers,
    Suresh Kumar.

  • Send SMS from SAP

    Hi,
    I´m very confused with the several threads, and notes about the setting SMS from SAP to Cellulars.
    If I want to configure the sending of sms from SAP, I´ve to declare the NODE with HTTP? Or can to setup as SMTP?
    If I setting the node with HTTP, I´ve to use my smsprovider, that is not mandatory what my own company mobile,not?

    Hello Ruben,
    Well its very much possible to sent out sms from SAP System and you need to configure the system according to SAP Setting provided in below 02 SAPnotes.
    How it SAP handles outgoing SMS/Paging
    Note 455129 - Paging/SMS in different SAP releases
    How you need to configure your SAP system.
    Note 455140 - Configuration of e-mail, fax, paging or SMS using SMTP
    I hope you will get all the information in above 02 SAPnotes.
    PS:As of Release 6.20, you can also send and receive fax and SMS or paging messages using SMTP
    All the best !!

  • Sending external email from SAP with following requirements...

    Hi All,
           I need to send external emails from SAP by meeting following requirements.
    1) With subject line more than 100 characters.
    2) No attachments, only body which has specific format (blueprint/layout) and would be amended often, hence code shouldn't be touched during amendments.
    3) Should be able to know the success/failure of mail sending at program level.

    Hi,
    The code below demonstrates how to send an email to an external email address
    *& Report  ZSENDEMAIL                                                  *
    *& Example of sending external email via SAPCONNECT                    *
    REPORT  zsendemail                    .
    PARAMETERS: psubject(40) type c default  'Hello',
                p_email(40)   type c default '[email protected]' .
    data:   it_packing_list like sopcklsti1 occurs 0 with header line,
            it_contents like solisti1 occurs 0 with header line,
            it_receivers like somlreci1 occurs 0 with header line,
            it_attachment like solisti1 occurs 0 with header line,
            gd_cnt type i,
            gd_sent_all(1) type c,
            gd_doc_data like sodocchgi1,
            gd_error type sy-subrc.
    data:   it_message type standard table of SOLISTI1 initial size 0
                    with header line.
    *START-OF-SELECTION.
    START-OF-SELECTION.
    Perform populate_message_table.
    *Send email message, although is not sent from SAP until mail send
    *program has been executed(rsconn01)
    PERFORM send_email_message.
    *Instructs mail send program for SAPCONNECT to send email(rsconn01)
    perform initiate_mail_execute_program.
    *&      Form  POPULATE_MESSAGE_TABLE
          Adds text to email text table
    form populate_message_table.
      Append 'Email line 1' to it_message.
      Append 'Email line 2' to it_message.
      Append 'Email line 3' to it_message.
      Append 'Email line 4' to it_message.
    endform.                    " POPULATE_MESSAGE_TABLE
    *&      Form  SEND_EMAIL_MESSAGE
          Send email message
    form send_email_message.
    Fill the document data.
      gd_doc_data-doc_size = 1.
    Populate the subject/generic message attributes
      gd_doc_data-obj_langu = sy-langu.
      gd_doc_data-obj_name  = 'SAPRPT'.
      gd_doc_data-obj_descr = psubject.
      gd_doc_data-sensitivty = 'F'.
    Describe the body of the message
      clear it_packing_list.
      refresh it_packing_list.
      it_packing_list-transf_bin = space.
      it_packing_list-head_start = 1.
      it_packing_list-head_num = 0.
      it_packing_list-body_start = 1.
      describe table it_message lines it_packing_list-body_num.
      it_packing_list-doc_type = 'RAW'.
      append it_packing_list.
    Add the recipients email address
      clear it_receivers.
      refresh it_receivers.
      it_receivers-receiver = p_email.
      it_receivers-rec_type = 'U'.
      it_receivers-com_type = 'INT'.
      it_receivers-notif_del = 'X'.
      it_receivers-notif_ndel = 'X'.
      append it_receivers.
    Call the FM to post the message to SAPMAIL
      call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
           exporting
                document_data              = gd_doc_data
                put_in_outbox              = 'X'
           importing
                sent_to_all                = gd_sent_all
           tables
                packing_list               = it_packing_list
                contents_txt               = it_message
                receivers                  = it_receivers
           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.
    Store function module return code
      gd_error = sy-subrc.
    Get it_receivers return code
      loop at it_receivers.
      endloop.
    endform.                    " SEND_EMAIL_MESSAGE
    *&      Form  INITIATE_MAIL_EXECUTE_PROGRAM
          Instructs mail send program for SAPCONNECT to send email.
    form initiate_mail_execute_program.
      wait up to 2 seconds.
      if gd_error eq 0.
          submit rsconn01 with mode = 'INT'
                        with output = 'X'
                        and return.
      endif.
    endform.                    " INITIATE_MAIL_EXECUTE_PROGRAM
    Hope this helps.
    Reward if helpful.
    Regards,
    Sipra

  • Getting Data from SAP ECC & BI to Crystal Reports and then Broadcasting.

    Hi,
    I need to get the data from SAP ECC & BI to Crystal reports and then after formating data in Crystal reports, my requierment is to send via email (Broadcasting). Is there any option to  Broadcast from Crystal reports?
    I read Ingo Hilgefort blogs, but I need in detail steps such as to verify Integration Kit is installed or not and also how to create connections in between SAP ECC and Crystal. What are the Security setups(User IDs and Authorizations) involved?
    What is best option for email/broadcasting for Crystal Reports?
    Your help is appreciated.
    Thanks.
    SVK.

    Hi,
    I would suggest you then start with the installation and user guide fr the SAP Integration Kit.
    Ingo

  • SMS Provider for sending SMS from SAP BI server

    Hello,
    I need to send sms from sap bi server.
    Which service provider is preferable to use for sending sms?
    Any suggestions?

    You can opt for IDEA...............

  • Sending SMS from SAP

    Hi Experts,
    I have requirement where i need to send SMS to the client whenever their request has been responded.
    For Ex: If the user requesting for some upgrade from the current Plan of their mobile.(From Prepaid to Postpaid)
    if request has been responded they should be intimated through SMS from SAP.
    Is there any interface for that?
    Kindly throw some light on this issue.
    Higher points will be rewarded for useful inputs
    Thanks in Advance,
    Dharani

    Please check these links:
    SMS through SAP
    https://www.sdn.sap.com/sdn/collaboration.sdn?contenttype=url&content=https%3A//forums.sdn.sap.com/thread.jspa%3FforumID%3D50%26threadID%3D15685%26messageID%3D120429%23120429
    Sending SMS from SAP
    SMS from ABAP
    sending SMS
    If you can afford searching the forum, you can find many more threads on the same topic.
    Hope this helps.
    Kind Regards
    Eswar

  • How to send SMS from SAP to Any mobile

    Hi Friends,
    I have a requrement. How to send SMS from SAP to Any mobile?? For Example: If i created PO in SAP then i want to send a SMS to Concerned Vendor and HOD.
    Please provide the pre-requisites?
    Naveen

    Hi Naveen,
    there is a standard webservice globally available called Send SMS and you can consume that webservice with the help of CAF and you can send PO number as SMS, If the standard webservice do not work then you have to create your own webservice to fulfill the functionality.
    Regards
    Manohar

  • How to send sms from SAP

    What are the possibilities to send sms from SAP.  I know scot, but this is for sending e-mails

    Yes and No
    SCOT does indeed send mails, but if your mailserver is capable to send SMS , then scot can help you via smtp,  another option is to use http :
    have a look at the options here:
    link:[http://help.sap.com/saphelp_nw70ehp1/helpdata/en/2b/d925bf4b8a11d1894c0000e8323c4f/frameset.htm]
    Hope this helps
    Regards
    Nico

  • To send outbound mails from SAP

    Hi team,
    Here i need to configure email setting from SAP to any other email ID ( yahoo,gmail etc).For this configuration do i need to confgure any program or to genrate some RFC settings.
    Can some one guide me the process step by step what to be done to send outbound mails from SAP. Immediate help will be really appreciated.
    thanks in advance.

    Check note 455140 - Configuration of e-mail, fax, paging or SMS using SMTP
    Markus

  • Need a way to verify from SAP if an email address really exists

    Hi Guru,
    I need a way to verify from SAP if an email address really exists.
    Thanks in advance
    Soufiene

    Hello,
    Try the following code. It gives an option of using a webservice to validate an email address. This piece of code may help in solving your query.
    PARAMETERS: p_mail(100) LOWER CASE.                 " E-Mail id to be verified
    DATA: http_client TYPE REF TO if_http_client .
    DATA: w_string TYPE string ,
          w_result TYPE string ,
          r_str    TYPE string .
    DATA: result_tab TYPE TABLE OF string.
    START-OF-SELECTION .
      CLEAR w_string .
      CONCATENATE
      'http://www.webservicex.net/ValidateEmail.asmx/IsValidEmail?Email=' p_mail
    INTO
      w_string .
      CALL METHOD cl_http_client=>create_by_url
        EXPORTING
          url                = w_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 w_result .
      w_result = http_client->response->get_cdata( ).
       REFRESH result_tab .
      SPLIT w_result AT cl_abap_char_utilities=>cr_lf INTO TABLE result_tab .
       READ TABLE result_tab INTO r_str INDEX 2.
      IF r_str+44(1) = 't'.
        WRITE:/ 'Valid email address'.
      ELSE.
        WRITE:/ 'Invalid email address'.
      ENDIF.
    Regards,
    Sachin

  • Hi.....I want to send outbond email from SAP ERP to Gmail useing SBWP Tcode

    I want to send outbond email from  SAP ERP to Gmail  useing SBWP transaction , for that i want standered BADI or BAPI or RFC to send an outbond mail.i want to send a email from sbwp t-code in that t-code we have title text box and body text box and receipent  and receipent type,after entering alll those values i want trigger my badi /bapi/rfc and also that mail goes to receipent Gmail indox and also sap user outbox in sbwp t-code
    Moderator message: Welcome to SCN!
    Moderator message: this is considered "spec dumping", please work yourself first on your requirement.
    [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
    [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]
    Edited by: Thomas Zloch on Jul 13, 2011 9:25 AM

    Check note 455140 - Configuration of e-mail, fax, paging or SMS using SMTP
    Markus

  • Can we send .csv file from sap srm system to sap pi?

    Hi Experts,
    we have 3 options send the data from sap systems to sap pi.i. e.proxy,idoc and rfc only
    How can we send .csv file from sap srm to sap pi?
    Regards,
    Anjan

    Anjan
    As you know SAP SRM and SAP PI are different boxes.
    *_Option 1:_*
    we need a shared AL11 directory in between SAP SRM and SAP PI (Ask basis to setup shared folder). Place / Populate the file in the folder from SAP SRM and then it can be picked through sender file communication channel.
    In this case you (Basis team) will share one folder which is visible from the AL11 transaction of both the systems (SRM and PI). You will drop .csv file using some report or program from SRM at this location and from PI you can read that file using File communication channel (NFS mode).
    Option 2:
    Setup a FTP at SRM environment and expose some folder which can be accessible from PI. Use sender file communication channel at PI end to pick the file.
    You can use this option incase sharing of folder is not possible (due to network / other constrains). Here FTP server is required to expose any folder as FTP so as it can be accessible from internet (remote location). You need to expose some folder at SRM machine.  You will drop .csv file using some report or program from SRM at this location. Now PI can fetch the file from that location using  sender file communication channel (FTP Mode) providing user credentials.
    Hope it clears now.
    Regards
    Raj

  • Send unicode SMS from mobile phone .

    is there any way , to send SMS from moblie using j2me. i need to send my own language format, i mean unicode format.(my language is bangla).
    plz guys help me with code or provide url.

    Hello,
    I need some help for my project....I'm working to an application who send a SMS from a PC tu mobile....Onto mobile I need to install a j2me application that receive the SMS from PC and send that SMS to other PC (using infrared or bluetooth)... I wait for advices.
    Thank you!

  • EDI IDOC OUTBOUND send Purchase Orders from sap to vendors

    Hi Experts,
           I am new to EDI IDOCS, but i got object on this. So my requirement is purchase orders are send to vendors from sap (OUTBOUND) through EDI-850 format. and also i have to add some more fields to standard idoc type ORDERS05, one more condition is if vendor type is not EDI, then the POs should send through fax, email, how can we solve this condition.
    So plaese send some sample code on this object.
    Thanks in advance,
    S Reddy

    Hi ,
    You can send the purchase order to the vendors using different outytpes configurations in NACE transaction .
    If you define a particular output type where you need to give medium 6 and define partner functions within this you can also set condition which partner needs to recieve EDI output and which one FAX or email all this will be done by Functional expert.
    For adding extra segments to your basic type ORDERS05  you need to extend the idoc you can do it via WE30 and WE31 .Link you message type to basic type and extension . Please follow below tcodes for further help . Create all the requested steps in the tcodes mentioned below.
    we20:patner profile
    we21:port
    we30:idoc creation
    we30:segment creation
    we81:message type
    we82:link message with idoc type.
    we02:to status of idocs.
    Now you need to write code for filling those extra segments you have added to you extension type. For that you need to check where your new segment is placed in Idoc structure . There will be a exit avaliable to attach your code to fill those segments .
    Please go through previous SDN links to see more info.
    One the settings are done in the NACE , issue output from PO transction and once your output is processed check your Idoc in WE02 to see if the segments are coming with the desired data.
    Regards
    Vikas

Maybe you are looking for

  • Username and password validation on SOAP Web Service

    Hi, I'm pretty new to web services and c# .net framework.   I'm developing an app that uses a third party's API/ Web services. My first task is getting this log in(authentication) to working. Right now its nothing more than a simple Login form: The c

  • Upgrade strategy for 2008 Unibody: Comments wanted

    Short-time lurker, first time poster. :-) I have a 2008 unibody Macbook (2.4 GHz w/ 4 GB of RAM). It's not my primary computer, but it is my primary travel laptop. Currently it is running Snow Leopard and a Vista Bootcamp partition. I attempted Paral

  • Alternatives to load stylesheet...

    Hi, I need to be able to swap out styles en masse across the whole application in a mobile project. Obviously, that would be easy anywhere else... styleManager.loadStylesheet or similar. But in mobile... I think I am resigned to compiling a single, b

  • Getting "storage almost full message"

    I've deleted all apps I don't use. I've turned off the photo stream, although the icloud has lots and lots of storage left. I don't know how to eliminate music I'm not using from iPhone I just upgraded to 5.1.1 - not intentionally, but it's done. How

  • S 9 Software Development

    Hello, Does anybody have a list (or perhaps someone could compose one) of currently and/or recently developed OS 9 programs? It would be interesting to see what people are still doing with this final installment of the good old classic interface. I u