Академический Документы
Профессиональный Документы
Культура Документы
Smartforms
1 2
Demonstration
Exercises HelpMe
5
India SAP CoE, Slide 2
Smartforms
1 2
Demonstration
Exercises HelpMe
5
India SAP CoE, Slide 3
Introduction
Purpose Use
Purpose
Smartform is a template that simplifies the process of designing business forms. You need smartform to print, distribute or display business forms. Smartform tool includes utilities for designing forms and for defining the interface to the application programs that use forms for data output. The output of application data is placed into a dynamically expandable table where the size and layout of the output table is determined by the number of records being retrieved.
Use
Smartform tool includes utilities for designing forms and for defining the interface to the application programs that use forms for data output. The output of application data is placed into a dynamically expandable table where the size and layout of the output table is determined by the number of records being retrieved.
Use of Smartform
Smartforms are used for designing and printing various types of
application documents across the various SAP modules like SD, FI, PU, IM, WM etc.
Smartforms
1 2
Demonstration
Exercises HelpMe
5
India SAP CoE, Slide 8
Syntax Description
Smartform has 3 driving components : Print Program, Layout Set and Function module.
1. Application Data is fetched by the Print Program from the database depending upon the selection screen parameter. 2. Function module of a Layout Set is called in a program for placement of the data.
Smartform Development
To develop a smartform object one needs to develop following objects : 1. Smartform Layout : Layout decides the format of data to be displayed on the paper. Layout can be developed using Form Painter provided by SAP 4.6C. Once the smartform is activated its corresponding function module is generated by SAP. The function module name can be obtained by calling another function SSF_FUNCTION_MODULE_NAME by passing smartform name as input parameter. Transactions to use : Smartforms Smartstyles - To design our own style. 2. Print Program : Print program performs all required data selection depending upon the specified selection criteria. This program calls the function module of a smartform and passes the data to smartform function module. This function module then puts the data in a format defined by layout. Transaction to use : SE38 to develop a print program.
India SAP CoE, Slide 10
Maintenance frame This frame appears in the middle of the screen. Form painter frame This frame appears on the right of the screen. If form painter is not visible on the screen , then choose Form Painter. You can control whether form painter is hidden or visible.
Pages
- On the pages of a form you determine the page layout and the
sequence of pages with different structures.The page layout includes the page format (for example, DIN A4, Letter, DIN A5 landscape) and the position of the windows on a page.
- The individual pages of a form may differ in their structure. For each page, you must specify a next page to make the page sequence clear. -Many forms contain only two pages of different structure: the first page, which calls the next page, and the next page, which calls itself. If the text does not entirely fit onto the second page, another document page is automatically displayed.
Subwindows
- In a subwindow you display text and data in a predetermined
output area. There is no flow text display with page break. If you position a subwindow with the same name on several pages, the system displays the contents of this subwindow on each page. - Text and data that do not fit into the subwindow are truncated and not displayed.
specifies how many lines a table line should hold and what width these cells should have.
Smartforms
1 2
Demonstration
Exercises HelpMe
5
India SAP CoE, Slide 21
Configuration
- The basic configuration required to do for smartform is creating
output type and attaching the smartform to the output type. - NACE is the transaction to set the output type. - In this transaction first the application is selected ( e.g.V1 Sales, V2 Shipping etc) - Then output type is selected. Sometimes output type is created newly if driver program and smartform are custom program and not SAP standard ones. - Whenever new output type is created , 3 parameters are required. They are : - Smartform Name - Driver Program Name - ENTRY routine name.
India SAP CoE, Slide 22
Smartforms
1 2
Demonstration
Exercises HelpMe
5
India SAP CoE, Slide 23
Exercises
Let us design one smartform for Billing Document. The layout specifications and data retrieval logic has been explained in these word documents.
Layout Specification :
Transactions
SMARTFORMS
SMARTSTYLES SO10 SE38 SE78
Create Smartform
Create style Create standard Text Create print program Upload Logo
Smartforms
1 2
Demonstration
Exercises HelpMe
5
India SAP CoE, Slide 29
Field List
India SAP CoE, Slide 30
output_options values for the printer, immediate output and spool retention period are
evaluated. - archive_index, archive_index_tab, archive_parameters: Parameters for archiving - mail_appl_obj, mail_recipient, mail_sender: Parameters of the Business Communication Interface for sending forms as e-mails. - document_output_info: Number of pages output (field tdfpages) - job_output_info, job_output_options: Structures with information on the output (for example, with XML output)
SPRO Sales and Distribution Basic Functions Output Control Output Determination Maintain output types.
2. Enter the name of the SAP Smartform to be created in the Form field.
3. Choose Utilities at menu bar and select Migrate SAPscript form . 4. The program first tries to find the SAPscript form in the current client ; if the form does not exist there the system looks in client 000.If you choose Enter form is migrated.
Downloading of Smartform
1. Go to Smartforms transaction. Specify a form name that you
want to download. 2. Select to Utilities->Download Form at menu bar. You will get a popup to specify the location where you want to download. 3. On click on Save , smartform will be downloaded in .XML format to a specified location.
Uploading of Smartform
1. Go to Smartforms transaction. To upload smartform , enter the smartform name in Form field and select Utilities->Upload Form. 2. You will get a popup to specify .XML file . Specify the file name from which you want to create a smartform.
Smartforms - Advantages
Smartform offers following advantages : Creating and maintaining forms require half the time. Adapting to forms without any programming techniques due to GUI. Web publishing using generated XML output. High performance when printing in large quantities.
4. Smartforms generate a function module when activated. Because of which smartform can be called from any ABAP object type and thus increases reusability.