You are on page 1of 13

How to Send FAX Using Smartforms

White Paper
By
Himanshu Sharma
Location: Gurgaon Designation: Senior Software Engineer

Abstract
To send Fax to any location from SAP system we can make use of Smartforms Technique.

In many of the business scenarios some hard copy if the data is required int the form of fax or printout.In SAP there are many ways to make a script.SAP Scripts and Smartforms anr used to create invoices. This document will cover the basic steps that should be followed to fax an invoice.In some of the cases the vendor wants the invoice in form of fax. Fax can be send through Sap to any location where SAP is not installed.Therefore there is a requirement to send Fax to any location from SAP system. This Document provides the overview of how to send Fax to any location from SAP system we can make use of Smartforms Technique. This document can be used by Technical developer who wants to send Fax to any location from SAP system we can make use of Smartforms Technique.

About the Author


Himanshu is an SSE in Accenture. He holds a BTech in Electronics And Communication and has worked with Accenture since last 2 Years. He has SAP ABAP certification through SAP LAbs .

About the Domain


All the SAP modules can use this document.This will help out to send fax for the invoices raised for warious modules.

Abbreviations
Term ERP ABAP Description Enterprise Resource Planning Advanced Business Application Programming

Contents

Introduction.............................................................................................................................................3 The Deployment Logic.............................................................................................................................3 Steps involved..........................................................................................................................................3 Conclusion.............................................................................................................................................11

Introduction
This Document will help how to send smartform through FAX.

The Deployment Logic


Create a smartform with the layout you want to FAX the data.
Get the Function Module name and in SE37 open the function Module go

to the Import parameter and you will find Control Parameters

To provide the FAX Number you have the OUTPUT_OPTI ONS in Import Tab.

In program define an Internal Table of type CONTROL PARAMETERS

Set the device field of this table with TELFAX for sending FAX.To provide the FAX Number you have the OUTPUT_OPTIONS in Import Tab.

Declare an internal table with type same as Output_Control. Set the values of FAX Number along with other details.

Steps involved
The step that needs to be followed is as below. 1. Create smartforms and pass following parameter as mentioned.

2. Double click on the associated type with the field Device. You will get the following screen

3. Double click on the Domain TDDEVICE. You will get the following screen.

4. Go to the Value Tab. You will see following screen.

5. In program define an Internal Table of type CONTROL PARAMETERS. 6. Set the device field of this table with TELFAX for sending FAX. 7. To provide the FAX Number you have the OUTPUT_OPTIONS in Import Tab.
These options only apply when you set the DEVICE parameter of the control structure to 'TELEFAX'. Instead of the spool dialog, SAP Smart Forms then opens a telefax dialog. You can preassign values to the fields in this dialog using the TDTELELAND, TDTELENUM, TDSCHEDULE, TDSENDDATE, TDSENDTIME and TDARMOD fields (see Options for Archiving).

8. Double click on the associated type you will get the following screen.

9. You will have the fields to provide the FAX Number along with other settings. As shown below.

10. Declare an internal table with type same as Output_Control. 11. Set the values of FAX Number along with other details. 12. Now on the execution of smartform a window will come which will be for FAX details Input. 13. At the End of Function Module which calls the smartform. Use the statement Commit Work. 14. You can check the status of the FAX using Tcode SOST. You will have following screen.

Conclusion
This document helps to develop a report tro send fax through the SAP using Smartforms.. Objective of this white paper is to Standardize and automate the efforts of Architects in applying this solution and Developers using the logic to maximum effect so as to reduce the development cycle.Reusablity of efforts is key to deliver more in short time to reduce the turn around time in Project management.