Sun Microsystems SAP BAPI manual SAP Data Type Conversion Table

Models: SAP BAPI

1 123
Download 123 pages 59.81 Kb
Page 121
Image 121

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

1-byte integer

JCO.TYPE_INT1

int

 

 

 

 

s

2-byte integer

JCO.TYPE_INT2

int

 

 

 

 

I

4-byte integer

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 (variable-length)

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.

Page 121
Image 121
Sun Microsystems SAP BAPI manual SAP Data Type Conversion Table