Entering content frame

CHR(a,n) Locate the document in its SAP Library structure

CHR(a,n) is a function ( conversion function) that converts numbers into character strings.

The CHR function can only be applied to numeric values, character strings, and boolean values.

 

Result of the CHR(a,n) function

a is a numeric value

Character string that matches the CHAR representation of the numeric value a.

The code attribute of the character string corresponds to the code type of the computer.

a is character string

Identical character string

a is a boolean value

T, if a=TRUE
F, if a=FALSE

a is not a numeric value, a character string, or a boolean value

Error message

CHR(a,n), n>=1

Output with the length attribute n

CHR(a)

The length attribute n is calculated as a function of the data type and the length of a.

CHR(a) and a if of the data type FLOAT(p)

If p=1, then n=6
If p>1, then n=p+6

CHR(a) and a is of the data type FIXED(p,s)

If p=s, then n=p+s
If s=0, then n=p+1

a is the NULL value

NULL value

a is the special NULL value

Error message

Leaving content frame