SET COUNTRY

SET COUNTRY

Effect

Displays the decimal point and date in all subsequent output (WRITE) according to the settings specified in the table T005X for the country ID f.

The country must exist in table T005X. Otherwise, the formats used are "." for the decimal point and "MM/DD/YYYY" for the date.

Example

When outputting documents, display the decimal point and date in the format specified for the country of the recipient:

DATA: RECEIVER_COUNTRY LIKE T005X-LAND, 
	DATE			 LIKE SY-DATUM, 
	AMOUNT		 TYPE P DECIMALS 2. 
... 
SET COUNTRY RECEIVER_COUNTRY. 
IF SY-SUBRC = 4. 
   WRITE: / RECEIVER COUNTRY, ' is unknown'. 
ENDIF. 
WRITE: / DATE, AMOUNT.

Then, you can say

SET COUNTRY SPACE.

to display the decimal point and date according to the specification for the user again.