‎2006 Oct 31 12:27 PM
we represent character as c and how do we represent xstring and string?
‎2006 Oct 31 12:34 PM
Hi,
Check these Datatypes.
Type-Permitted- Meaning - ABAP Type
Places m
ACCP 6 Accounting period n(6)
CHAR 1-255 Character string c(m)
CLNT 3 Client c(3)
CUKY 5 Currency key c(5)
CURR 1-17 Currency field p((m+1)/2)
DATS 8 Date d
DEC 1-31, in tables: 1-17 Calculation/amount field p((m+1)/2)
FLTP 16 Floating point number f(8)
INT1 3 1 byte integer b
INT2 5 2 byte integer s
INT4 10 4 byte integer i
LANG 1 Language c(1)
LCHR 256-... Long character string c(m)
LRAW 256-... Long byte string x(m)
NUMC 1-255 Numeric text n(m)
PREC 2 Accuracy s
QUAN 1-17 Quantity p((m+1)/2)
RAW 1-255 Byte sequence x(m)
RAWSTRING 256-... Byte sequence xstring
SSTRING 1-255 Character string string
STRING 256-... Character string string
TIMS 6 Time t
UNIT 2-3 Unit c(m)
For more information on these please check this <a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/fc/eb2fd9358411d1829f0000e829fbfe/frameset.htm">SAP Link</a>
Regards,
Raghav
‎2006 Oct 31 12:34 PM
Hi,
Check these Datatypes.
Type-Permitted- Meaning - ABAP Type
Places m
ACCP 6 Accounting period n(6)
CHAR 1-255 Character string c(m)
CLNT 3 Client c(3)
CUKY 5 Currency key c(5)
CURR 1-17 Currency field p((m+1)/2)
DATS 8 Date d
DEC 1-31, in tables: 1-17 Calculation/amount field p((m+1)/2)
FLTP 16 Floating point number f(8)
INT1 3 1 byte integer b
INT2 5 2 byte integer s
INT4 10 4 byte integer i
LANG 1 Language c(1)
LCHR 256-... Long character string c(m)
LRAW 256-... Long byte string x(m)
NUMC 1-255 Numeric text n(m)
PREC 2 Accuracy s
QUAN 1-17 Quantity p((m+1)/2)
RAW 1-255 Byte sequence x(m)
RAWSTRING 256-... Byte sequence xstring
SSTRING 1-255 Character string string
STRING 256-... Character string string
TIMS 6 Time t
UNIT 2-3 Unit c(m)
For more information on these please check this <a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/fc/eb2fd9358411d1829f0000e829fbfe/frameset.htm">SAP Link</a>
Regards,
Raghav
‎2006 Oct 31 2:26 PM
thanks but what i wanted is its(xstring) represention in single letter
‎2006 Oct 31 2:35 PM
‎2006 Nov 01 8:29 AM
Hi Vijay
As per SAP documentation 'X' denotes for Hexa Decimal Characters. Please correct me if my understanding is wrong.
Below is what i got from documentation:
<b> Type Description DL Initial value
C Character 1 Space
N Numeric text 1 '00...0'
D Date YYYYMMDD 8 '00000000'
T Time HHMMSS 6 '000000'
X Byte (heXadecimal) 1 X'00'
I Integer 4 0
P Packed number 8 0
F Floating point number 8 '0.0'
STRING String variable empty string
XSTRING Byte sequence (X string) variable empty X string</b>
Kind Regards
Eswar
‎2006 Oct 31 2:09 PM
Type Length Standard length Description
b 1 Byte 1 byte integer (internal)
c 1 to 65,535 characters 1 character Text field
cursor as i as i Database cursor
d 8 characters Date field
f 8 bytes Floating point number
i 4 bytes 4 byte integer
n 1 to 65,535 characters 1 character Numeric text
p 1 to 16 bytes 8 bytes Packed number
string variable Text string
s 2 bytes 2 byte integer (internal)
t 6 characters Time field
x 1 to 65,535 bytes 1 byte Byte field
xstring variable Byte string