cancel
Showing results for 
Search instead for 
Did you mean: 

Flatfile Datasource - Conversion Routine for TIMS-field?

Former Member
0 Kudos

The situation:

A timestamp has to be loaded via flatfile.

External format: hh:mm:ss (8 digit); BW internal format of TIMS: 6 digit.

Documentation and different tries don't lead to a useful standard conversion routine (e.g. comparable to RSDAT for loading date fields). Is there actually no standard conversion routine?

Any hint would be welcome!

Regards

Elisabeth

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Elisabeth,

it sounds too easy to use a function, just use a routine:

If INPUT is a string length 8, the following would do the job in a routine:

Just replace the coding


RESULT = .

with


concatenate INPUT(2) INPUT+3(2) INPUT+6(2) into RESULT.

Kind regards,

Jürgen

Edited by: Jürgen Kirsch on Sep 9, 2008 9:50 AM

Answers (1)

Answers (1)

Former Member
0 Kudos

A very late thanks for the suggestion - now it works.