cancel
Showing results for 
Search instead for 
Did you mean: 

JCO Client

Former Member
0 Kudos

I need to replace C++ RFC Adapter with Java Adapter and I'm using JCO. I found the problem related to DATE format. All data goes to SAP in internal format (YYYYMMDD) but interfaces are written to accept date in external format (MMDDYYYY) and because of it I have problems calling ABAP functions.

Please help me to solve that problem.

Vitaly.Scherban@pb.com

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Craig,

I just checked the client date settings and they are in MM/DD/YYYY format and it is exactly what I need.

Is that possible to set the Date field with String data with JCO? In C++ it is possible to do and that is how our current C++ application sends the DATE field to SAP.

I tried to set String to type D field and got exception of data convertion. Is that possible to do on the lowest level using something like MetaData?

Vitaly

Former Member
0 Kudos

Craig,

Thank you for reply.

How can I change the user settings for date formats?

What should I do?

Vitaly

Former Member
0 Kudos

In SAP - SU01 - each user can change their settings for those items. In the beginning everyone get's the system default but they can be changed.

Former Member
0 Kudos

We simply convert the date in Java before sending it over.

Because you also have the problem that SAP reads the user settings for date and number formats.

Setting in Java before sending was always the safest for us.