Skip to Content

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.

For example:

http://smsxyz.com/apisms.php?key=abc&usr=Z1256&message=’HelloSMS’&recipient=1234567890

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

SMS1.jpg

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.

SMS2.jpg

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.

SMS3.jpg

Regards,

Firoz Ashraf.

To report this post you need to login first.

2 Comments

You must be Logged on to comment or reply to a post.

  1. Jelena Perfiljeva

    RVADDN01 is the old program for SAPScript processing. There is a newer program for SmartForms RLE_DELNOTE (not sure about the PDF forms). But I’m guessing any output processing program may be enhanced like you’re suggesting.

    Some mobile providers have SMS Gateway (see list here) that allows texting by sending an email in certain format, so no additional service is required. Although this is not a universal solution, unfortunately.

    There are already tons of posts on sending SMS from SAP; you might want to do some Google search to make sure the same information has not been posted already (e.g. see this example from the Top 10 matches on Google). And when sharing ABAP code, please post it as text – the screenshots are not very readable, unfortunately.

    Please keep sharing, I hope these suggestions will be helpful in improving the future posts. Thank you.

    (0) 
    1. Firoz Ashraf Post author

      Hi Jelena,

      I believe the new program for SmartForm can also be enhanced in the same way.

      Yes, there are lots of stuff on SDN itself for sending SMS. However, I just wanted to share the work that I did on SMS.

      Thanks for suggesting to post code as text. I will improve my next blog.

      Regards,

      Firoz.

      (0) 

Leave a Reply