Showing results for 
Search instead for 
Did you mean: 

How to make Bapi accept data of type java.sql.Date

Former Member
0 Kudos


Does anyone know how to make a BAPI accept an importparameter of type "java.sql.Date"?

This kind of date has the format "yyyy-MM-dd" and the Bapi only seem to accept the format "yyyyMMdd". In my java-app however it seems as though I must use the java.sql.Date type.

Is there a way of converting the date to the latter format (yyyyMMdd) and then assigning it back to java.sql.Date?


Olof Tronnberg

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Use java.text.SimpleDateFormat class to convert value between java.sql.Date and string representation