Skip to Content
Former Member
Jun 29, 2006 at 02:09 PM

Time format issue (Urgent please)


hello experts,

I am pretty new to ABAP. could someone please help me to sort the following mentioned issue.

I have time char (length 6) which is assigned to a data source. Some of the time data in the fields of a flat file are empty. So the system is not accepting empty fields and moreover the time its brining is in

hh:mm: (6 char) format. The actual format is hh:mm:ss

I guess we have to use concatenation to sort this out. Can someone share the code

I used the following code to eliminate blanks

if ( TRAN_STRUCTURE-/bic/zooh_time is initial ) or

( TRAN_STRUCTURE-/bic/zooh_time eq '000000' ) or

( TRAN_STRUCTURE-/bic/zooh_time eq '' ).

clear RESULT.


RESULT = TRAN_STRUCTURE-/bic/zooh_time.


All inputs are much appreciated.

Thanks in advance,

Harish Mulaka