cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert 18 digit varchar datatype to integer in SAP BODS??

ayushibhawsar12
Discoverer

Accepted Solutions (0)

Answers (1)

Answers (1)

RichS
Participant

cast (<<your18digitvarchar>>,'int')

Or, to be safe, cast(ltrim_blanks(rtrim_blanks(<<your18digitvarchar>>)),'int')

To be ultra-safe, you could use is the is_valid_int function too.