ABAP Keyword Documentation →  ABAP − Reference →  Program Parameters →  Language Environment →  Formatting Settings → 

SET COUNTRY  Syntax Diagram

Short Reference

Syntax

SET COUNTRY cntry.

Effect

This statement sets the formatting settings of the language environment for all following statements of the current internal session.

cntry expects a character-like data object that either contains a value from the column LAND of the database table T005X or is initial.

If the content of cntry cannot be found in the table T005X and does not have a space in the first position, sy-subrc is set to 4 and the following settings are made:

System Fields

sy-subrc Meaning
0 The specified country key was found in the database table T005X or a space was specified.
4 The specified country key was not found in database table T005X.

Notes

Example

See Character String Templates, Formatting Settings and WRITE, Cutoff Behavior.