SpringEdge's HTTP SMS API integrates seamlessly with SAP ERP systems. Use ABAP's cl_http_client class to make form-encoded HTTP POST calls to <SMS_SERVICE_URL>/api/web/send/ (your SMS service URL, shared after sign-up), sending SMS triggered by SAP business events — invoice creation, goods receipt, delivery posting, or approval workflows.
The integration supports SAP ECC, S/4HANA, and SAP Business One. Messages are delivered across all Indian telecom operators with full DLT compliance and real-time delivery tracking.
SAP ECC & S/4HANA
Works with all SAP ERP versions via ABAP HTTP client
Invoice & PO Alerts
Automated SMS on invoice posting, PO approval, and payment receipt
DLT Compliant
All messages routed through DLT-registered templates for India
* ABAP: Send SMS via SpringEdge API
DATA: lo_client TYPE REF TO if_http_client,
lv_url TYPE string,
lv_resp TYPE string.
lv_url = '<SMS_SERVICE_URL>/api/web/send/'.
cl_http_client=>create_by_url(
EXPORTING url = lv_url
IMPORTING client = lo_client ).
lo_client->request->set_method(
if_http_request=>co_request_method_post ).
lo_client->request->set_header_field(
name = 'Content-Type'
value = 'application/x-www-form-urlencoded' ).
* Form fields are URL-encoded by the client
lo_client->request->set_form_field(
name = 'apikey' value = 'YOUR_API_KEY' ).
lo_client->request->set_form_field(
name = 'sender' value = 'SEDEMO' ).
lo_client->request->set_form_field(
name = 'to' value = '9900XXXXXX' ).
lo_client->request->set_form_field(
name = 'message'
value = 'Invoice INV-2026-001 for Rs.25,000 has been generated.' ).
lo_client->request->set_form_field(
name = 'format' value = 'json' ).
lo_client->send( ).
lo_client->receive( ).
* e.g. {"groupID": 61, "MessageIDs": "61-1",
* "status": "AWAITED-DLR"}
* or a plain-text error, e.g. Invalid Sender ID
lv_resp = lo_client->response->get_cdata( ).
lo_client->close( ).
WRITE: / 'Response:', lv_resp.
ABAP CODE
ABAP HTTP Client Example
This ABAP program uses cl_http_client to send an SMS through SpringEdge's API as a form-encoded POST. The API key is passed as the apikey form field, and the message must match a DLT-approved template. You can call this code from a custom function module, BADI implementation, or workflow task.
For SAP S/4HANA Cloud, use the HTTP communication scenario with an outbound service to call the SpringEdge send endpoint. See the SMS API documentation for all parameters and error messages.
Prerequisites:
- SAP system must have HTTPS outbound connectivity
- SSL certificate for your SMS service URL host imported in STRUST
- ICM configured for outbound HTTP calls
Use Cases
Invoice Alerts
Notify customers via SMS when a new invoice is posted in SAP. Include invoice number, amount, and due date.
Delivery Notifications
Send shipment dispatch and delivery confirmation SMS triggered by goods issue posting in SAP.
Approval Workflows
Alert approvers via SMS when purchase orders, leave requests, or expense claims need their action.
Payment Reminders
Automate payment due date reminders via SMS for outstanding receivables from the FI module.
