Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SET DATE MASK in sapscript

Former Member
0 Likes
931

Hi,

I am trying to change the customer country and date mask for customer statements sapscript. I have a customer from Ecuador - country is set to 'EC'. The default date format for this customer is mm.dd.yyyy. I want to change the country to US and set the date format to 'mm/dd/yyyy'.

/: SET COUNTRY 'US'

/: SET DATE MASK = 'MM/DD/YYYY'

I am working on ECC 5.0.

I am not seeing any change in the output after adding these statements.I am also trying to change the currency format. Please suggest me some ideas on this

Thanks.

Hi,

I am trying to change the customer country and date mask for customer statements sapscript. I have a customer from Ecuador - country is set to 'EC'. The default date format for this customer is mm.dd.yyyy. I want to change the country to US and set the date format to 'mm/dd/yyyy'.

/: SET COUNTRY 'US'

/: SET DATE MASK = 'MM/DD/YYYY'

I am working on ECC 5.0.

I am not seeing any change in the output after adding these statements.I am also trying to change the currency format. Please suggest me some ideas on this

Thanks.

3 REPLIES 3
Read only

Former Member
0 Likes
518

Hi,

Try only one statement:

/: SET DATE MASK = 'MM/DD/YYYY'

Ashven

Read only

Former Member
0 Likes
518

Hi,

What is the variable that is holding this date and how is it declared in the sapscript triggering program...

please make sure that it is of type date...

Also, you need not use both the 'SET' commands only one of them is required....if the country set is used then all the date and decimal fields are displayed according to entry in table T005X.

Thanks.

Read only

Former Member
0 Likes
518

Hi,

I think it should work. Just check the following link:

http://www.howforge.com/date-mask-template-in-command-set-date-mask-for-sapscript

Regards

Subramanian