Appendix A
SAP Data Type Conversion Table
Use the following SAP data type conversion table to help map the data type in the ABAP Directory to their respective JCo and Java data types.
Table 15 Data Type Conversion Table
ABAP type | Description | JCo type code | Java data type |
|
|
|
|
|
|
|
|
b | JCO.TYPE_INT1 | int | |
|
|
|
|
s | JCO.TYPE_INT2 | int | |
|
|
|
|
I | JCO.TYPE_INT | int | |
|
|
|
|
C | Character | JCO.TYPE_CHAR | String |
|
|
|
|
N | Numerical | JCO.TYPE_NUM | Character String |
|
|
|
|
P | Binary Coded Decimal | JCO.TYPE_BCD | BigDecimal |
|
|
|
|
D | Date | JCO.TYPE_DATE | String |
|
|
|
|
T | Time | JCO.TYPE_TIME | String |
|
|
|
|
F | Float | JCO.TYPE_FLOAT | double |
|
|
|
|
X | Raw data | JCO.TYPE_BYTE | byte[ ] |
|
|
|
|
g | String | JCO.TYPE_STRING | String |
|
|
|
|
y | Raw data (variable- | JCO.TYPE_XSTRING | byte[ ] |
| length) |
|
|
|
|
|
|
eWay™ Adapter for SAP BAPI User’s Guide | 121 | Sun Microsystems, Inc. |