‎2007 Nov 13 10:02 AM
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......
‎2007 Nov 13 10:12 AM
Hi,
do like this
/: SET DATE MASK = 'MM/DD/YYYY'
&CDPOS-VALUE_NEW&
Regards,
Omkar.
‎2007 Nov 13 10:09 AM
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
‎2007 Nov 13 10:12 AM
Hi,
do like this
/: SET DATE MASK = 'MM/DD/YYYY'
&CDPOS-VALUE_NEW&
Regards,
Omkar.
‎2007 Nov 13 10:28 AM
‎2007 Nov 13 10:38 AM
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*