How to handle an SAP BAPI time value of "24:00:00" or "240000" in Java (Doc ID 1312560.1)

Last updated on APRIL 18, 2011

Applies to:

Oracle Java CAPS - Version: 5.1.3 and later   [Release: 5.1 and later ]
Information in this document applies to any platform.
SAP ABAP T data type
SAP BAPI
SAP JCo

Goal

The SAP T (time) data type is fairly lenient on what values it is allowed to take. Some BAPIs return and expect the value of "240000" or "24:00:00". However, in Java, 24:00:00 is an invalid time value.

How does one handle a BAPI return value of "24:00:00" or send a value of "24:00:00" or "240000" to an SAP BAPI?

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms