Showing results for 
Search instead for 
Did you mean: 


Former Member
0 Kudos

Dear CS experts

My costumer requires sap to send an sms automatically to the costumer told him that all services are done and he can come to do billing also he needs to send the quotations automatically and when there is a notification created from a plan according to contract also will send an sms automatically tell him to come and do maintenance according to the contract which he made with the costumer

Best Regards

Mohamed Elsayed

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos


To send th SMS first you need to get the SMS server excess, if you have your own server or you can take SMS URL from the telecom service provider like, VODAFONE, IDEA, AIRTEL etc.

Then use the below concept to send the SMS.

You can add the below code in the SAVE event block.

M_NO = '9999999999'.     "MOBILE NO.

m_mss = 'message'         "message details like complaint created etc.

    CONCATENATE 'http://smsurlwithusernameandpassword'
                     m_no '&sid=SENDER' '&msg=' m_mss '&mt=0' INTO wf_string.

    CALL METHOD cl_http_client=>create_by_url
          url                = wf_string
          client             = http_client
          argument_not_found = 1
          plugin_not_active  = 2
          internal_error     = 3
          OTHERS             = 4.

      CALL METHOD http_client->send
          http_communication_failure = 1
          http_invalid_state         = 2.

      CALL METHOD http_client->receive
          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 .



Former Member
0 Kudos

Dear Zafar

Thanks for your reply but i think our basis consultant do this and we have this server at the customer's company.. my problem concerning the interface between cs and basis and if this issue needs abaper or not