cancel
Showing results for 
Search instead for 
Did you mean: 

Country Specific Decimal Notation

Former Member
0 Kudos

Hi,

I have to print date format and currency format in the script according the Bill to Party Country .

Example : If the Country of the Bill to party is U.K , then the Decimal notation should change to U.K.format .

and the Same date format also and address also.

Is there any function module to do this or is there any another way to acheive this.

Thanks,

Satya.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I don't know why, but this looks a repeated question.....

Country-Dependent Formatting: SET COUNTRY

The formatting for certain field types depends on the country settings. These field types include, for example, date fields and number fields that include either a decimal point or the u2019thousandsu2019 separator character. The formatting options defined in the user master record are usually the ones used here. To choose a formatting option other than the one specified in the user master record, use the SET COUNTRY control command. The country-dependent formatting options are stored in the T005X table.

Syntax:

/: SET COUNTRY country_key

You can enter the country key either as a literal value enclosed in quotes or as a symbol.

/: SET COUNTRY u2019CANu2019

/: SET COUNTRY &country_key&

Use a blank country name to revert to the setting found in the user master record:

/: SET COUNTRY u2019 u2019

This SAPscript command actually calls the corresponding ABAP command internally. This guarantees the effect of the SAPscript command to be identical with that of the ABAP command.

If the formatting turns out not to be as required, then you should check the settings in table T005X.

Former Member
0 Kudos

Hi ,

SET COUNTRY 'IN' is an ABAP Command and also Script command. Becaue , when we need country specific decimal notation and date format in the Script , where can we put this in the Driver program or Script ?

Which one is the best way ..

Thanks,

Satya.