Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

chech date in sapscript

Hi all,

I need to check a date in a sapscript in this way:

/:   IF &MXABK-TDATE& = '20060601'
/:       <code A>   
/:   ELSE.
/:       <code B>   
/:   ENDIF.

but it doesn't work.

(I hope I don't have to use a form routine for a check so simple).

Could you help me?

I thank you in advance.

Best regards

Former Member replied

Hi Paolo,

Try to Use the below code in script.


/: set edit mask : 'YYYYMMDD'.

/: IF &MXABK-TDATE& = '20060601'

/: <code A>

/: ELSE.

/: <code B>


0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question