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.
----------------------------------------------------------
Formatting
----------------------------------------------------------
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-TDDEST = 'PRINTER NAME'.
OUTPUT_OPTIONS-TDNOPRINT = 'X'.
CALL FUNCTION 'SSF_OPEN'
EXPORTING
output_options = output_options
control_parameters = control
user_settings = ' '
EXCEPTIONS
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.
ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
9 | |
7 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 |