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

SAPScript.. DATE MASK problem

Former Member
0 Likes
682

Hi All,

I wonder SET DATE MASK works only on SY-DATUM field or any other fields which are displaying date??

Reason I'm asking in PO output &CDPOS-VALUE_NEW& and &CDPOS-VALUE_OLD& displaying dates.. If apply DATE MASK on these fields it's not working...

Any suggestions please......

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
646

Hi,

do like this

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

  • &CDPOS-VALUE_NEW&

Regards,

Omkar.

4 REPLIES 4
Read only

Former Member
0 Likes
646

Hi,

Yes, the date mask will work only for the variables with type DATS. i think the value_new and value_old are character fields and the mask will not work.

you might need to pass this values to a temporary variable and use it for Date mask.

Hope this helps

Regards

Sudha

Read only

Former Member
0 Likes
647

Hi,

do like this

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

  • &CDPOS-VALUE_NEW&

Regards,

Omkar.

Read only

0 Likes
646

Sorry Omkaram,,, It's not working..

Read only

Former Member
0 Likes
646

declare the fields VALUE_NEW and VALUE_OLD type sy-datum,

then in sript use SET DATE MASK command immediately before placing the vaue.

*reward if solved*