Tuesday, 9 December 2014

SAP ABAP FORMAT OPTIONS

Skip to end of metadata
Go to start of metadata

Link to Content's target Space :

WRITE WITH COLOR SPECIFICATIONS.
NEW LINE SPEC /, COLUMN SPEC, LENGTH SPEC
FORMAT STATEMENT. FORMAT RESET, FORMAT HOTSPOT = <V>
                                   <V> VALUE ON/OFF
COLOR SPEC AT DATA OBJECT LEVEL
COLOR CONTROL: EITHER BACKGROUND OR FOREGROUND
----------------------------------------------------------
| VAL | INTENSIFIED ON |INTENSIFIED OFF |INVERSE ON      |
| -UE | (BACKGROUND)      | (BACKGROUND)           | (FOREGROUND)        |
----------------------------------------------------------
|  0  |COL_BACKGROUND  |COL_BACKGROUND      |COL_BACKGROUND  |
|  1  |COL_HEADING           |COL_HEADING                |COL_HEADING           |
|  2  |COL_NORMAL           |COL_NORMAL                 |COL_NORMAL           |
|  3  |COL_TOTAL              |COL_TOTAL                     |COL_TOTAL              |
|  4  |COL_KEY                   |COL_KEY                         |COL_KEY                  |
|  5  |COL_POSITIVE          |COL_POSITIVE                  |COL_POSITIVE          |
|  6  |COL_NEGATIVE       |COL_NEGATIVE                 |COL_NEGATIVE        |
|  7  |COL_GROUP             |COL_GROUP                     |COL_GROUP             |
----------------------------------------------------------
Output format of predefined data types
=================================================
Data    Output length          Positioning
Type
=================================================
C       field length           left-justified
D       8                      left-justified
F       22                     right-justified
I       11                     right-justified
N       field length           left-justified
P       2 * field length       right-justified
T       6                      left-justified
X       2 * field length       left-justified
=================================================













Formatting options for all data types
=========================================================
Option                     Function
=========================================================
LEFT-JUSTIFIED           Output is left-justified.
CENTERED                 Output is centered.
RIGHT-JUSTIFIED          Output is right-justified.
UNDER <g>                Output starts directly under field <g>.
NO-GAP                   The blank after field <f> is omitted.
USING EDIT MASK <m>      Specifies format template <m> ('==XXXXX').
USING NO EDIT MASK       Deactivates a format template specified in the ABAP Dictionary.
NO-ZERO                  If a field contains only zeros, these are replaced by blanks.
                        For type C and N fields, leading zeros are replaced automatically.
Formatting options for numeric fields
=========================================================
Option                  Function
=========================================================
NO-SIGN                 The leading sign is not displayed on the
screen.
DECIMALS <d>            <d> defines the number of digits after the decimal point.
EXPONENT <e>            In type F fields, the exponent is defined in <e>.
ROUND <r>               Type P fields are multiplied by 10**(-r) and then rounded.
CURRENCY <c>            Format according to currency <c> in table TCURX.
UNIT <u>                The number of decimal places is fixed according to unit
                       <u> specified in table T006 for type P fields.






Formatting options for date fields
=========================================================
Option                  Function
=========================================================
DD/MM/YY                Separators as defined in user’s master record.
MM/DD/YY                Separators as defined in user’s master record.
DD/MM/YYYY              Separators as defined in user’s master record.
MM/DD/YYYY              Separators as defined in user’s master record.
DDMMYY                  No separators.
MMDDYY                  No separators.
YYMMDD                  No separators.
ULINE COMMAND, SY-ULINE, SY-VLINE
SKIP LINES, SKIP TO LINE <l>, POSITION <L>
OUTPUTTING BLANK LINES, SET BLANK LINES ON
WRITE <f> AS CHECKBOX.
WRITE <symbol-name> AS SYMBOL.
WRITE <icon-name> AS ICON.
LINE-SIZE, LINE-COUNT(FL) WITH REPORT STATEMENT.
NEW-PAGE [stage:(LINE-COUNT)] COMMAND, TOP-OF-PAGE EVENT,
END-OF-PAGE EVENT, NEW-LINE NO-SCROLLING.
SET LEFT SCROLL-BOUNDARY [stage:COLUMN <col>].
STANDARD PAGE HEADER THRU TEXT ELEMENTS
SY-TVAR0 - SY-TVAR9
SY-TITLE, SY-PAGNO, SY-LINSZ, SY-LINCT.SY-LINNO
RESERVE <n> LINES.

No comments:

Post a Comment