Record the daily life of ABAP development - SmartForms output format control

Record the daily life of ABAP development - SmartForms output format control

Preface: When printing a form, sometimes it is necessary to control the output format of some fields, such as the sign bit first, no leading zero, output a few decimal places, etc., these can be controlled in the form, enter the field settings to be output The specified format, some commonly used format control styles are listed below.

syntax illustrate
& field(*)& If the field type is defined in the abap data dictionary, the system will set the output length according to the length defined in the dictionary
& field(s)& Disable output sign bit
& field(<)& The sign bit is displayed to the left of the data
& field(t)& Prohibit the display of thousandths (applicable to: dec, curr, int and quan several data types)
& field(z)& Disable the display of leading 0 numbers
& field(i)& Suppress empty values
& field(k)& Forbids the type system from performing output conversions according to the conversion functions defined by the data dictionary
& field(r)& Right justify (only works if output length is defined)
& field(f)& Replace left spaces with specified characters
& field(l)& Convert the date to the local display format, using the format specified by jdat
& field(c)& The effect of this setting is the same as the condense statement of abap
& field+<offset>& For the character variable setting where to display the data, if the offset is greater than the length of the character variable, the system will not display any data
& field(<length>)& set output length
& field(e<nat.number>)& set to scientific notation
& field(.<nat.number>)& Set the number of decimal places to display

Author: ITiger

Source: https://www.cnblogs.com/zyhcs/p/15707441.html

Copyright: This work is licensed under the Attribution-Noncommercial-ShareAlike 4.0 International license.

Please indicate the source!

Guess you like

Origin blog.csdn.net/qq_53645728/article/details/129751262