When working with BAPIs or RFCs from an SAP environment, you must be able to both interpret the various types of data that can be returned and convert your variables into these types (for example, numeric, packed, or character). The following table shows the mapping between ABAP and Java data types.
ABAP Data Type | Java Equivalent |
---|---|
CHAR | java.lang.String |
INT4 | java.math.BigInteger |
INT2 | java.math.BigInteger |
INT1 | java.math.BigInteger |
NUMC | java.math.BigInteger |
PACK | java.math.BigDecimal |
LANG | java.lang.String |
CURR | java.math.BigDecimal |
CUKY | java.lang.String |
DATS | java.lang.String |
UNIT | java.lang.String |
TIMS | java.lang.String |
DEC | java.math.BigDecimal |
QUAN | java.math.BigDecimal |
ACCP | java.lang.String |
CLNT | java.lang.String |
FLTP | java.math.BigDecimal |
RAW | byte[] |
Team-Fly |