!--a11y-->
RFC To .NET Data Type Mapping 
Simple Data Types
The following data types are mapped directly to .NET base data types in the main C# proxy class.
|
ABAP Type |
.NET CLS |
|
C (String) |
String |
|
I (integer) |
Int32 |
|
F (Float) |
Double |
|
D (Date) |
String |
|
T (Time) |
String |
|
P (BCD Packed, Currency, Decimal, Qty) |
Decimal |
|
N (Numc) |
String |
|
X (Binary and Raw) |
Byte [ ] |
|
RFC String |
String |
|
XString |
String |
Comments on Simple Data Types
· ABAP type N (numeric) data is mapped to a STRING data type in the C# proxy. It contains numeric data such as invoice numbers. Some type N fields like invoice number or customer number require you to enter the string with leading zeroes. If in your application the customer number field is numeric, be sure to convert your entry back to the appropriately formatted string before using it in the proxy.
· Date / Time fields are mapped to .NET STRING data types in the C# proxy. The format of the string is the same as the SAP internal storage of the date and time. Specifically for date this is YYYYMMDD and for time it is HHMMSS. The SAP .NET connector provides functions specifically to help you convert from SAP Date/Time fields stored as string to a .NET date or time field.
Complex Data Types
|
SAP Data Type |
.NET Data Type |
|
C# class derived from SAPStructure |
|
|
Table (ITAB) |
|
|
(New) Hierarchical Table (type II ITAB) |