cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert Java native types into ABAP data types ?

Former Member
0 Kudos

Hi,

Experts,

I want to convert Java Native Types into ABAP Data Types can any body suggest me on this if there are any links fwd it.

Thanks in advance.

Shabeer Ahmed.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Any specific types?

Why do you need to the conversion yourself?

Former Member
0 Kudos

As i am developing WD ABAP application as in WD JAVA application in that WD Java application it uses java native types for that i want to convert in into abap type please suggest me on it.

Former Member
0 Kudos

Hi Shabeer

Please tell me the java native types which are being used in Java application?

I wil tell you the conversion abap types ........

Former Member
0 Kudos

<ControllerMethod name="exportToExcel2003" visibility="none">

<ParameterizedFeature.Parameters>

<Parameter name="dataNode">

<Parameter.NativeType>

<JavaNativeType javaPackage="com.sap.tc.webdynpro.progmodel.api" name="IWDNode">

</JavaNativeType>

</Parameter.NativeType>

<Parameter.Type>

<Core.Reference path="Method:exportToExcel2003/Parameter:dataNode/NativeType"/>

</Parameter.Type>

</Parameter>

<Parameter name="columnInfo">

<Parameter.NativeType>

<JavaNativeType javaPackage="java.util" name="Map">

</JavaNativeType>

</Parameter.NativeType>

<Parameter.Type>

<Core.Reference path="Method:exportToExcel2003/Parameter:columnInfo/NativeType"/>

</Parameter.Type>

</Parameter>

</ParameterizedFeature.Parameters>

thank you

Former Member
0 Kudos

How to convert this java native types into abap type

Former Member
0 Kudos

Node and Map are collections which corresponde to table type in ABAP.

You need to know what are the Node attributes or the Map elements.

Former Member
0 Kudos

Can u provide me the list of java native type and corresponding ABAP type

Former Member
0 Kudos

Most of the char and char like type correspond to java.lang.String type

Date types correspond to java.sql.Date

Numbers correspond to int or to java.math.BigDecimal type

Former Member
0 Kudos

Hi,

Aviyad,

today i have found more than 150 native types in NW Developer studio thats ok but in Java project i have found another java native type can u tell its corresponding ABAP type ie.,

com.sap.tc.webdynpro.services.event.ActionEvent

<JavaNativeType javaPackage="com.sap.security.api" name="IUser">

Former Member
0 Kudos

IUser is another collection that contains user data.

Try matching a table type of that sort (maybe using su01 datatypes or something like that).