Showing posts with label Data Objects in ABAP. Show all posts
Showing posts with label Data Objects in ABAP. Show all posts

Thursday, April 25, 2013

0 Formatting options for all Data Types in ABAP


Formatting options for all Data Types in ABAP :



             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>
USING NO EDIT MASK
Deactivates a format template specified in the ABAPDictionary.
NO-ZERO
If a field contains only zeros,these are replaced by blanks. For type C and Nfields, leading zeros are   replaced automatically.
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.



0 Data Types and Data Objects in ABAP


Data Types in abap:
1.Data types are pure descriptions.
2.There is no memory associated with data types.
3.Data types describe the technical properties of data objects
Data objects
1.Data objects are the physical units a program uses at runtime.
2.Each data object has a specific data type assigned to it.
3.Each data object occupies some space in memory.

Data types
Default values
Key words
Integer
0
I
Numeric
0
N
Character
Space
C(or) Char
Date
00000000
DATS
Time
000000
UZEIT
Hexadecimal
X’00’
X
Boolean
False

String
Space
String
Packed decimal
0.0
P decimals <no of decimals>

 

SAP-ABAP Copyright © 2011 - |- Template created by Vishnu - |- Powered by Blogger Templates