0% found this document useful (0 votes)
33 views29 pages

5.0 Smartforms PDF

This document provides an overview and step-by-step instructions for creating printouts using SAP smartforms. It outlines collecting data in a print program, building the smartform using transaction SMARTFORMS, defining structures and importing tables, adding fields and program code to the smartform, and calling the smartform from the print program. Key aspects covered include basic smartform settings, creating windows and text fields, looping through table data, and using system variables in smartforms.

Uploaded by

daisy.ng
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views29 pages

5.0 Smartforms PDF

This document provides an overview and step-by-step instructions for creating printouts using SAP smartforms. It outlines collecting data in a print program, building the smartform using transaction SMARTFORMS, defining structures and importing tables, adding fields and program code to the smartform, and calling the smartform from the print program. Key aspects covered include basic smartform settings, creating windows and text fields, looping through table data, and using system variables in smartforms.

Uploaded by

daisy.ng
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 29

Smartforms

SAP Printout

Compass 2009,

Objective
Overview picture of smartform Step for creating a printout Call smartforms by program How to create a smartforms How to add program code in smartforms System variable in smartforms

Compass 2009,

Form overview

Compass 2009,

Step for creating a printout


1. Confirm Business Requirement & Layout 2. Build Print Program (SE38 / SE80)
1. Collect data 2. Put data into Smartforms

3. Build Smartforms (SMARTFORMS)

Compass 2009,

Define a structure in SE11

Compass 2009,

Collect Data in Print Program

Compass 2009,

Create Smartforms
Tcode : Smartforms

Compass 2009,

Basic setting of form

Compass 2009,

Page format & font size


Default format in form

Compass 2009,

Smartform in a Function Module

Compass 2009,

Define import table

Compass 2009,

Create a Window

Compass 2009,

Change the Window name


Name begin with % is SAP namespace(Dont Use it)

Compass 2009,

Create a TEXT in window

Compass 2009,

Enter Text in the Text box

Compass 2009,

Active & find the FM name

Compass 2009,

Call Smartform in Print Program


DATA : LV_TDSFNAME TYPE TDSFNAME. DATa : LV_RS38L_FNAM TYPE RS38L_FNAM. DATA: WA_CONTROL TYPE SSFCTRLOP. "control DATA: WA_OPTIONS TYPE SSFCOMPOP. "option LV_TDSFNAME = SMARTFORM NAME'. CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME' EXPORTING FORMNAME = LV_TDSFNAME * VARIANT ='' * DIRECT_CALL ='' IMPORTING FM_NAME = LV_RS38L_FNAM EXCEPTIONS NO_FORM =1 NO_FUNCTION_MODULE =2 OTHERS =3 . WA_OPTIONS-TDIMMED = 'X'. WA_CONTROL-NO_DIALOG = 'X'. WA_CONTROL-PREVIEW = 'X'. wA_options-tddest = 'LOCL'.
Compass 2009,

Call Smartform in Print Program


call function LV_RS38L_FNAM "FM_NAME EXPORTING * ARCHIVE_INDEX = * ARCHIVE_INDEX_TAB = * ARCHIVE_PARAMETERS = CONTROL_PARAMETERS = WA_CONTROL * MAIL_APPL_OBJ = * MAIL_RECIPIENT = * MAIL_SENDER = OUTPUT_OPTIONS = WA_OPTIONS * USER_SETTINGS = 'X' IM_W_OUTPUT = W_OUTPUT * IMPORTING * DOCUMENT_OUTPUT_INFO = * JOB_OUTPUT_INFO = * JOB_OUTPUT_OPTIONS = TABLES IM_T_OUTPUT = T_OUTPUT EXCEPTIONS FORMATTING_ERROR = 1 INTERNAL_ERROR = 2 SEND_ERROR = 3 USER_CANCELED = 4 OTHERS = 5.
Compass 2009,

Create Table

Compass 2009,

Create Table Line

Compass 2009,

Adjust table line

Compass 2009,

Loop data in table

Compass 2009,

Create table line in table

Compass 2009,

Define output text

Compass 2009,

Support Drag & Drop

Compass 2009,

Calculation during table loop

Compass 2009,

Create Program line in Smartforms

Compass 2009,

Similar to Function Module

Compass 2009,

System Variable
&SFSY-FORMPAGES&
Total Page no

&SFSY-PAGE&
Current Page no

&SFSY-DATE&
Current Date

&SFSY-TIME&
Current time

Compass 2009,

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy