Output format settings of smartform and scriptform

Source: Internet
Author: User
To describe how to set the output formats of smartform and scriptform

Syntax Description
& Field + & Set where to display data for character Variables,IfOffsetWhen the length is greater than the character Variable Length,The system does not display any data.
& Field ( )& Set the output Length.
& Field (*)& If the field type isABAPTypes defined in the data dictionary,The system sets the output length according to the dictionary length.
& Field (s )& Disable the output symbol bit
& Field (<)& The symbol is displayed on the left of the data.
& Field (. )& Set the number of digits for displaying decimal places
& Field (E )& Set to scientific labeling
& Field (t )& Disable display of sub-bits(Applicable:Dec,Curr,IntAndQuanSeveral Data Types).
& Field (z )& Disable digit leading0Display
& Field (I )& Do Not Display null values
& Field (k )& Disable type system output conversion by conversion function defined by data dictionary
& Field (r )& Right alignment(Valid only when the output length is defined)
& Field (F )& Use Replace the space on the left with the specified character.
& Field (l )& Convert date to local display format,UseJdatFormat
& Field (c )& The setting effect andABAPOfCondenseSame statement.
/: Set countryCountry_key Set to display the decimal point by a country,Delimiter and Date Format
/: Set date mask= 'Date _ Mask' Set date display format
Dd Days (Two digits)
Ddd Day name ( Abbreviations )
Dddd Day name ( Full name )
Mm Month (Two digits)
Mmm Date name ( Abbreviations )
Mmmm Date name ( Full name )
YY Year (Two digits)
Yyyy Year (Four digits)
LD Days (Formatted as for the L option)
Lm Month (Formatted as for the L option)
Ly Year (Formatted as for the L option)
Example
/: Set date mask = 'Foster city, mm. dd. yy'
& Date &-> Foster City, 03.01.97
& Date (z) &-> Foster City, 3.1.97
/: Set date mask = 'mmmm DD, yyyy'
& Date &-> March 01,199 7
Unset
/: Set date mask =''
/: set Time mask = 'time _ mask' time setting
Hh hours (two digits)
MM minutes (two digits)
SS seconds (two digits)
assume that the current time is 10:08:12.
& time &-> 10:08:12
/: Set Time mask = 'hh: mm'
& time &->
/: set Time mask = 'hh hours mm minutes '& time &-> 10 hours 08 minutes
& time (z) &-> 10 hours 8 minutes
unset :< br> /: set Time mask = ''

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.