2012 Jun 29 12:40 PM
Hi together,
I want to insert a command line like...
IF MHNK-LAUFD GE >>certain date<<.
What format do I have to use for >>certain date<<.
e.g.:
YYYYMMDD or
YYYY/MM/DD or
YYYY.MM.DD or ...
I´ve already checked out several formats; without success.
Thanks for any help
2012 Jun 29 12:59 PM
2012 Jun 29 12:59 PM
2012 Jul 02 9:53 AM
Hi,
although I set data mask 'YYYYMMDD' and put '20120601' for the actual date it doesn´t work.
By the way....I´m using trx. se71.
best
2012 Jul 02 10:10 AM
You are using SAPscript, so your syntax was not
IF MHNK-LAUFD GE '20120629.
but rather
/: IF &MHNK-LAUFD& GE '20120629'.
You should force date to use a "sortable" format like YYYYMMDD
/: SET DATE MASK 'YYYYMMDD'.
/: IF &MHNK-LAUFD& GE '20120629'.
...
/: SET DATE MASK ' '.
The last statement to put date format back to default (before printing a date)
If that don't work, try to force data format before calling the SAPscript.
(I never liked way that SAPscript use to pass numerical, date or time fields...)
Regards,
Raymond
2012 Jun 29 3:17 PM
If you are using smartform/sap script then you will need to use conversion exits for date for the comparison to work. The format will depend on your profile in transaction SU3.
CONVERT_DATE_TO_EXTERNAL
CONVERT_DATE_TO_INTERNAL
Regards,
Shravan
2012 Jul 01 8:18 AM
Hi
Try using following statements in the Script.
/: SET DATE MASK = 'DD.MMMM.YYYY'
/: SET COUNTRY 'USA'
Regards,
Venkat