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

Regarding SET DATE MASK in SAPScript

Former Member
0 Likes
1,117

Hi

I am facing one Problem regarding Set date mask command in SAPScritp.

Actually in the very begining of the SAP Script

One statement has already written

SET DATE MASK = 'MM/DD/YYYY'

Now I want to display one field in the bottom of the SAP Scipt into the user default date format.

I have gone thru the notes provided by SAP. It specifies that <b> You can revert to the standard setting by using the SET DATE MASK command again with an empty string in place of the date mask:

/: SET DATE MASK = ' '

</b>

But I am doing at the end of the code but the date format is not changing.

Please suggest me

Helpfull answers willl be rewarded..

Hi

I am facing one Problem regarding Set date mask command in SAPScritp.

Actually in the very begining of the SAP Script

One statement has already written

SET DATE MASK = 'MM/DD/YYYY'

Now I want to display one field in the bottom of the SAP Scipt into the user default date format.

I have gone thru the notes provided by SAP. It specifies that <b> You can revert to the standard setting by using the SET DATE MASK command again with an empty string in place of the date mask:

/: SET DATE MASK = ' '

</b>

But I am doing at the end of the code but the date format is not changing.

Please suggest me

Helpfull answers willl be rewarded..

4 REPLIES 4
Read only

Former Member
0 Likes
741

Can anybody suggest me for the above problem which I am facing

Please help

Read only

Former Member
0 Likes
741

To reset the datemask you should use a NULL string

''

. I see a blank space in between your single quote, may be that is a problem?

Also activate your sapscript everytime you make changes.

Using the SET DATE MASK causes the subsequent date fields to be displayed using the same formatting. To return to the default formatting use the following command:

/: SET DATE MASK = ' '

Read only

0 Likes
741
Hi Sri,
I have used blank also but the result is same. But its not coming in the proper format
Could you please sugges me
Read only

Former Member
0 Likes
741

Can you ensure that the

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

and the

/: SET DATE MASK = '''

are right before lines where the respective dates are written ...

Thanks,

Renjith