I have a similar problem. I get time formats from my source file in the form of -
So now I need to convert into SAP standard form hh:mm:ss
Is this code right or do I need to make any corrections or changes?
DATA: seconds(2) TYPE n.
DATA: minutes(2) TYPE n.
DATA: hours(2) TYPE n.
SPLIT TRAN_STRUCTURE-/BIC/ZSGYINCTM AT ':' INTO hours minutes seconds.
IF hours LT 8.
CONCATENATE '0' hours INTO hours.
IF seconds LT 8.
CONCATENATE '00' seconds INTO seconds.
CONCATENATE hours minutes seconds INTO result.
But the problem is I do not have any colons after minutes. So how does it apply?