Sending SMS on Delivery Note Printing
Requirement: Whenever Delivery Note is created and printed in SAP, an SMS should be sent to customer with some details informing that their delivery has been shipped.
Solution: Using implicit enhancement and HTTP method this can be achieved.
Below are the steps to be performed:
1. Purchase HTTP service from SMS Service provider.
Note that you need to ask your service provider to provide you HTTP string which, if you enter on any Internet explorer should send the SMS to the mentioned mobile number. All the details like message text and number will be in one HTTP string.
2. ABAP Coding – DN Enhancement
Create an implicit enhancement at the end of routine PROCESSING in Program RVADDN01.Basically we will be using the method CREATE_BY_URL of Class CL_HTTP_CLIENT
3. SICF Proxy Settings
Go to Transaction SICF –> F8 –> Client–> Proxy Settings.
Here enter the internet Proxy IP Address (If your company has any proxy server to route internet communication) and the internet user name and password. This is neccesary because we are using HTTP method for sending SMS and this proxy server authentication will be required at SAP side to send the SMS to outside world.
4. Required Authorization for proxy check
Authorization Object S_ICF
Authorization Field ICF_FIELD Value: PROXY
Authorization Field ICF_VALUE Value: CHECK
The above authorization will be needed to all the users who will be using the Delivery Transactions like VL01N to create and print the Delivery Notes. This authorization is neccesary to send SMS.