cancel
Showing results for 
Search instead for 
Did you mean: 

How do i set date in custom RFC jco call ?

Former Member
0 Kudos

I need to set date in dd.mm.yyyy format in a RFC JCo call. How can we do it? Also do we need to utilize java.util.date or java.sql.date for setting the value.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

former_member224482
Active Contributor
0 Kudos

ABAP DATS type is 8 digits YYYYMMDD, simply use a String value.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

if the data type of the function module parameter is of type DATS you can easily pass a java.util.date object and the SAP JCo implementation will convert it correctly. You could also pass a YYYYMMDD formated String, which will also work.

Kind regards, Matthias