Entering content frame

MapChar Set Name (mapchar_set_name) Locate the document in its SAP Library structure

A MapChar set name (mapchar_set_name) identifies a MapChar set.

Syntax

<mapchar_set_name> ::= <identifier>

Explanation

Functions Using MapChar Sets

MAPCHAR

Create MapChar Sets

You can use the CREATE MAPCHAR SET statement to create MapChar sets. However, for ASCII databases, you should use the Database Manager GUI to create MapChar sets. For UNICODE databases, you cannot use the Database Manager GUI. Instead, you have to execute the CREATE MAPCHAR SET statement.

Syntax

<create_mapchar_set_statement> ::=
  CREATE MAPCHAR SET <mapchar_set_name> AS ASCII WITH <mapchar_set_list>
| CREATE MAPCHAR SET <mapchar_set_name> AS UNICODE WITH <mapchar_set_list>

<mapchar_set_list> ::=
  <mapchar_set_literal>
| <mapchar_set_list>,<mapchar_set_literal>

<mapchar_set_literal> ::=
  <hex_literal> TO <string_literal>
| <hex_literal> TO <hex_literal>

WITH <hex_literal> TO <string_literal>

The hexadecimal literal (hex_literal) must be structured as follows:

·        ASCII: The hexadecimal literal consists of 2 hexadecimal digits (hex_digit).

·        UNICODE: The hexadecimal literal consists of 4 hexadecimal digits (hex_digit).

The following restrictions apply for the string literal (string_literal):

·        ASCII: The string literal must contain 1 or 2 digits.

·        UNICODE: The string literal must be 2 or 4 bytes.

WITH <hex_literal> TO <hex_literal>

The first hexadecimal literal (hex_literal) must be structured as follows:

·        ASCII: The hexadecimal literal consists of 2 hexadecimal digits (hex_digit).

·        UNICODE: The hexadecimal literal consists of 4 hexadecimal digits (hex_digit).

The second hexadecimal literal (hex_literal) must be structured as follows:

·        ASCII: The hexadecimal literal consists of 2 or 4 hexadecimal digits (hex_digit).

·        UNICODE: The hexadecimal literal consists of 4 or 8 hexadecimal digits (hex_digit).

Drop MapChar Sets

You can use the DROP MAPCHAR SET statement to drop MapChar sets. However, for ASCII databases, you should use the Database Manager GUI to drop MapChar sets. For UNICODE databases, you cannot use the Database Manager GUI. Instead, you have to execute the DROP MAPCHAR SET statement.

DROP MAPCHAR SET <mapchar_set_name>

See also:

Displaying, Changing, and Deleting MapChar Sets

 

Leaving content frame