Skip to Content
Author's profile photo Venkateswaran (Venkat) Krishnamurthy

Smartforms Related Reference

This document specifically published to have a ready reference on Smartform Related items.  I will be modifying this document as and when I find any suitable informations that can be shared with you all.


System Variable                 Value


&SFSY-DATE&                      Date

&SFSY-TIME&                      Time

&SFSY-PAGE&                     Number of Current Printing Page

&SFSY-FORMPAGES&         Total Number of Pages in Current Document

&SFSY-JOBPAGES&            Total Number of Pages in print request (all documents)

&SFSY-WINDOWNAME&      Name of the current window

&SFSY-PAGENAME&         Name of the current page.

wa_name = ‘Smart Forns’.
&wa_name&    will Print  as  Smart Forms
&wa_name+4 (5)& will print as  Forms

&field(S)&     Suppress Sign
&field(<)&     Displays Sign at Left
&field(T)&     Suppress thousand separator
&field(Z)&     Suppress leading zeros.
&field(I)&      Suppress output of initial values.
&field(F<filler>)&         Replaces left justified blanks with filler specified.


Control Parameters while calling the Form


control-preview = ‘X’.  Toggle Preview
control-no_open = ‘X’.
control-no_close = ‘X’.
control-no_dialog = ‘X’.
control-device = ‘PRINTER’.
control_parameters-no_dialog = ‘X’.
control_parameters-no_open = ‘X’.
control_parameters-no_close = ‘X’.

    output_options     = output_options
    control_parameters = control
    user_settings      = ‘ ‘
    formatting_error   = 1
    internal_error     = 2
    send_error         = 3
    user_canceled      = 4
    OTHERS             = 5.

IF sy-subrc <> 0.
  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Harshad Bhingarkar
      Harshad Bhingarkar

      Nice information to have ...  Thanks a lot

      Author's profile photo Former Member
      Former Member

      wa_name = 'Smart Forns'.

      &wa_name&    will Print  as  Smart Forms

      &wa_name+4 (5)& will print as  Forms

      Actually, it won't.